/* ── Coswaa Tools Pro — Frontend Styles ───────────────────────────── */
:root {
    --ctp-primary:    #6c47ff;
    --ctp-secondary:  #00c6ff;
    --ctp-pro:        #f59e0b;
    --ctp-bg:         #f8f9ff;
    --ctp-card:       #ffffff;
    --ctp-border:     #e5e7f0;
    --ctp-text:       #1e1b4b;
    --ctp-muted:      #6b7280;
    --ctp-radius:     12px;
    --ctp-shadow:     0 4px 24px rgba(108,71,255,.10);
}

/* ── GRID ─────────────────────────────────────────────────────────── */
.ctp-tools-wrap { font-family: 'Segoe UI', system-ui, sans-serif; padding: 20px 0; }
.ctp-search-bar { display:flex; gap:12px; margin-bottom:24px; flex-wrap:wrap; }
.ctp-search-bar input {
    flex:1; min-width:240px; padding:10px 16px;
    border:2px solid var(--ctp-border); border-radius: var(--ctp-radius);
    font-size:15px; outline:none; transition:.2s;
}
.ctp-search-bar input:focus { border-color: var(--ctp-primary); }
.ctp-filter-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.ctp-tab {
    padding:8px 16px; border:2px solid var(--ctp-border); border-radius:99px;
    background:#fff; cursor:pointer; font-size:14px; transition:.2s;
}
.ctp-tab.active, .ctp-tab:hover { background:var(--ctp-primary); color:#fff; border-color:var(--ctp-primary); }
.ctp-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap:16px;
}
.ctp-card {
    background:var(--ctp-card); border:2px solid var(--ctp-border);
    border-radius:var(--ctp-radius); padding:20px 16px;
    text-decoration:none; color:var(--ctp-text);
    transition: transform .15s, box-shadow .15s, border-color .15s;
    position:relative; display:block;
}
.ctp-card:hover { transform:translateY(-3px); box-shadow:var(--ctp-shadow); border-color:var(--ctp-primary); text-decoration:none; }
.ctp-card-icon { font-size:28px; margin-bottom:8px; }
.ctp-card-title { font-weight:700; font-size:15px; margin:0 0 6px; }
.ctp-card-desc { font-size:13px; color:var(--ctp-muted); margin:0; line-height:1.4; }
.ctp-badge-pro {
    position:absolute; top:10px; right:10px;
    background:var(--ctp-pro); color:#fff;
    font-size:10px; font-weight:700; padding:2px 7px;
    border-radius:99px; text-transform:uppercase;
}
.ctp-no-results { text-align:center; padding:60px 20px; color:var(--ctp-muted); font-size:16px; }

