#extension-detail {
  padding: 40px 0;
}

#extension-detail .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 60px;
  align-items: flex-start;
}

.extension-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.extension-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.extension-icon svg {
  width: 46px;
  height: 46px;
}

.extension-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.extension-title-prefix {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray);
  margin-bottom: 4px;
  line-height: 1.2;
  font-weight: 700;
}

.extension-title-name {
  display: block;
  color: var(--dark);
}

.extension-subtitle {
  font-size: 1.03rem;
  line-height: 1.45;
  color: var(--gray);
  max-width: 860px;
}

.feature-image-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  background: #F3F4F6;
}

.feature-modal-trigger {
  cursor: pointer;
}

.feature-row,
.feature-image,
.feature-text {
  min-width: 0;
}

.feature-text {
  width: 100%;
  max-width: 100%;
}

.feature-text h3,
.feature-text p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.feature-text h3 {
  white-space: normal;
  line-height: 1.2;
}

#order.sidebar {
  position: sticky;
  top: 100px;
}

.bb-price-header {
  text-align: center;
  margin-bottom: 16px;
}

#bb-total-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}

.bb-price-label {
  color: var(--gray);
  font-size: .9rem;
}

.tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #D1D5DB;
  margin-bottom: 20px;
}

.mobile-tabs-select {
  display: none;
  margin-bottom: 12px;
}

.mobile-tabs-select select {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px;
}

.tab-button { background:none; border:none; cursor:pointer; color: var(--gray); transition: color .2s ease, border-color .2s ease; border-bottom:2px solid transparent; font-weight:500; padding:10px 0; }
.tab-button:hover { color: var(--primary); border-bottom: 2px solid var(--primary); }
.tab-button.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.prose { color: var(--dark); }
.prose a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
.prose a:hover { color: var(--primary-dark); text-decoration: underline; }
.extension-eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin-bottom: 4px; }

.tab-content { display: none; }
#extension-detail #features.tab-content { display: block; }
#faq h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.faq-item { border-bottom: 1px solid var(--light-gray); }
.faq-question { padding: 14px 0; font-weight: 600; cursor: pointer; transition: color 0.2s ease; position: relative; }
.faq-question:hover { color: var(--primary); }
.faq-question::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding: 0 0 14px 0; color: var(--dark-gray); margin: 0; }
.faq-answer a { color: var(--primary); text-decoration: none; }
.faq-answer a:hover { color: var(--primary-dark); text-decoration: underline; }
.buy-box a.renewal-link { color: var(--gray); text-decoration: none; }
.buy-box a.renewal-link { display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.buy-box a.renewal-link svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.buy-box a.renewal-link:hover { color: var(--primary); text-decoration: underline; }
.screenshot-thumbnail { transition: transform .3s ease, box-shadow .3s ease; }
.screenshot-thumbnail:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }
.screenshot-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.feature-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.screenshot-thumbnail {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.feature-modal-trigger {
  display: block;
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.screenshot-card:hover .screenshot-thumbnail,
.screenshot-card:focus-visible .screenshot-thumbnail,
.feature-card:hover .feature-modal-trigger,
.feature-card:focus-visible .feature-modal-trigger {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.screenshot-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.24);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.screenshot-card:hover .screenshot-card-overlay,
.screenshot-card:focus-visible .screenshot-card-overlay,
.feature-card:hover .screenshot-card-overlay,
.feature-card:focus-visible .screenshot-card-overlay {
    opacity: 1;
}

.screenshot-card-plus {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.screenshot-card:focus-visible,
.feature-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

#extension-detail .modal-media,
.gallery-modal-media {
    position: relative;
}

#extension-detail .gallery-modal-media {
    --gallery-zoom-min: 1;
    --gallery-zoom-max: 3;
    --gallery-zoom-step: 0.2;
    --gallery-zoom-scale: 1;
    position: relative;
    touch-action: none;
    user-select: none;
}

#extension-detail .gallery-modal-media .gallery-modal-image {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transform: translate3d(0px, 0px, 0) scale(1);
    will-change: transform;
    cursor: pointer !important;
    transition: transform 0.12s ease;
}

#extension-detail .gallery-modal-media.is-zoomed .gallery-modal-image {
    cursor: grab !important;
}

