/* === PINKY-MOBILE-SAFE-v2 === */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
}
html { position: relative; scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Helvetica Neue", Arial, sans-serif;
  background: #FAFAF8;
  color: #1B1B1F;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
main, section, header, footer, nav { max-width: 100vw; }
img, video, svg, canvas, iframe { max-width: 100%; height: auto; }

:root {
  --brand: #1B4BFF;
  --brand-dark: #0F38D9;
  --bg: #FAFAF8;
  --fg: #1B1B1F;
  --muted: #6B6B73;
  --border: #E6E6E6;
  --card: #FFFFFF;
  --ok: #16A34A;
  --warn: #F59E0B;
  --err: #DC2626;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 32px 0 16px; }
h3 { font-size: 1.25rem; margin: 16px 0 8px; }
p { margin: 8px 0; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 8px 0 24px; }
.kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: rgba(27,75,255,.08); padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }

/* === Header === */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-text { font-size: 1.05rem; }
.primary-nav { display: flex; gap: 4px; flex: 1; }
.primary-nav a { padding: 8px 14px; border-radius: 8px; color: var(--fg); font-weight: 500; font-size: .95rem; }
.primary-nav a:hover { background: rgba(0,0,0,.04); text-decoration: none; }
.primary-nav a.active { background: rgba(27,75,255,.1); color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: var(--fg); }
.icon-link:hover { background: rgba(0,0,0,.05); }

.lang-switcher { position: relative; }
.lang-switcher summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .85rem; list-style: none; background: #fff; }
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher[open] summary { background: rgba(0,0,0,.04); }
.lang-switcher ul { position: absolute; top: calc(100% + 4px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); list-style: none; margin: 0; min-width: 180px; z-index: 50; }
.lang-switcher li a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--fg); font-size: .9rem; }
.lang-switcher li a:hover { background: rgba(0,0,0,.05); text-decoration: none; }

.nav-toggle { display: none; background: transparent; border: none; padding: 8px; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; }

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .primary-nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px; border-bottom: 1px solid var(--border); }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent; transition: transform .1s ease, background .15s ease; text-decoration: none; background: transparent; color: inherit; font-family: inherit; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: rgba(0,0,0,.04); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }

/* === Hero === */
.hero { padding: 80px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-bullets { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.hero-bullets li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.hero-bullets li span { color: var(--ok); font-weight: 800; }
.hero-art { position: relative; min-height: 380px; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-1 { width: 240px; height: 240px; background: #1B4BFF; top: -20px; left: 20px; animation: floaty 8s ease-in-out infinite; }
.orb-2 { width: 200px; height: 200px; background: #FF3D7F; top: 120px; right: 0; animation: floaty 10s ease-in-out infinite reverse; }
.orb-3 { width: 160px; height: 160px; background: #00D4A4; bottom: 0; left: 80px; animation: floaty 12s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.card-stack { position: relative; z-index: 1; padding: 24px; }
.stack-card { background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 12px; transform: rotate(-2deg); transition: transform .3s ease; }
.stack-card:nth-child(2) { transform: rotate(1deg); margin-left: 30px; }
.stack-card:nth-child(3) { transform: rotate(-1deg); margin-left: 10px; }
.stack-card:hover { transform: rotate(0) scale(1.02); }
.stack-card-name { font-weight: 700; }
.stack-card-price { color: var(--brand); font-weight: 800; }

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* === Sections === */
.featured, .why, .related { padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.link-arrow { font-weight: 600; }
.page-head { padding: 60px 0 32px; }
.admin-head { background: #0A0A0F; color: #fff; }
.admin-head h1, .admin-head a, .admin-head .lead { color: #fff; }
.admin-head .lead { color: rgba(255,255,255,.7); }

/* === Product Grid === */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card-inner { display: block; padding: 24px; color: inherit; }
.product-card-inner:hover { text-decoration: none; color: inherit; }
.product-card-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #1B4BFF, #FF3D7F); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; overflow: hidden; }
.product-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.icon-fallback { color: #fff; font-weight: 800; font-size: 24px; }
.product-card-body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.product-card-body .tagline { color: var(--muted); margin: 0 0 12px; font-size: .9rem; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; color: var(--brand); font-size: 1.05rem; }
.price-period { font-size: .8rem; color: var(--muted); font-weight: 500; }
.price-lifetime { font-size: .85rem; color: var(--muted); }
.price-sep { color: var(--border); }

/* === Why === */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--card); padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.why-icon { font-size: 36px; margin-bottom: 12px; }
@media (max-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-card { padding: 16px; }
}

/* === CTA Strip === */
.cta-strip { background: linear-gradient(135deg, var(--brand), #00D4A4); color: #fff; padding: 60px 0; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip .btn-primary { background: #fff; color: var(--brand); }

/* === Filter chips === */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--fg); font-size: .9rem; font-weight: 500; }
.chip:hover { text-decoration: none; background: rgba(0,0,0,.04); }
.chip-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip-active:hover { background: var(--brand-dark); color: #fff; }

/* === Product detail === */
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.product-hero { padding: 40px 0; }
.product-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.product-icon-lg { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 16px; }
.pricing-tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.tier-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.tier-card-lifetime { border-color: var(--brand); }
.tier-badge { position: absolute; top: -10px; right: 16px; background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.tier-price { font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.tier-period { font-size: .9rem; color: var(--muted); font-weight: 500; }
.tier-trial { font-size: .85rem; color: var(--muted); margin: 8px 0 16px; }
.product-meta-card { background: var(--card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.meta-list { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 16px 0 0; }
.meta-list dt { color: var(--muted); font-size: .85rem; }
.meta-list dd { margin: 0; font-weight: 500; }
.prose { line-height: 1.75; color: var(--fg); }
.prose p { margin: 12px 0; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 8px 0; }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--brand); }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.screenshot-grid img { border-radius: 8px; }

@media (max-width: 880px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .pricing-tiers { grid-template-columns: 1fr; }
}

/* === Auth === */
.auth-page { padding: 60px 0; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.auth-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.auth-card label, form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.auth-card input, .auth-card select, form input, form select, form textarea { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; }
.auth-card input:focus, form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,75,255,.15); }
.auth-foot { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 16px; }
label.checkbox { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
label.checkbox input { width: auto; }

/* === Alerts === */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
.alert-error { background: rgba(220,38,38,.1); color: var(--err); border: 1px solid rgba(220,38,38,.2); }
.alert-ok { background: rgba(22,163,74,.1); color: var(--ok); border: 1px solid rgba(22,163,74,.2); }

/* === Forms === */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
form textarea { font-family: ui-monospace, "SF Mono", monospace; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* === Tables === */
.data-table, .cart-table, .pricing-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.data-table th, .cart-table th, .pricing-table th { text-align: left; padding: 12px 14px; background: #F4F4EE; font-size: .85rem; font-weight: 600; color: var(--muted); }
.data-table td, .cart-table td, .pricing-table td { padding: 14px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.data-table tr:last-child td, .cart-table tr:last-child td { border-bottom: none; }
.actions { white-space: nowrap; }

/* === Badges === */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--border); color: var(--fg); }
.badge-active, .badge-paid, .badge-live { background: rgba(22,163,74,.15); color: var(--ok); }
.badge-pending, .badge-trial, .badge-draft { background: rgba(245,158,11,.15); color: var(--warn); }
.badge-failed, .badge-revoked, .badge-cancelled, .badge-suspended, .badge-discontinued { background: rgba(220,38,38,.15); color: var(--err); }
.badge-admin { background: rgba(27,75,255,.15); color: var(--brand); }
.badge-customer { background: rgba(0,0,0,.06); }

/* === Cart === */
.cart-table tfoot td { background: #F4F4EE; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; flex-wrap: wrap; }

/* === Account === */
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.account-tile { background: var(--card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.tile-num { font-size: 2.2rem; font-weight: 800; color: var(--brand); }
.tile-label { color: var(--muted); margin-bottom: 8px; font-size: .9rem; }
@media (max-width: 768px) { .account-grid { grid-template-columns: repeat(2, 1fr); } }

.license-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; margin-bottom: 16px; }
.license-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.license-head h3 { margin: 0; }
.license-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; font-size: .9rem; }
.license-body strong { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.key { background: rgba(27,75,255,.08); color: var(--brand); padding: 4px 10px; border-radius: 8px; cursor: pointer; font-family: ui-monospace, "SF Mono", monospace; font-size: .85rem; }
.key:hover { background: rgba(27,75,255,.15); }

/* === Admin stats === */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 24px 0; }
.stat-tile { background: var(--card); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-sub { color: var(--muted); font-size: .8rem; margin-top: 4px; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.contact-aside { background: var(--card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); height: fit-content; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* === Footer === */
.site-footer { background: #0A0A0F; color: #C5C5CC; padding: 60px 0 30px; margin-top: 80px; }
.site-footer .brand-text, .site-footer h4 { color: #fff; }
.site-footer a { color: #C5C5CC; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; color: #fff; }
.footer-bottom { border-top: 1px solid #1F1F26; padding-top: 24px; font-size: .8rem; }
.disclaimer { color: #71717A; font-size: .75rem; line-height: 1.6; }
.footer-copy { text-align: center; margin-top: 16px; color: #71717A; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* === WhatsApp FAB === */
.whatsapp-fab { position: fixed; bottom: 24px; right: 24px; width: 62px; height: 62px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.45); z-index: 9999; transition: transform .2s ease; }
.whatsapp-fab:hover { transform: scale(1.08); text-decoration: none; }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-pulse 2s ease-out infinite; }
@keyframes wa-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

/* === Error page === */
.error-page { padding: 100px 0; }
.error-page h1 { font-size: 6rem; color: var(--brand); }

/* === PINKY-MOBILE-FIT-v3 === */
@media (max-width: 640px) {
  .container, .nav-inner { padding-left: 16px !important; padding-right: 16px !important; }
  h1, h2, h3, h4 { word-break: break-word; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
  p, li, a, span, label, button { overflow-wrap: break-word; word-wrap: break-word; }
  .hero h1 { font-size: clamp(1.6rem, 6.8vw, 2.4rem) !important; line-height: 1.2 !important; }
  section, header, footer, main, .hero, .featured, .why, .cta-strip { min-width: 0; }
  .kicker { white-space: normal !important; font-size: .6rem !important; letter-spacing: .4px !important; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-inner { padding: 14px; }
  .product-card-icon { width: 40px; height: 40px; margin-bottom: 10px; }
  .product-card-body h3 { font-size: .92rem; }
  .product-card-body .tagline { font-size: .78rem; }
  .data-table, .cart-table, .pricing-table { font-size: .82rem; }
  table, pre, code { max-width: 100%; overflow-x: auto; }
  .data-table { display: block; overflow-x: auto; }
}
