:root{
  --devs-primary:#1f5eff;
  --devs-primary-soft:#e4ecff;
  --devs-border:#d0d5dd;
  --devs-text:#111827;
  --devs-muted:#6b7280;
  --devs-bg:#f8fafc;
}

.devsniper-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.32);
  z-index:9998;
  backdrop-filter:blur(3px);
}

.devsniper-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  z-index:9999;
  padding-top:8vh;
  box-sizing:border-box;
}

.devsniper-modal-inner{
  background:#ffffff;
  max-width:780px;
  width:100%;
  box-shadow:0 22px 60px rgba(15,23,42,.22);
  border-radius:16px;
  overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  border:1px solid rgba(148,163,184,.35);
}

.devsniper-modal-header{
  display:flex;
  align-items:center;
  padding:10px 14px;
  border-bottom:1px solid var(--devs-border);
  gap:10px;
  background:linear-gradient(90deg,#ffffff, var(--devs-primary-soft));
}

.devsniper-input{
  flex:1;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--devs-border);
  font-size:14px;
  background:#ffffff;
}

.devsniper-input:focus{
  outline:none;
  border-color:var(--devs-primary);
  box-shadow:0 0 0 1px var(--devs-primary-soft);
}

.devsniper-close{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.12);
  border:none;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  color:var(--devs-muted);
  transition: all .2s ease;
}
.devsniper-close:hover {
    background: rgba(0,0,0,.2);
    color: var(--devs-text);
}

/* Keep header controls ordered left-to-right on RTL pages */
html[dir="rtl"] .devsniper-modal-header{
  direction:ltr;
}

html[dir="rtl"] .devsniper-close{
  order:-1;
  margin-inline-start:0;
  margin-inline-end:0;
}

html[dir="rtl"] .devsniper-favorites-toggle{
  order:1;
}

html[dir="rtl"] .devsniper-modal-header .devsniper-input{
  direction:rtl;
  text-align:right;
}

.devsniper-results{
  max-height:440px;
  overflow:auto;
  padding:6px 0 10px;
  background:var(--devs-bg);
}

.devsniper-results-empty{
  padding:22px;
  text-align:center;
  color:var(--devs-muted);
  font-size:13px;
}

.devsniper-section{
  padding:4px 0;
}

.devsniper-section-title{
  padding:4px 18px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--devs-muted);
}

.devsniper-list{
  list-style:none;
  margin:0;
  padding:0;
}

.devsniper-item{
  padding:6px 14px;
  cursor:pointer;
  transition:background .15s ease, transform .05s ease;
}

.devsniper-item-inner{
  display:flex;
  align-items:center;
  gap:10px;
}

.devsniper-item-thumb{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:8px;
  overflow:hidden;
  background:#e5e7eb;
  box-shadow:0 1px 4px rgba(15,23,42,.18);
  display:flex;
  align-items:center;
  justify-content:center;
}

.devsniper-item-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.devsniper-item-thumb-fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:600;
  color:#111827;
  background:linear-gradient(135deg,#e5e7eb,#d1d5db);
}

.devsniper-item-thumb-icon{
  background:#f3f4f6;
}

.devsniper-item-thumb-icon span{
  font-size:18px;
  line-height:1;
  color:#111827;
}

.devsniper-item:nth-child(odd){
  background:rgba(255,255,255,.55);
}

.devsniper-item:hover,
.devsniper-item-active{
  background:var(--devs-primary-soft);
  transform:translateY(-1px);
}

.devsniper-item-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.devsniper-item-title{
  font-size:13px;
  font-weight:500;
  color:var(--devs-text);
}

.devsniper-item-meta{
  font-size:11px;
  color:var(--devs-muted);
}

/* Matching word highlight */
.devsniper-mark{
  background:rgba(31,94,255,.14);
  padding:0 1px;
  border-radius:3px;
}

/* RTL - text align only, without changing image/text order */
html[dir=\"rtl\"] .devsniper-modal-inner{
  direction: rtl;
}

html[dir=\"rtl\"] .devsniper-item,
html[dir=\"rtl\"] .devsniper-section-title{
  text-align:right;
}

/* ===== Settings screen / tabs ===== */

.devsniper-settings-wrap{
  max-width:900px;
}

.devsniper-settings-tabs{
  margin-top:24px;
}

.devsniper-settings-tabs-nav{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-bottom:12px;
}

.devsniper-tab-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  color:#4b5563;
  transition:all .18s ease;
}

.devsniper-tab-link:hover{
  background:#f3f4f6;
  border-color:#d1d5db;
}

.devsniper-tab-link.is-active{
  background:#111827;
  border-color:#111827;
  color:#f9fafb;
  box-shadow:0 6px 20px rgba(15,23,42,.25);
}

