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

/* BASE */
body {
  font-family: Verdana, Geneva, sans-serif;
  background: #fff;     /* Use pure white */
  color: #18181b;       /* Dark, rich black for text */
  padding: 20px;
  padding-top: 80px;
}

/* === HEADER NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Use the same gradient as the body for seamless blending */
   background: #fff;     /* Use pure white */
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 10px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 180px;
  margin: 0 60px;
}

.nav button,
.dropdown button {
  background: none;
  border: none;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}


.nav button:hover,
.nav button.active,
.dropdown button:hover {
  transform: scale(1.05);
  background-color: #cfcfcf;
  color: #1f66e0;
}

/* Logo centered */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.logo img {
  max-height: 55px;
  height: auto;
  width: auto;
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Dropdown styles */
.dropdown {
  position: relative;
  flex-shrink: 0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: #f0f0f5;
}

.nav-profile-pic {
  width: 40px;   /* increased from 32px */
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.initials-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4d8df6;
  color: #fff;
  font-weight: 600;
}

.nav-profile-pic.initials-avatar {
  font-size: 1rem;
}

.dropdown-profile-box {
  display: flex;
  align-items: flex-start;
  padding: 14px 16px 12px 16px;
  border-bottom: 1px solid #eee;
  background: #f6f7fa; /* subtle highlight, optional */
}

.dropdown-profile-box .nav-profile-pic,
.dropdown-profile-box .initials-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-profile-box .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dropdown-profile-box .name {
  font-weight: 700;
  font-size: 1.08em;
  line-height: 1.1;
}

.dropdown-profile-box .email {
  font-size: 0.98em;
  color: #666;
  line-height: 1.1;
  margin-top: 2px;
  word-break: break-all;
}



@media (max-width: 768px) {
  .nav {
    flex-wrap: nowrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin: 10px 0 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 72px 0 48px 0;
  margin-bottom: 0;
  background: none !important;
  /* <--- This line forces transparent bg */
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text {
  flex: 1 1 0;
  max-width: 570px;
}

.hero-text h1 {
  font-size: 2.5rem;
  /* ~40px */
  font-weight: 700;
  line-height: 1.13;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  color: #18181b;
}

.hero-text p {
  font-size: 1.15rem;
  color: #24262b;
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.hero-text b {
  font-weight: 700;
  color: #18181b;
}

.hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
}

.hero-icon img {
  max-width: 210px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: 24px;
}

@media (max-width: 800px) {
  .hero {
    flex-direction: column;
    padding: 36px 0 12px 0;
    text-align: center;
  }

  .hero-icon {
    margin-top: 24px;
    margin-left: 0;
  }

  .hero-icon img {
    margin-left: 0;
    max-width: 150px;
  }
}



/* UPLOAD SECTION */
.upload-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.upload-section h2 {
  background: linear-gradient(90deg, #4d8df6, #7dbff0);
  color: white;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-section h2 .emoji {
  font-size: 20px;
  margin-right: 8px;
}

.upload-card {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
}

.upload-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.upload-box::before {
  content: attr(data-label);
  text-align: center;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 24px;
  margin-bottom: 10px;
}

.upload-box.original::before {
  background: #adadad1f;
  color: #3c3c3c;
}

.upload-box.serial::before {
  background: #fff8d9;
  color: #997d00;
}

.upload-box.hash::before {
  background: #e1f1e1;
  color: #236c23;
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  background: #fafafa;
}

.file-input-wrapper label {
  background: #eee;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

input[type="file"] {
  display: none;
}

.file-input-wrapper span {
  color: #555;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-box input[type="text"] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

.upload-box textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  resize: vertical;
}

.upload-box button {
  background-color: #4d8df6;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.upload-box button:hover {
  background-color: #2a6ee0;
}

.justify-center {
  justify-content: center;
}

/* RESULT CARD */
.result-card {
  background: white;
  margin: 40px auto 0;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  max-width: 1100px;
  width: 100%;
}

.result-card * {
  text-align: left;
}

.result-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2b41;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e6f0;
  padding-bottom: 8px;
}

.result-row {
  margin-bottom: 20px;
}

.result-row label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 6px;
  display: block;
}

.result-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #1d1d1f;
  word-break: break-word;
}

.result-value span {
  display: inline-block;
  white-space: break-spaces;
}

.copy-btn {
  background: none;
  border: none;
  font-size: 14px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.copy-btn:hover {
  color: #000;
}

.send-button {
  margin-top: 24px;
  background-color: #1a4ed8;
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.send-button:hover {
  background-color: #1441c4;
}

/* File preview inside result card */
.file-preview {
  margin-top: 20px;
}

.file-preview iframe {
  width: 100%;
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* === AUTH CONTAINERS === */
.auth-container {
  max-width: 40%;
  margin: 60px auto;
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: #1f2b41;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-container input[type="text"],
.auth-container input[type="password"],
.auth-container input[type="email"] {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.auth-container button {
  background-color: #4d8df6;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-container button:hover {
  background-color: #2a6ee0;
}

/* === FORM MESSAGES === */
.message,
.auth-container .message {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 14px;
}

.message.error,
.auth-container .message.error {
  background-color: #ffe4e4;
  color: #b30000;
}

.message.success,
.auth-container .message.success {
  background-color: #e2ffe7;
  color: #157c33;
}

/* === UTILITY === */
.hidden {
  display: none !important;
}

.download-button {
  margin-top: 24px;
  background-color: #49d81a;
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.download-button:hover {
  background-color: #14c46f;
  transform: translateY(-1px);
}

.status {
  margin-top: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status.success {
  color: green;
}

.status.error {
  color: red;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f9f9f9;
}

table tr:hover {
  background-color: #f0f4ff;
}

.file-table {
  font-size: 16px;
  margin-top: 10px;
}

.about-section {
  background-color: #f9f9f9;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
}

.about-section h2,
.about-section h3 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.about-section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 900px;
  margin-bottom: 25px;
}

.about-section ul {
  list-style-type: disc;
  padding-left: 40px;
  max-width: 900px;
}

.about-section li {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
}

.about-section strong {
  color: #000;
}

.profile-section {
  font-size: 18px;
  line-height: 1.8;
  padding: 20px;
}

.profile-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.profile-section p {
  font-size: 20px;
  margin: 8px 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.profile-header .info {
  display: flex;
  flex-direction: column;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 3rem;
}

.upload-pic-form {
  margin-bottom: 15px;
}


.upload-pic-form button {
  background-color: #4d8df6;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.upload-pic-form button:hover {
  background-color: #2a6ee0;
}

.public-options {
  display: flex;
  flex-direction: column;
  /* подрежда вертикално */
  gap: 2px;
  /* малко разстояние между редовете */
  font-size: 0.92em;
  margin-top: 4px;
}

.public-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.pagination-controls {
  margin-top: 20px;
  text-align: center;
}

.pagination-controls button {
  margin: 0 4px;
  padding: 6px 12px;
  background-color: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 4px;
}

.pagination-controls button.active {
  background-color: #4CAF50;
  color: white;
}

table.verification-table {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table.verification-table th,
table.verification-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

table.verification-table th {
  width: 180px;
  background-color: #f7f7f7;
  font-weight: 600;
}

.credit-note {
  background: #f0f7ff;
  border: 1.5px solid #b3d4fc;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 1.08em;
  color: #1a2a3a;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(79, 158, 255, 0.07);
}

.credit-note .credit-icon {
  font-size: 1.7em;
  margin-right: 8px;
  margin-top: 2px;
}

/* Стилизиране на TSA дропдауна */
#tsaSelect {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #b3d4fc;
  border-radius: 8px;
  background: #f8fbff;
  font-size: 1.08em;
  color: #1a2a3a;
  margin: 8px 0 12px 0;
  transition: border 0.2s;
  outline: none;
  box-shadow: 0 2px 8px rgba(79, 158, 255, 0.03);
}

#tsaSelect:focus {
  border-color: #4d8df6;
  background: #f0f7ff;
}

#tsaSelect option {
  background: #fff;
  color: #1a2a3a;
  font-size: 1em;
  padding: 8px 0;
}

.credit-info-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f0f7ff;
  border: 1.5px solid #b3d4fc;
  border-radius: 10px;
  padding: 16px 22px;
  margin: 0 0 28px 0;
  font-size: 1.12em;
  color: #1a2a3a;
  box-shadow: 0 2px 8px rgba(79, 158, 255, 0.07);
  flex-wrap: wrap;
}

.credit-info-bar .credit-icon {
  font-size: 2em;
  margin-right: 8px;
  margin-top: 2px;
}

.credit-info-bar .credit-main {
  font-weight: 500;
  color: #1a2a3a;
}

.credit-info-bar .credit-sub {
  color: #1f66e0;
  font-size: 0.98em;
  margin-left: auto;
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .credit-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 1em;
    padding: 12px 10px;
  }

  .credit-info-bar .credit-sub {
    margin-left: 0;
    white-space: normal;
  }
}

.open-preview-btn {
  margin: 18px auto 0 auto;
  display: block;
  padding: 10px 22px;
  background: #4d8df6;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.open-preview-btn:hover {
  background: #2560c0;
}

.preview-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 40, 60, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-modal.hidden {
  display: none;
}

.preview-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 24px 24px;
  max-width: 80vw;
  max-height: 85vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 2.5px solid #4d8df6;
}

.preview-modal-content iframe {
  width: 64vw;
  height: 60vh;
  border: 2px solid #b3d4fc;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: 0 2px 12px rgba(79, 158, 255, 0.10);
  margin: 0 auto;
  display: block;
}

.preview-modal-content img {
  max-width: 60vw;
  max-height: 60vh;
  border: 2px solid #b3d4fc;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: 0 2px 12px rgba(79, 158, 255, 0.10);
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.preview-modal-content audio {
  max-width: 60vw;
  max-height: 60vh;
  border: 2px solid #b3d4fc;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: 0 2px 12px rgba(79, 158, 255, 0.10);
  margin: 0 auto;
  display: block;
}

.close-preview-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #333;
  cursor: pointer;
  z-index: 2;
}

/* Watermark overlay inside preview modal */
.watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48dGV4dCB4PScwJyB5PScxNTAnIHRyYW5zZm9ybT0ncm90YXRlKC00NSAxMDAgMTAwKScgZmlsZD0ncmdiYSgxNTAsMTUwLDE1MCwwLjM1KScgZm9udC1zaXplPScyMCcgZm9udC1mYW1pbHk9J0FyaWFsJz5TZWN1cmVkIGJ5IFN0YW1wUjwvdGV4dD48L3N2Zz4=");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.25;
  z-index: 1;
}

.logo img {
  max-height: 65px;
  width: auto;
}

/* FOOTER STYLING */
.footer {
  background-color: #dddddd;
  color: #222;
  text-align: center;
  padding: 0;
  /* no inner padding */
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: calc(100% + 40px);
  /* extend width to cover body padding (20px each side) */
  margin: 0 -20px;
  /* offset horizontal body padding */
  border-top: 2px solid #ccc;
}

.footer p {
  margin: 0;
}

/* Button Styling */
.template-btn {
  display: inline-block;
  background: #ff5a5a;
  color: #fff;
  font-weight: 500;
  font-size: 1.1em;
  padding: 16px 32px;
  border-radius: 12px;
  margin: 0 8px 12px 8px;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(255, 90, 90, 0.08);
  border: none;
  cursor: pointer;
}

.template-btn:hover {
  background: #e13c3c;
  transform: translateY(-2px) scale(1.04);
}

/* FAQ SECTION */
.faq-section {
  max-width: 700px;
  margin-left: 0;
  margin-right: auto;
  padding-left: 20px;
}

.faq-dropdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.faq-item {
  width: 100%;
  max-width: 600px;
}

.faq-btn {
  background: #fff;
  color: #222;
  border: 1.5px solid #e0e6f0;
  border-radius: 10px 10px 0 0;
  padding: 14px 28px;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(77, 141, 246, 0.04);
  outline: none;
  text-align: left;
  width: 100%;
  border-bottom: none;
  position: relative;
  z-index: 2;
}

.faq-toggle {
  background: #fff;
  padding: 14px 22px;
  font-weight: 600;
  border: 2px solid #e0e6f0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, box-shadow 0.2s;
  font-size: 1.25em;
  /* увеличен размер */
}

.faq-btn.open,
.faq-btn:hover,
.faq-btn:focus {
  background: #f5f7fb;
  box-shadow: 0 4px 16px rgba(77, 141, 246, 0.08);
}

.faq-answer {
  width: 100%;
  background: #fff;
  color: #1a2a3a;
  border-radius: 0 0 10px 10px;
  border: 1.5px solid #e0e6f0;
  border-top: none;
  padding: 0 28px 16px 28px;
  font-size: 1.08em;
  display: none;
  box-shadow: 0 2px 8px rgba(77, 141, 246, 0.04);
  text-align: left;
  position: relative;
  z-index: 1;
}

.faq-answer.open {
  display: block;
  animation: fadeIn 0.2s;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== PATCH 2025-06-18 ==== */

/* 1. Навбар – по-добро центриране + плавна сянка */
.header {
  background: #e7e7e7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.nav button {
  font-size: 15px;
  letter-spacing: .02em;
}

.logo img {
  max-height: 60px;
}

/* 2. Герой – лека анимация и по-мек фон */
.hero {
  background: #fff;
}

@media(max-width:700px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .hero-icon img {
    max-width: 90px;
    margin-top: 24px;
  }
}

/* 3. Карти (общ стил) – повече „въздух“ и цвят на заглавието */
.card {
  transition: transform .18s, box-shadow .18s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.card h3 {
  color: #133c80;
}

/* 4. Шаблон-бутоните – еднаква височина на мобилни */
@media(max-width:600px) {
  .template-btn {
    width: 100%;
    text-align: center;
  }
}

/* 5. FAQ – стрелка индикация с псевдо-елемент */
.faq-btn::after {
  content: "▸";
  float: right;
  transition: transform .2s;
  font-size: .9em;
  margin-left: 8px;
}

.faq-btn.open::after {
  transform: rotate(90deg);
}

/* 6. Footer – без хоризонтално преливане, но 100 % ширина */
.footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 24px 0;
  background: #ececec;
  border-top: 1px solid #ccc;
}

/* 7. Изчисти възможно хоризонтално скролване от body-padding + calc() */
body {
  overflow-x: hidden;
}

/* 8. По-гъвкава .auth-container при малки екрани */
@media(max-width:800px) {
  .auth-container {
    max-width: 90%;
  }
}

/* 9. По-контрастен drop-down в навбара */
.dropdown-menu {
  border: 1px solid #c4c4c4;
}

/* ==== край на PATCH ==== */
/* ==== PATCH-2  (центриране и типография) ==== */

/* 1. Центрирай съдържателните секции и сложи максимум ширина */
#why,
#contacts,
#docs,
#faq {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

/* 2. Унифицирани заглавия вътре в секциите */
#why h2,
#contacts h2,
#docs h2,
#faq h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* 3. Плавни вертикални разстояния между картите, списъците и заглавията */
.card-block {
  margin-top: 60px;
}

.card+.card {
  margin-top: 32px;
}

ul {
  margin-top: 12px;
  line-height: 1.6;
}

/* 4. Линковете в параграфи – фирменият ви цвят + underline при hover */
a[href^="http"],
a[href^="mailto"],
a[href^="tel"] {
  color: #1a4ed8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 5. Темплейт-бутоните да са подравнени по центъра дори на десктоп */
.templinks {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.templinks a {
  min-width: 180px;
  text-align: center;
}

/* 6. Контактните карти – по-читаема шапка + лек фон при hover */
.card h3 {
  font-size: 1.3rem;
}

.card:hover {
   background: #fff;     /* Use pure white */
}

/* 7. Сивият navbar и footer – малко по-топъл цвят */
.header,
.footer {
   background: #fff;     /* Use pure white */
}

/* 8. Light режим за списъците в главния текст (черна точка -> дискретна) */
ul li {
  list-style-type: disc;
  margin-left: 20px;
}

/* 9. Малък „breathing room“ под главния hero */
.hero {
  margin-bottom: 60px;
}

/* ==== край на PATCH-2 ==== */
/* ==== PATCH-3  (layout & readability)  ==== */

/* 1. Унифицирана „вътрешна рамка“ за всички card-block секции */
#why>*,
#contacts>*,
#docs>*,
#faq>* {
  max-width: 980px;
  /* става широк почти колкото картите */
  margin-left: auto;
  margin-right: auto;
}

/* 2. По-голямо междусекционно разстояние */
#contacts {
  margin-top: 80px;
}

#docs {
  margin-top: 80px;
}

#faq {
  margin-top: 80px;
}

/* 3. Заглавията – визуален контраст */
#why h2,
#contacts h2,
#docs h2,
#faq h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  letter-spacing: .01em;
}

/* 4. Параграфи и списъци – по-четим размер и разредка */
#why p,
#docs ul,
#why ul {
  font-size: 1.05rem;
  line-height: 1.7;
}

#docs ul li,
#why ul li {
  margin-bottom: .4rem;
}

