
:root {
  --blue: #6266e9;
  --blue-dark: #5155df;
  --blue-subtle: rgba(98, 102, 233, 0.08);
  --blue-focus: rgba(98, 102, 233, 0.2);

  --text: #171927;
  --text-muted: #777b8d;
  --text-dim: #999999;

  --border: #e7e8f0;
  --border-light: #f0f0f4;
  --border-strong: #dcdcdc;

  --bg-white: #ffffff;
  --bg-soft: #f8f8fc;
  --bg-panel: #f7f7f7;

  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;

  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  --warning: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fef3c7;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(98, 102, 233, 0.08);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p {
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--blue-dark);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}


.navbar {
  height: 68px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1160px;
  height: 100%;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand > span:last-child > span {
  color: var(--blue);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--blue);
  color: var(--bg-white);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  color: #686b7b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.login-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.login-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-subtle);
}

.menu-btn {
  display: none;
  font-size: 24px;
  color: var(--text);
  padding: 6px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   4. Minimal Auth Top Navigation (Register / Password Reset)
   -------------------------------------------------------------------------- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  font-size: 14px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sign-in-text {
  color: var(--text-dim);
  font-size: 14px;
}

.sign-in-btn {
  color: var(--text);
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.sign-in-btn:hover {
  background-color: #ebebeb;
  color: var(--text);
}

.page-wrap {
  min-height: calc(100vh - 160px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
}

.page-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.page-card h1 {
  font-size: 26px;
  margin-bottom: 6px;
}

.page-card .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.page-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-container {
  background-color: var(--bg-white);
  width: 100%;
  max-width: 760px;
  margin: 20px auto 40px auto;
  border-radius: var(--radius-md);
  padding: 40px 60px 60px 60px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  flex: 1;
}

.card-container.card-compact {
  max-width: 520px;
  margin-top: 40px;
}

.back-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666666;
  margin-bottom: 24px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.back-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.form-wrapper {
  width: 100%;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.header-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue-subtle);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px auto;
}

.header-icon.error {
  background: var(--danger-bg);
  color: var(--danger);
}

.header-icon.success {
  background: var(--success-bg);
  color: var(--success);
}

.section-group {
  margin-bottom: 28px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid2 .full {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 16px;
  flex: 1;
}

.form-group.half {
  width: 50%;
}

.form-group label,
.page-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4b5060;
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > i:not(.toggle-password-btn i) {
  position: absolute;
  left: 14px;
  color: #888888;
  font-size: 14px;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  outline: none;
  background-color: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group > input[type="text"],
.form-group > input[type="email"],
.form-group > input[type="password"],
.page-card input,
.page-card select,
.page-card textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  background-color: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.input-with-icon input:focus,
.page-card input:focus,
.page-card select:focus,
.page-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-focus);
}

input::placeholder,
textarea::placeholder {
  color: #888888;
  opacity: 0.8;
}

.input-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

input.error-input,
input.invalid {
  border-color: var(--danger) !important;
}

input.error-input:focus,
input.invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.error-message {
  display: block;
  font-size: 11px;
  color: var(--danger);
  margin-top: 4px;
  min-height: 15px;
}

.err {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin: 10px 0 0;
}

/* Password eye toggles */
.password-container input {
  padding-right: 42px;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #888888;
  font-size: 14px;
  padding: 4px;
}

.toggle-password-btn:hover {
  color: var(--text);
}

.pw-requirements {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pw-requirements.met {
  color: var(--success);
}

/* Terms Box */
.terms-box {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

.terms-text a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.terms-text a:hover {
  text-decoration: underline;
}

.terms-subtext {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-left: 26px;
}


.primary-btn,
.outline-btn,
.white-btn,
.submit-btn,
.btn-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  padding: 11px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.primary-btn,
.submit-btn,
.btn-full {
  background: var(--blue);
  color: var(--bg-white);
  border: 1px solid transparent;
}

.primary-btn:hover,
.submit-btn:hover,
.btn-full:hover {
  background: var(--blue-dark);
  color: var(--bg-white);
}

.submit-btn,
.btn-full {
  width: 100%;
}

.outline-btn {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.outline-btn:hover {
  background: var(--blue-subtle);
  color: var(--blue-dark);
}

.white-btn {
  background: var(--bg-white);
  color: var(--blue);
  border: 1px solid transparent;
}

.white-btn:hover {
  background: #f0f2ff;
}

.text-btn,
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  font-size: 15px;
  transition: gap 0.2s ease;
}

.text-btn:hover,
.cta-link:hover {
  color: var(--blue-dark);
  gap: 10px;
}

.alt-line {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.alt-line a {
  color: var(--blue);
  font-weight: 600;
}


.form-feedback {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}

.form-feedback.error {
  display: block;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: #991b1b;
}

.form-feedback.success {
  display: block;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #166534;
}

.success-box {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #166534;
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  line-height: 1.5;
  font-size: 14px;
}

.success-box strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.expired-box {
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  line-height: 1.5;
  font-size: 14px;
  text-align: center;
}

.expired-box strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.banner {
  background: var(--danger-bg);
  color: #b91c1c;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 12px;
}

.timer-chip {
  display: inline-block;
  background: #eef0ff;
  color: #4f54d6;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-weight: 700;
  font-size: 13px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.stepper {
  display: flex;
  margin: 24px 0 12px;
}

.step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
}

.step i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e4e6f2;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #e4e6f2;
}

.step.done i,
.step.done:not(:last-child)::after {
  background: var(--blue);
}

.step.done {
  color: var(--text);
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.timeline li {
  border-left: 3px solid #e4e6f2;
  padding: 2px 0 14px 14px;
  font-size: 13px;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
}

.timeline small {
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f7;
  font-size: 14px;
}

.info-row span {
  color: var(--text-muted);
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 35, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal.hidden {
  display: none !important;
}

.modal-content,
.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-content h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.modal-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-btn {
  background-color: var(--blue);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.modal-btn:hover {
  background-color: var(--blue-dark);
}


.identity-login-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(10, 15, 45, 0.25);
  overflow: hidden;
  border: 1px solid var(--border);
}

.identity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-soft);
}

.identity-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.identity-back {
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}

.identity-back:hover {
  color: var(--text);
}

.identity-body {
  padding: 24px;
}

.identity-body > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4b5060;
  margin-bottom: 6px;
}

.identity-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.identity-input-wrap .input-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.identity-input-wrap input {
  width: 100%;
  padding: 11px 40px 11px 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.identity-input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-focus);
}

.show-password {
  position: absolute;
  right: 12px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.identity-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 16px;
}

.stay-signed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.stay-signed input {
  accent-color: var(--blue);
  cursor: pointer;
}

.forgot-password-link {
  color: var(--blue);
  font-size: 13px;
}

.create-customer-link {
  display: block;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 8px;
}

.dashboard-login-btn {
  width: 100%;
  background: var(--blue);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.dashboard-login-btn:hover {
  background: var(--blue-dark);
}

.identity-message {
  margin-top: 12px;
  font-size: 13px;
  color: var(--danger);
  text-align: center;
}


.login-error-modal {
  z-index: 1050;
}

.login-error-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.login-error-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 24px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.login-error-box h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.login-error-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.login-error-btn {
  width: 100%;
  background: var(--blue);
  color: var(--bg-white);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-error-btn:hover {
  background: var(--blue-dark);
}


.section {
  max-width: 1160px;
  margin: auto;
  padding: 72px 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-copy h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--blue);
}

.hero-copy > p {
  font-size: 17px;
  color: #4b5060;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e2f5;
  color: #3b4088;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--bg-white);
  margin-right: -8px;
}

.stars {
  color: #f59e0b;
  font-size: 14px;
}

.stars b {
  color: var(--text);
  font-weight: 700;
  margin-left: 4px;
}

.trust-row small {
  color: var(--text-muted);
  font-size: 13px;
  display: block;
}

.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-card:hover img {
  transform: scale(1.02);
}

.image-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.image-label strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.image-label span {
  font-size: 12px;
  color: var(--text-muted);
}


.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
  border-top: 1px solid var(--border-light);
}

.about-copy h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.about-copy > p {
  font-size: 16px;
  color: #4b5060;
  margin-bottom: 14px;
}

.mini-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.mini-features > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mini-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-subtle);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.mini-features b {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.mini-features small {
  font-size: 13px;
  color: var(--text-muted);
}


.services {
  border-top: 1px solid var(--border-light);
  background: var(--bg-soft);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1160px;
  margin: auto;
  padding: 0 28px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5f5;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--blue-subtle);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}


.faq-section {
  max-width: 760px;
  margin: auto;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 16px 4px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 12px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin-top: 10px;
  color: #4b5060;
  font-size: 14px;
  line-height: 1.6;
}


.cta {
  padding-top: 20px;
  padding-bottom: 80px;
}

.cta-inner {
  background: linear-gradient(135deg, #6266e9 0%, #4347cf 100%);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  color: var(--bg-white);
  box-shadow: 0 12px 36px rgba(98, 102, 233, 0.25);
}

.cta-inner h2 {
  color: var(--bg-white);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-inner .cta-link {
  background: var(--bg-white);
  color: var(--blue);
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
}

.cta-inner .cta-link:hover {
  background: #f0f2ff;
  color: var(--blue-dark);
}


.footer {
  border-top: 1px solid var(--border-light);
  background: #fbfbfe;
  padding: 64px 28px 32px;
  margin-top: auto;
}

.footer-grid {
  max-width: 1160px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all 0.2s;
}

.socials a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--bg-white);
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-grid > div:not(.footer-brand) a,
.footer-grid > div:not(.footer-brand) p {
  display: block;
  font-size: 14px;
  color: #55596b;
  margin-bottom: 10px;
  text-decoration: none;
  line-height: 1.5;
}

.footer-grid > div:not(.footer-brand) a:hover {
  color: var(--blue);
}

.footer-bottom {
  max-width: 1160px;
  margin: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}


.legal {
  max-width: 760px;
}

.legal h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 18px;
  margin: 24px 0 8px;
}

.legal p {
  color: #4b5060;
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 15px;
}

.legal .legal-note {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 14px;
  border: 1px solid var(--border);
}

.legal a {
  color: var(--blue);
  font-weight: 600;
}

#terms-modal-body h1,
#terms-modal-body .sub {
  display: none;
}

