/* ==========================================================================
   DoxTox Technologies Ltd. — app.css
   Landing page + Admin dashboard, single stylesheet (neumorphic design)
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #e8e8e8;
  --bg-card: #e8e8e8;
  --shadow-light: #ffffff;
  --shadow-dark: #c8c8c8;
  --primary: #6c5ce7;
  --primary-light: #7d6ff0;
  --primary-dark: #5a4bd1;
  --secondary: #00b894;
  --secondary-light: #00cec9;
  --danger: #e74c3c;
  --warning: #f39c12;
  --text-primary: #2d2d3f;
  --text-secondary: #5a5a72;
  --text-muted: #8a8aa0;
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --neumo-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  --neumo-shadow-inset: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
  --neumo-shadow-hover: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  --neumo-shadow-sm: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
  --neumo-shadow-inset-sm: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
  --sidebar-w: 250px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.highlight { color: var(--primary); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; box-shadow: var(--neumo-shadow-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Buttons (shared) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 34px; border-radius: 50px; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; transition: var(--transition);
  background: var(--bg-card); color: var(--text-primary);
  box-shadow: var(--neumo-shadow); font-family: inherit; position: relative; overflow: hidden;
}
.btn:active { box-shadow: var(--neumo-shadow-inset); transform: scale(0.98); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light), 0 4px 20px rgba(108,92,231,.25);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light), 0 8px 30px rgba(108,92,231,.3); }
.btn-primary:active { box-shadow: inset 3px 3px 6px rgba(0,0,0,.2), inset -3px -3px 6px rgba(255,255,255,.1); transform: scale(.97); }
.btn-outline { background: transparent; color: var(--text-primary); box-shadow: var(--neumo-shadow); }
.btn-outline:hover { box-shadow: var(--neumo-shadow-hover); transform: translateY(-2px); }
.btn-success { background: var(--secondary); color: #fff;
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light), 0 4px 20px rgba(0,184,148,.25); }
.btn-ghost { box-shadow: var(--neumo-shadow-inset-sm); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { color: #fff; background: var(--danger);
  box-shadow: 4px 4px 10px rgba(231,76,60,.3), -4px -4px 10px var(--shadow-light); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn .icon-right { transition: transform .3s ease; }
.btn:hover .icon-right { transform: translateX(4px); }

.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: none; background: var(--bg-card);
  box-shadow: var(--neumo-shadow-sm); color: var(--text-secondary); cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-btn:hover { color: var(--primary); box-shadow: var(--neumo-shadow); }
.icon-btn.danger:hover { color: var(--danger); }

/* ==========================================================================
   LANDING PAGE
   ========================================================================== */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 16px 0;
  transition: var(--transition); background: transparent;
}
header.scrolled {
  background: rgba(232,232,232,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,.04); padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex; align-items: center; gap: 12px; font-size: 1.8rem; font-weight: 800;
  letter-spacing: -.5px; color: var(--text-primary); padding: 8px 20px; border-radius: 50px;
  background: var(--bg-card); box-shadow: var(--neumo-shadow-sm);
}
.logo i { font-size: 1.8rem; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--text-secondary); transition: var(--transition); position: relative; padding: 6px 4px; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2.5px; background: var(--primary); border-radius: 4px; transition: var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 12px; }
.nav-cta.btn { padding: 10px 28px; font-size: .85rem; }
.hamburger {
  display: none; flex-direction: column; gap: 6px; cursor: pointer; background: var(--bg-card);
  border: none; padding: 10px 12px; border-radius: 12px; box-shadow: var(--neumo-shadow-sm); transition: var(--transition);
}
.hamburger:hover { box-shadow: var(--neumo-shadow); }
.hamburger span { width: 26px; height: 2.5px; background: var(--text-primary); border-radius: 4px; transition: var(--transition); display: block; }