/* 5. Линковете – по-голям шрифт + underline при задържане */
a[href],
.templinks a {
  font-size: 1rem;
}

a[href]:hover {
  text-decoration: underline;
}

/* 6. Пренасяне на дълги редове (линкове) вместо хор. скрол */
#contacts .actions a {
  word-break: break-all;
}

/* 7. Скриваме черната лента между body и navbar (оставена от преден padding) */
body {
  padding-top: 100px;
  background-attachment: fixed;
}

/* 8. Адаптивно: ако екранът е > 1400 px, разширяваме до 1180 px */
@media(min-width:1400px) {

  #why>*,
  #contacts>*,
  #docs>*,
  #faq>* {
    max-width: 1180px;
  }
}

/* ====  краен PATCH-3  ==== */
/* ==== PATCH-FAQ & TEMPLATE BUTTONS ==== */

/* 1. Копче-стилове за шаблоните (има ги, но засилваме responsive) */
.templinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.template-btn {
  min-width: 200px;
  text-align: center;
}

/* 2. FAQ като „акордеон“ с бутони */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.faq-toggle {
  background: #fff;
  padding: 14px 22px;
  font-weight: 600;
  border: 2px solid #e0e6f0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background .2s, box-shadow .2s;
  font-size: 1.25em;
  /* увеличен размер */
}

