/*
Theme Name: JSD Gaming
Theme URI: https://jsdiskless.com
Author: JS Diskless
Author URI: https://jsdiskless.com
Description: ธีมเกมมิ่งโทนดำ-แดง-ม่วง เรืองแสงนีออน สำหรับโชว์ผลงานติดตั้งร้านเกม พร้อมระบบผลงาน (Portfolio) นับยอดวิว รองรับ WooCommerce ขายอุปกรณ์คอม ปรับแต่งหน้าหลักได้อิสระผ่าน Customizer / Elementor
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jsd-gaming
Tags: dark, e-commerce, portfolio, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =============================================
   JSD GAMING — Neon Gaming Theme
   ดำ #0a0a12 | แดง #ff2d40 | ม่วง #a855f7
   ============================================= */

:root {
  --jsd-bg: #07070d;
  --jsd-bg-2: #0d0d17;
  --jsd-panel: #12121f;
  --jsd-panel-2: #191927;
  --jsd-line: rgba(168, 85, 247, .22);
  --jsd-red: #ff2d40;
  --jsd-purple: #a855f7;
  --jsd-pink: #ff2da0;
  --jsd-text: #e8e6f2;
  --jsd-muted: #9b97b5;
  --jsd-grad: linear-gradient(90deg, var(--jsd-red), var(--jsd-pink) 50%, var(--jsd-purple));
  --jsd-glow-red: 0 0 12px rgba(255, 45, 64, .55), 0 0 32px rgba(255, 45, 64, .25);
  --jsd-glow-purple: 0 0 12px rgba(168, 85, 247, .55), 0 0 32px rgba(168, 85, 247, .25);
  --jsd-radius: 14px;
  --jsd-font-head: 'Orbitron', 'Kanit', sans-serif;
  --jsd-font-body: 'Kanit', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--jsd-bg);
  color: var(--jsd-text);
  font-family: var(--jsd-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* พื้นหลังกริดนีออนจาง ๆ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(255, 45, 64, .10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(168, 85, 247, .12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(168, 85, 247, .07), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(168, 85, 247, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; }

a { color: var(--jsd-purple); text-decoration: none; transition: color .2s, text-shadow .2s; }
a:hover { color: var(--jsd-red); text-shadow: 0 0 8px rgba(255, 45, 64, .6); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--jsd-font-head);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 .6em;
}

.jsd-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

::selection { background: var(--jsd-purple); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--jsd-bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--jsd-red), var(--jsd-purple)); border-radius: 6px; }

/* =============== ปุ่ม =============== */
.jsd-btn, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.wp-block-button__link, button[type="submit"], input[type="submit"] {
  display: inline-block;
  padding: 12px 30px;
  border: 0;
  border-radius: 10px;
  background: var(--jsd-grad);
  background-size: 200% 100%;
  color: #fff !important;
  font-family: var(--jsd-font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-position .35s, box-shadow .35s, transform .2s;
  box-shadow: 0 0 14px rgba(255, 45, 64, .35);
  text-shadow: none;
}
.jsd-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background-position: 100% 0;
  box-shadow: 0 0 18px rgba(168, 85, 247, .55), 0 0 40px rgba(168, 85, 247, .25);
  transform: translateY(-2px);
  color: #fff;
}
.jsd-btn--ghost {
  background: transparent;
  border: 1px solid var(--jsd-purple);
  box-shadow: inset 0 0 12px rgba(168, 85, 247, .15), 0 0 10px rgba(168, 85, 247, .25);
  color: var(--jsd-purple) !important;
}
.jsd-btn--ghost:hover { color: #fff !important; background: rgba(168, 85, 247, .18); }

/* =============== Header =============== */
.jsd-topbar {
  background: rgba(7, 7, 13, .9);
  border-bottom: 1px solid var(--jsd-line);
  font-size: 13.5px;
  color: var(--jsd-muted);
}
.jsd-topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; gap: 12px; flex-wrap: wrap; }
.jsd-topbar a { color: var(--jsd-muted); }
.jsd-topbar a:hover { color: var(--jsd-red); }

