@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#f6f7fb;
  --bg2:#eef1f6;
  --surface:#ffffff;
  --surface2:#f9fafc;
  --text:#151922;
  --muted:#647085;
  --line:#dfe4ec;
  --line2:#edf0f5;
  --accent:#b8863b;
  --accent2:#d2a45f;
  --accentSoft:#fff5e5;
  --good:#1f8a62;
  --bad:#bd3d45;
  --warn:#b78b1d;
  --shadow:0 18px 45px rgba(17,24,39,.08);
  --shadow2:0 8px 24px rgba(17,24,39,.08);
  --radius:18px;
  --nav:#ffffffcc;
}

html[data-theme="dark"]{
  --bg:#080a0f;
  --bg2:#0d1118;
  --surface:#111720;
  --surface2:#151d28;
  --text:#f3f5f8;
  --muted:#9da8b8;
  --line:#263242;
  --line2:#1c2533;
  --accent:#d6ad67;
  --accent2:#f0d08c;
  --accentSoft:rgba(214,173,103,.12);
  --good:#66c69a;
  --bad:#e3777d;
  --warn:#dfb954;
  --shadow:0 22px 55px rgba(0,0,0,.36);
  --shadow2:0 10px 28px rgba(0,0,0,.26);
  --nav:#0d1118d8;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 26%),
    radial-gradient(circle at 90% 0%, color-mix(in srgb, #536a92 13%, transparent), transparent 24%),
    linear-gradient(180deg,var(--bg),var(--bg2));
  color:var(--text);
  min-height:100vh;
}
a{color:inherit}
.fx-bg{display:none}

.nav{
  width:min(1220px,calc(100% - 34px));
  margin:18px auto 0;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  position:sticky;
  top:14px;
  z-index:50;
  background:var(--nav);
  border:1px solid var(--line);
  border-radius:22px;
  backdrop-filter:blur(16px);
  box-shadow:var(--shadow2);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width:max-content;
}
.brand-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,var(--accent2),var(--accent));
  color:#17120b;
  font-weight:800;
  letter-spacing:-.02em;
}
.brand b{
  display:block;
  font-size:18px;
  line-height:1;
  letter-spacing:-.02em;
}
.brand small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.links{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
}
.links a{
  text-decoration:none;
  color:var(--muted);
  padding:9px 11px;
  border-radius:12px;
  font-weight:650;
  font-size:14px;
  transition:.15s ease;
}
.links a:hover{
  color:var(--text);
  background:var(--surface2);
}
.links .admin{
  color:var(--accent);
  background:var(--accentSoft);
}
.pill{
  color:#17120b!important;
  background:linear-gradient(145deg,var(--accent2),var(--accent));
}
.mobile-btn{
  display:none;
  border:1px solid var(--line);
  background:var(--surface2);
  color:var(--text);
  border-radius:12px;
  padding:8px 11px;
  cursor:pointer;
}
.theme-toggle{
  border:1px solid var(--line);
  background:var(--surface2);
  color:var(--text);
  border-radius:12px;
  padding:9px 11px;
  cursor:pointer;
  font-weight:800;
  line-height:1;
}
.theme-toggle:hover{border-color:var(--accent)}

.main,.flash-wrap{
  width:min(1180px,calc(100% - 34px));
  margin:0 auto;
}
.flash-wrap{margin-top:14px}
.flash{
  padding:13px 15px;
  border-radius:14px;
  margin:10px 0;
  border:1px solid var(--line);
  background:var(--surface);
  box-shadow:var(--shadow2);
}
.flash.success{border-color:color-mix(in srgb,var(--good) 35%,var(--line)); color:var(--good)}
.flash.error{border-color:color-mix(in srgb,var(--bad) 35%,var(--line)); color:var(--bad)}