.faq-toggle::after {
  content: "▸";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .25s;
}

.faq-toggle.open {
  background: #f5f7fb;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .05);
}

.faq-toggle.open::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid #e0e6f0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0 22px;
  transition: max-height .3s ease;
}

.faq-content p {
  margin: 16px 0;
  line-height: 1.65;
}

.faq-content.open {
  max-height: 260px;
}

/* ==== край на PATCH ==== */

/* Agreement Modal */
.agreement-modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 60, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.agreement-modal.hidden {
  display: none;
}

.agreement-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border: 2.5px solid #4d8df6;
}

.agreement-modal-content p {
  margin: 10px 0;
  line-height: 1.5;
}

.agreement-modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ABOUT PAGE STYLING */
.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 50px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  line-height: 1.75;
  font-size: 1.05rem;
}

.about-page h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1a2a3a;
  text-align: center;
}

.about-page h2 {
  font-size: 1.5rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #133c80;
}

.about-page p {
  margin-bottom: 20px;
  color: #333;
}

.about-page ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.about-page ul li {
  margin-bottom: 10px;
  list-style: disc;
  color: #444;
}
.info-section {
  background: #f6faff;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(31,102,224,0.07);
  margin: 0 auto 36px auto;
  padding: 52px 32px 44px 32px;
  max-width: 1150px;
  border: 1px solid #e3ecfa;
  position: relative;
  transition: box-shadow 0.2s;
}

