﻿


.loading-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
}

.loader {
  color: var(--text-tertiary);
  font-size: 16px;
  font-weight: 500;
}


.plugin-main {
  
  padding: 122px 0 100px;
  background: var(--bg-primary);
  min-height: 100vh;
  position: relative;
}

.plugin-main > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}


.plugin-main .plugin-body {
  flex: 1;
  min-width: 0;
  position: relative;
}


.plugin-main .plugin-sidebar {
  flex: 0 0 340px;
  width: 340px;
  position: sticky;
  top: 110px;
  z-index: 10;
}

.plugin-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2px;
  padding: 0 0 12px 0;
  position: relative;
  z-index: 80;
}

.plugin-title-section {
  position: sticky;
  top: 110px;
  z-index: 50;
  padding: 0 0 18px 0;
  margin: 0 0 12px 0;
}


.plugin-title-section::before {
  content: '';
  position: absolute;
  
  top: -24px;
  left: -24px;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: -1;
}


.plugin-title-section::after {
  content: '';
  position: absolute;
  left: -24px;
  right: 0;
  bottom: -40px;
  height: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  pointer-events: none;
}


.plugin-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition: all var(--transition-fast);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  margin-bottom: 0;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.plugin-back:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(-4px) translateY(-1px);
}


.plugin-title-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  position: relative;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.plugin-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.plugin-title-left {
  flex: 1;
  min-width: 0;
}

.plugin-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.plugin-type-badge {
  display: inline-block;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b35 100%);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 68, 0, 0.22);
  box-shadow:
    0 2px 8px rgba(255, 68, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  margin-bottom: 0;
}

