/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       font-size: 15px; line-height: 1.6; color: #1a1a2e; background: #f8f9fc; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.main-content { padding: 40px 24px; min-height: calc(100vh - 180px); }

/* ─── Header ────────────────────────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 16px 0; }
.header-inner { display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 36px; height: 36px; background: #2563eb; border-radius: 8px;
             display: flex; align-items: center; justify-content: center;
             color: #fff; font-weight: 700; font-size: 18px; }
.logo-text { font-weight: 700; font-size: 16px; color: #1a1a2e; }

.header-title { flex: 1; text-align: center; }
.header-title h2 { font-size: 14px; font-weight: 500; color: #6b7280; line-height: 1.4; }

.header-email { font-size: 13px; color: #2563eb; flex-shrink: 0; }

/* ─── Plugin grid ───────────────────────────────────────────────────────────── */
.plugins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .plugins-grid { grid-template-columns: 1fr; } }

.plugin-card { display: flex; align-items: flex-start; gap: 16px;
               background: #f1f3f8; border-radius: 14px; padding: 20px;
               border: 1px solid #e5e7eb; transition: box-shadow .15s, transform .15s;
               text-decoration: none; color: inherit; }
.plugin-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-2px); }

.plugin-card-icon { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0;
                    display: flex; align-items: center; justify-content: center;
                    overflow: hidden; }