.hero{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:22px;
  align-items:stretch;
  padding:42px 0 20px;
}
.hero-text,.hero-panel,.card,.panel,.auth,.detail,.feature,.admin-card,.contact-card,.stats div,.profile-box div,.faq details,.pay-summary div{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-text{
  padding:42px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.badge,.tag{
  display:inline-flex;
  width:max-content;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  color:var(--accent);
  background:var(--accentSoft);
  border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.hero h1{
  margin:18px 0 16px;
  max-width:760px;
  font-size:clamp(36px,4.6vw,58px);
  line-height:1.06;
  letter-spacing:-.055em;
}
.hero p,.page-title p,.detail p{
  color:var(--muted);
  line-height:1.78;
  font-size:16px;
}
.hero-copy{max-width:680px}
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  text-decoration:none;
  cursor:pointer;
  border-radius:12px;
  padding:11px 16px;
  font-weight:800;
  background:linear-gradient(145deg,var(--accent2),var(--accent));
  color:#17120b;
  box-shadow:0 10px 22px color-mix(in srgb,var(--accent) 22%,transparent);
  transition:.15s ease;
}
.btn:hover{transform:translateY(-1px);filter:brightness(1.03)}
.btn.ghost{
  background:var(--surface2);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn.small{padding:9px 12px;font-size:13px}
.btn.tiny{padding:7px 10px;font-size:12px;border-radius:10px}
.btn.full{width:100%;margin-top:16px}
.btn.danger{
  background:linear-gradient(145deg,#e08a8f,#bf5359);
  color:#200d0f;
}

.hero-panel{
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.stack-title{
  margin:0 0 8px;
  font-size:22px;
  letter-spacing:-.02em;
}
.stack-sub{
  color:var(--muted);
  line-height:1.7;
  margin-bottom:18px;
}
.stack-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:13px 0;
  border-bottom:1px solid var(--line2);
}
.stack-row:last-child{border-bottom:0}
.stack-row span{color:var(--muted)}
.stack-row b{color:var(--text);font-weight:800;text-align:right}
.hero-mini{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:22px;
}
.hero-mini div{
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface2);
}
.hero-mini b{
  display:block;
  font-size:20px;
  color:var(--accent);
}
.hero-mini span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:3px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:4px 0 48px;
}
.stats div{padding:20px;box-shadow:var(--shadow2)}
.stats b{
  display:block;
  font-size:23px;
  margin-bottom:8px;
  letter-spacing:-.02em;
}
.stats span{
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

.section-head,.page-title.row{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
}
.section-head{margin:8px 0 18px}
.section-head h2,.page-title h1{
  margin:0 0 8px;
  font-size:36px;
  letter-spacing:-.04em;
}
.section-head p{
  margin:0;
  color:var(--muted);
}
.section-head a{
  color:var(--accent);
  text-decoration:none;
  font-weight:800;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.card{overflow:hidden;box-shadow:var(--shadow2)}
.thumb,.video-thumb{
  height:205px;
  background:#0b0d12;
  border-bottom:1px solid var(--line);
}
.thumb{background-size:cover;background-position:center}
.video-thumb iframe{width:100%;height:100%;display:block}
.card-body{padding:20px}
.card h3{
  margin:13px 0 9px;
  font-size:21px;
  line-height:1.25;
  letter-spacing:-.03em;
}
.card p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
  min-height:76px;
  font-size:14px;
}
.card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:18px;
}
.card-foot strong,.big-price{
  color:var(--accent);
  font-size:23px;
}

.page-title{padding:38px 0 18px}
.detail{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  overflow:hidden;
  margin-top:34px;
}
.detail-video,.detail-img{
  min-height:560px;
  background:#0b0d12;
}
.detail-video iframe{
  width:100%;
  height:100%;
  min-height:560px;
  display:block;
}
.detail-img{background-size:cover;background-position:center}
.detail-info{padding:36px}
.detail h1{
  margin:14px 0 15px;
  font-size:42px;
  line-height:1.08;
  letter-spacing:-.05em;
}
.feature-list{
  margin:22px 0;
  padding:18px;
  background:var(--surface2);
  border:1px solid var(--line);
  border-radius:16px;
}
.feature-list h3{
  margin:0 0 12px;
  font-size:22px;
}
.feature-list div{
  padding:7px 0;
  color:var(--text);
  font-size:14px;
  font-weight:650;
  border-bottom:1px dashed var(--line);
}
.feature-list div:last-child{border-bottom:0}
.buy-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  margin-top:22px;
  border-radius:16px;
  background:var(--surface2);
  border:1px solid var(--line);
}
.buy-box strong{
  display:block;
  font-size:34px;
  color:var(--accent);
}
.install-fee{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:13px;
}
.hint{font-size:13px;color:var(--muted)!important;margin-top:14px}

.features-grid,.contact-grid,.admin-menu{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.feature,.admin-card,.contact-card{
  padding:22px;
  text-decoration:none;
  color:var(--text);
  box-shadow:var(--shadow2);
}
.feature h3,.admin-card h3{
  margin:0 0 8px;
  font-size:20px;
  letter-spacing:-.03em;
}
.feature p,.admin-card p,.contact-card span,.contact-card p{
  color:var(--muted);
  line-height:1.65;
}

.faq{
  display:grid;
  gap:12px;
}
.faq details{
  padding:16px;
  box-shadow:var(--shadow2);
}
.faq summary{
  cursor:pointer;
  font-weight:800;
}
.faq p{color:var(--muted);line-height:1.7}

.auth{
  width:min(500px,100%);
  margin:46px auto;
  padding:28px;
}
.auth.wide{width:min(820px,100%)}
label{
  display:block;
  margin:13px 0 7px;
  color:var(--text);
  font-weight:750;
}
input,textarea,select{
  width:100%;
  border:1px solid var(--line);
  background:var(--surface2);
  color:var(--text);
  border-radius:12px;
  padding:12px 13px;
  outline:none;
}
textarea{resize:vertical}
input:focus,textarea:focus,select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent);
}
.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.check{display:flex;gap:8px;align-items:center}
.check input{width:auto}

.profile-box{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:22px;
}
.profile-box div{padding:17px;box-shadow:var(--shadow2)}
.profile-box span{
  display:block;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.profile-box b{
  display:block;
  margin-top:7px;
  word-break:break-all;
}

.panel{
  padding:21px;
  overflow:auto;
  box-shadow:var(--shadow2);
}
table{
  width:100%;
  border-collapse:collapse;
  min-width:920px;
}
th,td{
  text-align:left;
  padding:13px;
  border-bottom:1px solid var(--line2);
  vertical-align:top;
}
th{
  color:var(--accent);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.07em;
}
td small{display:block;color:var(--muted);margin-top:5px;line-height:1.5}
code{
  direction:ltr;
  background:var(--surface2);
  border:1px solid var(--line);
  border-radius:8px;
  padding:5px 7px;
  color:var(--accent);
  display:inline-block;
}
.status{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  margin:2px;
  border:1px solid transparent;
}
.status.paid,.status.active,.status.synced{
  color:var(--good);
  background:color-mix(in srgb,var(--good) 10%,transparent);
  border-color:color-mix(in srgb,var(--good) 25%,transparent);
}
.status.pending,.status.inactive,.status.not_synced{
  color:var(--warn);
  background:color-mix(in srgb,var(--warn) 10%,transparent);
  border-color:color-mix(in srgb,var(--warn) 24%,transparent);
}
.status.cancelled,.status.blocked,.status.failed{
  color:var(--bad);
  background:color-mix(in srgb,var(--bad) 10%,transparent);
  border-color:color-mix(in srgb,var(--bad) 24%,transparent);
}
.inline-actions,.actions{display:flex;gap:8px;flex-wrap:wrap}

.pay-summary{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin:18px 0;
}
.pay-summary div{padding:15px;box-shadow:var(--shadow2)}
.pay-summary span{
  display:block;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.pay-summary b{
  display:block;
  margin-top:6px;
  word-break:break-all;
}

.footer{
  width:min(1220px,calc(100% - 34px));
  margin:68px auto 28px;
  padding:24px 0 10px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:22px;
  color:var(--muted);
}
.footer b{display:block;color:var(--text);margin-bottom:8px}
.footer p{margin:0;line-height:1.7;max-width:540px}
.footer a{
  color:var(--accent);
  text-decoration:none;
  margin-left:12px;
  font-weight:750;
}
.footer-links{display:flex;flex-wrap:wrap;gap:10px}

@media(max-width:960px){
  .mobile-btn{display:block}
  .links{display:none;width:100%;margin-top:10px}
  .menu-open .links{display:flex}
  .nav{align-items:flex-start;flex-wrap:wrap}
  .hero,.detail,.grid,.features-grid,.contact-grid,.admin-menu,.stats,.profile-box,.hero-mini{grid-template-columns:1fr}
  .section-head,.page-title.row,.footer,.buy-box{flex-direction:column;align-items:flex-start}
  .two,.pay-summary{grid-template-columns:1fr}
  .detail-video,.detail-img,.detail-video iframe{min-height:300px}
  .hero-text{padding:28px}
  .hero h1{font-size:36px}
  .detail h1{font-size:32px}
}


/* Product images instead of embedded videos */
.product-media{
  display:block;
  text-decoration:none;
}
.thumb{
  height:235px;
  background-size:cover;
  background-position:center;
  transition:transform .25s ease, filter .25s ease;
}
.card:hover .thumb{
  transform:scale(1.025);
  filter:saturate(1.05) contrast(1.03);
}
.card{
  overflow:hidden;
}
.detail-img{
  background-size:cover;
  background-position:center center;
  position:relative;
}
.detail-img::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent 45%, rgba(0,0,0,.16));
  pointer-events:none;
}
html[data-theme="light"] .detail-img::after{
  background:linear-gradient(180deg, transparent 48%, rgba(255,255,255,.08));
}
@media(max-width:960px){
  .thumb{height:220px}
}


/* ================================
   GUIDES PAGE
================================ */

.guides-hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    margin: 20px 0 24px;
}

.guides-hero > div,
.guides-box,
.guide-card,
.guide-callout {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow2);
}

.guides-hero > div:first-child {
    padding: 30px;
}

.guides-hero h2 {
    margin: 16px 0 12px;
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.guides-hero p {
    color: var(--muted);
    line-height: 1.75;
    max-width: 820px;
}

.guides-box {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
        var(--surface);
}

.guides-box b {
    display: block;
    font-size: 24px;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.guides-box span {
    display: block;
    color: var(--muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--line2);
}

.guides-box span:last-child {
    border-bottom: 0;
}

.guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.guide-card {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    overflow: hidden;
}

.guide-video {
    min-height: 330px;
    background: #07090d;
}

.guide-video iframe {
    width: 100%;
    height: 100%;
    min-height: 330px;
    display: block;
}

.guide-video-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(214,173,103,.18), transparent 38%),
        #0b0e14;
    color: #fff;
    text-align: center;
}

.guide-video-empty b {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.guide-video-empty span {
    display: block;
    color: rgba(255,255,255,.68);
}

.guide-body {
    padding: 26px;
}

.guide-body h3 {
    margin: 14px 0 10px;
    font-size: 26px;
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.guide-body p {
    color: var(--muted);
    line-height: 1.72;
}

.guide-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.guide-list li {
    padding: 9px 11px;
    border: 1px solid var(--line);
    background: var(--surface2);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
}

.guide-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 900;
    margin-right: 8px;
}

.guide-callout {
    margin-top: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.guide-callout h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.guide-callout p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 760px;
}

@media (max-width: 960px) {
    .guides-hero,
    .guide-card {
        grid-template-columns: 1fr;
    }

    .guides-hero h2 {
        font-size: 27px;
    }

    .guide-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}