.info-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.info-section h2 {
  color: #111827;
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  text-align: left;
}

.info-section .accent {
  color: #247cfb;
  font-weight: 800;
}

.info-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #222e3a;
  background: none;
  margin-bottom: 0;
  max-width: 780px;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-left: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.3vw;
  margin-bottom: 2.2rem;
  margin-top: 18px;
  width: 100%;
}

.info-card {
  background: #fff;
  border: 1.5px solid #d4e7fd;
  border-radius: 26px;
  box-shadow: 0 2px 8px rgba(36,124,251,0.07);
  font-size: 1.13rem;
  line-height: 1.65;
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative;

  /* Ключово! */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  min-width: 0;
  min-height: 350px;  /* базова височина, може да увеличиш/намалиш */
  height: 100%;       /* за изравняване */
  aspect-ratio: 1 / 1; /* прави ги квадратни по възможност */
  padding: 2.2rem 1.4rem 2rem 1.6rem;
}

.info-card h3 {
  color: #1763ca;
  margin-bottom: 1.1rem;
  font-size: 1.33rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.info-card ul,
.info-card ol {
  padding-left: 1.12rem;
  margin: 0;
  color: #2e3a4a;
  font-size: 1.07rem;
}
.info-card li {
  margin-bottom: 0.42em;
}
.info-card li:last-child {
  margin-bottom: 0;
}

/* Responsive за таблет/мобилно */
@media (max-width: 1100px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
  }
  .info-card {
    min-height: 280px;
    aspect-ratio: 1/1;
  }
}
@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .info-card {
    min-height: 200px;
    aspect-ratio: unset;
    height: auto;
  }
}