.plugin-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.plugin-card-icon span { font-size: 28px; font-weight: 700; color: #fff; }

.plugin-card-body { flex: 1; min-width: 0; }
.plugin-card-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.plugin-card-desc { font-size: 13px; color: #6b7280; line-height: 1.5; }
.plugin-card-price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }

/* ─── Prices ────────────────────────────────────────────────────────────────── */
.price-current, .price-new { font-size: 18px; font-weight: 700; color: #2563eb; }
.price-old { font-size: 14px; color: #9ca3af; text-decoration: line-through; }
.price-badge { background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 600;
               padding: 2px 8px; border-radius: 20px; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px;
       padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
       cursor: pointer; border: none; transition: .15s; text-decoration: none; }
.btn-primary  { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline  { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.btn-outline:hover { background: #f9fafb; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.mt-2 { margin-top: 12px; }

/* ─── Plugin hero ───────────────────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 20px; font-size: 13px; color: #6b7280; }
.breadcrumb a { color: #2563eb; }

.plugin-hero { display: flex; align-items: flex-start; gap: 24px;
               background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
               padding: 28px; margin-bottom: 32px; }
.plugin-hero-icon { width: 80px; height: 80px; border-radius: 18px; flex-shrink: 0;
                    display: flex; align-items: center; justify-content: center; overflow: hidden; }
.plugin-hero-icon img { width: 100%; height: 100%; object-fit: contain; }
.plugin-hero-icon span { font-size: 36px; font-weight: 700; color: #fff; }
.plugin-hero-info { flex: 1; }
.plugin-hero-info h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.plugin-hero-short { color: #6b7280; font-size: 14px; }
.hero-price { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plugin-hero-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* ─── Sections ──────────────────────────────────────────────────────────────── */
.plugin-section { margin-bottom: 40px; }
.plugin-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px;
                     padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; }
.avg-rating { font-size: 14px; font-weight: 500; color: #f59e0b; margin-left: 8px; }
.prose { line-height: 1.8; color: #374151; }

/* ─── Slider ────────────────────────────────────────────────────────────────── */
.slider { position: relative; border-radius: 12px; overflow: hidden;
          border: 1px solid #e5e7eb; background: #000; }
.slider-track { display: flex; transition: transform .3s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; max-height: 480px; object-fit: contain; display: block; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%);
              background: rgba(0,0,0,.5); color: #fff; border: none; cursor: pointer;
              font-size: 28px; padding: 8px 14px; border-radius: 6px; z-index: 2; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
               display: flex; gap: 6px; }
.slider-dot  { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5);
               cursor: pointer; }
.slider-dot.active { background: #fff; }

/* ─── Video ─────────────────────────────────────────────────────────────────── */
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ─── Reviews ───────────────────────────────────────────────────────────────── */
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: #f8f9fc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.review-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.review-author { font-weight: 600; font-size: 14px; }
.review-date { color: #9ca3af; font-size: 12px; margin-left: auto; }
.review-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.review-body { font-size: 14px; color: #4b5563; line-height: 1.6; }

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-list { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between;
         background: none; border: none; padding: 16px 20px; cursor: pointer;
         font-size: 15px; font-weight: 600; text-align: left; }
.faq-q:hover { background: #f9fafb; }
.faq-arrow { font-size: 12px; flex-shrink: 0; }
.faq-a { display: none; padding: 0 20px 16px; color: #4b5563; font-size: 14px; line-height: 1.7; }
.faq-a.open { display: block; }

/* ─── Changelog ─────────────────────────────────────────────────────────────── */
.changelog { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.changelog-row { display: grid; grid-template-columns: 100px 120px 1fr;
                 gap: 16px; padding: 14px 20px; border-bottom: 1px solid #f3f4f6; }
.changelog-row:last-child { border-bottom: none; }
.changelog-ver  { font-family: monospace; font-weight: 700; color: #2563eb; }
.changelog-date { color: #9ca3af; font-size: 13px; }
.changelog-notes { font-size: 14px; color: #374151; line-height: 1.6; }

/* ─── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; }
.modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
         background: #fff; border-radius: 16px; width: 440px; max-width: calc(100vw - 32px);
         z-index: 101; box-shadow: 0 24px 60px rgba(0,0,0,.15); }
.modal-header { display: flex; align-items: center; justify-content: space-between;
                padding: 20px 24px; border-bottom: 1px solid #e5e7eb; }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #9ca3af; }
.modal-body  { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; display: flex; gap: 10px; justify-content: flex-end;
                border-top: 1px solid #e5e7eb; }

/* ─── Forms ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600;
                    color: #374151; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; }
.form-group input:focus, .form-group textarea:focus { border-color: #2563eb; }
.form-hint { font-size: 12px; color: #9ca3af; margin-top: 6px; }
.form-error { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626;
              padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 8px; }
.required { color: #ef4444; }

/* ─── Star picker ───────────────────────────────────────────────────────────── */
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-picker input { display: none; }
.star-picker label { font-size: 32px; cursor: pointer; color: #d1d5db; transition: color .1s; }
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: #f59e0b; }

/* ─── Review form ───────────────────────────────────────────────────────────── */
.review-form-wrap { max-width: 600px; margin: 0 auto; }
.review-form-wrap h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.review-form .form-footer { display: flex; gap: 12px; margin-top: 20px; }

/* ─── Success box ───────────────────────────────────────────────────────────── */
.success-box { max-width: 560px; margin: 0 auto; background: #fff;
               border: 1px solid #e5e7eb; border-radius: 20px; padding: 40px;
               text-align: center; }
.success-icon { width: 64px; height: 64px; background: #dcfce7; border-radius: 50%;
                display: flex; align-items: center; justify-content: center;
                font-size: 28px; color: #16a34a; margin: 0 auto 20px; }
.error-box .success-icon { background: #fef2f2; color: #dc2626; }
.success-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.success-section { text-align: left; margin-top: 24px; padding-top: 20px;
                   border-top: 1px solid #f3f4f6; }
.success-label { font-size: 11px; font-weight: 600; text-transform: uppercase;
                 letter-spacing: .06em; color: #9ca3af; display: block; margin-bottom: 8px; }
.key-row { display: flex; align-items: center; gap: 10px; }
.key-code { background: #f3f4f6; padding: 10px 14px; border-radius: 8px;
            font-size: 13px; flex: 1; word-break: break-all; }
.review-invite { background: #eff6ff; border-radius: 10px; padding: 16px; border: none; }
.review-invite p { font-size: 14px; color: #1d4ed8; margin-bottom: 10px; }

/* ─── Alerts ────────────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }
.muted { color: #9ca3af; font-size: 14px; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,.5);
               padding: 20px 0; font-size: 13px; }
.site-footer a { color: rgba(255,255,255,.7); }

/* ─── Empty state ───────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 0; color: #9ca3af; }