#extension-detail .gallery-modal-media.is-zoomed.is-dragging .gallery-modal-image {
    cursor: grabbing !important;
}

.gallery-zoom-toolbar {
    position: absolute;
    top: 15px;
    right: 62px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.18);
    backdrop-filter: blur(6px);
    padding: 4px;
    color: #fff;
    font-size: 0.84rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

.gallery-zoom-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 24, 39, 0.22);
    color: #fff;
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gallery-zoom-btn:hover,
.gallery-zoom-btn:focus-visible {
    background: rgba(15, 24, 39, 0.4);
    border-color: rgba(255, 255, 255, 0.48);
}

.gallery-zoom-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 1px;
}

.gallery-zoom-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-zoom-btn.gallery-zoom-reset {
    width: 72px;
    font-size: 0.9rem;
}

.gallery-zoom-btn.gallery-zoom-in,
.gallery-zoom-btn.gallery-zoom-out {
    font-size: 1.15rem;
}

.gallery-zoom-toolbar .gallery-zoom-btn + .gallery-zoom-btn {
    margin-left: 2px;
}

#modal .screenshot-modal-content,
#feature-modal .feature-modal-content {
    position: relative;
    width: min(1280px, calc(100vw - 36px));
    max-width: 1280px;
    max-height: min(92vh, 960px);
    background: #ffffff;
    color: #111827;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
}

#modal .screenshot-modal-media,
#feature-modal .feature-modal-media {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 56px 10px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

#modal .screenshot-modal-media img,
#feature-modal .feature-modal-media img {
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

#modal .screenshot-modal-footer,
#feature-modal .feature-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px 24px;
    background: #f8fafc;
    width: 100%;
}

#modal .screenshot-modal-counter,
#feature-modal .feature-modal-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

#modal .modal-close,
#feature-modal .modal-close {
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

#modal .screenshot-nav,
#feature-modal .feature-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

#modal .screenshot-nav:hover,
#feature-modal .feature-modal-nav:hover {
    background: #f8fafc;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

#modal .screenshot-nav:disabled,
#feature-modal .feature-modal-nav:disabled {
    opacity: 0.5;
    cursor: default;
}

#modal .screenshot-nav-prev,
#feature-modal .feature-modal-prev { left: 8px; }

#modal .screenshot-nav-next,
#feature-modal .feature-modal-next { right: 8px; }

#feature-modal .feature-modal-header {
    padding: 22px 76px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#feature-modal #feature-modal-title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.2;
    color: #111827;
}

#feature-modal #feature-modal-description {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #4b5563;
}

@media (max-width: 980px) {
    #modal .screenshot-modal-content,
    #feature-modal .feature-modal-content {
        width: min(96vw, 960px);
        max-height: 92vh;
    }

    #modal .screenshot-modal-media,
    #feature-modal .feature-modal-media {
        padding: 18px 20px 8px;
    }

    #modal .screenshot-modal-footer,
    #feature-modal .feature-modal-footer {
        padding: 12px 20px 18px;
    }

    #feature-modal .feature-modal-header {
        padding: 20px 64px 8px 24px;
    }
}
.sidebar-features {
    list-style: none;
    margin-top: 14px;
}

.use-case-card .icon { width:50px; height:50px; margin:0 auto 20px auto; color: var(--primary); }
.use-case-card .icon svg { width:50px; height:50px; }

.use-cases-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
}

