
.gii-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.gii-lightbox.hidden {
  display: none;
}

.gii-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.gii-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gii-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gii-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gii-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gii-lightbox-caption {
  margin-top: 1rem;
  color: #e2e8f0;
  text-align: center;
  font-size: 0.875rem;
}

.gii-preview-clickable {
  transition: opacity 0.2s;
}

.gii-preview-clickable:hover {
  opacity: 0.9;
}

html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f172a; color: #e2e8f0; }
.hidden { display: none !important; }
.gii-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-primary { color: #0d9488 !important; }
.btn-primary:not(header.masthead .btn-primary) { background-color: #0d9488 !important; border-color: #0d9488 !important; color: #fff !important; }
.btn-primary:not(header.masthead .btn-primary):hover, .btn-primary:not(header.masthead .btn-primary):focus { background-color: #0f766e !important; border-color: #0f766e !important; color: #fff !important; }
.btn-outline-primary { border-color: #0d9488 !important; color: #0d9488 !important; }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: #0d9488 !important; border-color: #0d9488 !important; color: #fff !important; }

.gii-body { min-height: 100%; }
.gii-content-wrapper { position: relative; }
@media (min-width: 1200px) {
  section .container,
  .gii-content-wrapper .container,
  #analyzer .container,
  .gii-ad-h.container { max-width: 1100px; }
}
@media (min-width: 1600px) {
  .gii-content-wrapper > .container { padding-left: 180px; }
}

.navbar.static-top { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.navbar.bg-light { background: #1e293b !important; }
.text-teal { color: #0d9488 !important; }
.navbar-brand.text-teal:hover { color: #2dd4bf !important; }
.navbar-light .navbar-brand,
.navbar-light .nav-link { color: #e2e8f0 !important; }
.navbar-light .nav-link:hover { color: #2dd4bf !important; }
.navbar-light .navbar-toggler {
  border-color: #2dd4bf;
  color: #2dd4bf;
  padding: 0.35rem 0.6rem;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.navbar-light .navbar-toggler:hover,
.navbar-light .navbar-toggler:focus {
  border-color: #5eead4;
  background-color: rgba(13, 148, 136, 0.15);
  box-shadow: 0 0 0 0.15rem rgba(45, 212, 191, 0.25);
}
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(45,212,191,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

header.masthead {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #0d9488 100%);
  background-size: cover;
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.masthead-hero-effect {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.masthead-hero-effect canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
header.masthead::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.5);
  pointer-events: none;
  z-index: 0;
}
header.masthead .container { position: relative; z-index: 2; }
header.masthead h1 { font-size: 1.75rem; font-weight: 700; }
header.masthead .btn-primary {
  background: rgba(13, 148, 136, 0.2);
  border: 2px solid rgba(13, 148, 136, 0.6);
  color: #2dd4bf;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 600;
  padding: 0.75rem 2rem;
}
header.masthead .btn-primary:hover {
  background: rgba(13, 148, 136, 0.35);
  border-color: rgba(45, 212, 191, 0.8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}
@media (min-width: 768px) {
  header.masthead { padding-top: 10rem; padding-bottom: 10rem; }
  header.masthead h1 { font-size: 2.5rem; }
}

.gii-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: center;
}
.gii-feature-item {
  padding: 2rem;
}
.gii-feature-item h3 {
  color: #f8fafc;
  margin-bottom: 1rem;
}
.gii-feature-item p {
  color: #94a3b8;
}

.features-icons { padding-top: 4rem; padding-bottom: 4rem; background: #1e293b !important; }
.features-icons .features-icons-item { max-width: 20rem; }
.features-icons .features-icons-icon {
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.features-icons .features-icons-icon i { font-size: 3.5rem; }
.features-icons .text-primary { color: #0d9488 !important; }
.features-icons h3 { color: #f8fafc; }
.features-icons .lead { color: #94a3b8; }

.gii-about-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0d9488 100%);
  position: relative;
}
.gii-about-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  pointer-events: none;
}
.gii-about-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.gii-about-text h2 {
  color: #f8fafc;
  margin-bottom: 1.5rem;
}
.gii-about-text p {
  color: #e2e8f0;
  margin-bottom: 1rem;
}
.gii-about-points {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(45, 212, 191, 0.3);
}
.gii-about-points span {
  color: #e2e8f0;
  line-height: 1.6;
}

.call-to-action {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0d9488 100%);
  background-size: cover;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.call-to-action::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.5);
  pointer-events: none;
}
.call-to-action .container { position: relative; z-index: 1; }
.call-to-action .btn-primary { background-color: #0d9488; border-color: #0d9488; }
.call-to-action .btn-primary:hover { background-color: #0f766e; border-color: #0f766e; }

.gii-mode-btn {
  min-width: 140px;
  background: #1e293b;
  border: 2px solid #475569;
  color: #e2e8f0;
  font-weight: 600;
  transition: all 0.3s ease;
}
.gii-mode-btn:hover {
  background: #0f172a;
  border-color: #2dd4bf;
  color: #2dd4bf;
  transform: translateY(-2px);
}
.gii-mode-btn-active {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}
.gii-mode-btn-active:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
}

@media (max-width: 576px) {
  header.masthead .btn-lg {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.gii-drop-zone {
  border: 2px dashed #475569;
  cursor: pointer;
  background: #1e293b;
  transition: border-color 0.2s, background 0.2s;
}
.gii-drop-zone:hover, .gii-drop-zone.drag-over { border-color: #2dd4bf; background: #134e4a; }
.gii-drop-text { font-weight: 500; color: #e2e8f0; margin: 0; }
.gii-drop-hint { color: #94a3b8; }

/* Form elements for compression settings */
.form-label {
  color: #e2e8f0;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-control {
  background-color: #28585D;
  border: 2px solid #40D9CC;
  border-radius: 10px;
  color: #40D9CC;
  padding: 0.75rem 1rem;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}
.form-control:focus {
  background-color: #28585D;
  border-color: #40D9CC;
  color: #40D9CC;
  box-shadow: 0 0 0 0.25rem rgba(64, 217, 204, 0.25), 0 0 10px rgba(64, 217, 204, 0.3);
  outline: none;
}
.form-control::placeholder {
  color: rgba(64, 217, 204, 0.5);
}
.form-control:hover:not(:focus) {
  border-color: #5eead4;
  box-shadow: 0 0 8px rgba(64, 217, 204, 0.2);
}
.form-check-label {
  color: #40D9CC;
  font-weight: 500;
  cursor: pointer;
}
.form-check-input {
  background-color: #28585D;
  border: 2px solid #40D9CC;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.form-check-input:checked {
  background-color: #40D9CC;
  border-color: #40D9CC;
}
.form-check-input:focus {
  border-color: #40D9CC;
  box-shadow: 0 0 0 0.25rem rgba(64, 217, 204, 0.25);
}
.form-check-input.form-switch {
  background-color: #28585D;
  border-color: #40D9CC;
}
.form-check-input.form-switch:checked {
  background-color: #40D9CC;
  border-color: #40D9CC;
}
.form-range {
  width: 100%;
  height: 0.5rem;
  background: #334155;
  border-radius: 0.25rem;
  outline: none;
  -webkit-appearance: none;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background: #0d9488;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.form-range::-webkit-slider-thumb:hover {
  background: #2dd4bf;
}
.form-range::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  background: #0d9488;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.form-range::-moz-range-thumb:hover {
  background: #2dd4bf;
}
.form-select {
  background-color: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
}
.form-select:focus {
  background-color: #1e293b;
  border-color: #0d9488;
  color: #e2e8f0;
  box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.25);
}
.form-select option {
  background-color: #1e293b;
  color: #e2e8f0;
}

.gii-msg.alert { margin-bottom: 0; }
.alert-info {
  background-color: #1e293b !important;
  border-color: #0d9488 !important;
  color: #e2e8f0 !important;
}
.alert-info h4,
.alert-info h6,
.alert-info .h6 {
  color: #2dd4bf !important;
}
.alert-info p {
  color: #94a3b8 !important;
}
.alert-info .bi-info-circle {
  color: #0d9488 !important;
}
.alert-warning {
  background-color: #1e293b !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
}
.alert-warning strong {
  color: #fbbf24 !important;
}

.gii-preview-box, .gii-info-box {
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gii-info-box {
  background: #1e293b;
}
.gii-preview-box {
  background: #1e293b;
}
.gii-info-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}
.gii-preview-box .position-relative {
  min-height: 300px;
  max-height: 500px;
  background: #0f172a;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #334155;
}
.gii-preview-box img.img-fluid {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.gii-preview-cap { font-size: 0.75rem; color: #94a3b8; }
.gii-info-box h3 { font-size: 1rem; color: #f8fafc; }
.gii-info-list p { margin: 0 0 0.35rem; font-size: 0.875rem; }
.gii-info-list .key { font-weight: 500; color: #e2e8f0; }
.gii-info-list .val { color: #94a3b8; }
.gii-meta-table-wrap { overflow-x: auto; border: 1px solid #334155; border-radius: 0.375rem; width: 100%; display: block; }
.gii-meta-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; min-width: 100%; display: table; }
.gii-meta-table th, .gii-meta-table td { padding: 0.4rem 0.6rem; text-align: left; border-bottom: 1px solid #334155; }
.gii-meta-table th { font-weight: 600; background: #0f172a; color: #e2e8f0; }
.gii-meta-table td { color: #94a3b8; }
.gii-meta-section { padding-left: 0.5rem; }
.gii-meta-section-title { padding-left: 0.25rem; margin-bottom: 0.5rem; }
.gii-key-info-list { font-size: 0.9375rem; }
.gii-key-block-title { text-transform: uppercase; letter-spacing: 0.03em; }
.gii-key-list li { margin-bottom: 0.25rem; color: #94a3b8; }
.gii-key-list li:last-child { margin-bottom: 0; }
.gii-collapse-trigger { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 0.35rem; }
.gii-collapse-trigger:hover { color: #e2e8f0; }
.gii-collapse-icon { font-size: 0.65rem; transition: transform 0.2s ease; display: inline-block; }
.gii-collapsible.gii-collapsed .gii-collapse-body { display: none; }
.gii-collapsible.gii-collapsed .gii-collapse-icon { transform: rotate(-90deg); }
.gii-dqt-wrap { font-size: 0.8125rem; }
.gii-dqt-table { width: 100%; border-collapse: collapse; margin-bottom: 0; table-layout: fixed; }
.gii-dqt-table td { width: 12.5%; text-align: center; }
.gii-dqt-table td { padding: 0.2rem 0.4rem; text-align: right; border: 1px solid #334155; font-family: ui-monospace, monospace; font-size: 0.75rem; color: #94a3b8; }

.gii-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gii-modal.hidden { display: none; }
.gii-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
}
.gii-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 1051;
}
.gii-modal-content {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #0d9488 100%);
  background-size: cover;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  max-height: 95vh;
  overflow: hidden;
  position: relative;
}
.gii-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  pointer-events: none;
  z-index: 0;
}
.gii-modal-content > * {
  position: relative;
  z-index: 1;
}
.gii-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
  background: transparent;
}
.gii-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
}
.gii-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gii-modal-close:hover {
  color: #e2e8f0;
}
.gii-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  background: transparent;
}
.gii-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #334155;
  text-align: center;
  flex-shrink: 0;
  background: transparent;
}
@media (max-width: 768px) {
  .gii-modal-dialog { max-width: 100vw; max-height: 100vh; }
  .gii-modal-content { max-height: 100vh; border-radius: 0; }
  .gii-modal { padding: 0; }
}

#analyzer .btn-primary, .gii-modal .btn-primary { background-color: #0d9488; border-color: #0d9488; }
#analyzer .btn-primary:hover, .gii-modal .btn-primary:hover { background-color: #0f766e; border-color: #0f766e; }

.gii-ad-h { margin: 2rem auto; }
.ia-adslot-1 { width: 320px; height: 100px; }
@media (min-width: 500px) { .ia-adslot-1 { width: 468px; height: 60px; } }
@media (min-width: 800px) { .ia-adslot-1 { width: 728px; height: 90px; } }
.vertical-ad-wrapper { position: fixed; bottom: 20px; left: 20px; z-index: 40; width: 160px; height: 600px; }
.vertical-ad-wrapper.vertical-ad-left { left: 20px; }
.vertical-ad-wrapper.vertical-ad-right { right: 20px; left: auto; }
@media (max-width: 1600px) { 
  .vertical-ad-wrapper { display: none !important; }
  .gii-content-wrapper { padding-left: 0 !important; }
}

section.bg-light { background: #1e293b !important; color: #e2e8f0; }
section.bg-light h1, section.bg-light h2, section.bg-light h3 { color: #f8fafc; }
section.bg-light p { color: #94a3b8; }
section.bg-light .text-muted { color: #64748b !important; }
section.bg-light a { color: #2dd4bf; }
section.bg-light a:hover { color: #5eead4; }
section.bg-light .btn-outline-primary { border-color: #0d9488; color: #0d9488; }
section.bg-light .btn-outline-primary:hover { background: #0d9488; border-color: #0d9488; color: #fff; }
.faq-list p { margin-bottom: 1rem; }

.footer.bg-light { background: #0a0f1a !important; }
.footer .list-inline-item a { color: #2dd4bf; text-decoration: none; }
.footer .list-inline-item a:hover { text-decoration: underline; }
.footer .text-muted { color: #94a3b8 !important; }

.gii-page { min-height: 100vh; display: flex; flex-direction: column; }
.gii-content { flex: 1; }
.navbar .nav-link.active { color: #2dd4bf !important; }

:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }

/* Back to top button */
.gii-back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(13, 148, 136, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.gii-back-to-top i {
  font-size: 1.5rem;
}
.gii-back-to-top-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.gii-back-to-top:hover {
  background: rgba(13, 148, 136, 1);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.75);
}
.gii-back-to-top:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 3px;
}

.gii-page { min-height: 100vh; display: flex; flex-direction: column; }
.gii-content { flex: 1; }
.navbar .nav-link.active { color: #2dd4bf !important; }

:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }
