/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0b0f19;
  color: #c8d6e5;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: #00e5a0; text-decoration: none; transition: color .2s; }
a:hover { color: #00ffb3; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit; border: none; outline: none;
}
input::placeholder { color: #6b7b8d; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,15,25,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,229,160,.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px;
}
.logo {
  font-size: 20px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.logo .logo-icon {
  width: 32px; height: 32px; background: linear-gradient(135deg, #00e5a0, #00b4d8);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #0b0f19; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: #c8d6e5; font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: #00e5a0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .25s; border: none; gap: 6px;
}
.btn-ghost {
  background: transparent; color: #c8d6e5; border: 1px solid rgba(200,214,229,.25);
}
.btn-ghost:hover { border-color: #00e5a0; color: #00e5a0; }
.btn-primary {
  background: linear-gradient(135deg, #00e5a0, #00b4d8);
  color: #0b0f19;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled {
  opacity: .5; cursor: not-allowed; pointer-events: none;
}

.mobile-menu-btn {
  display: none; background: none; color: #c8d6e5; font-size: 24px; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid rgba(200,214,229,.2); border-radius: 8px;
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0b0f19 0%, #0d2137 50%, #0b0f19 100%);
  padding: 100px 0 80px;
}
.hero::before {
  content: ""; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,229,160,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,216,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: rgba(0,229,160,.1); color: #00e5a0; font-size: 13px; font-weight: 600;
  margin-bottom: 20px; border: 1px solid rgba(0,229,160,.2);
}
.hero h1 {
  font-size: 48px; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #00e5a0, #00b4d8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 18px; color: #8899a6; margin-bottom: 12px; }
.hero .price-tag {
  font-size: 14px; color: #00e5a0; font-weight: 600; margin-bottom: 32px;
}
.hero .price-tag span { font-size: 36px; color: #fff; }

/* ===== Section Common ===== */
.section { padding: 80px 0; }
.section-dark { background: #0e1525; }
.section-darker { background: #080c15; }
.section-head {
  text-align: center; margin-bottom: 48px; max-width: 700px; margin-left: auto; margin-right: auto;
}
.section-head h2 {
  font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.section-head p { font-size: 16px; color: #8899a6; }

/* ===== Pricing Cards ===== */
.plans-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.plan-card {
  background: linear-gradient(180deg, #111827, #0e1525);
  border: 1px solid rgba(0,229,160,.1);
  border-radius: 16px; padding: 32px 24px; text-align: center;
  transition: all .3s; position: relative; overflow: hidden;
}
.plan-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #00e5a0, #00b4d8);
  opacity: 0; transition: opacity .3s;
}
.plan-card:hover { border-color: rgba(0,229,160,.3); transform: translateY(-4px); }
.plan-card:hover::before { opacity: 1; }
.plan-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.plan-price {
  font-size: 36px; font-weight: 800; color: #00e5a0; margin-bottom: 4px;
}
.plan-price sub { font-size: 14px; font-weight: 500; color: #8899a6; }
.plan-period { font-size: 13px; color: #6b7b8d; margin-bottom: 24px; }
.plan-features { margin-bottom: 24px; text-align: left; }
.plan-features li {
  padding: 6px 0; font-size: 14px; color: #c8d6e5;
  display: flex; align-items: center; gap: 10px;
}
.plan-features li::before {
  content: "✓"; color: #00e5a0; font-weight: 700; font-size: 12px;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0,229,160,.1); flex-shrink: 0;
}

/* ===== Advantages ===== */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.adv-card {
  background: rgba(17,24,39,.6); border: 1px solid rgba(200,214,229,.06);
  border-radius: 16px; padding: 32px; transition: border-color .3s;
}
.adv-card:hover { border-color: rgba(0,229,160,.2); }
.adv-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0,229,160,.1); display: flex; align-items: center; justify-content: center;
  color: #00e5a0; margin-bottom: 16px; flex-shrink: 0;
}
.adv-icon svg { display: block; }
.adv-card h4 { font-size: 18px; color: #fff; margin-bottom: 8px; font-weight: 700; }
.adv-card p { font-size: 14px; color: #8899a6; }

/* ===== FAQ ===== */
.faq-layout { display: flex; gap: 60px; align-items: flex-start; }
.faq-intro { flex: 0 0 380px; }
.faq-intro h3 { font-size: 32px; color: #fff; font-weight: 800; margin-bottom: 16px; }
.faq-intro p { color: #8899a6; font-size: 15px; }
.faq-list { flex: 1; }
.faq-item {
  border: 1px solid rgba(200,214,229,.08); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; background: rgba(17,24,39,.4);
}
.faq-question {
  padding: 18px 24px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-weight: 600; color: #fff; font-size: 15px; transition: background .2s;
}
.faq-question:hover { background: rgba(0,229,160,.04); }
.faq-arrow { color: #00e5a0; font-size: 18px; transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s;
  padding: 0 24px; color: #8899a6; font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 18px; }

/* ===== CTA / Support ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(0,229,160,.05), rgba(0,180,216,.05));
  border: 1px solid rgba(0,229,160,.1); border-radius: 20px;
  padding: 60px; display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.cta-content h3 { font-size: 28px; color: #fff; font-weight: 800; margin-bottom: 8px; }
.cta-content p { color: #8899a6; font-size: 15px; max-width: 500px; }
.cta-badge { color: #00e5a0; font-size: 14px; font-weight: 600; margin-top: 12px; }

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: rgba(17,24,39,.5); border: 1px solid rgba(200,214,229,.06);
  border-radius: 16px; padding: 28px; transition: border-color .3s;
}
.testimonial-card:hover { border-color: rgba(0,229,160,.2); }
.stars { margin-bottom: 16px; }
.stars span { color: #f59e0b; font-size: 14px; }
.testimonial-card h5 { font-size: 16px; color: #fff; font-weight: 700; margin-bottom: 8px; }
.testimonial-card p { font-size: 14px; color: #8899a6; margin-bottom: 16px; }
.testimonial-author {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.testimonial-author .name { color: #c8d6e5; font-weight: 600; }
.testimonial-author .date { color: #6b7b8d; }

/* ===== Footer ===== */
.site-footer {
  background: #080c15; border-top: 1px solid rgba(200,214,229,.06);
  padding: 40px 0; text-align: center; color: #6b7b8d; font-size: 13px;
}
.footer-links { margin-top: 10px; }
.footer-links a { color: #8899a6; margin: 0 8px; font-size: 13px; }
.footer-links a:hover { color: #00e5a0; }

/* ===== Marketing Page ===== */
.marketing-hero {
  height: 260px; background: linear-gradient(135deg, #0d2137, #0b0f19);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.marketing-hero::before {
  content: ""; position: absolute; width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,229,160,.06) 0%, transparent 60%);
}
.marketing-content { max-width: 960px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.marketing-content h2 {
  font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 20px; margin-top: 48px;
}
.marketing-content h2:first-child { margin-top: 0; }
.marketing-content > p { font-size: 17px; color: #8899a6; line-height: 1.8; margin-bottom: 30px; }

.solutions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 48px;
}
.solution-card {
  background: rgba(17,24,39,.6); border: 1px solid rgba(200,214,229,.08);
  border-radius: 16px; padding: 32px 24px; text-align: center; transition: all .3s;
}
.solution-card:hover {
  border-color: rgba(0,229,160,.3); transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,229,160,.08);
}
.solution-icon { font-size: 40px; margin-bottom: 16px; }
.solution-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.solution-card p { font-size: 14px; color: #8899a6; line-height: 1.7; margin: 0; }

.specs-table {
  max-width: 640px; margin: 24px auto 40px; text-align: left;
  background: rgba(17,24,39,.6); border: 1px solid rgba(200,214,229,.08);
  border-radius: 16px; overflow: hidden;
}
.spec-row {
  display: flex; justify-content: space-between; padding: 14px 24px;
  border-bottom: 1px solid rgba(200,214,229,.06);
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: #8899a6; font-weight: 600; font-size: 14px; }
.spec-value { color: #fff; font-size: 14px; }

.btn-outline {
  display: inline-flex; align-items: center; padding: 12px 28px;
  border: 2px solid #00e5a0; color: #00e5a0; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: all .3s;
}
.btn-outline:hover { background: rgba(0,229,160,.1); }

@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .spec-row { padding: 12px 16px; }
}

/* ===== Auth Forms ===== */
.auth-page {
  min-height: calc(100vh - 64px - 100px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: rgba(17,24,39,.7); border: 1px solid rgba(200,214,229,.08);
  border-radius: 20px; padding: 40px 32px;
}
.auth-card h2 { font-size: 28px; color: #fff; font-weight: 800; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; color: #8899a6;
  margin-bottom: 6px; font-weight: 500;
}
.form-input {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  background: rgba(11,15,25,.8); border: 1px solid rgba(200,214,229,.12);
  color: #fff; font-size: 15px; transition: border-color .2s;
}
.form-input:focus { border-color: #00e5a0; }
.form-error { color: #e74c3c; font-size: 12px; margin-top: 4px; }
.form-row { display: flex; gap: 12px; align-items: flex-end; }
.form-row .form-group { flex: 1; }
.form-row .btn { height: 44px; flex-shrink: 0; white-space: nowrap; }
.form-tips {
  text-align: center; font-size: 14px; color: #6b7b8d; margin-top: 20px;
}
.form-tips a { color: #00e5a0; }
.form-link { text-align: right; margin-top: 6px; }
.form-link a { font-size: 13px; color: #6b7b8d; }

/* ===== Checkout ===== */
.checkout-page { padding: 40px 20px; min-height: calc(100vh - 64px - 100px); }
.checkout-layout { display: flex; gap: 32px; max-width: 960px; margin: 0 auto; }
.order-summary {
  flex: 0 0 400px; background: rgba(17,24,39,.6);
  border: 1px solid rgba(200,214,229,.08); border-radius: 16px; padding: 28px;
}
.order-summary h2 { font-size: 22px; color: #fff; margin-bottom: 20px; }
.order-item-row {
  padding: 12px 0; border-bottom: 1px solid rgba(200,214,229,.06);
}
.order-item-row .item-name { font-size: 16px; color: #fff; font-weight: 600; margin-bottom: 4px; }
.order-item-row .item-param { font-size: 12px; color: #6b7b8d; }
.order-total {
  display: flex; justify-content: space-between; padding-top: 16px;
  font-size: 16px; font-weight: 700; color: #fff;
}
.order-total .total-val { color: #00e5a0; }
.payment-section { flex: 1; }
.payment-section h2 { font-size: 22px; color: #fff; margin-bottom: 20px; }
.empty-cart { text-align: center; padding: 40px 0; color: #6b7b8d; }
.empty-cart p { margin-bottom: 16px; }

/* ===== Account ===== */
.account-page { padding: 40px 20px; min-height: calc(100vh - 64px - 100px); }
.account-page .container { max-width: 800px; }
.account-page h2 { font-size: 24px; color: #fff; margin-bottom: 24px; }
.order-card {
  background: rgba(17,24,39,.5); border: 1px solid rgba(200,214,229,.06);
  border-radius: 12px; padding: 20px; margin-bottom: 16px;
}
.order-card .order-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.order-no { font-size: 14px; color: #8899a6; }
.order-status { font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.status-paid { background: rgba(0,229,160,.15); color: #00e5a0; }
.status-unpaid { background: rgba(245,158,11,.15); color: #f59e0b; }
.order-card .order-products { font-size: 14px; color: #c8d6e5; margin-bottom: 8px; }
.order-card .order-meta { font-size: 13px; color: #6b7b8d; }

/* ===== Document Pages ===== */
.doc-page { padding: 40px 20px; min-height: calc(100vh - 64px - 100px); }
.doc-page .container { max-width: 800px; }
.doc-content h1 {
  font-size: 32px; color: #fff; font-weight: 800; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 2px solid rgba(0,229,160,.2);
}
.doc-content h2 {
  font-size: 22px; color: #fff; font-weight: 700; margin: 32px 0 12px;
}
.doc-content p {
  font-size: 15px; color: #8899a6; line-height: 1.8; margin-bottom: 16px;
}
.doc-content ul {
  padding-left: 20px; margin-bottom: 16px;
}
.doc-content ul li {
  font-size: 15px; color: #8899a6; line-height: 1.8;
  list-style: disc; margin-bottom: 8px;
}
.doc-content a { color: #00e5a0; text-decoration: underline; }

/* ===== Contact Page ===== */
.contact-layout {
  display: flex; gap: 40px; align-items: stretch;
}
.contact-image {
  flex: 1; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #0d2137, #111827);
  display: flex; align-items: center; justify-content: center;
  min-height: 280px; font-size: 60px;
}
.contact-info-card {
  flex: 1; background: rgba(17,24,39,.6);
  border: 1px solid rgba(200,214,229,.08); border-radius: 16px; padding: 40px;
}
.contact-flag { font-size: 48px; margin-bottom: 16px; }
.contact-info-card h4 { font-size: 22px; color: #fff; margin-bottom: 16px; }
.contact-info-card p { font-size: 15px; color: #8899a6; margin-bottom: 6px; }

/* ===== About Page Image ===== */
.about-image {
  width: 100%; height: 240px; object-fit: cover; border-radius: 16px;
  background: linear-gradient(135deg, #0d2137, #111827);
  margin: 24px 0;
}

/* ===== Toast ===== */
#toast-root {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 20px; border-radius: 10px; font-size: 14px;
  color: #fff; animation: toast-in .3s ease; min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
.toast-info { background: #2563eb; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ===== User Menu ===== */
.user-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,229,160,.15); border: 1px solid rgba(0,229,160,.3);
  color: #00e5a0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; position: relative;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #111827; border: 1px solid rgba(200,214,229,.1);
  border-radius: 12px; padding: 8px; min-width: 180px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); display: none;
}
.user-dropdown.show { display: block; }
.user-dropdown a, .user-dropdown button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  border-radius: 8px; font-size: 14px; color: #c8d6e5;
  background: none; cursor: pointer; border: none;
}
.user-dropdown a:hover, .user-dropdown button:hover {
  background: rgba(0,229,160,.08); color: #00e5a0;
}

/* ===== Loading ===== */
.page-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.spinner {
  width: 36px; height: 36px; border: 3px solid rgba(0,229,160,.15);
  border-top-color: #00e5a0; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Password Toggle ===== */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #6b7b8d; display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.password-toggle:hover { color: #c8d6e5; }
.password-toggle svg { display: block; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: #0b0f19;
    padding: 16px 20px; gap: 12px; border-bottom: 1px solid rgba(0,229,160,.1);
  }
  .header-actions .btn { display: none; }
  .header-actions .user-btn { display: flex; }
  .header-actions .btn-login-sm { display: flex !important; }
  .hero h1 { font-size: 32px; }
  .hero .price-tag span { font-size: 28px; }
  .faq-layout { flex-direction: column; gap: 32px; }
  .faq-intro { flex: unset; }
  .cta-section { flex-direction: column; padding: 40px 24px; text-align: center; }
  .checkout-layout { flex-direction: column; }
  .order-summary { flex: unset; }
  .contact-layout { flex-direction: column; }
  .adv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .plans-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 50px 0; }
  .auth-card { padding: 28px 20px; }
}

/* ===== Detail Page ===== */
.detail-layout {
  display: flex; gap: 32px; align-items: flex-start; padding: 40px 0;
}
.detail-cover {
  flex: 0 0 360px; height: 360px;
  background: linear-gradient(135deg, #111827, #0d2137);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,214,229,.06);
}
.detail-cover-inner { font-size: 80px; opacity: .3; }
.detail-info { flex: 1; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; margin-top: 16px; }
.table-wrap table {
  width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap;
}
.table-wrap th {
  text-align: left; padding: 10px 12px; color: #8899a6; font-weight: 600;
  border-bottom: 1px solid rgba(200,214,229,.1); background: rgba(17,24,39,.5);
}
.table-wrap td {
  padding: 10px 12px; color: #c8d6e5;
  border-bottom: 1px solid rgba(200,214,229,.04);
}
.table-wrap tr:hover td { background: rgba(0,229,160,.02); }

/* ===== Hidden helpers ===== */
.hidden { display: none !important; }
.btn-login-sm { display: none !important; }

@media (max-width: 820px) {
  .detail-layout { flex-direction: column; }
  .detail-cover { flex: unset; width: 100%; height: 200px; }
}