.devsniper-tab-link-premium{
  background:linear-gradient(90deg,#f59e0b,#f97316);
  border-color:transparent;
  color:#111827;
}

.devsniper-tab-link-premium.is-active{
  background:linear-gradient(90deg,#fbbf24,#f97316);
  color:#111827;
  box-shadow:0 6px 20px rgba(252,211,77,.45);
}

.devsniper-tab-lock{
  font-size:13px;
}


.devsniper-settings-tabs-panels{
  background:#ffffff;
  border-radius:16px;
  padding:22px 24px;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 35px rgba(15,23,42,.08);
}

.devsniper-tab-panel{
  display:none;
}

.devsniper-tab-panel.is-active{
  display:block;
}

.devsniper-howto-list{
  list-style:disc;
  margin:12px 0 0 20px;
  font-size:13px;
  color:#6b7280;
}

.devsniper-settings-footer{
  margin-top: 30px;
  color: #555;
  font-size: 13px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.devsniper-premium-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-inline-start:8px;
  padding:2px 10px;
  font-size:10px;
  letter-spacing:.04em;
  text-transform:uppercase;
  border-radius:999px;
  background:linear-gradient(90deg,#f59e0b,#fbbf24);
  color:#111827;
}

.devsniper-premium-intro,
.devsniper-premium-footer{
  font-size:13px;
  color:#6b7280;
  max-width:560px;
}

.devsniper-premium-compare{
  margin-top:16px;
  display:block;
  width:100%;
  overflow-x:auto;
  direction:ltr;
  padding:12px;
  border-radius:16px;
  background:transparent;
  box-shadow:0 16px 30px rgba(15, 23, 42, .08);
}

.devsniper-premium-compare-table{
  width:100%;
  max-width:100%;
  min-width:640px;
  border-collapse:separate;
  border-spacing:0;
  border:2px solid #f5b301;
  border-radius:14px;
  background:#fffdf7;
  box-shadow:0 14px 30px rgba(245, 158, 11, .18), 0 10px 24px rgba(15, 23, 42, .08);
  direction:ltr;
}

.devsniper-premium-compare-table th,
.devsniper-premium-compare-table td{
  padding:12px 14px;
  border-bottom:1px solid rgba(226, 232, 240, .9);
  font-size:13px;
  text-align:left;
}

.devsniper-premium-compare-table thead th{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#0f172a;
  background:linear-gradient(90deg, rgba(255, 248, 231, .9), rgba(254, 240, 198, .9));
}

.devsniper-premium-compare-table thead th:first-child{
  text-align:start;
}

.devsniper-premium-compare-table tbody th{
  text-align:start;
  font-weight:600;
  color:#111827;
}

.devsniper-premium-compare-table tbody td{
  text-align:center;
}

.devsniper-premium-compare-table .devsniper-compare-free,
.devsniper-premium-compare-table .devsniper-compare-pro{
  text-align:center;
}

.devsniper-premium-compare-table tbody tr:last-child th,
.devsniper-premium-compare-table tbody tr:last-child td{
  border-bottom:none;
}

.devsniper-premium-compare-table tbody tr:nth-child(even){
  background:rgba(248, 250, 252, .6);
}

.devsniper-premium-compare-table tbody tr:hover{
  background:rgba(251, 191, 36, .08);
}

.devsniper-premium-compare-table .devsniper-compare-highlight th,
.devsniper-premium-compare-table .devsniper-compare-highlight td{
  background:linear-gradient(90deg, rgba(14, 165, 233, .06), rgba(250, 204, 21, .14));
  border-top:1px solid rgba(245, 158, 11, .4);
  border-bottom:1px solid rgba(245, 158, 11, .4);
}

.devsniper-premium-compare-table .devsniper-compare-highlight th{
  font-weight:700;
  color:#0f172a;
  position:relative;
  padding-inline-start:22px;
}

.devsniper-premium-compare-table .devsniper-compare-highlight th::before{
  content:"";
  position:absolute;
  inset-inline-start:8px;
  top:10px;
  bottom:10px;
  width:4px;
  border-radius:999px;
  background:linear-gradient(180deg, #f59e0b, #fbbf24);
  box-shadow:0 0 12px rgba(245, 158, 11, .45);
}

.devsniper-premium-compare-table .devsniper-compare-pro{
  background:rgba(255, 247, 237, .9);
}

.devsniper-premium-compare-table thead .devsniper-compare-pro{
  background:linear-gradient(90deg, rgba(245, 158, 11, .3), rgba(251, 191, 36, .35));
  color:#7c2d12;
}

.devsniper-compare-check,
.devsniper-compare-cross{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  box-shadow:0 10px 18px rgba(15, 23, 42, .14);
  text-transform:uppercase;
}

.devsniper-compare-check{
  color:#fff;
  background:linear-gradient(135deg, #22c55e, #16a34a);
  border:1px solid rgba(16, 185, 129, .6);
}

.devsniper-compare-cross{
  color:#fff;
  background:linear-gradient(135deg, #ef4444, #dc2626);
  border:1px solid rgba(239, 68, 68, .7);
}

.devsniper-premium-cta-row{
  margin:16px 0 8px;
}

.devsniper-premium-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 20px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  color:#111827;
  background:linear-gradient(135deg, #fbbf24, #f59e0b);
  border:1px solid rgba(245, 158, 11, .7);
  box-shadow:0 12px 20px rgba(245, 158, 11, .25), 0 6px 16px rgba(15, 23, 42, .12);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.devsniper-premium-cta:hover{
  transform:translateY(-1px);
  filter:brightness(1.02);
  box-shadow:0 16px 26px rgba(245, 158, 11, .3), 0 10px 18px rgba(15, 23, 42, .14);
}

.devsniper-support-intro{
  font-size:13px;
  color:#6b7280;
  max-width:720px;
  text-align:left;
  direction:ltr;
}

.devsniper-support-card{
  margin-top:16px;
  padding:16px;
  border-radius:18px;
  border:2px solid rgba(245, 158, 11, .35);
  background:linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow:0 18px 32px rgba(15, 23, 42, .12);
  max-width:700px;
  width:100%;
  margin-inline:auto;
  position:relative;
  overflow:hidden;
  text-align:left;
  direction:ltr;
}

.devsniper-support-card::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:radial-gradient(circle at top right, rgba(245, 158, 11, .18), rgba(255, 255, 255, 0) 55%);
  pointer-events:none;
}

.devsniper-support-card-header{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:6px;
  margin-bottom:12px;
  position:relative;
  z-index:1;
}

.devsniper-support-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:linear-gradient(90deg, rgba(245, 158, 11, .9), rgba(251, 191, 36, .9));
  color:#111827;
  font-weight:700;
}

.devsniper-support-note{
  margin:0;
  font-size:11px;
  color:#6b7280;
}

.devsniper-support-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  position:relative;
  z-index:1;
}

.devsniper-support-field{
  display:flex;
  flex-direction:column;
}

.devsniper-support-field label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#64748b;
  margin-bottom:4px;
  font-weight:600;
  text-align:left;
}

.devsniper-support-field input,
.devsniper-support-field textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #e2e8f0;
  background:#fffdf7;
  font-size:13px;
  min-height:40px;
  box-shadow:inset 0 1px 2px rgba(15, 23, 42, .05);
  transition:border-color .15s ease, box-shadow .15s ease;
}

.devsniper-support-field textarea{
  min-height:120px;
}

.devsniper-support-field input:focus,
.devsniper-support-field textarea:focus{
  outline:none;
  border-color:#f59e0b;
  box-shadow:0 0 0 3px rgba(245, 158, 11, .18), 0 8px 18px rgba(245, 158, 11, .15);
}

.devsniper-support-field-full{
  grid-column:1 / -1;
}

.devsniper-support-actions{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:12px;
  position:relative;
  z-index:1;
}

.devsniper-support-submit{
  padding:9px 16px;
  border-radius:10px;
  font-weight:700;
  border:1px solid rgba(245, 158, 11, .6);
  background:linear-gradient(135deg, #f59e0b, #fbbf24);
  color:#111827;
  box-shadow:0 10px 18px rgba(245, 158, 11, .25), 0 6px 14px rgba(15, 23, 42, .12);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.devsniper-support-submit:hover{
  transform:translateY(-1px);
  filter:brightness(1.02);
  box-shadow:0 16px 24px rgba(245, 158, 11, .3), 0 10px 18px rgba(15, 23, 42, .14);
}

@media (max-width: 782px){
  .devsniper-premium-compare-table{
    min-width:520px;
  }

  .devsniper-support-grid{
    grid-template-columns:1fr;
  }
}

html[dir=\"rtl\"] .devsniper-settings-tabs-nav{
  justify-content:flex-start;
}

html[dir=\"rtl\"] .devsniper-premium-badge{
  margin-inline-start:0;
  margin-inline-end:8px;
}

/* ===== DevSniper favourites (saved searches) ===== */

.devsniper-favorites-toggle{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  padding:4px 8px;
  border-radius:999px;
  color:#9ca3af;
  transition:background .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;
}

.devsniper-favorites-toggle:hover{
  transform:scale(1.05);
  color:#6b7280;
}

.devsniper-favorites-toggle.is-active{
  background:rgba(251, 191, 36, .15);
  color:#f59e0b;
  box-shadow:0 0 12px rgba(251, 191, 36, .55);
}

.devsniper-item{
  position:relative;
  padding-inline-start:40px;
}

.devsniper-item-fav{
  position:absolute;
  inset-inline-start:12px;
  top:50%;
  transform:translateY(-50%);
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:14px;
  line-height:1;
  opacity:.35;
  transition:opacity .15s ease, transform .12s ease, color .15s ease, text-shadow .15s ease;
}

.devsniper-item-fav:hover{
  opacity:.8;
  transform:translateY(-50%) scale(1.08);
}

.devsniper-item-fav.is-active{
  opacity:1;
  color:#f59e0b;
  text-shadow:0 0 8px rgba(251,191,36,.7);
}

html[dir=\"rtl\"] .devsniper-item{
  padding-inline-start:0;
  padding-inline-end:40px;
}

html[dir=\"rtl\"] .devsniper-item-fav{
  inset-inline-start:auto;
  inset-inline-end:12px;
}