/* Call-to-action button */
.info-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}
.scroll-button {
  background: linear-gradient(90deg, #247cfb 20%, #1e4ed8 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.16rem;
  padding: 13px 38px;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  box-shadow: 0 1px 7px rgba(36,124,251,0.08);
  transition: background 0.18s, transform 0.14s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.scroll-button:hover {
  background: linear-gradient(90deg, #1e4ed8 20%, #247cfb 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 20px 0 rgba(36,124,251,0.12);
}

@media (max-width: 767px) {
  .nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    height: 100px;
    /* ← по-дебел навбар */
    background-color: #fff;
  }

  .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }

  .logo img {
    height: 80px;
    /* голямо лого */
    max-height: 80px;
    width: auto;
  }

  .nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 11;
  }

  #userDropdown {
    z-index: 11;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100px;
    /* ← съответства на височината на .nav */
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    z-index: 5;
    text-align: center;
    padding: 16px 0;
  }

  .nav-links.show {
    display: flex;
  }
}

@media screen and (min-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }

  .logo {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin: 0;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    gap: 12px;
    flex: 1;
    margin-left: 40px;
  }

  .nav-toggle {
    display: none;
  }

  .dropdown {
    margin-left: auto;
  }
}

.footer {
  background-color: #fff;
  padding: 46px 0 36px 0;
  border-top: 2px solid #eee;
  color: #222;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 48px;
  text-align: left;
}