.jsd-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 10, 18, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--jsd-line);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.jsd-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; }

.jsd-logo { display: flex; align-items: center; gap: 12px; }
.jsd-logo img { max-height: 52px; width: auto; }
.jsd-logo__text {
  font-family: var(--jsd-font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .06em;
  background: var(--jsd-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 45, 64, .45));
}
.jsd-logo__tag { display: block; font-family: var(--jsd-font-body); font-size: 12px; font-weight: 400; letter-spacing: .18em; color: var(--jsd-muted); -webkit-text-fill-color: var(--jsd-muted); }

.jsd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.jsd-nav li { position: relative; }
.jsd-nav a {
  display: block;
  padding: 10px 15px;
  color: var(--jsd-text);
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  position: relative;
}
.jsd-nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: var(--jsd-grad);
  transform: scaleX(0);
  transition: transform .25s;
  border-radius: 2px;
  box-shadow: var(--jsd-glow-red);
}
.jsd-nav a:hover::after, .jsd-nav .current-menu-item > a::after { transform: scaleX(1); }
.jsd-nav a:hover { color: #fff; text-shadow: 0 0 10px rgba(255, 45, 64, .8); }

/* Dropdown */
.jsd-nav ul ul {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--jsd-panel);
  border: 1px solid var(--jsd-line);
  border-radius: 10px;
  padding: 8px;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 20px rgba(168, 85, 247, .15);
}
.jsd-nav li:hover > ul { display: flex; }
.jsd-nav ul ul a::after { display: none; }
.jsd-nav ul ul a:hover { background: rgba(168, 85, 247, .12); }

.jsd-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--jsd-line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--jsd-text);
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .jsd-nav-toggle { display: block; }
  .jsd-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,18,.98); border-bottom: 1px solid var(--jsd-line); padding: 12px 20px 20px; }
  .jsd-nav.is-open { display: block; }
  .jsd-nav ul { flex-direction: column; }
  .jsd-nav ul ul { position: static; display: flex; border: 0; box-shadow: none; padding-left: 18px; }
}

/* =============== Hero =============== */
.jsd-hero {
  position: relative;
  padding: 110px 20px 90px;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.jsd-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,13,.75), rgba(7,7,13,.92));
}
.jsd-hero__inner { position: relative; max-width: 900px; margin: 0 auto; }
.jsd-hero__kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--jsd-purple);
  border: 1px solid var(--jsd-line);
  border-radius: 999px;
  padding: 7px 22px;
  margin-bottom: 26px;
  background: rgba(168, 85, 247, .08);
  box-shadow: inset 0 0 18px rgba(168, 85, 247, .12), 0 0 18px rgba(168, 85, 247, .18);
  animation: jsdPulse 3s ease-in-out infinite;
}
.jsd-hero__title {
  font-size: clamp(34px, 6vw, 62px);
  margin: 0 0 18px;
  background: var(--jsd-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 45, 64, .35)) drop-shadow(0 0 40px rgba(168, 85, 247, .3));
}
.jsd-hero__sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--jsd-muted); max-width: 720px; margin: 0 auto 36px; }
.jsd-hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@keyframes jsdPulse {
  0%, 100% { box-shadow: inset 0 0 18px rgba(168,85,247,.12), 0 0 14px rgba(168,85,247,.18); }
  50% { box-shadow: inset 0 0 18px rgba(168,85,247,.2), 0 0 30px rgba(255,45,64,.35); }
}