.use-cases-grid .use-case-card-empty {
    grid-column: 1 / -1;
}
.addon-info { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; margin-left:8px; font-size:12px; font-weight:700; background:#e5e7eb; color:#374151; border:1px solid #d1d5db; cursor:pointer; transition:background .2s,color .2s,border-color .2s; }
.addon-info:hover { background: var(--primary); color:#fff; border-color: var(--primary); }
.addon-tooltip { position:fixed; z-index:2147483000; max-width:320px; background:#111827; color:#fff; padding:10px 12px; border-radius:8px; box-shadow:0 10px 15px -3px rgba(0,0,0,.3); font-size:.9rem; line-height:1.45; }
.addon-tooltip:after { content:""; position:absolute; width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:6px solid #111827; bottom:-6px; left:50%; transform:translateX(-50%); }
.addon-tooltip.below:after { border-top:none; border-bottom:6px solid #111827; top:-6px; bottom:auto; left:50%; transform:translateX(-50%); }
.addon-note-content { display:none; }

.buy-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.3;
}
.buy-box label > input[type="checkbox"] + span { display: flex; flex-direction: column; gap: 2px; }
.buy-box label > input[type="checkbox"] + span > span { display: inline-flex; align-items: center; gap: 6px; }
.buy-box label > input[type="checkbox"] { margin-top: 2px; }
.buy-box input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.order-field {
  margin-bottom: 14px;
}

.order-field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.order-field label .required {
  color: #EF4444;
}

.order-field input[type="text"],
.order-field input[type="email"],
.order-field select {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
}

.addons-grid {
  display: grid;
  gap: 8px;
}

.addon-price {
  color: var(--dark);
  font-weight: 400;
  font-size: .95rem;
}

#support_note_v2,
.support-note {
  color: var(--gray);
  font-size: .85rem;
  margin-top: 6px;
}

.buy-button-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: background-color .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
}

.buy-button-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.buy-button-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.35);
}

.order-field-heading {
  font-weight: 600;
  margin-bottom: 6px;
}
.changelog-history .changelog-version { border-bottom:1px solid #E5E7EB; padding:12px 0; }
.changelog-history .changelog-version-title { font-size:1rem; font-weight:700; margin:0 0 6px; }
.changelog-history .changelog-date { color: var(--gray); font-weight:400; }
.changelog-history .changelog-category { margin:8px 0 10px; }
.changelog-history .changelog-category .badge { display:inline-block; padding:2px 8px; border-radius:9999px; font-size:.75rem; font-weight:700; color:#fff; margin-bottom:6px; }
.changelog-history .changelog-category .badge.added { background-color:#10B981; }
.changelog-history .changelog-category .badge.changed { background-color:#F59E0B; }
.changelog-history .changelog-category .badge.fixed, .changelog-history .changelog-category .badge.bugfix { background-color:#EF4444; }

.changelog-repo-item { border: 1px solid #E5E7EB; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.changelog-repo-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #F9FAFB; cursor: pointer; transition: background 0.2s ease; position: relative; }
.changelog-repo-header:hover { background: #F3F4F6; }
.changelog-repo-header::after { content: '+'; position: absolute; right: 16px; font-size: 1.5rem; font-weight: 400; transition: transform 0.3s ease; color: var(--gray); }
.changelog-repo-item.active .changelog-repo-header::after { transform: rotate(45deg); }
.changelog-download-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--primary); transition: color 0.2s ease; text-decoration: none; padding: 4px; flex-shrink: 0; }
.changelog-download-icon:hover { color: var(--primary-dark); }
.changelog-repo-name { font-weight: 700; font-size: 1.05rem; color: var(--dark); flex: 1; }
.changelog-repo-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.changelog-repo-item.active .changelog-repo-content { max-height: 10000px; }
.changelog-repo-content .changelog-history { padding: 16px; }

#extension-detail .modal-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:10000; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:opacity 0.3s ease, visibility 0.3s ease; }
#extension-detail .modal-overlay.active { opacity:1; visibility:visible; }
#extension-detail .modal-content {
  background:#fff;
  border-radius:12px;
  position:relative;
  box-shadow: var(--shadow-lg);
  width: min(95vw, 1600px);
  max-width: min(95vw, 1600px);
  max-height: 95vh;
  box-sizing: border-box;
  padding: 28px 16px 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}
#extension-detail .modal-overlay.active .modal-content { max-height: 95vh; }
#extension-detail .modal-close { color:#6B7280; font-size:28px; font-weight:300; cursor:pointer; position:absolute; top:15px; right:20px; z-index:1; }
#extension-detail .modal-media {
  width: 100%;
  max-height: calc(95vh - 74px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
#extension-detail #modal-image {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}
#extension-detail .screenshot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(17, 24, 39, 0.65);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

#extension-detail .screenshot-nav:hover,
#extension-detail .screenshot-nav:focus-visible {
  background: rgba(17, 24, 39, 0.85);
}

#extension-detail .screenshot-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

#extension-detail .screenshot-nav-prev { left: 16px; }
#extension-detail .screenshot-nav-next { right: 16px; }

#extension-detail .modal-close:hover { color:#374151; }

#demo-response {
  margin-top: 15px;
  display: none;
}

#demo-modal .demo-modal-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: min(560px, 92vw);
  max-width: 92vw;
  max-height: 90vh;
  padding: 0;
  overflow: auto;
}
.demo-modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #1e40af) 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.demo-modal-header h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.demo-modal-header .modal-close { position: static; color: #fff; font-size: 24px; }
.demo-modal-header .modal-close:hover { color: rgba(255,255,255,0.8); }
.demo-modal-body { padding: 24px; }
.demo-modal-body p { margin: 0 0 20px; color: #4B5563; }

.mobile-buy-fab,
.mobile-buy-drawer,
.mobile-buy-drawer-overlay {
  display: none;
}

@media (max-width: 768px) {
  #extension-detail .container {
    display: block !important;
    padding: 0 16px;
  }

  #extension-detail {
    padding: 30px 0 !important;
  }

  #extension-detail .container > div:first-child > div:first-child {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }

  #extension-detail .container > div:first-child > div:first-child > div:first-child {
    width: 72px !important;
    height: 72px !important;
  }

  #extension-detail .container > div:first-child > div:first-child > div:first-child svg {
    width: 34px !important;
    height: 34px !important;
  }

  #extension-detail h1 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }

  #extension-detail .container > div:first-child > div:first-child > div:last-child > p {
    font-size: 0.95rem !important;
  }

  .mobile-tabs-select { display: block !important; }
  .tabs { display: none !important; }
  .tab-button { display: none !important; }

  .feature-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
  }

  .feature-image {
    max-width: 100% !important;
  }

  .feature-text h3 {
    font-size: 1.45rem;
    line-height: 1.15;
    white-space: normal !important;
  }

  .screenshots-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .use-cases-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #extension-detail .container > div:last-child {
    display: none !important;
  }

  .mobile-buy-fab {
    display: inline-flex !important;
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0));
    left: calc(20px + env(safe-area-inset-left, 0));
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2147483647;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease, filter 0.15s ease;
    opacity: 0.75;
    will-change: transform;
    transform: translateZ(0);
  }

  body.drawer-open .mobile-buy-fab { display: none !important; }

  .mobile-buy-fab:hover {
    opacity: 1;
    filter: brightness(1);
  }

  .mobile-buy-fab:active {
    transform: scale(0.95);
  }

  .mobile-buy-fab svg {
    width: 20px;
    height: 20px;
  }

  .mobile-buy-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    max-height: calc(100vh - 8px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    display: block;
  }

  .mobile-buy-drawer.active {
    transform: translateY(0);
  }

  .mobile-buy-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1999;
    display: block;
  }

  .mobile-buy-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-buy-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
  }

  .mobile-buy-drawer-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
  }

  .mobile-buy-drawer-close {
    font-size: 28px;
    color: #6B7280;
    cursor: pointer;
    line-height: 1;
  }

  .mobile-buy-drawer-content {
    padding: 16px;
  }

  .mobile-buy-drawer .buy-box {
    padding: 24px !important;
    box-shadow: var(--shadow-md) !important;
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
  }

  .mobile-buy-drawer input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
  }

  .mobile-buy-drawer input[type="text"],
  .mobile-buy-drawer input[type="email"],
  .mobile-buy-drawer input[type="url"],
  .mobile-buy-drawer select,
  .mobile-buy-drawer textarea {
    margin-bottom: 16px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-buy-drawer select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
  }

  .mobile-buy-drawer .buy-box button:not(.addon-info),
  .mobile-buy-drawer .buy-box .btn {
    margin-top: 8px;
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
  }

  .mobile-buy-drawer .addon-info {
    width: auto !important;
    height: 18px;
    padding: 0;
    flex: 0 0 auto;
  }

  .mobile-buy-drawer .order-field > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
  }

  .mobile-buy-drawer .form-group {
    margin-bottom: 16px;
  }

  .mobile-buy-drawer .checkbox-group {
    margin-bottom: 12px;
  }

  .changelog-repo-header {
    padding: 12px !important;
    gap: 8px !important;
  }

  .changelog-repo-name {
    font-size: 0.95rem !important;
  }

  .changelog-download-icon {
    width: 36px;
    height: 36px;
  }

  .changelog-repo-content .changelog-history {
    padding: 12px !important;
  }

  .faq-question {
    font-size: 0.95rem !important;
    padding: 12px 0 !important;
  }

  .modal-content:not(.demo-modal-content) {
    width: 95% !important;
    max-width: 95% !important;
    margin: 0 10px;
    padding: 20px 8px 12px;
  }

  #modal .screenshot-modal-content {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    max-height: calc(100vh - 8px) !important;
    margin: 0 4px;
    padding: 0 !important;
    border-radius: 16px !important;
  }

  #modal .screenshot-modal-media {
    padding: 52px 10px 0;
  }

  #modal .screenshot-modal-media img {
    max-height: calc(100vh - 165px);
    border-radius: 8px;
  }

  #modal .screenshot-modal-footer {
    padding: 6px 10px 8px;
    background: #ffffff;
  }

  #modal .gallery-zoom-toolbar {
    top: 8px;
    right: 44px;
    padding: 1px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    z-index: 7;
    border: 1px solid #e2e8f0;
  }

  #modal .gallery-zoom-btn {
    min-width: 28px;
    height: 28px;
    font-size: 0.85rem;
    background: transparent;
    color: #0f172a;
    border-color: transparent;
    padding: 0 8px;
    box-shadow: none;
  }

  #modal .gallery-zoom-btn.gallery-zoom-reset {
    width: 50px;
    font-size: 0.72rem;
    background: #f8fafc;
    border-color: #d7deea;
  }

  #modal .modal-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    z-index: 8;
  }

  #modal .screenshot-nav {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    top: calc(50% + 6px);
    transform: translateY(-50%);
  }

  #modal .screenshot-nav-prev {
    left: 8px;
  }

  #modal .screenshot-nav-next {
    right: 8px;
  }

  #feature-modal .feature-modal-nav {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    top: calc(50% + 28px);
    transform: translateY(-50%);
  }

  #modal .screenshot-modal-counter {
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  #feature-modal .feature-modal-header {
    padding: 56px 14px 10px;
  }

  #feature-modal #feature-modal-title {
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  #feature-modal #feature-modal-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  #demo-modal .demo-modal-content {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  #extension-detail .modal-media {
    max-height: calc(95vh - 66px);
  }

  #demo-kb {
    padding: 40px 0 !important;
  }

  .demo-kb-container {
    display: block !important;
    padding: 0 16px;
  }

  .demo-kb-box {
    padding: 24px !important;
    margin-bottom: 20px !important;
  }

  .demo-kb-box:last-child {
    margin-bottom: 0 !important;
  }

  .demo-kb-box h3 {
    font-size: 1.25rem !important;
  }

  .demo-kb-box p {
    font-size: 0.95rem !important;
  }

  .back-to-top {
    width: 40px !important;
    height: 40px !important;
    bottom: calc(20px + env(safe-area-inset-bottom, 0)) !important;
    right: calc(20px + env(safe-area-inset-right, 0)) !important;
  }

  .back-to-top svg {
    width: 20px !important;
    height: 20px !important;
  }
}