.footer-logo-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  min-width: 380px;
}

.footer-logo-img {
  height: 120px; /* Ако искаш по-голямо: 140px */
  width: auto;
  object-fit: contain;
}

.footer-contact {
  font-size: 16px;
  line-height: 1.7;
  min-width: 170px;
  margin-left: 0;
}

.footer-contact a {
  color: #1861c8;
  text-decoration: none;
  font-weight: 500;
}
.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
  text-align: left;
}

.footer-links a {
  color: #1a4ed8;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

.footer-payments {
  text-align: left;
  min-width: 200px;
}

.footer-copy {
  font-weight: bold;
  margin-bottom: 12px;
}

.card-icons {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.card-icons img {
  height: 36px;
}

/* mobile & tablet */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding: 0 16px;
  }
  .footer-logo-block {
    min-width: 0;
    margin-bottom: 14px;
    gap: 16px;
  }
  .footer-payments {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .footer-logo-img {
    height: 64px;
  }
  .footer-container {
    padding: 0 6px;
    gap: 9px;
  }
}


html {
  scroll-behavior: smooth;
}

#dropdownToggle {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
  padding: 10px 14px;
}

/* На мобилно! */
@media (max-width: 800px) {
  #dropdownToggle {
    flex-direction: column !important;
    align-items: flex-end !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    font-size: 1em !important;
    gap: 0 !important;
    min-width: 94px;
    height: auto;
  }

  #dropdownToggle .greet-word {
    display: block !important;
    font-weight: 400 !important;
    margin-bottom: 1px;
  }

  #dropdownToggle .greet-username {
    display: block !important;
    font-weight: 700 !important;
  }

  #dropdownToggle .greet-caret {
    display: block !important;
    font-size: 0.97em !important;
    margin-top: 1px;
  }
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-weight: normal;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 260px;
  background: #333;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 10px 14px;
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  opacity: 0;
  font-size: 0.95em;
  transition: opacity 0.2s;
  pointer-events: none;
  box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.20);
  line-height: 1.5;
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .tooltip .tooltiptext {
    width: 95vw;
    left: 0;
    transform: none;
  }
}