/* =============== Stats =============== */
.jsd-stats { padding: 40px 0 10px; }
.jsd-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.jsd-stat {
  background: linear-gradient(160deg, var(--jsd-panel), var(--jsd-panel-2));
  border: 1px solid var(--jsd-line);
  border-radius: var(--jsd-radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.jsd-stat:hover { transform: translateY(-4px); border-color: var(--jsd-red); box-shadow: var(--jsd-glow-red); }
.jsd-stat__num {
  font-family: var(--jsd-font-head);
  font-size: 40px;
  font-weight: 800;
  background: var(--jsd-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jsd-stat__label { color: var(--jsd-muted); font-size: 15px; margin-top: 4px; }

/* =============== Section หัวข้อ =============== */
.jsd-section { padding: 70px 0; }
.jsd-section--alt { background: rgba(18, 18, 31, .5); border-top: 1px solid var(--jsd-line); border-bottom: 1px solid var(--jsd-line); }
.jsd-section__head { text-align: center; margin-bottom: 44px; }
.jsd-section__title { font-size: clamp(26px, 4vw, 38px); position: relative; display: inline-block; }
.jsd-section__title::after {
  content: "";
  display: block;
  width: 70px; height: 3px;
  margin: 14px auto 0;
  background: var(--jsd-grad);
  border-radius: 3px;
  box-shadow: var(--jsd-glow-red);
}
.jsd-section__sub { color: var(--jsd-muted); max-width: 640px; margin: 14px auto 0; }

/* =============== การ์ดผลงาน =============== */
.jsd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }

.jsd-card {
  position: relative;
  background: linear-gradient(170deg, var(--jsd-panel), var(--jsd-panel-2));
  border: 1px solid var(--jsd-line);
  border-radius: var(--jsd-radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.jsd-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 0 0 1px var(--jsd-red), 0 0 22px rgba(255,45,64,.4), 0 0 55px rgba(168,85,247,.3), 0 18px 40px rgba(0,0,0,.55);
}
.jsd-card__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.jsd-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.jsd-card:hover .jsd-card__thumb img { transform: scale(1.07); }
.jsd-card__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7,7,13,.9));
}
.jsd-card__views {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: rgba(7,7,13,.75);
  border: 1px solid rgba(255,45,64,.5);
  color: #fff;
  font-size: 12.5px;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255,45,64,.4);
  backdrop-filter: blur(4px);
}
.jsd-card__views::before { content: "👁 "; }
.jsd-card__num {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--jsd-font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--jsd-grad);
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(168,85,247,.5);
}
.jsd-card__body { padding: 18px 18px 20px; }
.jsd-card__title { font-size: 17.5px; margin: 0 0 8px; font-family: var(--jsd-font-body); font-weight: 600; }
.jsd-card__title a { color: #fff; }
.jsd-card__title a:hover { color: var(--jsd-red); }
.jsd-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--jsd-muted); }
.jsd-chip {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid var(--jsd-line);
  background: rgba(168,85,247,.08);
  color: #c9b8ff;
}
.jsd-chip--red { border-color: rgba(255,45,64,.4); background: rgba(255,45,64,.08); color: #ff8f9a; }

.jsd-section__more { text-align: center; margin-top: 42px; }

/* =============== บริการ =============== */
.jsd-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.jsd-service {
  background: linear-gradient(170deg, var(--jsd-panel), var(--jsd-panel-2));
  border: 1px solid var(--jsd-line);
  border-radius: var(--jsd-radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.jsd-service:hover { transform: translateY(-5px); border-color: var(--jsd-purple); box-shadow: var(--jsd-glow-purple); }
.jsd-service__icon { font-size: 42px; line-height: 1; margin-bottom: 16px; filter: drop-shadow(0 0 12px rgba(255,45,64,.5)); }
.jsd-service__title { font-size: 19px; font-family: var(--jsd-font-body); font-weight: 600; }
.jsd-service__text { color: var(--jsd-muted); font-size: 14.5px; }
.jsd-service a.jsd-service__link { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--jsd-purple); }

/* =============== สินค้า (WooCommerce) =============== */
.woocommerce ul.products li.product, .jsd-product {
  background: linear-gradient(170deg, var(--jsd-panel), var(--jsd-panel-2));
  border: 1px solid var(--jsd-line);
  border-radius: var(--jsd-radius);
  padding: 0 0 18px !important;
  overflow: hidden;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: var(--jsd-purple);
  box-shadow: var(--jsd-glow-purple), 0 18px 40px rgba(0,0,0,.5);
}
.woocommerce ul.products li.product a img { margin: 0 0 14px; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--jsd-font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding: 0 14px .4em;
}
.woocommerce ul.products li.product .price {
  color: var(--jsd-red) !important;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,45,64,.5);
}
.woocommerce ul.products li.product .price del { color: var(--jsd-muted) !important; text-shadow: none; margin-right: 6px; }
.woocommerce ul.products li.product .button { margin-top: 10px; }
.woocommerce ul.products li.product .onsale, .woocommerce span.onsale {
  background: var(--jsd-grad);
  box-shadow: 0 0 14px rgba(255,45,64,.6);
  border-radius: 999px;
  padding: 2px 14px;
  min-height: 0;
  line-height: 1.9;
}
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--jsd-red); text-shadow: 0 0 10px rgba(255,45,64,.4); font-size: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--jsd-panel);
  border: 1px solid var(--jsd-line);
  border-radius: 8px 8px 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--jsd-text); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--jsd-panel-2); border-bottom-color: var(--jsd-panel-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--jsd-line); }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--jsd-panel);
  color: var(--jsd-text);
  border-top-color: var(--jsd-purple);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--jsd-purple); }