#terms-modal-body h2 {
  font-size: 16px;
  margin: 16px 0 4px;
  line-height: 1.3;
}

#terms-modal-body p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px;
  color: #444444;
}

#terms-modal-body a {
  color: var(--blue);
}

#terms-modal-body .legal-note {
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-top: 14px;
}


.pay-box {
  text-align: center;
}

.pay-box h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.pay-box p {
  color: #4b5060;
  line-height: 1.6;
  margin: 0 0 12px;
}

.pay-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin: 0 auto 16px;
  color: var(--bg-white);
}

.pay-icon.paid { background: var(--success); }
.pay-icon.checking { background: var(--blue); }
.pay-icon.cancelled { background: #9ca3af; }
.pay-icon.invalid { background: var(--danger); }

.spin {
  display: inline-block;
  animation: spin 1.2s linear infinite;
}


@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 850px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
    margin-left: 12px;
  }

  .login-btn {
    display: inline-block;
    margin-left: auto;
    padding: 8px 16px;
  }

  .nav-inner {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .card-container {
    padding: 24px 20px;
    margin: 10px auto;
    border-radius: var(--radius-sm);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group.half {
    width: 100%;
  }

  .top-nav {
    padding: 16px 20px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .about-copy h2,
  .section-heading h2,
  .cta-inner h2 {
    font-size: 26px;
  }

  .mini-features {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .form-grid2 {
    grid-template-columns: 1fr;
  }

  .page-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .primary-btn,
  .hero-actions .text-btn {
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .cta-link {
    text-align: center;
    justify-content: center;
  }
}
