body {
  font-family: 'Roboto Mono', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #fff;
  color: #6c757d;
  line-height: 1.8;
  font-size: 0.96rem;
}
h1, h2, h3, h4, h5, .heading {
  font-family: 'DM Serif Display', serif;
  color: #000;
  font-weight: 900;
  line-height: 1.5;
}
h1, .display-4 {
  color: #ffc107;
  text-shadow: 1px 1px 0 #f8f9fa;
}
.section-title, .lead strong {
  color: #ffc107;
}
.btn {
  border-radius: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 900;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
  border-width: 2px;
}
.btn-primary:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}
.btn-primary:disabled,
.btn-primary[disabled] {
  background-color: #ffe083;
  border-color: #ffe083;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-outline-primary {
  border: 2px solid #ffc107;
  color: #ffc107;
  background: transparent;
}
.btn-outline-primary:hover {
  background-color: #ffc107;
  color: #212529;
}
/* language buttons - active button has only yellow border, no background */
#btn-ar:hover, #btn-en:hover {
  color: #ffc107 !important;
  background-color: white !important;
  border-color: #ffc107 !important;
}
.lang-active {
  color: #ffc107 !important;
  background-color: transparent !important;
  border-color: #ffc107 !important;
}
.lang-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: flex-start;
}
.form-control {
  height: 50px;
  border-width: 2px;
  border-color: #ced4da;
  border-radius: 0;
  font-family: 'Roboto Mono', monospace;
  transition: 0.2s;
}
.form-control:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
}
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: none;
}
.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.2);
}
textarea.form-control {
  height: auto;
}
.card {
  border: 1px solid #dee2e6;
  border-radius: 0;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}
.card:hover {
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.nav-tabs-custom {
  border-bottom: 1px solid #dee2e6;
}
.nav-tabs-custom .nav-link {
  border: none;
  color: #adb5bd;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  margin-right: 0.5rem;
  background: transparent;
  transition: 0.2s;
  font-family: 'Roboto Mono', monospace;
}
.nav-tabs-custom .nav-link.active {
  color: #ffc107;
  border-bottom: 2px solid #ffc107;
  background: transparent;
  font-weight: bold;
}
.nav-tabs-custom .nav-link:not(.active):hover {
  color: #ffc107;
  border-bottom: 2px solid #ffc107;
}
.type-panel {
  margin-top: 1.5rem;
}
.qr-display {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
}
.qr-wrap {
  display: inline-block;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
  border: 1px solid #ffc107;
}
.error-msg {
  color: #dc3545;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
  font-family: 'Roboto Mono', monospace;
  min-height: 1rem;
}
.flash-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #dc3545;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  z-index: 10000;
  display: none;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.toast-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffc107;
  color: #212529;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  font-family: 'Roboto Mono', monospace;
  font-weight: bold;
}
.bg-light-gray { background-color: #f8f9fa; }
.text-gold { color: #ffc107; }
.border-gold { border-color: #ffc107; }
footer a, .footer-link a {
  color: #ffc107;
  text-decoration: underline;
}
footer a:hover {
  color: #d39e00;
}
.ti-qrcode {
  color: #ffc107 !important;
}
.qr-label {
  color: #ffc107;
  font-weight: bold;
}
.btn-generate {
  min-width: 220px;
  font-size: 14px;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}
.custom-footer {
  background-color: #ffc107;
  color: #212529;
  padding: 16px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  direction: ltr;
}
.social-links {
  display: flex;
  gap: 20px;
}
.social-links a {
  color: #212529;
  font-size: 1.3rem;
  transition: transform 0.2s, color 0.2s;
}
.social-links a:hover {
  transform: translateY(-3px);
  color: white;
}
/* Saved QR codes section - centered */
.saved-section {
  margin-bottom: 2rem;
  text-align: center;
}
.saved-section-title, #faq-heading {
  color: #ffc107 !important;
}
.saved-section-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 900;
  margin-bottom: 1rem;
  text-align: center;
}
.saved-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.saved-card {
  flex: 0 1 180px;
  border: 1px solid #dee2e6;
  padding: 1rem;
  text-align: center;
  background: #fff;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
}
.saved-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}
.saved-card-label {
  font-size: 0.7rem;
  font-family: 'Roboto Mono', monospace;
  color: #6c757d;
  word-break: break-all;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.saved-card-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.btn-delete-qr {
  font-size: 11px;
  padding: 0.25rem 0.6rem;
  border: 2px solid #dc3545;
  color: #dc3545;
  background: transparent;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Roboto Mono', monospace;
}
.btn-delete-qr:hover {
  background: #dc3545;
  color: #fff;
}
.btn-download-qr {
  font-size: 11px;
  padding: 0.25rem 0.6rem;
  border: 2px solid #ffc107;
  color: #b38600;
  background: transparent;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Roboto Mono', monospace;
}
.btn-download-qr:hover {
  background: #ffc107;
  color: #212529;
}
.saved-empty {
  color: #adb5bd;
  font-size: 0.85rem;
  font-family: 'Roboto Mono', monospace;
  padding: 1rem 0;
}

/* Responsive button sizing (reduced by 15% from previous bigger size) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .btn-generate {
    min-width: 240px;
    font-size: 15px;
    padding: 0.85rem 1.7rem;
    white-space: normal;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .btn-generate {
    min-width: 220px;
    font-size: 15px;
    padding: 0.85rem 1.5rem;
    white-space: normal;
  }
}
@media (max-width: 575.98px) {
  .btn-generate {
    min-width: 90%;
    width: 90%;
    font-size: 15px;
    padding: 0.85rem 1rem;
    white-space: normal;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

#faqAccordion .btn-link {
  width: 100%;
  text-align: left;
  text-decoration: none;
}

html[dir="rtl"] #faqAccordion .btn-link {
  text-align: right;
  font-size: 1.1rem !important;
}

html[dir="rtl"] #faqAccordion .card-body {
  text-align: right;
  font-size: 1.05rem !important;
}

#faqAccordion .card {
  border: 1px solid #dee2e6;
}

#faqAccordion .card-header {
  border-bottom: 1px solid #dee2e6;
  background-color: #fff;
}