.hero { min-height: 100vh; display: flex; align-items: center; position: relative; z-index: 1; padding: 130px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content h1 { font-size: 3.8rem; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px; color: var(--text-primary); }
.hero-content p { font-size: 1.2rem; color: var(--text-secondary); max-width: 480px; margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; gap: 48px; margin-top: 48px; padding: 24px 32px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--neumo-shadow); }
.hero-stats .stat h3 { font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.hero-stats .stat p { font-size: .9rem; color: var(--text-muted); margin-top: 2px; }

.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-code-block {
  background: var(--bg-card); border-radius: var(--radius); padding: 32px 28px; width: 100%;
  max-width: 480px; box-shadow: var(--neumo-shadow); backdrop-filter: blur(8px); overflow-x: auto;
}
.hero-code-block .code-line {
  display: flex; align-items: center; gap: 12px; font-family: 'Fira Code','Menlo',monospace;
  font-size: .95rem; padding: 6px 0; white-space: nowrap; opacity: 0; animation: fadeUp .6s ease forwards;
}
.hero-code-block .code-line:nth-child(1){animation-delay:.1s} .hero-code-block .code-line:nth-child(2){animation-delay:.25s}
.hero-code-block .code-line:nth-child(3){animation-delay:.4s} .hero-code-block .code-line:nth-child(4){animation-delay:.55s}
.hero-code-block .code-line:nth-child(5){animation-delay:.7s} .hero-code-block .code-line:nth-child(6){animation-delay:.85s}
.code-line .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; box-shadow: var(--neumo-shadow-inset-sm); }
.dot.green { background: var(--secondary); } .dot.purple { background: var(--primary); } .dot.cyan { background: var(--secondary-light); }
.code-line .keyword { color: var(--primary); font-weight: 600; }
.code-line .string { color: #e17055; }
.code-line .comment { color: var(--text-muted); font-style: italic; }
.code-line .variable { color: #6c5ce7; }
.code-line .function { color: var(--secondary); font-weight: 600; }
@keyframes fadeUp { 0%{opacity:0;transform:translateY(12px)} 100%{opacity:1;transform:translateY(0)} }

.floating-badge {
  position: absolute; background: var(--bg-card); border-radius: 16px; padding: 14px 20px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--neumo-shadow); animation: float 4s ease-in-out infinite;
}
.floating-badge i { font-size: 1.6rem; color: var(--secondary); }
.floating-badge span { font-weight: 600; font-size: .9rem; color: var(--text-primary); }
.floating-badge small { display: block; font-size: .75rem; color: var(--text-muted); font-weight: 400; }
.floating-badge--1 { top: -10px; right: -20px; animation-delay: 0s; }
.floating-badge--2 { bottom: 20px; left: -30px; animation-delay: 2s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.section { padding: 100px 0; position: relative; z-index: 1; }
.section-label {
  display: inline-block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--primary); margin-bottom: 10px; padding: 6px 18px; border-radius: 50px;
  background: var(--bg-card); box-shadow: var(--neumo-shadow-inset-sm);
}
.section-title { font-size: 2.8rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; color: var(--text-primary); }
.section-sub { font-size: 1.15rem; color: var(--text-secondary); max-width: 540px; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.product-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 36px 30px 32px;
  box-shadow: var(--neumo-shadow); transition: var(--transition); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--neumo-shadow-hover); transform: translateY(-4px); }