.info-text {
  font-size: 1.15rem;
  /* Slightly larger than default for easy reading */
  line-height: 1.7;
  /* More breathing room */
  color: #36373a;
  /* Soft, dark gray for less strain */
  margin-top: 18px;
  margin-bottom: 0;
  max-width: 680px;
  /* Keeps text from being too wide */
  font-weight: 400;
  letter-spacing: -0.02em;
  background: none;
  /* No background, just blends in */
  box-shadow: none;
  border-left: 4px solid #e3eaf5;
  padding-left: 18px;
}

.content-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 2rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.price-table th {
  background-color: #f2f7ff;
  font-weight: bold;
}
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.payment-modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
}

.payment-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.payment-logos {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.payment-logos img {
  height: 32px;
}
.custom-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.custom-modal:not(.hidden) {
  display: flex;
}
.custom-modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px 30px 32px;
  max-width: 450px;
  margin: auto;
  box-shadow: 0 4px 32px rgba(0,0,0,0.22);
}
.modal-ok-button {
  background: #3586f5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 36px;
  font-size: 18px;
  cursor: pointer;
}
.modal-icon {
  font-size: 64px;
  text-align: center;
}

.info-section.no-bg {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 0 48px 0;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.info-section.no-bg > h2 {
  max-width: 1300px;
  margin: 0 auto 32px auto;
  padding-left: 12px;
  font-size: 2.3rem;
  letter-spacing: -0.5px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.1vw;
  max-width: 1500px;
  margin: 0 auto 2.2rem auto;
  width: 100%;
  align-items: stretch;
}

.info-card {
  background: #fff;
  border: 1.5px solid #e4e4e4;
  border-radius: 22px;
  box-shadow: 0 1.5px 8px rgba(24,30,56,0.04);
  font-size: 1.13rem;
  line-height: 1.67;
  padding: 2.1rem 1.2rem 2.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 220px;
  height: 100%;
  aspect-ratio: 5 / 6; /* малко по-правоъгълни! */
  transition: box-shadow 0.13s, transform 0.13s;
}

.info-card h3 {
  color: #1763ca;
  margin-bottom: 1.12rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.info-card ul, .info-card ol {
  padding-left: 1.2rem;
  margin: 0;
  color: #29334b;
  font-size: 1.07rem;
}

.info-card li { margin-bottom: 0.38em; }
.info-card li:last-child { margin-bottom: 0; }

.info-cta {
  text-align: center;
  margin: 32px 0 0 0;
}

.scroll-button {
  background: #247cfb;
  color: #fff;
  border-radius: 8px;
  padding: 13px 32px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(36,124,251,0.11);
  border: none;
  transition: background 0.18s;
}
.scroll-button:hover { background: #1259c7; }

/* Responsive */
@media (max-width: 1100px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .info-card { aspect-ratio: 9/8; min-height: 190px; }
}
@media (max-width: 700px) {
  .info-section.no-bg > h2 { font-size: 1.4rem; padding: 0 4px; }
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-card { aspect-ratio: unset; min-height: 140px; }
}