.plugin-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #1a1406;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
  background: linear-gradient(135deg, #ffd56a 0%, #ffb400 40%, #fff1b0 100%);
  border: 1px solid rgba(255, 210, 90, 0.45);
  box-shadow:
    0 18px 44px rgba(255, 180, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

.plugin-item-badge.is-custom {
  color: #1a1406;
  border-color: rgba(255, 210, 90, 0.45);
}

.plugin-title-card h1 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
  color: var(--text-primary);
}

.plugin-version {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 10px;
}

.plugin-price-badge {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.plugin-price-badge.free {
  color: #1a1406;
  background: linear-gradient(135deg, #ffd56a 0%, #ffb400 40%, #fff1b0 100%);
  border-color: rgba(255, 210, 90, 0.45);
  box-shadow:
    0 18px 44px rgba(255, 180, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

.plugin-price-badge.paid {
  color: #ffffff;
  background: linear-gradient(135deg, #a200ff 0%, #c84dff 100%);
  border-color: rgba(162, 0, 255, 0.26);
  box-shadow:
    0 18px 44px rgba(162, 0, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}


.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.content-section:hover {
  border-color: rgba(255, 68, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.content-section h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-family: var(--font-display), var(--font-body), sans-serif;
  color: rgba(255, 255, 255, 0.92);
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 15px;
}

.content-section ul,
.content-section ol {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 15px;
}

.content-section li {
  margin-bottom: 8px;
}


.description-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 20px 0;
  display: block;
  border: 1px solid var(--border);
}


.config-wrapper {
  position: relative;
}

.config-wrapper.collapsible.collapsed {
  max-height: 300px;
  overflow: hidden;
}

.config-wrapper.collapsible.collapsed .config-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.config-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.7;
}

.expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 68, 0, 0.08);
  border: 1px solid rgba(255, 68, 0, 0.15);
  border-radius: var(--radius-lg);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.expand-btn:hover {
  background: rgba(255, 68, 0, 0.15);
  border-color: rgba(255, 68, 0, 0.3);
  transform: translateY(-2px);
}

.expand-icon {
  font-size: 10px;
  transition: transform var(--transition-fast);
}


.plugin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 16 / 9;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 0;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.sidebar-section:hover {
  border-color: rgba(255, 68, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.sidebar-section h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-section.purchase-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.sidebar-section.purchase-card::before {
  display: none;
}

.sidebar-section.purchase-card > * {
  position: relative;
  z-index: 1;
}

.purchase-head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.purchase-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
}

.purchase-price-wrap {
  display: grid;
  gap: 8px;
}

.purchase-price {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  font-weight: 900;
  color: #ffffff;
}

.purchase-price.free {
  font-size: 30px;
  background: linear-gradient(135deg, #ffd56a 0%, #ffb400 40%, #fff1b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.purchase-card.is-paid .purchase-price {
  background: linear-gradient(135deg, #7CFF3A 0%, #2CFFB7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(124, 255, 58, 0.10);
}

.purchase-price-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.purchase-old {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through;
  font-weight: 800;
}

.purchase-discount {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff5e00 0%, #ff7a18 100%);
  box-shadow: 0 10px 22px rgba(255, 94, 0, 0.22);
}

.purchase-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.btn.btn-buy {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 900;
  border-radius: 16px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
}

.btn.btn-buy:hover {
  transform: translateY(-2px);
}

.btn.btn-buy:active {
  transform: translateY(0px);
}

.plugin-sidebar .btn-primary.btn-buy {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.plugin-sidebar .btn-primary.btn-buy:hover {
  background: rgba(255, 255, 255, 0.08);
}

.plugin-sidebar .btn-success.btn-buy {
  background: #30d158;
  color: #07170c;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 60px rgba(48, 209, 88, 0.20),
    0 18px 50px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.plugin-sidebar .btn-success.btn-buy:hover {
  background: #46e46d;
  box-shadow:
    0 28px 70px rgba(48, 209, 88, 0.22),
    0 18px 50px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.plugin-sidebar .btn-telegram.btn-buy {
  background: #0088cc;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 60px rgba(0, 136, 204, 0.22),
    0 18px 50px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.plugin-sidebar .btn-telegram.btn-buy:hover {
  background: #0099e6;
  box-shadow:
    0 28px 70px rgba(0, 136, 204, 0.25),
    0 18px 50px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.purchase-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.purchase-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.purchase-details {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.info-item:last-child {
  padding-bottom: 0;
}

.info-item + .info-item {
  border-top: 1px solid var(--border);
}

.info-label {
  color: var(--text-tertiary);
  font-size: 13px;
}

.info-value {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}


.download-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.download-section h3 {
  display: none;
}

.download-section .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 14px;
}


.download-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(255, 68, 0, 0.06);
  border: 1px solid rgba(255, 68, 0, 0.1);
  border-radius: var(--radius-md);
}

.download-count {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.download-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}


.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}


.purchase-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.purchase-modal.active {
  display: flex;
}

.purchase-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.purchase-modal-content {
  position: relative;
  background: rgba(20, 20, 22, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.purchase-modal-header {
  padding: 24px 24px 16px;
  text-align: center;
  position: relative;
}

.purchase-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.purchase-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.purchase-modal-close:hover {
  background: rgba(255, 68, 0, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.purchase-modal-body {
  padding: 0 16px 16px;
}

.purchase-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.purchase-option-button {
  width: 100%;
  text-align: left;
  font: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  outline: none;
}

.tribute-form-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top right, rgba(255, 170, 0, 0.08), rgba(0, 0, 0, 0.2) 40%), rgba(255, 255, 255, 0.02);
  padding: 18px;
}

.tribute-form-caption {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  font-weight: 600;
}

.tribute-field-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tribute-field-input {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  padding: 0 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tribute-field-input:focus {
  border-color: rgba(255, 145, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.16);
}

.tribute-field-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.tribute-inline-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 71, 87, 0.35);
  background: rgba(255, 71, 87, 0.12);
  color: #ffd6da;
  font-size: 12px;
  font-weight: 700;
}

.tribute-form-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.tribute-btn {
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tribute-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.tribute-btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #ff6a00 0%, #ff9f1a 100%);
  border-color: rgba(255, 140, 0, 0.45);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 122, 0, 0.25);
}

.tribute-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(255, 122, 0, 0.3);
}

.tribute-btn-secondary {
  min-width: 96px;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-primary);
}

.tribute-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.purchase-option:last-child {
  margin-bottom: 0;
}

.purchase-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.purchase-option:active {
  transform: scale(0.98);
}

.purchase-option-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.purchase-option-text {
  flex: 1;
}

.purchase-option-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.purchase-option-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
}

.purchase-option-arrow {
  font-size: 18px;
  color: var(--text-tertiary);
  transition: transform var(--transition-fast);
}

.purchase-option:hover .purchase-option-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.btn-success {
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(48, 209, 88, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #30d158 0%, #34c759 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(48, 209, 88, 0.4);
}


@media (max-width: 1024px) {
  .plugin-main > .container {
    flex-direction: column;
    gap: 24px;
  }
  
  .plugin-main .plugin-sidebar {
    width: 100%;
    flex: 0 0 auto;
    position: relative;
    top: 0;
  }
  
  .plugin-title-section {
    position: relative;
    top: 0;
  }
  
  .plugin-title-section::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .plugin-main {
    padding: 70px 0 60px;
  }
  
  .plugin-main > .container {
    padding: 0 16px;
  }
  
  .plugin-title-section h1 {
    font-size: 24px;
    letter-spacing: -1px;
  }
  
  .plugin-back {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .plugin-back-wrapper {
    margin-bottom: 16px;
  }
  
  .content-section {
    padding: 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
  }
  
  .content-section h2 {
    font-size: 17px;
    margin-bottom: 14px;
  }
  
  .sidebar-section {
    padding: 18px;
    border-radius: var(--radius-lg);
  }
  
  .sidebar-section h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .info-item {
    padding: 8px 0;
  }
  
  .info-label,
  .info-value {
    font-size: 12px;
  }
  
  .download-section .btn {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .download-counter {
    padding: 8px 12px;
    gap: 6px;
  }
  
  .download-count {
    font-size: 16px;
  }
  
  .download-label {
    font-size: 11px;
  }
  
  .config-box {
    font-size: 11px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .plugin-main {
    padding: 66px 0 50px;
  }
  
  .plugin-title-section h1 {
    font-size: 20px;
  }
  
  .content-section {
    padding: 14px;
  }
  
  .sidebar-section {
    padding: 14px;
  }
}


.video-preview {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
}

.video-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-preview.tiktok-preview {
  padding-bottom: 0;
  max-width: 325px;
  min-height: 580px;
}

.video-preview.tiktok-preview blockquote {
  margin: 0;
  min-height: 580px;
}

.description-content a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.description-content a:hover {
  opacity: 0.8;
}


.price-with-discount {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.old-price {
  text-decoration: line-through;
  color: var(--text-tertiary);
  font-size: 18px;
  font-weight: 500;
  opacity: 0.7;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
  animation: pulse-discount 2s ease-in-out infinite;
}

@keyframes pulse-discount {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.5);
  }
}


.stats-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.stat-item .stat-icon {
  font-size: 16px;
  opacity: 0.9;
}

.stat-item .stat-value {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
}

.stat-item .stat-label {
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 13px;
}

.stat-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
}


@media (max-width: 768px) {
  .stats-section {
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .stat-item {
    font-size: 13px;
  }
  
  .stat-item .stat-value {
    font-size: 14px;
  }
  
  .price-with-discount {
    gap: 8px;
  }
  
  .old-price {
    font-size: 16px;
  }
  
  .discount-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
}

@media (max-width: 980px) {
  .loading-container {
    min-height: 50vh;
    padding: 124px 14px 48px;
  }

  .plugin-main {
    padding: 124px 0 54px;
  }

  .plugin-main > .container {
    padding: 0 14px;
    gap: 14px;
  }

  .plugin-main .plugin-sidebar {
    width: 100%;
    flex: 0 0 auto;
    position: static;
    top: auto;
  }

  .plugin-topbar {
    padding-bottom: 10px;
  }

  .plugin-back {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 14px;
  }

  .plugin-title-section {
    position: relative;
    top: 0;
    padding-bottom: 12px;
    margin-bottom: 8px;
  }

  .plugin-title-section::before,
  .plugin-title-section::after {
    display: none;
  }

  .plugin-title-card {
    padding: 14px 14px;
    border-radius: 18px;
  }

  .plugin-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .plugin-title-left {
    width: 100%;
  }

  .plugin-title-card h1 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.1;
  }

  .plugin-badges-row {
    gap: 8px;
    margin-bottom: 8px;
  }

  .plugin-type-badge,
  .plugin-item-badge {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 9px;
  }

  .plugin-price-badge {
    align-self: flex-start;
    font-size: 20px;
    padding: 9px 14px;
    border-radius: 12px;
  }

  .content-section {
    margin-bottom: 12px;
    border-radius: 18px;
    padding: 18px 14px;
  }

  .content-title {
    font-size: 24px;
  }

  .content-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .content-section p,
  .content-section ul,
  .content-section ol {
    font-size: 14px;
    line-height: 1.65;
  }

  .config-box {
    font-size: 12px;
    padding: 14px;
  }

  .plugin-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sidebar-section {
    border-radius: 18px;
    padding: 16px 14px;
  }

  .purchase-price {
    font-size: 30px;
  }

  .purchase-price.free {
    font-size: 28px;
  }

  .purchase-actions {
    gap: 8px;
  }

  .btn.btn-buy,
  .download-section .btn {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .purchase-chip {
    font-size: 11px;
    padding: 6px 9px;
  }

  .info-item {
    padding: 8px 0;
  }

  .info-label,
  .info-value {
    font-size: 12px;
  }

  .video-preview {
    margin: 14px 0;
    border-radius: 10px;
  }

  .video-preview.tiktok-preview {
    max-width: 100%;
    min-height: 520px;
  }

  .video-preview.tiktok-preview blockquote {
    min-height: 520px;
  }

  .stats-section {
    gap: 12px;
    padding: 12px 0;
  }

  .stat-item {
    font-size: 12px;
  }

  .stat-item .stat-value {
    font-size: 13px;
  }

  .stat-divider {
    display: none;
  }

  .purchase-modal-content {
    width: min(92vw, 420px);
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .plugin-main {
    padding-top: 118px;
  }

  .plugin-main > .container {
    padding: 0 10px;
    gap: 12px;
  }

  .plugin-title-card {
    padding: 12px;
  }

  .plugin-title-card h1 {
    font-size: clamp(22px, 8.2vw, 30px);
  }

  .plugin-price-badge {
    font-size: 18px;
    padding: 8px 12px;
  }

  .content-section {
    padding: 14px 12px;
  }

  .content-title {
    font-size: 21px;
  }

  .plugin-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    border-radius: 12px;
  }

  .purchase-head {
    gap: 8px;
  }

  .purchase-price {
    font-size: 28px;
  }

  .purchase-price.free {
    font-size: 25px;
  }

  .purchase-price-sub {
    gap: 8px;
  }

  .purchase-old {
    font-size: 13px;
  }

  .purchase-discount {
    font-size: 11px;
    padding: 4px 8px;
  }

  .btn.btn-buy {
    font-size: 13px;
  }

  .download-count {
    font-size: 15px;
  }

  .info-item {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 8px;
    row-gap: 4px;
  }

  .video-preview.tiktok-preview {
    min-height: 460px;
  }

  .video-preview.tiktok-preview blockquote {
    min-height: 460px;
  }
}