.product-card:active { box-shadow: var(--neumo-shadow-inset); transform: scale(.99); }
.product-card .icon {
  width: 58px; height: 58px; border-radius: 16px; background: var(--bg-card); box-shadow: var(--neumo-shadow-inset-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; transition: var(--transition);
}
.product-card:hover .icon { box-shadow: var(--neumo-shadow); color: var(--primary-light); transform: scale(1.05); }
.product-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.product-card p { color: var(--text-secondary); font-size: .95rem; margin-bottom: 18px; }
.product-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.product-card .tags span {
  background: var(--bg-card); padding: 4px 14px; border-radius: 50px; font-size: .7rem; font-weight: 500;
  color: var(--text-secondary); box-shadow: var(--neumo-shadow-inset-sm);
}
.product-card .product-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem;
  color: var(--primary); transition: var(--transition); margin-top: auto;
}
.product-card .product-link i { transition: var(--transition); }
.product-card .product-link:hover { color: var(--primary-dark); }
.product-card .product-link:hover i { transform: translateX(6px); }
.product-card .featured-badge {
  position: absolute; top: 16px; right: 16px; background: var(--primary); color: #fff; font-size: .65rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 14px; border-radius: 50px; box-shadow: var(--neumo-shadow-sm);
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 24px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; background: var(--bg-card);
  border-radius: var(--radius-sm); box-shadow: var(--neumo-shadow); transition: var(--transition);
}
.feature-item:hover { box-shadow: var(--neumo-shadow-hover); transform: translateY(-4px); }
.feature-item i { font-size: 1.6rem; color: var(--primary); margin-top: 2px; }
.feature-item h4 { font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.feature-item p { font-size: .85rem; color: var(--text-muted); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { font-size: 2.6rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; color: var(--text-primary); }
.about-content p { color: var(--text-secondary); margin-bottom: 20px; font-size: 1.05rem; }
.about-content .check-list { list-style: none; margin: 24px 0 32px; }
.about-content .check-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 500; color: var(--text-primary); }
.about-content .check-list li i { color: var(--secondary); font-size: 1.2rem; }
.about-image { display: flex; justify-content: center; }
.about-image .code-snippet {
  background: var(--bg-card); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 440px;
  font-family: 'Fira Code',monospace; font-size: .85rem; line-height: 2; box-shadow: var(--neumo-shadow); overflow-x: auto;
}
.code-snippet .line { white-space: nowrap; opacity: 0; animation: fadeUp .5s ease forwards; }
.code-snippet .line:nth-child(1){animation-delay:.1s} .code-snippet .line:nth-child(2){animation-delay:.2s}
.code-snippet .line:nth-child(3){animation-delay:.3s} .code-snippet .line:nth-child(4){animation-delay:.4s}
.code-snippet .line:nth-child(5){animation-delay:.5s} .code-snippet .line:nth-child(6){animation-delay:.6s}
.code-snippet .line:nth-child(7){animation-delay:.7s}
.code-snippet .line .kw { color: var(--primary); font-weight: 600; }
.code-snippet .line .str { color: #e17055; }
.code-snippet .line .fn { color: var(--secondary); font-weight: 600; }
.code-snippet .line .cm { color: var(--text-muted); font-style: italic; }

.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; background: var(--bg-card);
  border-radius: var(--radius); padding: 56px 52px; box-shadow: var(--neumo-shadow);
}
.contact-info h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.contact-info p { color: var(--text-secondary); margin-bottom: 28px; }
.contact-info .contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.contact-info .contact-item i {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--bg-card);
  box-shadow: var(--neumo-shadow-inset-sm); display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.2rem; flex-shrink: 0;
}
.contact-info .contact-item span { font-weight: 500; color: var(--text-primary); word-break: break-word; }
.contact-info .social-links { display: flex; gap: 14px; margin-top: 24px; }
.contact-info .social-links a {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--bg-card);
  box-shadow: var(--neumo-shadow-sm); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: var(--transition); font-size: 1.1rem;
}
.contact-info .social-links a:hover { box-shadow: var(--neumo-shadow); color: var(--primary); transform: translateY(-3px); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form input, .contact-form textarea {
  background: var(--bg-card); border: none; border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: 1rem; color: var(--text-primary); font-family: inherit; transition: var(--transition);
  outline: none; box-shadow: var(--neumo-shadow-inset-sm); width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { box-shadow: var(--neumo-shadow-inset); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.contact-form .hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--secondary); }
.form-status.err { color: var(--danger); }

footer { padding: 40px 0 28px; position: relative; z-index: 1; border-top: 1px solid rgba(0,0,0,.03); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-grid .copy { font-size: .9rem; color: var(--text-secondary); }
.footer-grid .copy span { color: var(--primary); font-weight: 600; }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { color: var(--text-secondary); font-size: .9rem; transition: var(--transition); padding: 4px 8px; border-radius: 8px; }
.footer-links a:hover { color: var(--text-primary); background: var(--bg-card); box-shadow: var(--neumo-shadow-inset-sm); }

/* ==========================================================================
   ADMIN — Login / Setup
   ========================================================================== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--neumo-shadow);
  padding: 44px 40px; width: 100%; max-width: 420px;
}
.login-card .logo { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; box-shadow: none; padding: 0; }
.login-card .logo i { color: var(--primary); font-size: 1.7rem; }
.login-card .sub { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-card); border: none; border-radius: var(--radius-sm); padding: 13px 16px;
  font-size: .95rem; color: var(--text-primary); font-family: inherit; outline: none;
  box-shadow: var(--neumo-shadow-inset-sm); transition: var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: var(--neumo-shadow-inset); }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.form-error {
  background: rgba(231,76,60,.12); color: var(--danger); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .85rem; font-weight: 500; margin-bottom: 16px; display: none;
}
.form-error.show { display: block; }
.form-ok {
  background: rgba(0,184,148,.12); color: var(--secondary); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 16px; display: none;
}
.form-ok.show { display: block; }

/* ---------- Admin layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: var(--bg-card); box-shadow: 4px 0 14px rgba(0,0,0,.04);
  padding: 24px 16px; position: fixed; top: 0; left: 0; bottom: 0; display: flex; flex-direction: column; z-index: 50;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; padding: 8px 14px 20px; }
.sidebar .brand i { color: var(--primary); }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sidebar nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: none;
  background: transparent; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: .93rem;
  font-weight: 600; font-family: inherit; cursor: pointer; transition: var(--transition); text-align: left;
}
.sidebar nav button i { width: 20px; text-align: center; }
.sidebar nav button:hover { color: var(--text-primary); box-shadow: var(--neumo-shadow-inset-sm); }
.sidebar nav button.active {
  background: var(--primary); color: #fff;
  box-shadow: 4px 4px 10px rgba(108,92,231,.3), -4px -4px 10px var(--shadow-light);
}
.sidebar nav button .badge-count {
  margin-left: auto; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700;
  border-radius: 50px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}
.sidebar nav button.active .badge-count { background: #fff; color: var(--primary); }
.sidebar-footer { padding-top: 16px; border-top: 1px solid rgba(0,0,0,.05); display: flex; flex-direction: column; gap: 8px; }
.sidebar-footer .user { font-size: .82rem; color: var(--text-muted); padding: 6px 14px; word-break: break-all; }
.main { margin-left: var(--sidebar-w); flex: 1; padding: 32px 36px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; }
.page-head p { color: var(--text-muted); font-size: .9rem; }

.card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--neumo-shadow); padding: 28px; margin-bottom: 24px; }
.card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card h2 i { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--neumo-shadow); padding: 24px; display: flex; align-items: center; gap: 18px; }
.stat-card .ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--bg-card); box-shadow: var(--neumo-shadow-inset-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--primary); flex-shrink: 0;
}
.stat-card .num { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.stat-card .lbl { font-size: .82rem; color: var(--text-muted); }

.editor-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.editor-row { display: flex; align-items: center; gap: 10px; background: var(--bg-card); box-shadow: var(--neumo-shadow-inset-sm); border-radius: var(--radius-sm); padding: 10px 12px; }
.editor-row input { flex: 1; min-width: 0; background: transparent; border: none; box-shadow: none; padding: 6px 8px; font-size: .9rem; font-family: inherit; color: var(--text-primary); outline: none; }
.editor-row input.w-narrow { max-width: 90px; }
.editor-row input.icon-input { max-width: 150px; }
.add-row-btn { margin-top: 4px; }

.product-admin { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--neumo-shadow); padding: 22px; margin-bottom: 18px; }
.product-admin summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.02rem; }
.product-admin summary::-webkit-details-marker { display: none; }
.product-admin summary .p-icon { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--neumo-shadow-inset-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.product-admin summary .p-title { flex: 1; min-width: 0; }
.product-admin summary .p-title small { display: block; font-weight: 400; color: var(--text-muted); font-size: .78rem; }
.pill { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 12px; border-radius: 50px; }
.pill.featured { background: var(--primary); color: #fff; }
.pill.inactive { background: var(--text-muted); color: #fff; }
.product-admin[open] summary { margin-bottom: 18px; }
.product-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }

.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--neumo-shadow); padding: 20px 24px; border-left: 5px solid var(--primary); }
.msg-card.read { border-left-color: var(--text-muted); opacity: .85; }
.msg-card.archived { border-left-color: var(--secondary); opacity: .7; }
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-head .who { font-weight: 700; }
.msg-head .who a { font-weight: 500; font-size: .85rem; margin-left: 8px; }
.msg-head .when { font-size: .78rem; color: var(--text-muted); }
.msg-company { font-size: .82rem; color: var(--text-secondary); margin-bottom: 8px; }
.msg-body { color: var(--text-secondary); font-size: .93rem; white-space: pre-wrap; word-break: break-word; }
.msg-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2.6rem; margin-bottom: 14px; color: var(--primary); }

.toast-area { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast {
  background: var(--bg-card); border-radius: var(--radius-sm); box-shadow: var(--neumo-shadow);
  padding: 14px 20px; font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s ease; max-width: 340px;
}
.toast.ok i { color: var(--secondary); }
.toast.err i { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.tab-pane { display: none; }
.tab-pane.active { display: block; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .9rem; color: var(--text-secondary); cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--primary); box-shadow: none; }
.hidden { display: none !important; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }
  .hero-visual { margin-top: 40px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-content .check-list li { justify-content: center; }
  .about-content .check-list { text-align: left; display: inline-block; }
  .contact-wrapper { grid-template-columns: 1fr; padding: 36px 28px; }
  .contact-form .btn { align-self: center; }
  .contact-info { text-align: center; }
  .contact-info .contact-item { justify-content: center; }
  .contact-info .social-links { justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .main { padding: 24px 18px 60px; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(232,232,232,.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 32px; transform: translateX(100%);
    transition: var(--transition); padding: 40px; box-shadow: var(--neumo-shadow);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.4rem; color: var(--text-primary); }
  .nav-cta { margin-left: 0; }
  .hamburger { display: flex; z-index: 1001; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }
  .hero-content h1 { font-size: 2.6rem; }
  .section-title { font-size: 2.2rem; }
  .hero-stats { gap: 28px; flex-wrap: wrap; padding: 20px; }
  .hero-stats .stat h3 { font-size: 1.8rem; }
  .floating-badge { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .sidebar {
    width: 100%; height: auto; position: sticky; top: 0; bottom: auto; flex-direction: column; padding: 12px;
  }
  .sidebar .brand { padding-bottom: 10px; }
  .sidebar nav { flex-direction: row; overflow-x: auto; gap: 8px; }
  .sidebar nav button { white-space: nowrap; width: auto; }
  .sidebar-footer { display: none; }
  .layout { flex-direction: column; }
  .main { margin-left: 0; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-wrapper { padding: 24px 16px; }
  .hero-code-block { padding: 20px 16px; }
  .hero-code-block .code-line { font-size: .75rem; gap: 8px; }
  .section { padding: 60px 0; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .hero-stats .stat { text-align: center; }
  .logo { font-size: 1.4rem; padding: 6px 14px; }
  .logo i { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