/* ── SINGLE TOOL PAGE ─────────────────────────────────────────────── */
/* .ctp-tool-page centering is handled in the Astra Overrides section below */
.ctp-tool-header { text-align:center; margin-bottom:32px; }
.ctp-tool-header .icon { font-size:48px; }
.ctp-tool-header h1 { margin:8px 0 4px; font-size:28px; color:var(--ctp-text); }
.ctp-tool-header p { color:var(--ctp-muted); margin:0; }
.ctp-tool-box {
    background:var(--ctp-card); border:2px solid var(--ctp-border);
    border-radius:var(--ctp-radius); padding:28px;
    box-shadow:var(--ctp-shadow);
}
.ctp-tool-box label { font-weight:600; font-size:14px; display:block; margin-bottom:6px; }
.ctp-tool-box input[type=text],
.ctp-tool-box input[type=number],
.ctp-tool-box select,
.ctp-tool-box textarea {
    width:100%; padding:10px 14px; border:2px solid var(--ctp-border);
    border-radius:8px; font-size:15px; margin-bottom:16px;
    outline:none; transition:.2s; box-sizing:border-box;
}
.ctp-tool-box input:focus, .ctp-tool-box select:focus, .ctp-tool-box textarea:focus {
    border-color:var(--ctp-primary);
}
.ctp-btn {
    background:var(--ctp-primary); color:#fff; border:none;
    padding:12px 28px; border-radius:8px; font-size:15px; font-weight:600;
    cursor:pointer; transition:.15s; display:inline-flex; align-items:center; gap:8px;
}
.ctp-btn:hover { opacity:.9; transform:translateY(-1px); }
.ctp-btn.secondary { background:#f3f0ff; color:var(--ctp-primary); }
.ctp-btn.copy-btn { background:#10b981; }
.ctp-result-box {
    margin-top:20px; background:var(--ctp-bg); border:2px solid var(--ctp-border);
    border-radius:8px; padding:16px; display:none;
}
/* Engine writes to .ctp-result — alias to same display rules */
.ctp-result { margin-top:20px; background:var(--ctp-bg); border:2px solid var(--ctp-border); border-radius:8px; padding:16px; display:none; }
.ctp-result-box.show, .ctp-result.show { display:block; }
.ctp-result-value { font-size:22px; font-weight:700; color:var(--ctp-primary); }
/* Error output */
.ctp-result .ctp-err { color:#ef4444; margin:0; }
.ctp-stat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:12px; margin-top:8px; }
.ctp-stat { background:#fff; border:1px solid var(--ctp-border); border-radius:8px; padding:12px; text-align:center; }
.ctp-stat-val { font-size:20px; font-weight:700; color:var(--ctp-primary); }
.ctp-stat-label { font-size:12px; color:var(--ctp-muted); }
.ctp-row { display:flex; gap:12px; flex-wrap:wrap; }
.ctp-row > * { flex:1; min-width:160px; }
.ctp-tag { display:inline-block; background:#f0ebff; color:var(--ctp-primary); padding:4px 10px; border-radius:99px; font-size:13px; margin:3px; }

/* ── PRO LOCK ─────────────────────────────────────────────────────── */
.ctp-pro-lock {
    text-align:center; padding:48px 24px;
    background:linear-gradient(135deg,#f0ebff,#fff);
    border-radius:var(--ctp-radius); border:2px dashed var(--ctp-primary);
}
.ctp-pro-lock .lock-icon { font-size:48px; }
.ctp-pro-lock h3 { font-size:22px; margin:12px 0 8px; }
.ctp-pro-lock p { color:var(--ctp-muted); margin-bottom:20px; }

/* ── PRICING ─────────────────────────────────────────────────────── */
.ctp-pricing { max-width:700px; margin:0 auto; padding:40px 16px; }
.ctp-pricing h2 { text-align:center; font-size:30px; margin-bottom:8px; }
.ctp-pricing .subtitle { text-align:center; color:var(--ctp-muted); margin-bottom:36px; }
.ctp-plans { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media(max-width:520px){ .ctp-plans { grid-template-columns:1fr; } }
.ctp-plan {
    background:#fff; border:2px solid var(--ctp-border);
    border-radius:var(--ctp-radius); padding:28px 24px;
    box-shadow:var(--ctp-shadow); position:relative;
}
.ctp-plan.featured { border-color:var(--ctp-primary); }
.ctp-plan .badge-popular {
    position:absolute; top:-12px; left:50%; transform:translateX(-50%);
    background:var(--ctp-primary); color:#fff;
    padding:3px 14px; border-radius:99px; font-size:12px; font-weight:700;
}
.ctp-plan h3 { font-size:18px; margin:0 0 4px; }
.ctp-plan .price { font-size:36px; font-weight:800; color:var(--ctp-primary); }
.ctp-plan .price span { font-size:15px; color:var(--ctp-muted); }
.ctp-plan ul { list-style:none; padding:0; margin:16px 0 20px; }
.ctp-plan ul li { padding:6px 0; font-size:14px; }
.ctp-plan ul li::before { content:'✅ '; }
.ctp-plan ul li.no::before { content:'❌ '; }
.ctp-plan .ctp-btn { width:100%; justify-content:center; }

/* ── DASHBOARD ───────────────────────────────────────────────────── */
.ctp-dashboard { max-width:900px; margin:0 auto; padding:32px 16px; }
.ctp-dashboard-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:28px; }
.ctp-plan-badge {
    padding:8px 20px; border-radius:99px; font-weight:700; font-size:14px;
    background:linear-gradient(135deg,var(--ctp-primary),var(--ctp-secondary)); color:#fff;
}
.ctp-plan-badge.free { background:#e5e7eb; color:#374151; }
.ctp-dash-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; margin-bottom:28px; }
.ctp-dash-card { background:#fff; border:2px solid var(--ctp-border); border-radius:var(--ctp-radius); padding:20px; }
.ctp-dash-card .val { font-size:28px; font-weight:800; color:var(--ctp-primary); }
.ctp-usage-table { width:100%; border-collapse:collapse; }
.ctp-usage-table th, .ctp-usage-table td { text-align:left; padding:10px 14px; border-bottom:1px solid var(--ctp-border); font-size:14px; }
.ctp-usage-table th { font-weight:700; background:var(--ctp-bg); }

/* ── MODAL (upgrade) ─────────────────────────────────────────────── */
.ctp-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9999; align-items:center; justify-content:center; }
.ctp-modal-overlay.open { display:flex; }
.ctp-modal { background:#fff; border-radius:16px; padding:36px 28px; max-width:440px; width:90%; text-align:center; position:relative; }
.ctp-modal h3 { font-size:22px; margin:8px 0 8px; }
.ctp-modal p { color:var(--ctp-muted); margin-bottom:24px; }
.ctp-modal-close { position:absolute; top:12px; right:16px; font-size:20px; cursor:pointer; background:none; border:none; color:var(--ctp-muted); }

/* ── LOADING SPINNER ─────────────────────────────────────────────── */
.ctp-spinner { display:none; width:22px; height:22px; border:3px solid #fff; border-top-color:transparent; border-radius:50%; animation:spin .6s linear infinite; }
.ctp-btn.loading .ctp-spinner { display:inline-block; }
.ctp-btn.loading .btn-text { display:none; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── REVIEWS SYSTEM ──────────────────────────────────────────────────── */
.ctp-reviews-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f0ebff;
}
.ctp-reviews-section h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}
/* Stats bar */
.ctp-reviews-stats {
    background: linear-gradient(135deg, #f8f5ff, #f0ebff);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.ctp-stats-big {
    text-align: center;
    min-width: 80px;
}
.ctp-stats-big .avg-num {
    font-size: 48px;
    font-weight: 800;
    color: #6c47ff;
    line-height: 1;
}
.ctp-stats-big .avg-stars {
    font-size: 20px;
    color: #f59e0b;
    margin: 4px 0 2px;
}
.ctp-stats-big .total-count {
    font-size: 12px;
    color: #9ca3af;
}
.ctp-stats-bars {
    flex: 1;
    min-width: 200px;
}
.ctp-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #6b7280;
}
.ctp-bar-row .bar-label { width: 30px; text-align: right; flex-shrink: 0; }
.ctp-bar-track { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.ctp-bar-fill  { height: 100%; background: #f59e0b; border-radius: 4px; transition: width .4s; }
.ctp-bar-row .bar-count { width: 24px; flex-shrink: 0; }
.ctp-stats-loading { color: #9ca3af; font-size: 14px; }

/* Star picker */
.ctp-star-picker {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 4px;
}
.ctp-star-picker .ctp-star {
    font-size: 28px;
    color: #d1d5db;
    cursor: pointer;
    transition: color .15s, transform .1s;
    line-height: 1;
}
.ctp-star-picker .ctp-star.active,
.ctp-star-picker .ctp-star:hover,
.ctp-star-picker .ctp-star:hover ~ .ctp-star {
    color: #f59e0b;
    transform: scale(1.1);
}

/* Review cards */
.ctp-review-card {
    background: #fff;
    border: 1px solid #f0ebff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    position: relative;
    transition: box-shadow .2s;
}
.ctp-review-card:hover { box-shadow: 0 4px 16px rgba(108,71,255,.08); }
.ctp-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.ctp-review-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c47ff, #00c6ff);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 16px;
    flex-shrink: 0;
}
.ctp-review-meta { flex: 1; }
.ctp-review-meta .reviewer-name { font-weight: 700; font-size: 15px; color: #1f2937; }
.ctp-review-meta .review-stars  { color: #f59e0b; font-size: 16px; }
.ctp-review-meta .review-date   { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.ctp-review-body { font-size: 14px; color: #374151; line-height: 1.6; }
.ctp-delete-review {
    position: absolute; top: 12px; right: 14px;
    background: #fee2e2; color: #dc2626;
    border: none; border-radius: 6px; padding: 4px 10px;
    font-size: 12px; cursor: pointer; opacity: 0;
    transition: opacity .2s;
}
.ctp-review-card:hover .ctp-delete-review { opacity: 1; }
.ctp-delete-review:hover { background: #dc2626; color: #fff; }

/* Submit form */
.ctp-review-form-wrap {
    background: #f8f5ff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
}
.ctp-review-form-wrap h4 { color: #1f2937; }
.ctp-reviews-empty {
    text-align: center;
    padding: 32px;
    color: #9ca3af;
    font-size: 14px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* ── FINAL POLISH ────────────────────────────────────────────────────── */

/* How-to accordion */
.ctp-howto summary::-webkit-details-marker { display:none; }
.ctp-howto[open] summary::after { content:'▲'; }
.ctp-howto summary::after { content:'▼'; font-size:10px; margin-left:auto; }
.ctp-howto summary { justify-content: space-between; }

/* Better tool inputs */
.ctp-tool-box input[type=file] {
    width: 100%;
    padding: 10px 14px;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: #f9fafb;
    margin-bottom: 4px;
    color: #6b7280;
}
.ctp-tool-box input[type=file]:hover { border-color: var(--ctp-primary); background: #f0ebff; }
.ctp-tool-box input[type=color] { cursor: pointer; border-radius: 8px; }

/* Result box improvements */
.ctp-result-box {
    animation: ctp-fadein .3s ease;
}
@keyframes ctp-fadein { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* Stat grid improvements */
.ctp-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin: 4px 0;
}
.ctp-stat {
    background: linear-gradient(135deg, #f8f5ff, #f0ebff);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
}
.ctp-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--ctp-primary);
    word-break: break-word;
}
.ctp-stat-label {
    font-size: 11px;
    color: var(--ctp-muted);
    margin-top: 4px;
    font-weight: 500;
}
.ctp-result-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--ctp-primary);
    text-align: center;
    padding: 16px 0 8px;
}

/* Tag chips */
.ctp-tag {
    display: inline-block;
    background: #f0ebff;
    color: var(--ctp-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    margin: 3px;
}

/* Mobile improvements */
@media (max-width: 600px) {
    div.ctp-tool-page { padding: 20px 12px; }
    .ctp-tool-header h1 { font-size: 22px; }
    .ctp-tool-box { padding: 20px 16px; }
    .ctp-stat-val { font-size: 16px; }
    .ctp-reviews-stats { flex-direction: column; gap: 16px; }
    .ctp-stats-big { flex-direction: row; align-items: center; gap: 12px; }
    .ctp-review-form-wrap { padding: 16px; }
    .ctp-row { flex-direction: column; }
}

/* Review section spacing */
.ctp-reviews-section {
    border-top: 2px solid #f0ebff;
    margin-top: 40px;
    padding-top: 32px;
}
.ctp-reviews-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
}

/* Tool page back link */
.ctp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ctp-muted);
    font-size: 14px;
    text-decoration: none;
    margin-top: 24px;
    transition: color .2s;
}
.ctp-back-link:hover { color: var(--ctp-primary); }

/* Category page header */
.ctp-category-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0ebff;
}
.ctp-category-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
}

/* Tool card hover glow */
.ctp-card:hover {
    border-color: var(--ctp-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108,71,255,.12);
}

/* ── Affiliate Banner ─────────────────────────────────────────────────── */
.ctp-affiliate-banner{margin-top:20px;background:linear-gradient(135deg,#f0ebff 0%,#e8f4fd 100%);border:1px solid #d4c5f9;border-radius:12px;padding:14px 16px}
.ctp-aff-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ctp-aff-text{display:flex;flex-direction:column;gap:2px;flex:1}
.ctp-aff-name{font-size:11px;font-weight:700;color:#534AB7;text-transform:uppercase;letter-spacing:.06em}
.ctp-aff-tagline{font-size:13px;color:#374151;line-height:1.4}
.ctp-aff-cta{padding:8px 16px;background:#6c47ff;color:#fff;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .15s}
.ctp-aff-cta:hover{background:#534AB7;color:#fff}
.ctp-aff-disclosure{font-size:10px;color:#9ca3af;text-align:right;margin-top:4px}

/* ── Geo Pricing ──────────────────────────────────────────────────────── */
.ctp-pricing-wrap{max-width:900px;margin:0 auto;padding:20px}
.ctp-switcher-row{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.ctp-currency-note{font-size:13px;color:#6b7280}
.ctp-change-currency{background:none;border:none;color:#6c47ff;cursor:pointer;font-size:13px;text-decoration:underline;padding:0}
.ctp-pricing-header{text-align:center;margin-bottom:32px}
.ctp-pricing-header h1{font-size:28px;font-weight:700;margin-bottom:8px}
.ctp-pricing-header p{font-size:15px;color:#6b7280}
.ctp-pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:24px}
.ctp-plan-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px;position:relative}
.ctp-plan-card.featured{border:2px solid #6c47ff;box-shadow:0 4px 20px rgba(108,71,255,.12)}
.ctp-plan-badge{font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px;background:#6c47ff;color:#fff;display:inline-block;margin-bottom:12px}
.ctp-plan-badge.save{background:#22c55e}
.ctp-plan-name{font-size:16px;font-weight:700;margin-bottom:8px}
.ctp-plan-price{margin-bottom:4px}
.ctp-price-amount{font-size:32px;font-weight:800;color:#111}
.ctp-price-period{font-size:14px;color:#6b7280}
.ctp-plan-sub{font-size:12px;color:#9ca3af;margin-bottom:16px}
.ctp-plan-features{list-style:none;padding:0;margin:0 0 20px;font-size:13px;color:#374151;line-height:2}
.ctp-plan-btn{display:block;width:100%;padding:12px;background:#6c47ff;color:#fff;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;text-align:center;text-decoration:none;transition:background .15s}
.ctp-plan-btn:hover{background:#534AB7;color:#fff}
.ctp-plan-btn.secondary{background:#fff;color:#6c47ff;border:2px solid #6c47ff}
.ctp-plan-btn.secondary:hover{background:#f0ebff}
.ctp-plan-current{text-align:center;font-size:13px;color:#22c55e;font-weight:600;padding:10px}
.ctp-payment-logos{text-align:center;font-size:13px;color:#6b7280;margin-bottom:24px}
.ctp-affiliate-box{background:#fef9ec;border:1px solid #fcd34d;border-radius:12px;padding:20px;text-align:center}
.ctp-affiliate-box h3{margin-bottom:8px;font-size:18px}
.ctp-affiliate-box p{font-size:14px;color:#374151;margin-bottom:16px}

/* ── Language Switcher ────────────────────────────────────────────────── */
.ctp-lang-switcher{position:relative}
.ctp-lang-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;font-size:13px}
.ctp-lang-menu{position:absolute;top:100%;right:0;margin-top:4px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:6px;min-width:200px;z-index:999;box-shadow:0 8px 24px rgba(0,0,0,.08);display:grid;grid-template-columns:1fr 1fr;gap:2px}
.ctp-lang-option{display:flex;align-items:center;gap:6px;padding:6px 8px;border:none;background:none;cursor:pointer;font-size:12px;border-radius:6px;width:100%;text-align:left}
.ctp-lang-option:hover,.ctp-lang-option.active{background:#f0ebff;color:#534AB7}

/* ═══════════════════════════════════════════════════════════════════════
   MONETIZATION STYLES v4.0 — PRO lock, daily limit, email popup,
   exit intent, upsell strip, affiliate banner, share buttons
   ═══════════════════════════════════════════════════════════════════════ */

/* ── PRO LOCK ──────────────────────────────────────────────────────── */
.ctp-pro-lock,
.ctp-daily-limit-wall {
    text-align:center; background:#fff; border:2px solid #6c47ff;
    border-radius:20px; padding:48px 32px; margin:24px 0;
    box-shadow:0 8px 32px rgba(108,71,255,.12);
}
.ctp-pro-lock .ctp-lock-icon,
.ctp-daily-limit-wall > div:first-child { font-size:56px; margin-bottom:16px; display:block; }
.ctp-pro-lock h3,
.ctp-daily-limit-wall h3 { font-size:24px; color:#1e1b4b; margin:0 0 10px; }
.ctp-pro-lock p,
.ctp-daily-limit-wall p { color:#6b7280; margin:0 0 24px; font-size:15px; }
.ctp-lock-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-bottom:16px; }
.ctp-lock-refund,.ctp-exit-refund { font-size:12px; color:#9ca3af; margin:8px 0 0; }
.ctp-btn-outline { background:transparent; border:2px solid #6c47ff; color:#6c47ff; }
.ctp-btn-outline:hover { background:#6c47ff; color:#fff; }
.ctp-pro-badge-header {
    display:inline-block; background:#f59e0b; color:#fff;
    font-size:12px; font-weight:700; padding:3px 12px;
    border-radius:99px; margin-top:8px;
}

/* ── DAILY USAGE WARNING ────────────────────────────────────────────── */
.ctp-usage-warning {
    background:#fef3c7; border:1.5px solid #f59e0b; border-radius:10px;
    padding:10px 16px; font-size:14px; font-weight:600; color:#78350f;
    margin-bottom:16px;
}
.ctp-usage-warning a { color:#6c47ff; }

/* ── AFFILIATE OFFER BANNER ─────────────────────────────────────────── */
.ctp-aff-offer {
    margin:28px 0; border:2px solid #e5e7f0; border-radius:14px;
    overflow:hidden; background:#fff;
}
.ctp-aff-offer-inner {
    display:flex; align-items:center; gap:14px; padding:16px 20px; flex-wrap:wrap;
}
.ctp-aff-icon { font-size:28px; flex-shrink:0; }
.ctp-aff-content { flex:1; min-width:160px; }
.ctp-aff-name { display:block; font-weight:700; font-size:15px; color:#1e1b4b; }
.ctp-aff-tagline { font-size:13px; color:#6b7280; }
.ctp-aff-cta-btn {
    padding:9px 20px; background:#6c47ff; color:#fff; border-radius:10px;
    font-weight:700; font-size:14px; text-decoration:none; white-space:nowrap;
    transition:background .2s;
}
.ctp-aff-cta-btn:hover { background:#5a37e8; color:#fff; }
.ctp-aff-label {
    display:block; text-align:right; font-size:10px; color:#9ca3af;
    padding:2px 12px 6px; background:#f9fafb;
}

/* ── ADS ─────────────────────────────────────────────────────────────── */
.ctp-ad-top { margin-bottom:20px; text-align:center; }
.ctp-ad-inline { margin:20px 0; text-align:center; }

/* ── UPSELL STRIP ───────────────────────────────────────────────────── */
.ctp-upsell-strip {
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
    gap:12px; background:linear-gradient(135deg,#1e1b4b,#6c47ff);
    color:#fff; border-radius:12px; padding:14px 20px; margin:24px 0;
    font-weight:600; font-size:14px;
}
.ctp-upsell-btn {
    background:#fff; color:#6c47ff; padding:9px 20px; border-radius:8px;
    font-weight:700; font-size:14px; border:none; cursor:pointer;
    white-space:nowrap; transition:.2s;
}
.ctp-upsell-btn:hover { background:#ede9fe; }

/* ── SOCIAL SHARE ───────────────────────────────────────────────────── */
.ctp-share-row {
    display:flex; align-items:center; gap:10px; flex-wrap:wrap;
    margin:28px 0 8px; font-size:14px; font-weight:600; color:#6b7280;
}
.ctp-share-btn {
    padding:7px 16px; border-radius:8px; font-size:13px; font-weight:600;
    text-decoration:none; transition:opacity .2s;
}
.ctp-share-btn:hover { opacity:.85; }
.ctp-share-wa { background:#25d366; color:#fff; }
.ctp-share-tw { background:#1da1f2; color:#fff; }
.ctp-share-li { background:#0077b5; color:#fff; }

/* ── UPGRADE MODAL ─────────────────────────────────────────────────── */
.ctp-modal-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,.6);
    display:none; align-items:center; justify-content:center;
    z-index:99999; backdrop-filter:blur(4px);
}
.ctp-modal-overlay.open,
.ctp-modal-overlay[style*="flex"] { display:flex; }
.ctp-modal-box {
    background:#fff; border-radius:20px; padding:44px 36px;
    text-align:center; max-width:380px; width:90%; position:relative;
    box-shadow:0 20px 60px rgba(0,0,0,.3);
}
.ctp-modal-close {
    position:absolute; top:14px; right:16px; background:none; border:none;
    font-size:20px; cursor:pointer; color:#9ca3af; line-height:1;
}
.ctp-modal-spinner { font-size:44px; animation:ctp-spin 1.5s linear infinite; display:block; }
@keyframes ctp-spin { to { transform:rotate(360deg); } }
.ctp-modal-box h3 { font-size:21px; color:#1e1b4b; margin:14px 0 8px; }
.ctp-modal-box p { color:#6b7280; margin:0 0 20px; font-size:15px; }
.ctp-modal-loader { height:4px; background:#e5e7f0; border-radius:99px; overflow:hidden; }
.ctp-modal-loader div {
    height:100%; width:40%; background:#6c47ff; border-radius:99px;
    animation:ctp-load 1.5s ease-in-out infinite;
}
@keyframes ctp-load { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }

/* ── EMAIL POPUP ────────────────────────────────────────────────────── */
.ctp-email-popup {
    position:fixed; bottom:24px; right:24px; z-index:9999;
    width:340px; background:#fff; border-radius:16px;
    box-shadow:0 8px 40px rgba(0,0,0,.2); padding:28px 24px;
    border:2px solid #e5e7f0; display:none;
}
.ctp-email-popup-inner { position:relative; text-align:center; }
.ctp-ep-close {
    position:absolute; top:-8px; right:-8px; background:#f3f4f6;
    border:none; border-radius:50%; width:28px; height:28px;
    cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center;
}
.ctp-email-popup h3 { font-size:17px; color:#1e1b4b; margin:10px 0 6px; }
.ctp-email-popup p { font-size:13px; color:#6b7280; margin:0 0 14px; }
.ctp-email-popup input[type=email] {
    width:100%; padding:10px 14px; border:2px solid #e5e7f0; border-radius:8px;
    font-size:14px; margin-bottom:10px; box-sizing:border-box; outline:none;
}
.ctp-email-popup input:focus { border-color:#6c47ff; }
.ctp-email-popup .ctp-btn { width:100%; justify-content:center; }
.ctp-ep-note { font-size:11px; color:#d1d5db; margin:8px 0 0; }

/* ── EXIT INTENT POPUP ──────────────────────────────────────────────── */
.ctp-exit-popup {
    position:fixed; inset:0; z-index:99998; background:rgba(0,0,0,.65);
    display:none; align-items:center; justify-content:center; backdrop-filter:blur(3px);
}
.ctp-exit-popup.open { display:flex; }
.ctp-exit-inner {
    background:#fff; border-radius:20px; padding:44px 36px;
    text-align:center; max-width:400px; width:90%; position:relative;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.ctp-exit-close {
    position:absolute; top:14px; right:16px; background:none; border:none;
    font-size:22px; cursor:pointer; color:#9ca3af;
}
.ctp-exit-inner h3 { font-size:22px; color:#1e1b4b; margin:12px 0 8px; }
.ctp-exit-inner > p { font-size:15px; color:#6b7280; margin:0 0 8px; }
.ctp-exit-price { font-size:44px; font-weight:800; color:#6c47ff; margin:8px 0 4px; }
.ctp-exit-price span { font-size:18px; color:#9ca3af; font-weight:400; }
.ctp-exit-inner .ctp-btn { margin-top:16px; width:100%; justify-content:center; }

/* ── ADMIN SETTINGS ADDITIONS ─────────────────────────────────────────── */
.ctp-monetize-settings { display:grid; gap:16px; }

/* ══════════════════════════════════════════════════════════════════════
   FULL WIDTH LAYOUT — Astra Theme Overrides v10.1.1
   Removes sidebar, forces full-width centered layout on all CTP pages.

   ROOT CAUSE FIX:
   - Astra's sidebar (#secondary) and content-area (#primary) use
     float-based or flex-based 2-column layout when sidebar is active.
     This pushed #primary to the right, leaving a gap on the left.
   - The old wildcard selector .ctp-tool-page > * matched the inner
     <div class="ctp-tool-page"> AND applied max-width unevenly.
   - Astra's .ast-container has its own max-width that conflicted
     with the plugin's inner max-width.

   FIX STRATEGY:
   - Force Astra to no-sidebar layout at every level
   - Reset #primary to full-width, no float
   - Remove all Astra content container width constraints
   - Let the plugin's own .ctp-tool-page handle centering
   - Use specific class selectors instead of wildcards
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. KILL THE SIDEBAR ─────────────────────────────────────────── */
/* Hide sidebar on ALL CTP page types */
body.ctp-tool-page #secondary,
body.ctp-tools-grid-page #secondary,
body.ctp-homepage #secondary,
body.ctp-tool-page .widget-area,
body.ctp-tools-grid-page .widget-area,
body.ctp-homepage .widget-area {
    display: none !important;
    width: 0 !important;
}

/* Override Astra sidebar layout classes */
body.ctp-tool-page .ast-right-sidebar #primary,
body.ctp-tool-page .ast-left-sidebar #primary,
body.ctp-tool-page.ast-right-sidebar #primary,
body.ctp-tool-page.ast-left-sidebar #primary,
body.ctp-tools-grid-page .ast-right-sidebar #primary,
body.ctp-tools-grid-page .ast-left-sidebar #primary,
body.ctp-tools-grid-page.ast-right-sidebar #primary,
body.ctp-tools-grid-page.ast-left-sidebar #primary,
body.ctp-homepage .ast-right-sidebar #primary,
body.ctp-homepage .ast-left-sidebar #primary,
body.ctp-homepage.ast-right-sidebar #primary,
body.ctp-homepage.ast-left-sidebar #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── 2. FORCE #PRIMARY FULL WIDTH ────────────────────────────────── */
body.ctp-tool-page #primary,
body.ctp-tools-grid-page #primary,
body.ctp-homepage #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 100% !important;
}

/* ── 3. RESET ASTRA CONTAINER ────────────────────────────────────── */
/* Remove Astra's default max-width so our content can center itself */
body.ctp-tool-page .ast-container,
body.ctp-tools-grid-page .ast-container,
body.ctp-homepage .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
}

/* ── 4. RESET ASTRA CONTENT WRAPPERS ─────────────────────────────── */
body.ctp-tool-page .ast-article-single,
body.ctp-tools-grid-page .ast-article-single,
body.ctp-homepage .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
}

body.ctp-tool-page .entry-content,
body.ctp-tools-grid-page .entry-content,
body.ctp-homepage .entry-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ctp-tool-page .site-content,
body.ctp-tools-grid-page .site-content,
body.ctp-homepage .site-content {
    padding-top: 0 !important;
}

/* Homepage sections stretch full-width */
body.ctp-homepage .cph2-wrap {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ── 5. ASTRA FLEX LAYOUT FIX ────────────────────────────────────── */
/* Some Astra versions use flex on .ast-container — override it */
body.ctp-tool-page .ast-container,
body.ctp-tools-grid-page .ast-container,
body.ctp-homepage .ast-container {
    flex-wrap: nowrap !important;
}

/* Override any Astra content-area flex sizing */
body.ctp-tool-page .content-area,
body.ctp-tools-grid-page .content-area,
body.ctp-homepage .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

/* ── 6. PLUGIN CONTENT CENTERING ─────────────────────────────────── */
/* The plugin's own .ctp-tool-page div handles centering at 960px */
div.ctp-tool-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Tools grid page uses wider centering */
.ctp-tools-wrap,
.ctpr-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ── 7. MOBILE RESPONSIVENESS ────────────────────────────────────── */
@media (max-width: 768px) {
    body.ctp-tool-page .ast-container,
    body.ctp-tools-grid-page .ast-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    div.ctp-tool-page {
        padding: 20px 14px;
    }
}

@media (max-width: 480px) {
    div.ctp-tool-page {
        padding: 16px 12px;
    }
}
/* ── Coswaa Tools Pro — Pricing Page CSS v6.0 ───────────────────────── */

/* ── WRAP ──────────────────────────────────────────────────────────── */
.ctpr-wrap {
    max-width: 1100px; margin: 0 auto; padding: 0 20px 60px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e1b4b;
}

/* ── HERO ──────────────────────────────────────────────────────────── */
.ctpr-hero {
    text-align: center; padding: 60px 20px 48px; position: relative; overflow: hidden;
}
.ctpr-hero-glow {
    position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(108,71,255,.12) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}
.ctpr-hero > * { position: relative; z-index: 1; }
.ctpr-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 6px 18px; border-radius: 99px;
    background: rgba(108,71,255,.08); color: #6c47ff;
    border: 1px solid rgba(108,71,255,.18); margin-bottom: 18px;
}
.ctpr-h1 {
    font-size: clamp(30px, 5.5vw, 52px); font-weight: 900;
    line-height: 1.1; margin: 0 0 16px; color: #1e1b4b;
}
.ctpr-grad {
    background: linear-gradient(135deg, #6c47ff, #00c6ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ctpr-sub {
    font-size: 17px; color: #6b7280; max-width: 580px;
    margin: 0 auto; line-height: 1.65;
}

/* ── ALREADY PRO ───────────────────────────────────────────────────── */
.ctpr-already-pro {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #22c55e; border-radius: 16px;
    padding: 20px 28px; margin-bottom: 36px; flex-wrap: wrap;
}
.ctpr-ap-icon { font-size: 40px; }
.ctpr-already-pro h3 { margin: 0 0 2px; color: #15803d; font-size: 18px; }
.ctpr-already-pro p { margin: 0; color: #6b7280; font-size: 14px; }
.ctpr-already-pro > div { flex: 1; min-width: 200px; }

/* ── BILLING TOGGLE ────────────────────────────────────────────────── */
.ctpr-toggle-wrap {
    display: flex; justify-content: center; gap: 0;
    margin-bottom: 36px;
    background: #f3f4f6; border-radius: 99px;
    padding: 4px; width: fit-content; margin-left: auto; margin-right: auto;
}
.ctpr-period-btn {
    padding: 10px 28px; border-radius: 99px; font-size: 15px; font-weight: 600;
    border: none; background: transparent; color: #6b7280;
    cursor: pointer; transition: .2s; display: flex; align-items: center; gap: 8px;
}
.ctpr-period-btn.active {
    background: #6c47ff; color: #fff;
    box-shadow: 0 2px 12px rgba(108,71,255,.3);
}
.ctpr-save-pill {
    background: #fef9c3; color: #854d0e; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 99px;
}
.ctpr-period-btn.active .ctpr-save-pill {
    background: rgba(255,255,255,.2); color: #fff;
}

/* ── PLAN CARDS ────────────────────────────────────────────────────── */
.ctpr-cards {
    display: grid; grid-template-columns: 1fr 1.08fr;
    gap: 24px; max-width: 860px; margin: 0 auto 56px; align-items: start;
}
.ctpr-card {
    background: #fff; border: 2px solid #e5e7f0; border-radius: 20px;
    padding: 36px 28px; position: relative; transition: .2s;
}
.ctpr-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.ctpr-card--pro {
    border-color: #6c47ff;
    background: linear-gradient(to bottom, #faf9ff, #fff);
    box-shadow: 0 8px 36px rgba(108,71,255,.15);
}
.ctpr-card--pro:hover { box-shadow: 0 16px 48px rgba(108,71,255,.22); }
.ctpr-popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #6c47ff, #8b5cf6); color: #fff;
    font-size: 13px; font-weight: 700; padding: 5px 22px;
    border-radius: 99px; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(108,71,255,.3);
}

.ctpr-card-top { text-align: center; margin-bottom: 24px; }
.ctpr-plan-icon { font-size: 40px; display: block; margin-bottom: 10px; }
.ctpr-plan-name { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.ctpr-plan-tagline { font-size: 14px; color: #6b7280; margin: 0 0 18px; }
.ctpr-price-row { display: flex; align-items: baseline; justify-content: center; gap: 4px; flex-wrap: wrap; }
.ctpr-price { font-size: 46px; font-weight: 900; color: #1e1b4b; line-height: 1; }
.ctpr-card--pro .ctpr-price {
    background: linear-gradient(135deg, #6c47ff, #00c6ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ctpr-price-per { font-size: 16px; color: #9ca3af; }
.ctpr-price-old {
    font-size: 16px; color: #9ca3af; text-decoration: line-through;
    text-align: center; margin-bottom: 4px; width: 100%;
}
.ctpr-intro-tag {
    font-size: 12px; font-weight: 700; color: #dc2626;
    text-align: center; margin-top: 6px; width: 100%;
}
.ctpr-billed-note {
    font-size: 13px; color: #6b7280; text-align: center; margin-top: 6px; width: 100%;
}

/* Features list */
.ctpr-features {
    list-style: none; margin: 0 0 24px; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.ctpr-feat {
    font-size: 14px; color: #374151; padding: 6px 0;
    border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 8px;
}
.ctpr-feat:last-child { border-bottom: none; }
.ctpr-feat--no { color: #9ca3af; }
.ctpr-feat--highlight { color: #1e1b4b; }
.ctpr-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    background: #dcfce7; color: #16a34a; font-size: 12px; font-weight: 700;
}
.ctpr-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    background: #fee2e2; color: #dc2626; font-size: 12px; font-weight: 700;
}

/* Buttons */
.ctpr-btn {
    display: block; width: 100%; padding: 14px 20px; border-radius: 12px;
    font-size: 16px; font-weight: 700; text-align: center; cursor: pointer;
    text-decoration: none; border: none; transition: .2s;
}
.ctpr-btn--free { background: #f3f4f6; color: #374151; }
.ctpr-btn--free:hover { background: #e5e7eb; }
.ctpr-btn--pro {
    background: linear-gradient(135deg, #6c47ff, #8b5cf6); color: #fff;
    box-shadow: 0 6px 24px rgba(108,71,255,.35);
}
.ctpr-btn--pro:hover {
    box-shadow: 0 10px 32px rgba(108,71,255,.5);
    transform: translateY(-1px);
}
.ctpr-btn--outline {
    background: transparent; color: #6c47ff;
    border: 2px solid #6c47ff;
}
.ctpr-btn--outline:hover { background: #f5f3ff; }
.ctpr-btn-note { font-size: 12px; color: #9ca3af; text-align: center; margin: 8px 0 0; }
.ctpr-trial-link {
    text-align: center; margin-top: 12px;
}
.ctpr-trial-link a {
    font-size: 14px; color: #6c47ff; font-weight: 600; text-decoration: none;
}
.ctpr-trial-link a:hover { text-decoration: underline; }

/* ── PREMIUM TOOLS SHOWCASE ────────────────────────────────────────── */
.ctpr-premium-section { margin-bottom: 56px; }
.ctpr-section-title {
    font-size: 24px; font-weight: 800; text-align: center;
    margin: 0 0 8px; color: #1e1b4b;
}
.ctpr-section-sub {
    font-size: 15px; color: #6b7280; text-align: center; margin: 0 0 32px;
}
.ctpr-category-label {
    font-size: 16px; font-weight: 700; color: #374151;
    margin: 0 0 16px; padding-left: 4px;
}
.ctpr-pro-tools-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.ctpr-pro-tool-card {
    background: #fff; border: 2px solid #e5e7f0; border-radius: 14px;
    padding: 20px 16px; text-align: center; position: relative;
    transition: .2s;
}
.ctpr-pro-tool-card:hover {
    border-color: #6c47ff; transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108,71,255,.1);
}
.ctpr-pro-badge-mini {
    position: absolute; top: 8px; right: 8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em;
    padding: 2px 8px; border-radius: 99px;
}
.ctpr-pt-icon { font-size: 32px; margin-bottom: 8px; }
.ctpr-pt-title { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: #1e1b4b; }
.ctpr-pt-desc { font-size: 12px; color: #6b7280; margin: 0 0 12px; line-height: 1.4; }
.ctpr-pt-btn {
    display: inline-block; font-size: 12px; font-weight: 700;
    padding: 6px 14px; border-radius: 8px; text-decoration: none;
}
.ctpr-pt-btn--open {
    background: #dcfce7; color: #16a34a;
}
.ctpr-pt-btn--locked {
    background: #fef3c7; color: #92400e; cursor: default;
}

/* CTA Banner */
.ctpr-cta-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 16px; padding: 28px 32px; color: #fff; flex-wrap: wrap; gap: 16px;
}
.ctpr-cta-text h3 { margin: 0 0 4px; font-size: 20px; }
.ctpr-cta-text p { margin: 0; color: #c4b5fd; font-size: 14px; }
.ctpr-cta-inline {
    max-width: 220px; margin: 0; flex-shrink: 0;
}

/* ── COMPARISON TABLE ──────────────────────────────────────────────── */
.ctpr-table-wrap { max-width: 760px; margin: 0 auto 48px; }
.ctpr-table-scroll { overflow-x: auto; }
.ctpr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctpr-table th, .ctpr-table td {
    padding: 12px 16px; border: 1px solid #e5e7f0; text-align: center;
}
.ctpr-table th:first-child, .ctpr-table td:first-child {
    text-align: left; font-weight: 500; color: #374151;
}
.ctpr-table thead th {
    background: #f8f9ff; font-weight: 700; color: #1e1b4b; position: sticky; top: 0;
}
.ctpr-th-free { color: #6b7280; }
.ctpr-th-pro { color: #6c47ff; }
.ctpr-td-pro { color: #16a34a; font-weight: 600; }
.ctpr-table tr:nth-child(even) { background: #fafaff; }
.ctpr-table tr:hover { background: #f5f3ff; }

/* ── TRUST STRIP ───────────────────────────────────────────────────── */
.ctpr-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
    padding: 24px 20px; background: #f8f9ff; border-radius: 16px; margin-bottom: 48px;
}
.ctpr-trust-item { font-size: 14px; font-weight: 600; color: #4b5563; }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.ctpr-faq { max-width: 760px; margin: 0 auto 48px; }
.ctp-faq-list { display: flex; flex-direction: column; gap: 8px; }
.ctp-faq-item { border: 1px solid #e5e7f0; border-radius: 12px; overflow: hidden; }
.ctp-faq-q {
    width: 100%; padding: 16px 20px; background: #fff; border: none;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; font-size: 15px; font-weight: 600; color: #1e1b4b;
    text-align: left; gap: 12px; transition: .15s;
}
.ctp-faq-q:hover { background: #f8f9ff; }
.ctp-faq-chevron { transition: transform .25s; flex-shrink: 0; }
.ctp-faq-q[aria-expanded="true"] .ctp-faq-chevron { transform: rotate(180deg); }
.ctp-faq-a {
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
    padding: 0 20px;
}
.ctp-faq-a.ctp-faq-open {
    max-height: 300px; padding: 0 20px 16px;
}
.ctp-faq-a p { margin: 0; font-size: 14px; color: #6b7280; line-height: 1.6; }

/* ── FINAL CTA ─────────────────────────────────────────────────────── */
.ctpr-final-cta {
    text-align: center; padding: 48px 28px;
    background: linear-gradient(to bottom, #f8f9ff, #fff);
    border-radius: 20px; border: 2px solid #e5e7f0;
}
.ctpr-final-cta h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.ctpr-final-cta p { margin: 0 0 24px; color: #6b7280; font-size: 16px; }
.ctpr-final-btns {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.ctpr-final-btns .ctpr-btn { flex: 0 0 auto; }

/* ── MODAL ─────────────────────────────────────────────────────────── */
#ctp-upgrade-modal {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(0,0,0,.6); align-items: center; justify-content: center;
}
.ctp-modal-box {
    background: #fff; border-radius: 16px; padding: 32px 28px;
    max-width: 380px; width: 90%; text-align: center;
}
.ctp-modal-box h3 { margin: 0 0 8px; font-size: 18px; color: #1e1b4b; }
.ctp-modal-box p { margin: 0; font-size: 14px; color: #6b7280; }
.ctp-modal-spinner {
    width: 32px; height: 32px; border: 3px solid #e5e7f0;
    border-top-color: #6c47ff; border-radius: 50%;
    animation: ctpr-spin .8s linear infinite; margin: 16px auto 0;
}
@keyframes ctpr-spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .ctpr-cards { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .ctpr-cta-banner { flex-direction: column; text-align: center; }
    .ctpr-cta-inline { max-width: 100%; width: 100%; }
    .ctpr-pro-tools-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .ctpr-trust { gap: 12px; }
    .ctpr-trust-item { font-size: 13px; }
    .ctpr-final-btns { flex-direction: column; align-items: center; }
    .ctpr-final-btns .ctpr-btn { width: 100%; max-width: 300px !important; }
}
/*
 * Coswaa Tools — AI Features CSS v1.0
 * AI Assistant Panel, Export Bar, History Tab
 */

/* ── AI Panel Container ──────────────────────────────────────────────── */
.ctp-ai-panel {
    margin-top: 24px;
    border: 1.5px solid #e0e7ff;
    border-radius: 16px;
    background: #fafbff;
    overflow: hidden;
    font-family: inherit;
}

.ctp-ai-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #6c47ff 0%, #8b5cf6 100%);
    color: #fff;
    cursor: pointer;
    user-select: none;
    border-radius: 14px 14px 0 0;
}

.ctp-ai-panel-header .ctp-ai-icon {
    font-size: 20px;
    line-height: 1;
}

.ctp-ai-panel-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    flex: 1;
}

.ctp-ai-panel-header .ctp-ai-badge {
    font-size: 10px;
    background: rgba(255,255,255,.2);
    border-radius: 99px;
    padding: 2px 8px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ctp-ai-panel-header .ctp-ai-toggle-icon {
    font-size: 14px;
    transition: transform .2s;
}

.ctp-ai-panel.collapsed .ctp-ai-toggle-icon {
    transform: rotate(-90deg);
}

.ctp-ai-panel-body {
    padding: 16px 18px 18px;
}

.ctp-ai-panel.collapsed .ctp-ai-panel-body {
    display: none;
}

/* ── Mode buttons ────────────────────────────────────────────────────── */
.ctp-ai-modes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ctp-ai-mode-btn {
    padding: 8px 16px;
    border: 1.5px solid #e0e7ff;
    border-radius: 99px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ctp-ai-mode-btn:hover,
.ctp-ai-mode-btn.active {
    background: #6c47ff;
    border-color: #6c47ff;
    color: #fff;
}

.ctp-ai-mode-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ── Response area ───────────────────────────────────────────────────── */
.ctp-ai-response {
    min-height: 48px;
    background: #fff;
    border: 1.5px solid #e0e7ff;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
}

.ctp-ai-response.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
}

.ctp-ai-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e0e7ff;
    border-top-color: #6c47ff;
    border-radius: 50%;
    animation: ctpAiSpin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes ctpAiSpin {
    to { transform: rotate(360deg); }
}

.ctp-ai-response p { margin: 0 0 8px; }
.ctp-ai-response p:last-child { margin-bottom: 0; }
.ctp-ai-response ol,
.ctp-ai-response ul { margin: 0; padding-left: 20px; }
.ctp-ai-response li { margin-bottom: 4px; }

.ctp-ai-response .ctp-ai-error {
    color: #ef4444;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ctp-ai-no-result {
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
}

/* ── Export Bar ──────────────────────────────────────────────────────── */
.ctp-export-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f9ff;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
}

.ctp-export-label {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.ctp-export-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: #374151;
    border-color: #e0e7ff;
}

.ctp-export-btn:hover {
    border-color: #6c47ff;
    color: #6c47ff;
}

.ctp-export-btn.ctp-copy-btn.copied {
    background: #dcfce7;
    border-color: #22c55e;
    color: #16a34a;
}

/* ── History Tab ─────────────────────────────────────────────────────── */
.ctp-history-panel {
    margin-top: 24px;
    border: 1.5px solid #e0e7ff;
    border-radius: 16px;
    overflow: hidden;
}

.ctp-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f0ebff;
    cursor: pointer;
    user-select: none;
}

.ctp-history-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #4c1d95;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctp-history-clear-btn {
    font-size: 11px;
    background: none;
    border: 1px solid #c4b5fd;
    color: #7c3aed;
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
}

.ctp-history-body {
    max-height: 320px;
    overflow-y: auto;
}

.ctp-history-empty {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.ctp-history-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid #f3f0ff;
    font-size: 13px;
}

.ctp-history-row:hover {
    background: #faf8ff;
}

.ctp-history-tool {
    font-weight: 700;
    color: #6c47ff;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
}

.ctp-history-snippet {
    flex: 1;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ctp-history-time {
    color: #9ca3af;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ctp-history-del {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    opacity: .5;
    flex-shrink: 0;
}

.ctp-history-del:hover { opacity: 1; }

/* ── Collapsed state ─────────────────────────────────────────────────── */
.ctp-history-panel.collapsed .ctp-history-body {
    display: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .ctp-ai-modes { gap: 6px; }
    .ctp-ai-mode-btn { padding: 7px 12px; font-size: 12px; }
    .ctp-export-bar { gap: 6px; }
    .ctp-export-btn { padding: 5px 10px; }
}

/* ── v8.0 Fix: Hide history panel on tool pages (moved to Dashboard) ── */
.ctp-tool-page .ctp-history-panel,
#ctp-history-panel {
    display: none !important;
}

/* ── v8.0 Fix: Ensure no history rows float over content ────────────── */
.ctp-history-row {
    position: static !important;
    float: none !important;
}

/* ── v8.0 Fix: AI panel collapsed by default on tool pages ─────────── */
.ctp-ai-panel.collapsed .ctp-ai-panel-body {
    display: none;
}
/**
 * Coswaa Tools Pro — Growth UI Styles v2.0
 * File: public/css/growth.css
 *
 * Contains styles for:
 * - Language switcher
 * - Sticky CTA bar
 * - Promo popup
 * - Trial gate overlay
 * - Breadcrumbs
 * - Tool header enhancements
 * - Social share bar
 * - Social proof counters
 * - PWA install banner
 * - Country targeting page styles
 */

/* ── LANGUAGE SWITCHER ────────────────────────── */
.ctp-lang-switcher{position:relative;display:inline-block;font-family:'Segoe UI',system-ui,sans-serif}
.ctp-lang-btn{display:flex;align-items:center;gap:6px;background:#f0ebff;color:#6c47ff;border:2px solid #e0d4ff;border-radius:8px;padding:7px 12px;cursor:pointer;font-size:13px;font-weight:600;transition:.2s;white-space:nowrap}
.ctp-lang-btn:hover{background:#e8e0ff;border-color:#6c47ff}
.ctp-lang-menu{position:absolute;top:calc(100% + 6px);right:0;background:#fff;border:2px solid #e5e7f0;border-radius:10px;box-shadow:0 8px 32px rgba(0,0,0,.12);z-index:9999;min-width:160px;padding:6px;max-height:280px;overflow-y:auto}
.ctp-lang-option{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:none;background:none;cursor:pointer;font-size:13px;border-radius:6px;text-align:left;transition:.15s;color:#1e1b4b}
.ctp-lang-option:hover{background:#f0ebff;color:#6c47ff}
.ctp-lang-option.active{background:#6c47ff;color:#fff;font-weight:600}

/* RTL support */
[dir="rtl"] .ctp-lang-menu{right:auto;left:0}
[dir="rtl"] .ctp-lang-btn{flex-direction:row-reverse}

/* ── TOOL HEADER ENHANCEMENTS ─────────────────── */
.ctst-header{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:start;padding:0 0 24px;text-align:left}
.ctst-header-icon{font-size:52px;line-height:1;filter:drop-shadow(0 4px 8px rgba(108,71,255,.2))}
.ctst-header h1{margin:0 0 4px;font-size:26px;font-weight:800;color:#1e1b4b}
.ctst-header-text>p{margin:0 0 10px;color:#6b7280;font-size:15px;line-height:1.5}
.ctst-meta-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ctst-uses-badge,.ctst-free-badge,.ctst-pro-badge,.ctst-mobile-badge{font-size:12px;padding:3px 10px;border-radius:99px;font-weight:600;white-space:nowrap}
.ctst-uses-badge{background:#dcfce7;color:#16a34a}
.ctst-free-badge{background:#dcfce7;color:#16a34a}
.ctst-pro-badge{background:#fef3c7;color:#d97706}
.ctst-mobile-badge{background:#f0ebff;color:#6c47ff}
.ctst-lang-pos{flex-shrink:0;align-self:start}

/* ── BREADCRUMBS ──────────────────────────────── */
.ctst-breadcrumb{max-width:800px;margin:8px auto 0;padding:8px 16px 0}
.ctst-breadcrumb ol{list-style:none;margin:0;padding:0;display:flex;gap:6px;font-size:13px;color:#9ca3af;flex-wrap:wrap}
.ctst-breadcrumb li{display:flex;align-items:center;gap:6px}
.ctst-breadcrumb li:not(:last-child)::after{content:'›';color:#d1d5db}
.ctst-breadcrumb a{color:#9ca3af;text-decoration:none;transition:.15s}
.ctst-breadcrumb a:hover{color:#6c47ff}
.ctst-breadcrumb [aria-current="page"]{color:#1e1b4b;font-weight:600}

/* ── SOCIAL PROOF BAR ─────────────────────────── */
.ctg-proof-bar{background:linear-gradient(135deg,#0f0b2e 0%,#1a0f5e 50%,#0e1e5f 100%);color:#fff;padding:16px 20px;text-align:center;margin-bottom:28px;border-radius:14px;overflow:hidden;position:relative}
.ctg-proof-bar::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 60% 80% at 20% 50%,rgba(108,71,255,.3),transparent);pointer-events:none}
.ctg-proof-inner{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;position:relative}
.ctg-proof-item{display:flex;flex-direction:column;align-items:center;gap:2px}
.ctg-proof-num{font-size:24px;font-weight:900;color:#a78bfa;line-height:1;font-variant-numeric:tabular-nums}
.ctg-proof-label{font-size:11px;color:#c4b5fd;text-transform:uppercase;letter-spacing:.08em;font-weight:500}
.ctg-proof-divider{color:#4c3a8a;font-size:20px;opacity:.5}

/* ── SECTION HEADERS ──────────────────────────── */
.ctg-section{margin-bottom:36px}
.ctg-section-header{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.ctg-section-title{margin:0;font-size:18px;font-weight:800;color:#1e1b4b}
.ctg-section-badge{background:#ef4444;color:#fff;font-size:10px;font-weight:700;padding:3px 9px;border-radius:99px;text-transform:uppercase;letter-spacing:.05em;animation:ctgPulse 2s infinite}
.ctg-badge-new{background:#8b5cf6}
@keyframes ctgPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(.97)}}

/* ── HORIZONTAL SCROLL ROW ────────────────────── */
.ctg-scroll-row{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ctg-scroll-row::-webkit-scrollbar{display:none}
.ctg-mini-card{flex:0 0 130px;scroll-snap-align:start;background:#fff;border:2px solid #e5e7f0;border-radius:12px;padding:14px 10px;text-align:center;text-decoration:none;color:#1e1b4b;transition:.2s;position:relative;cursor:pointer}
.ctg-mini-card:hover{border-color:#6c47ff;transform:translateY(-3px);box-shadow:0 6px 20px rgba(108,71,255,.18);text-decoration:none}
.ctg-mini-icon{font-size:26px;margin-bottom:6px;line-height:1}
.ctg-mini-title{font-size:12px;font-weight:700;line-height:1.3;margin-bottom:4px;color:#1e1b4b}
.ctg-mini-uses{font-size:11px;color:#6b7280}
.ctg-mini-badge{position:absolute;top:6px;right:6px;background:#f59e0b;color:#fff;font-size:9px;font-weight:700;padding:2px 5px;border-radius:99px;text-transform:uppercase}
.ctg-mini-card--new{border-color:rgba(139,92,246,.3)}
.ctg-new-dot{position:absolute;top:8px;left:8px;width:7px;height:7px;background:#22c55e;border-radius:50%;box-shadow:0 0 0 2px rgba(34,197,94,.25)}

/* ── SEARCH ENHANCEMENTS ──────────────────────── */
.ctg-search-wrap{position:relative;flex:1;min-width:240px}
.ctg-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:16px;pointer-events:none;z-index:1}
#ctp-search{padding-left:42px!important;padding-right:36px!important}
.ctg-search-clear{position:absolute;right:12px;top:50%;transform:translateY(-50%);cursor:pointer;color:#9ca3af;font-size:14px;line-height:1;transition:.15s;z-index:1}
.ctg-search-clear:hover{color:#6c47ff}
.ctg-results-meta{font-size:13px;color:#9ca3af;margin-bottom:14px;font-variant-numeric:tabular-nums}

/* ── CARD ENHANCEMENTS ────────────────────────── */
.ctp-card--pro{border-color:rgba(245,158,11,.3)}
.ctp-card--pro:hover{border-color:#f59e0b}
.ctg-card-uses{font-size:11px;color:#9ca3af;margin-top:6px;display:flex;align-items:center;gap:4px}
.ctg-pro-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(108,71,255,.06),rgba(245,158,11,.06));border-radius:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;transition:.25s}
.ctp-card--pro:hover .ctg-pro-overlay{opacity:1}
.ctg-pro-overlay span{font-size:18px;font-weight:700;color:#6c47ff}
.ctg-pro-overlay small{font-size:12px;color:#6b7280;margin-top:2px}
.ctg-cat-header{margin-bottom:20px}
.ctg-cat-header h2{margin:0 0 4px;font-size:22px;font-weight:800}
.ctg-cat-header p{margin:0;color:#6b7280;font-size:14px}
.ctg-back-link{display:block;margin-top:20px;font-size:14px;color:#6b7280}

/* ── STICKY CTA BAR ───────────────────────────── */
.ctg-sticky-cta{position:fixed;bottom:0;left:0;right:0;z-index:9990;background:linear-gradient(90deg,#6c47ff 0%,#8b5cf6 100%);color:#fff;padding:10px 20px;transform:translateY(100%);transition:transform .4s cubic-bezier(.34,1.56,.64,1);box-shadow:0 -4px 24px rgba(108,71,255,.35)}
.ctg-sticky-cta.visible{transform:translateY(0)}
.ctg-sticky-inner{max-width:960px;margin:0 auto;display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:center}
.ctg-sticky-text{font-size:14px;font-weight:500;flex:1;min-width:0}
.ctg-sticky-text strong{font-weight:800}
.ctg-sticky-btn{background:#fff;color:#6c47ff;border:none;padding:9px 22px;border-radius:8px;font-weight:800;cursor:pointer;font-size:14px;white-space:nowrap;transition:.15s;flex-shrink:0}
.ctg-sticky-btn:hover{background:#f0ebff}
.ctg-sticky-close{background:none;border:none;color:rgba(255,255,255,.6);cursor:pointer;font-size:18px;padding:0 4px;flex-shrink:0;line-height:1}
.ctg-sticky-close:hover{color:#fff}

/* ── PROMO POPUP ──────────────────────────────── */
.ctg-promo-popup{position:fixed;inset:0;z-index:99998;background:rgba(0,0,0,.65);align-items:center;justify-content:center;padding:16px}
.ctg-promo-box{background:#fff;border-radius:20px;padding:36px 28px;max-width:420px;width:100%;position:relative;text-align:center;animation:ctgSlideUp .3s ease}
@keyframes ctgSlideUp{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}
.ctg-promo-close{position:absolute;top:14px;right:16px;background:none;border:none;font-size:20px;cursor:pointer;color:#9ca3af;line-height:1;transition:.15s}
.ctg-promo-close:hover{color:#374151}
.ctg-promo-icon{font-size:52px;margin-bottom:8px;line-height:1}
.ctg-promo-box h3{margin:0 0 8px;font-size:22px;font-weight:800;color:#1e1b4b}
.ctg-promo-box>p{color:#6b7280;font-size:14px;margin:0 0 16px;line-height:1.6}
.ctg-promo-price{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:18px}
.ctg-promo-original{font-size:16px;color:#9ca3af;text-decoration:line-through}
.ctg-promo-current{font-size:32px;font-weight:900;color:#6c47ff;line-height:1}
.ctg-promo-btn{font-size:16px;padding:15px 28px;width:100%;justify-content:center;border-radius:12px}
.ctg-promo-note{font-size:12px;color:#9ca3af;margin:12px 0 0}

/* ── TRIAL GATE ───────────────────────────────── */
.ctst-lock{text-align:center;padding:40px 24px;background:linear-gradient(135deg,#f8f9ff,#f0ebff);border-radius:16px;border:2px solid #e5e7f0}
.ctst-lock-icon{font-size:52px;margin-bottom:12px;line-height:1}
.ctst-trial-notice{background:#fef3c7;border:1px solid #fcd34d;border-radius:8px;padding:10px 16px;font-size:13px;margin-bottom:12px;color:#92400e}
.ctst-trial-btn{background:linear-gradient(135deg,#22c55e,#16a34a);margin-bottom:12px;font-size:15px;padding:14px 28px;border-radius:10px;box-shadow:0 4px 12px rgba(34,197,94,.3)}
.ctst-trial-btn:hover{opacity:.95;transform:translateY(-1px)}
.ctst-or{color:#9ca3af;font-size:13px;margin:12px 0;position:relative}
.ctst-or::before,.ctst-or::after{content:'────';color:#e5e7f0;font-size:10px}
.ctst-blurred-preview{filter:blur(5px);opacity:.35;pointer-events:none;margin-top:20px;border-radius:12px;overflow:hidden;max-height:220px;user-select:none}

/* ── USAGE WARNING ────────────────────────────── */
.ctst-usage-warn{background:#fef3c7;border:1px solid #fcd34d;border-radius:8px;padding:10px 16px;font-size:13px;margin-bottom:16px;color:#92400e;display:flex;align-items:center;gap:8px}

/* ── SHARE ROW ────────────────────────────────── */
.ctst-share-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0;padding:14px 18px;background:#f8f9ff;border-radius:12px}
.ctst-share-label{font-size:13px;font-weight:600;color:#6b7280;flex-shrink:0}
.ctst-share-buttons{display:flex;gap:8px;flex-wrap:wrap}
.ctst-share-btn{padding:7px 14px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;border:none;transition:.15s;line-height:1;display:inline-flex;align-items:center;gap:6px}
.ctst-share-btn:hover{opacity:.9;transform:translateY(-1px)}
.ctst-wa{background:#25d366;color:#fff}
.ctst-tw{background:#000;color:#fff}
.ctst-li{background:#0077b5;color:#fff}
.ctst-copy{background:#f3f0ff;color:#6c47ff}

/* ── PWA INSTALL BANNER ───────────────────────── */
#ctg-pwa-bar{animation:ctgSlideUp .4s ease}

/* ── COUNTRY TARGETING PAGES ──────────────────── */
.ctst-country-badge{display:inline-flex;align-items:center;gap:6px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:6px 14px;font-size:13px;color:#0369a1;margin-bottom:16px;font-weight:600}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width:768px) {
  .ctst-header{grid-template-columns:auto 1fr;grid-template-rows:auto auto}
  .ctst-lang-pos{grid-column:1/-1;justify-self:start}
  .ctst-header-icon{font-size:40px}
  .ctst-header h1{font-size:22px}
  .ctg-proof-inner{gap:14px}
  .ctg-proof-num{font-size:20px}
  .ctg-sticky-text{font-size:13px;text-align:center}
  .ctg-promo-box{padding:28px 20px}
  .ctg-mini-card{flex:0 0 115px;padding:12px 8px}
  .ctst-share-row{flex-direction:column;align-items:flex-start}
}
@media (max-width:480px) {
  .ctg-sticky-inner{padding:8px 12px}
  .ctg-sticky-text{display:none}
  .ctg-sticky-btn{flex:1}
  .ctg-proof-divider{display:none}
}
[dir="rtl"] .ctst-breadcrumb li:not(:last-child)::after{content:'‹'}
[dir="rtl"] .ctst-share-row{flex-direction:row-reverse}
/* ── Coswaa Tools Pro — Hero Slider Styles ── */
/* Single canonical source. The hero-slider.php template uses .ctph-* classes (inline).
   This file provides the same styles under .ctp-* for any external/Elementor usage. */

.ctp-hero {
  background: linear-gradient(135deg, #0f0b2e 0%, #1a0f5e 40%, #0e1e5f 100%);
  padding: 64px 20px 56px;
  text-align: center;
  overflow: hidden;
  position: relative;
  font-family: 'Segoe UI', system-ui, sans-serif;
  box-sizing: border-box;
}
.ctp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(108,71,255,.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0,198,255,.18) 0%, transparent 60%);
  pointer-events: none;
}
.ctp-hero-badge {
  display: inline-block;
  background: rgba(108,71,255,.25);
  border: 1px solid rgba(108,71,255,.55);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
  position: relative;
}
.ctp-hero h1 {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
  position: relative;
}
.ctp-hero h1 span {
  background: linear-gradient(90deg, #6c47ff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ctp-hero > p {
  color: rgba(255,255,255,.65);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
  position: relative;
}
.ctp-hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 52px;
  position: relative;
}
.ctp-hero-btn-primary {
  background: #6c47ff;
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 32px rgba(108,71,255,.4);
  display: inline-block;
}
.ctp-hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(108,71,255,.55); }
.ctp-hero-btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .15s;
  display: inline-block;
}
.ctp-hero-btn-ghost:hover { background: rgba(255,255,255,.14); }

/* Stats */
.ctp-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
  position: relative;
}
.ctp-stat-hero { color: rgba(255,255,255,.9); text-align: center; }
.ctp-stat-hero strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, #a78bfa, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ctp-stat-hero span {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── Scrolling Strip ── */
.ctp-strip-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.ctp-strip-outer::before,
.ctp-strip-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ctp-strip-outer::before { left: 0; background: linear-gradient(90deg, #0f0b2e, transparent); }
.ctp-strip-outer::after  { right: 0; background: linear-gradient(270deg, #0f0b2e, transparent); }
.ctp-strip {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: ctp-scroll 70s linear infinite;
  padding: 8px 0;
}
.ctp-strip:hover { animation-play-state: paused; }
.ctp-strip.ctp-strip-2 {
  animation: ctp-scroll-rev 80s linear infinite;
  margin-top: 14px;
}
.ctp-strip.ctp-strip-2:hover { animation-play-state: paused; }
@keyframes ctp-scroll     { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes ctp-scroll-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── Tool Cards ── */
.ctp-strip-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px 20px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .2s, border-color .2s, transform .2s;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.ctp-strip-card:hover {
  background: rgba(108,71,255,.22);
  border-color: rgba(108,71,255,.5);
  transform: translateY(-3px) scale(1.03);
}
.ctp-strip-icon  { font-size: 22px; line-height: 1; }
.ctp-strip-info  { display: flex; flex-direction: column; }
.ctp-strip-name  { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.ctp-strip-cat   { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.ctp-try {
  font-size: 11px; color: #a78bfa; font-weight: 600; margin-left: 4px;
  opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
}
.ctp-strip-card:hover .ctp-try { opacity: 1; transform: translateX(0); }

/* Mobile */
@media (max-width: 640px) {
  .ctp-hero { padding: 40px 16px 36px; }
  .ctp-strip { animation-duration: 50s; }
  .ctp-strip.ctp-strip-2 { animation-duration: 58s; }
  .ctp-strip-card { padding: 10px 14px; }
  .ctp-strip-name { font-size: 12px; }
  .ctp-try { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   PRO GATING & UPGRADE MODAL — v11.0
═══════════════════════════════════════════════════════════════════ */

/* PRO badge on tool cards */
.ctp-badge-pro {
    position:absolute; top:10px; right:10px;
    background:var(--ctp-pro); color:#fff;
    font-size:10px; font-weight:700; padding:2px 7px;
    border-radius:99px; text-transform:uppercase; letter-spacing:.5px;
}
.ctp-card.ctp-pro-card { border-color:rgba(245,158,11,.35); }
.ctp-card.ctp-pro-card:hover { border-color:var(--ctp-pro); }

/* PRO gate banner inside tool box */
.ctp-pro-gate-banner {
    background: linear-gradient(135deg,#6c47ff,#a855f7);
    color:#fff; padding:12px 16px; border-radius:12px;
    margin-bottom:16px; display:flex; align-items:center;
    justify-content:space-between; gap:12px;
}
.ctp-pro-gate-banner button {
    background:#fff; color:#6c47ff; font-weight:700;
    padding:8px 18px; border-radius:8px; border:none; cursor:pointer;
    font-size:13px; white-space:nowrap; transition:.15s;
}
.ctp-pro-gate-banner button:hover { background:#f0ebff; }

/* Upgrade modal overlay */
#ctp-upgrade-modal {
    position:fixed; inset:0;
    background:rgba(0,0,0,.65); z-index:99999;
    display:flex; align-items:center; justify-content:center; padding:16px;
}
.ctp-modal-box {
    background:#fff; border-radius:20px;
    max-width:520px; width:100%; padding:32px;
    position:relative;
    box-shadow:0 24px 80px rgba(108,71,255,.25);
    animation: ctpModalIn .22s ease;
}
@keyframes ctpModalIn { from { opacity:0; transform:scale(.96) translateY(8px); } to { opacity:1; transform:none; } }

/* Pricing plan cards in modal */
.ctpr-plan-card {
    border:2px solid var(--ctp-border); border-radius:12px;
    padding:20px 16px; text-align:center; transition:.2s;
}
.ctpr-plan-card.active, .ctpr-plan-card:hover { border-color:var(--ctp-primary); }
.ctpr-plan-price { font-size:32px; font-weight:800; color:var(--ctp-text); margin:8px 0; }
.ctpr-plan-period { font-size:13px; color:var(--ctp-muted); }

/* Pricing page */
.ctpr-wrap { max-width:960px; margin:0 auto; padding:32px 16px; }
.ctpr-hero { text-align:center; padding:48px 16px 32px; position:relative; overflow:hidden; }
.ctpr-hero-glow {
    position:absolute; width:600px; height:600px;
    background:radial-gradient(circle,rgba(108,71,255,.15) 0%,transparent 70%);
    top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none;
}
.ctpr-h1 { font-size:clamp(28px,5vw,48px); font-weight:900; color:var(--ctp-text); margin:0 0 12px; }
.ctpr-grad { background:linear-gradient(135deg,#6c47ff,#a855f7); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.ctpr-sub { font-size:17px; color:var(--ctp-muted); max-width:600px; margin:0 auto; line-height:1.6; }
.ctpr-eyebrow { font-size:13px; font-weight:700; color:var(--ctp-primary); letter-spacing:1px; text-transform:uppercase; display:block; margin-bottom:12px; }

/* Billing toggle */
.ctpr-toggle-wrap { display:flex; align-items:center; justify-content:center; gap:12px; margin:24px 0; }
.ctpr-toggle { position:relative; display:inline-block; width:52px; height:28px; }
.ctpr-toggle input { opacity:0; width:0; height:0; }
.ctpr-toggle-slider {
    position:absolute; inset:0; background:#e5e7eb;
    border-radius:28px; cursor:pointer; transition:.2s;
}
.ctpr-toggle input:checked + .ctpr-toggle-slider { background:var(--ctp-primary); }
.ctpr-toggle-slider:before {
    content:''; position:absolute; width:22px; height:22px;
    background:#fff; border-radius:50%; left:3px; top:3px;
    transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.ctpr-toggle input:checked + .ctpr-toggle-slider:before { transform:translateX(24px); }

/* Plan comparison grid */
.ctpr-plans { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:32px 0; }
@media(max-width:600px){ .ctpr-plans { grid-template-columns:1fr; } }
.ctpr-plan {
    border:2px solid var(--ctp-border); border-radius:16px;
    padding:28px 24px; position:relative; transition:.2s;
}
.ctpr-plan--pro { border-color:var(--ctp-primary); box-shadow:0 8px 32px rgba(108,71,255,.15); }
.ctpr-plan-name { font-size:18px; font-weight:700; color:var(--ctp-text); margin:0 0 8px; }
.ctpr-plan-price { font-size:40px; font-weight:900; color:var(--ctp-text); margin:12px 0 4px; }
.ctpr-plan-price sup { font-size:20px; vertical-align:top; margin-top:10px; }
.ctpr-plan-period { font-size:14px; color:var(--ctp-muted); margin-bottom:16px; }
.ctpr-plan-features { list-style:none; padding:0; margin:0 0 20px; }
.ctpr-plan-features li { padding:6px 0; font-size:14px; color:var(--ctp-text); }
.ctpr-plan-features li::before { content:'✅ '; }
.ctpr-plan-features li.no::before { content:'❌ '; }
.ctpr-btn {
    display:block; width:100%; padding:14px;
    background:var(--ctp-primary); color:#fff;
    border:none; border-radius:10px; font-size:15px;
    font-weight:700; cursor:pointer; text-align:center;
    text-decoration:none; transition:.15s;
}
.ctpr-btn:hover { background:#5a38e8; color:#fff; transform:translateY(-1px); }
.ctpr-btn--outline {
    background:transparent; color:var(--ctp-text);
    border:2px solid var(--ctp-border);
}
.ctpr-btn--outline:hover { border-color:var(--ctp-primary); color:var(--ctp-primary); background:transparent; transform:none; }
.ctpr-best-badge {
    position:absolute; top:-12px; left:50%; transform:translateX(-50%);
    background:var(--ctp-primary); color:#fff; font-size:11px;
    font-weight:700; padding:4px 14px; border-radius:99px; white-space:nowrap;
}
.ctpr-already-pro {
    background:linear-gradient(135deg,#f0fdf4,#dcfce7);
    border:2px solid #86efac; border-radius:16px; padding:24px;
    display:flex; align-items:center; gap:16px; margin:24px 0;
}
.ctpr-ap-icon { font-size:40px; }

/* Dashboard styles */
.ctp-dashboard { font-family:'Segoe UI',system-ui,sans-serif; max-width:900px; margin:0 auto; padding:24px 16px; }
.ctp-dashboard-header {
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:16px;
    background:linear-gradient(135deg,#6c47ff,#a855f7);
    color:#fff; padding:24px 28px; border-radius:16px; margin-bottom:24px;
}
.ctp-plan-badge {
    background:rgba(255,255,255,.2); padding:8px 16px;
    border-radius:99px; font-size:14px; font-weight:700; color:#fff;
}
.ctp-dash-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:16px; margin-bottom:24px; }
.ctp-dash-card {
    background:#fff; border:2px solid var(--ctp-border);
    border-radius:12px; padding:20px 16px; text-align:center;
}
.ctp-dash-card .val { font-size:28px; font-weight:800; color:var(--ctp-primary); margin-bottom:4px; }
.ctp-dash-card div:last-child { font-size:13px; color:var(--ctp-muted); }
.ctp-dash-tabs { display:flex; gap:8px; margin-bottom:20px; border-bottom:2px solid var(--ctp-border); }
.ctp-dash-tab {
    padding:10px 18px; border:none; background:none;
    font-size:14px; font-weight:600; color:var(--ctp-muted);
    cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:.15s;
}
.ctp-dash-tab.active { color:var(--ctp-primary); border-bottom-color:var(--ctp-primary); }

/* Reviews */
.ctp-reviews-wrap { margin-top:32px; }
.ctp-review-card {
    background:#fff; border:1px solid var(--ctp-border);
    border-radius:12px; padding:16px; margin-bottom:12px;
}
.ctp-review-header { display:flex; gap:12px; margin-bottom:8px; }
.ctp-review-avatar {
    width:40px; height:40px; border-radius:50%;
    background:var(--ctp-primary); color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:16px; flex-shrink:0;
}

/* AI panel */
.ctp-ai-panel {
    background:#f8f9ff; border:1px solid var(--ctp-border);
    border-radius:12px; padding:16px; margin-top:20px;
}
.ctp-ai-reply { font-size:14px; line-height:1.7; color:var(--ctp-text); }

/* PWA banner */
#ctp-pwa-install-banner {
    display:none; position:fixed; bottom:20px; left:50%;
    transform:translateX(-50%); z-index:9999;
    background:#1e1b4b; color:#fff; padding:12px 20px;
    border-radius:12px; box-shadow:0 8px 32px rgba(0,0,0,.3);
    display:flex; align-items:center; gap:12px; font-size:14px;
}

/* Responsive */
@media(max-width:768px){
    .ctp-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
    .ctp-dashboard-header { flex-direction:column; text-align:center; }
    .ctpr-plans { grid-template-columns:1fr; }
    .ctp-modal-box { padding:24px 20px; }
}