.woocommerce table.shop_table { border: 1px solid var(--jsd-line); border-radius: var(--jsd-radius); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--jsd-line) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .select2-container--default .select2-selection--single {
  background: var(--jsd-bg-2);
  border: 1px solid var(--jsd-line);
  color: var(--jsd-text);
  border-radius: 8px;
  padding: 10px 14px;
}
.woocommerce .quantity .qty { background: var(--jsd-bg-2); border: 1px solid var(--jsd-line); color: #fff; border-radius: 8px; padding: 9px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 4px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  background: var(--jsd-panel);
  border: 1px solid var(--jsd-line);
  color: var(--jsd-text);
  border-radius: 8px;
  padding: 8px 14px;
}
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--jsd-grad);
  color: #fff;
  box-shadow: var(--jsd-glow-red);
}

/* =============== เนื้อหา / บทความ =============== */
.jsd-main { padding: 60px 0; }
.jsd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.jsd-layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .jsd-layout { grid-template-columns: minmax(0, 1fr); } }

.jsd-article {
  background: linear-gradient(170deg, var(--jsd-panel), var(--jsd-panel-2));
  border: 1px solid var(--jsd-line);
  border-radius: var(--jsd-radius);
  padding: 36px;
}
@media (max-width: 600px) { .jsd-article { padding: 22px; } }
.jsd-article img { border-radius: 10px; }
.jsd-article h1.entry-title { font-size: clamp(26px, 4vw, 36px); }
.jsd-article .entry-meta { color: var(--jsd-muted); font-size: 14px; margin-bottom: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.jsd-article blockquote {
  border-left: 3px solid var(--jsd-red);
  background: rgba(255,45,64,.06);
  margin: 1.4em 0;
  padding: 14px 22px;
  border-radius: 0 10px 10px 0;
  box-shadow: inset 0 0 20px rgba(255,45,64,.05);
}
.jsd-article pre { background: #0a0a14; border: 1px solid var(--jsd-line); border-radius: 10px; padding: 18px; overflow: auto; }
.jsd-article table { border-collapse: collapse; width: 100%; }
.jsd-article td, .jsd-article th { border: 1px solid var(--jsd-line); padding: 10px 14px; }

.jsd-portfolio-detail { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 26px; }

/* Sidebar */
.jsd-sidebar .widget {
  background: linear-gradient(170deg, var(--jsd-panel), var(--jsd-panel-2));
  border: 1px solid var(--jsd-line);
  border-radius: var(--jsd-radius);
  padding: 24px;
  margin-bottom: 24px;
}
.jsd-sidebar .widget-title, .jsd-footer .widget-title {
  font-size: 17px;
  font-family: var(--jsd-font-body);
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--jsd-line);
  position: relative;
}
.jsd-sidebar .widget-title::after, .jsd-footer .widget-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 46px; height: 2px;
  background: var(--jsd-grad);
  box-shadow: var(--jsd-glow-red);
}
.jsd-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.jsd-sidebar .widget li { padding: 8px 0; border-bottom: 1px dashed rgba(168,85,247,.15); }
.jsd-sidebar .widget li:last-child { border-bottom: 0; }
.jsd-sidebar .widget a { color: var(--jsd-text); font-size: 14.5px; }
.jsd-sidebar .widget a:hover { color: var(--jsd-red); }

/* Pagination */
.jsd-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.jsd-pagination .page-numbers {
  display: inline-block;
  padding: 9px 17px;
  background: var(--jsd-panel);
  border: 1px solid var(--jsd-line);
  border-radius: 8px;
  color: var(--jsd-text);
  font-size: 14.5px;
}
.jsd-pagination .page-numbers.current, .jsd-pagination .page-numbers:hover {
  background: var(--jsd-grad);
  color: #fff;
  box-shadow: var(--jsd-glow-red);
  border-color: transparent;
}

/* Forms / comments / search */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"], textarea, select {
  background: var(--jsd-bg-2);
  border: 1px solid var(--jsd-line);
  color: var(--jsd-text);
  border-radius: 8px;
  padding: 11px 15px;
  font-family: var(--jsd-font-body);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  max-width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--jsd-purple);
  box-shadow: 0 0 0 3px rgba(168,85,247,.2), var(--jsd-glow-purple);
}

/* =============== Contact =============== */
.jsd-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.jsd-contact__item {
  background: linear-gradient(170deg, var(--jsd-panel), var(--jsd-panel-2));
  border: 1px solid var(--jsd-line);
  border-radius: var(--jsd-radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.jsd-contact__item:hover { transform: translateY(-4px); box-shadow: var(--jsd-glow-red); }
.jsd-contact__icon { font-size: 36px; margin-bottom: 12px; filter: drop-shadow(0 0 10px rgba(168,85,247,.6)); }
.jsd-contact__label { color: var(--jsd-muted); font-size: 13.5px; }
.jsd-contact__value { font-size: 18px; font-weight: 600; color: #fff; word-break: break-word; }
.jsd-contact__value a { color: #fff; }
.jsd-contact__value a:hover { color: var(--jsd-red); }

/* =============== Footer =============== */
.jsd-footer {
  margin-top: 70px;
  background: linear-gradient(180deg, var(--jsd-bg-2), #05050a);
  border-top: 1px solid var(--jsd-line);
  position: relative;
}
.jsd-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--jsd-grad);
  box-shadow: 0 0 18px rgba(255,45,64,.6), 0 0 40px rgba(168,85,247,.4);
}
.jsd-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; padding: 56px 0 30px; }
.jsd-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.jsd-footer .widget li { padding: 6px 0; }
.jsd-footer .widget a { color: var(--jsd-muted); font-size: 14.5px; }
.jsd-footer .widget a:hover { color: var(--jsd-red); }
.jsd-footer__bottom {
  border-top: 1px solid rgba(168,85,247,.12);
  padding: 20px 0;
  text-align: center;
  color: var(--jsd-muted);
  font-size: 13.5px;
}
.jsd-footer__bottom a { color: var(--jsd-purple); }

/* Back to top */
.jsd-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--jsd-grad);
  color: #fff;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .3s;
  box-shadow: var(--jsd-glow-red);
  z-index: 998;
}
.jsd-top.is-visible { opacity: 1; visibility: visible; }
.jsd-top:hover { transform: translateY(-4px); }

/* Reveal animation */
.jsd-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.jsd-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .jsd-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 404 / search */
.jsd-404 { text-align: center; padding: 90px 20px; }
.jsd-404__code {
  font-family: var(--jsd-font-head);
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 900;
  background: var(--jsd-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255,45,64,.5));
  line-height: 1;
}

/* WP core alignment */
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 1100px) { .alignwide { margin-left: 0; margin-right: 0; } }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { color: var(--jsd-muted); font-size: 13.5px; text-align: center; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.sticky, .bypostauthor { display: block; }
.gallery-caption { display: block; }
