* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif; margin: 0; color: #334155; background: #f1f5f9; line-height: 1.6; -webkit-tap-highlight-color: transparent; padding-bottom: 0; }
header { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 20; }
header > nav { max-width: 640px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 12px; }
header nav a { color: #334155; text-decoration: none; font-size: 15px; }
header nav a.brand { font-size: 19px; font-weight: 800; color: #111827; display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
header nav a.top-link { font-size: 14px; font-weight: 600; }
header nav a.brand img.site-logo { width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; }
.back { font-weight: 600; }
.menu-btn { display: none; }
main { max-width: 640px; margin: 16px auto; padding: 24px 18px 32px; background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; box-shadow: 0 8px 28px rgba(15,23,42,0.06); }
main.wide { max-width: 640px; }
footer { display: none; }
h1 { font-size: 28px; line-height: 1.2; color: #111827; margin: 0 0 10px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 36px 0 12px; color: #111827; }
p { margin: 0 0 12px; }
.small { color: #64748b; font-size: 14px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.app-tile { display: flex; flex-direction: column; gap: 8px; padding: 22px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; color: #111827; text-decoration: none; box-shadow: 0 4px 16px rgba(15,23,42,0.04); transition: transform .15s ease, box-shadow .15s ease; }
.app-tile:active { transform: scale(.97); }
.app-tile:hover { box-shadow: 0 8px 22px rgba(15,23,42,0.08); }
.app-tile-icon { font-size: 32px; }
.app-tile strong { font-size: 17px; }
.app-tile span { color: #64748b; font-size: 14px; line-height: 1.4; }
.app-tile.full { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.app-tile.full .app-tile-icon { font-size: 28px; }
.choice-list, .choice-row, .hero-cards, .steps, .choice-cards { display: none; }
.form-head { text-align: center; margin-bottom: 24px; }
.form-head p { color: #64748b; font-size: 16px; margin: 0; }
.form-icon { width: 60px; height: 60px; margin: 0 auto 12px; background: #eff6ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.field { margin-top: 20px; }
.field-label { display: block; font-weight: 600; color: #334155; font-size: 16px; margin-bottom: 8px; }
.req { color: #dc2626; }
.hint { color: #64748b; font-size: 13px; margin-top: 7px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-2 .field { margin-top: 20px; }
label { display: block; margin-top: 20px; font-weight: 600; color: #334155; font-size: 16px; }
input, select, textarea { width: 100%; min-height: 54px; padding: 14px 15px; border: 1.5px solid #e2e8f0; border-radius: 14px; font-size: 16px; color: #111827; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
textarea { min-height: 116px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #1e3a8a; box-shadow: 0 0 0 4px rgba(30,58,138,0.12); }
.check-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
input[type="checkbox"] { width: auto; min-height: auto; height: 22px; flex-shrink: 0; margin-top: 2px; accent-color: #1e3a8a; padding: 0; }
.check-row span { flex: 1; min-width: 0; }
.box { border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; margin-top: 18px; background: #f8fafc; }
.success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.agreement { border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; margin-top: 26px; background: #fff; }
.agreement .check-row { margin-top: 0; }
.agreement label { margin-top: 0; }
.warn { background: #fffbeb; border: 1px solid #fde68a; padding: 13px 15px; margin: 16px 0; border-radius: 12px; }
.big-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.big-buttons a, button, .btn { display: inline-block; min-height: 54px; padding: 15px 18px; border: 1.5px solid #1e3a8a; border-radius: 14px; background: #1e3a8a; color: #fff; text-decoration: none; cursor: pointer; font-size: 16px; font-weight: 700; text-align: center; transition: background .15s ease, transform .15s ease; }
.big-buttons a:active, button:active { transform: scale(.98); }
.big-buttons a:hover, button:hover, .btn:hover { background: #172554; }
button:disabled { opacity: .6; cursor: default; transform: none; }
button[type="submit"] { width: 100%; }
.big-buttons a.secondary, .btn-secondary { background: #fff; color: #111827; border-color: #e2e8f0; }
.big-buttons a.secondary:hover, .btn-secondary:hover { background: #f8fafc; }
#edit-form .big-buttons { margin-top: 24px; }
#edit-form .big-buttons button { width: auto; flex: 1; }
#edit-form .big-buttons button.secondary { background: #fff; color: #dc2626; border-color: #fecaca; }
.submit-row { margin-top: 28px; }
.submit-note { text-align: center; color: #64748b; font-size: 14px; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
th, td { border: 1px solid #e2e8f0; padding: 10px 8px; text-align: left; vertical-align: top; }
th { background: #f8fafc; }
.tag { display: inline-block; border: 1px solid #bfdbfe; background: #eff6ff; color: #1e3a8a; padding: 2px 9px; margin: 2px; font-size: 12px; border-radius: 999px; }
.hidden { display: none; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid #e2e8f0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #64748b; text-decoration: none; font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 12px; min-width: 56px; }
.bottom-nav a .nav-icon { font-size: 22px; line-height: 1; }
.bottom-nav a.active { color: #1e3a8a; background: #eff6ff; }
@media (min-width: 641px) {
  .bottom-nav { max-width: 640px; margin: 0 auto; border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; border-top-left-radius: 20px; border-top-right-radius: 20px; }
  main { margin-top: 24px; }
}
@media (max-width: 640px) {
  header > nav { gap: 8px; padding: 12px 14px; }
  header nav a.top-link { font-size: 13px; }
  h1 { font-size: 27px; }
  main { margin: 12px 12px 16px; padding: 22px 18px 28px; border-radius: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .big-buttons { flex-direction: column; }
  .big-buttons a { width: 100%; }
}

.valid-msg { color: #15803d; font-weight: 600; }
.invalid-msg { color: #dc2626; font-weight: 600; }
.section-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin: 12px 0; }
.stat-table { width: 100%; margin-top: 12px; font-size: 14px; }
.ref-tabs { display: flex; gap: 8px; margin: 12px 0; }
.ref-tab { flex: 1; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #0f172a; font-weight: 700; font-size: 14px; cursor: pointer; }
.ref-tab.active { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.ref-item { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.ref-item:last-child { border-bottom: 0; }
.ref-item-name { font-weight: 700; color: #0f172a; font-size: 15px; }
.ref-item-code { font-size: 13px; color: #64748b; margin-top: 2px; }
.ref-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-blue { background: #dbeafe; color: #1e40af; }
.pill-grey { background: #f1f5f9; color: #475569; }
.cashout-amount { font-size: 28px; font-weight: 800; color: #1e3a8a; }
.fee-block { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin: 16px 0; }
.fee-block h2 { margin-top: 0; }
.fee-amount { font-size: 56px; font-weight: 800; color: #1e3a8a; line-height: 1.1; }
.stat-table .stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.stat-table .stat-row:last-child { border-bottom: 0; }
.stat-table .stat-num { font-weight: 700; color: #0f172a; }
.section-card h2 { margin-top: 0; }

.result-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin: 12px 0; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.code-badge { background: #fff; color: #0f172a; border: 1px solid #e5e7eb; border-radius: 8px; padding: 4px 10px; font-size: 18px; letter-spacing: 1px; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.link-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-top: 1px solid #f1f5f9; padding: 12px 0; }
.link-text { flex: 1; min-width: 0; }
.link-label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #0f172a; margin-bottom: 2px; }
.link-label svg { color: #1e3a8a; flex-shrink: 0; }
.link-detail { font-size: 13px; color: #64748b; margin-top: 2px; }
.link-url { font-size: 14px; word-break: normal; overflow-wrap: break-word; color: #1e3a8a; }
.copy-btn { flex-shrink: 0; background: #fff; color: #0f172a; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: 13px; min-height: 32px; cursor: pointer; }
.copy-btn:hover { background: #f8fafc; }
.stat-hero { text-align: center; padding: 8px 0 16px; border-bottom: 1px solid #f1f5f9; margin-bottom: 16px; }
.stat-hero .stat-number { font-size: 40px; font-weight: 800; color: #1e3a8a; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.stat-cell { background: #f8fafc; border-radius: 14px; padding: 14px; text-align: center; }
.stat-cell .stat-number { font-size: 24px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

.manage-options { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
button.manage-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; text-align: left; box-shadow: none; }
button.manage-option:hover { background: #f8fafc; border-color: #cbd5e1; }
button.manage-option.selected { background: #f8fafc; border-color: #0f172a; }
.manage-option-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.manage-option-icon.i1 { background: #e6eaf1; color: #1e3a8a; }
.manage-option-icon.i2 { background: #fef5e6; color: #d97706; }
.manage-option-icon.i3 { background: #e8f9ee; color: #16a34a; }
.manage-option-text { flex: 1; min-width: 0; }
.manage-option-text strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.manage-option-text span { display: block; font-size: 13px; color: #64748b; line-height: 1.3; margin-top: 1px; }
.manage-option-chevron { color: #64748b; font-size: 18px; line-height: 1; flex-shrink: 0; }
.manage-page .form-head { text-align: left; margin-bottom: 16px; }
.manage-page .form-head .pill { display: none; }
.manage-page h1 { font-size: 22px; margin-bottom: 0; }
.manage-page h2 { font-size: 18px; margin: 24px 0 8px; }
#manage-form-section { border-top: 1px solid #f1f5f9; margin-top: 24px; padding-top: 8px; scroll-margin-top: 76px; }
#forgot-section { scroll-margin-top: 76px; }
.code-prompt { display: flex; gap: 8px; margin-top: 10px; }
.code-prompt input { flex: 1; min-width: 0; }
#manage-form-section h2 { margin-top: 20px; }
.pill { display: inline-block; background: #eff6ff; color: #1e3a8a; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }

.signout-btn { background: #fff; color: #0f172a; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; min-height: 36px; cursor: pointer; }
.signout-btn:hover { background: #f8fafc; }
body.pro-page { background: #f1f5f9; padding-bottom: 0; }
.pro-page header { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; }
.pro-page header > nav { max-width: 1200px; padding: 10px 24px; }
.pro-page header nav a { color: #334155; }
.pro-page header nav a.brand { color: #111827; }

.pro-page header nav a.top-link { color: #cbd5e1; }
.pro-page main { max-width: 640px; margin: 24px auto 40px; padding: 20px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 2px 10px rgba(15,23,42,0.04); }
.pro-page .form-head { text-align: left; margin-bottom: 16px; }
.pro-page .form-head .pill { display: none; }
.pro-page h1 { font-size: 20px; margin-bottom: 0; }
.pro-page h2 { font-size: 17px; margin: 20px 0 8px; }
.pro-page label, .pro-page .field-label { font-size: 14px; }
.pro-page .form-head p { font-size: 14px; }
.pro-page .field { margin-top: 16px; }
.pro-page input, .pro-page select, .pro-page textarea { min-height: 38px; padding: 9px 12px; font-size: 14px; border-radius: 10px; }
.pro-page button[type="submit"] { width: auto; min-height: 38px; padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.pro-page .submit-row { margin-top: 20px; }
@media (max-width: 640px) {
  .pro-page main { margin: 12px; padding: 18px; border-radius: 16px; }
}

.dash-section { border-top: 1px solid #f1f5f9; padding-top: 12px; margin-top: 12px; }
.dash-section .link-label { margin-bottom: 4px; }

.how-section { margin-top: 32px; }
.how-section h2 { font-size: 22px; margin-bottom: 8px; }
.how-section > p { color: #64748b; margin-bottom: 16px; }
.how-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px 24px; margin-bottom: 16px; }
.how-step { display: inline-block; background: #0f172a; color: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.how-card h3 { margin: 0 0 8px; font-size: 18px; }
.how-card p { color: #64748b; margin: 0 0 8px; }
.how-card p:last-child { margin-bottom: 0; }

.home-list { margin-top: 20px; }
.home-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border-radius: 12px; font-size: 18px; font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.home-btn svg { flex-shrink: 0; }
.home-btn-blue { background: #1e3a8a; color: #fff; }
.home-btn-white { background: #fff; color: #0f172a; border: 1px solid #e5e7eb; }
.home-btn .home-arrow { font-weight: 400; }

.hero-text { font-weight: 400; color: #64748b; line-height: 1.8; }
.hero-badge { background: #1e3a8a; color: #fff; font-weight: 800; padding: 2px 10px; border-radius: 8px; white-space: nowrap; }

.dots-wrap { margin-left: auto; position: relative; }
.dots-btn { background: transparent; border: none; color: #0f172a; cursor: pointer; padding: 8px 10px; line-height: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.dots-btn:hover, .dots-btn:active { background: transparent; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.4); z-index: 90; }
.side-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 280px; max-width: 85vw; background: #fff; z-index: 100; box-shadow: -8px 0 24px rgba(15,23,42,0.15); overflow-y: auto; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #e5e7eb; font-size: 18px; font-weight: 800; color: #111827; }
.drawer-head img.site-logo { width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; }
.drawer-close { margin-left: auto; background: transparent; border: none; color: #64748b; font-size: 22px; line-height: 1; cursor: pointer; padding: 8px; min-height: 0; }
.drawer-close:hover, .drawer-close:active { background: transparent; }
.drawer-links { padding: 12px; }
.drawer-links a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; color: #0f172a; text-decoration: none; font-size: 15px; font-weight: 600; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.drawer-links a:last-child { border-bottom: none; }
.drawer-links a svg { color: #1e3a8a; flex-shrink: 0; }
.drawer-links .drawer-arrow { margin-left: auto; color: #94a3b8; font-weight: 400; font-size: 20px; }

.contact-section { margin-top: 32px; }
.contact-section h2 { font-size: 22px; margin-bottom: 8px; }
.contact-section > p { color: #64748b; margin-bottom: 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px 24px; text-decoration: none; color: #0f172a; }
.contact-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #1e3a8a; }
.contact-label { display: block; font-size: 14px; color: #64748b; }
.contact-email { display: block; font-size: 18px; font-weight: 700; word-break: break-all; }
.site-footer { display: block; margin: 32px 0 0; padding: 24px 20px 32px; border-top: 1px solid #e2e8f0; background: #f8fafc; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 16px; }
.footer-logo { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-bottom: 20px; }
.footer-links a + a { margin-left: 32px; }
@supports (gap: 32px) { .footer-links a + a { margin-left: 0; } }
.footer-links a { color: #64748b; text-decoration: none; font-size: 14px; }
.site-footer p { color: #64748b; font-size: 13px; margin: 0; }

/* Home page only: smaller professional sizes, blue cards from the navy logo */
.home-page .hero-text { font-size: 24px; font-weight: 400; color: #64748b; line-height: 1.6; letter-spacing: 0; }
.home-page .hero-badge { background: #1e3a8a; padding: 4px 12px; font-size: 0.85em; border-radius: 8px; }
.home-page .home-btn { font-size: 16px; min-height: 50px; }
.home-page .home-btn-white { border-color: #bfdbfe; color: #1e3a8a; }
.home-page .how-section h2, .home-page .contact-section h2 { font-size: 18px; font-weight: 800; color: #1e3a8a; }
.home-page .how-section > p, .home-page .contact-section > p { font-size: 14px; color: #475569; }
.home-page .how-card { display: flex; gap: 14px; align-items: flex-start; background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid #1e3a8a; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.home-page .how-step { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #1e3a8a; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 15px; margin-bottom: 0; }
.home-page .how-body { flex: 1; min-width: 0; }
.home-page .how-card h3 { font-size: 16px; font-weight: 700; color: #1e3a8a; margin: 0 0 6px; }
.home-page .how-card p { font-size: 14px; line-height: 1.55; color: #475569; margin: 0 0 6px; }
.home-page .how-card p:last-child { margin-bottom: 0; }
.home-page .contact-card { background: #eff6ff; border: 1px solid #bfdbfe; }
.home-page .contact-icon { background: #1e3a8a; color: #fff; }
.home-page .contact-email { font-size: 16px; color: #1e3a8a; }
.home-page .site-footer { background: #eff6ff; border-top: 3px solid #1e3a8a; }
.home-page .footer-brand { font-size: 20px; }
.home-page .footer-links a { font-size: 14px; color: #1e3a8a; }
.home-page .site-footer p { font-size: 13px; }
@media (max-width: 640px) {
  .home-page .hero-text { font-size: 22px; }
  .home-page .how-card { padding: 14px; gap: 12px; }
}

/* Home page: three separate cards, top, How It Works, Contact Us */
.home-page main { background: transparent; border: none; box-shadow: none; padding: 0; }
.home-page .home-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(15,23,42,0.04); }
.home-page .home-card:last-child { margin-bottom: 0; }
.home-page .how-section, .home-page .contact-section { margin-top: 0; }
.home-page .how-section h2, .home-page .contact-section h2 { margin-top: 0; }
.home-page .home-top .home-list { margin-bottom: 0; }
.home-page .home-top .home-btn:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .home-page main { margin: 12px; padding: 0; }
  .home-page .home-card { padding: 18px; }
}

/* Home page: old Lovable site design, main screen only */
.home-page main { max-width: none; margin: 0; padding: 0; background: transparent; border: none; box-shadow: none; border-radius: 0; }
.home-page header { position: sticky; }
.home-page header > nav { max-width: 1152px; padding: 0 24px; min-height: 64px; }
.home-page header nav a.brand { font-size: 20px; font-weight: 700; color: #1e293b; gap: 12px; }
.home-page header nav a.brand img.site-logo { width: 40px; height: 40px; border-radius: 8px; }
.pro-page .header-nav { display: flex; align-items: center; gap: 28px; }
.pro-page .header-nav a + a { margin-left: 28px; }
@supports (gap: 28px) { .pro-page .header-nav a + a { margin-left: 0; } }
.pro-page .header-nav a { font-size: 14px; font-weight: 500; color: #64748b; text-decoration: none; }
.pro-page .header-nav a:hover { color: #1e293b; }
.home-page .section-inner { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.home-page .section-sub { text-align: center; font-size: 16px; color: #64748b; margin: 0 0 40px; }
.home-page .hero-section { background: linear-gradient(135deg, #f6f7fa 0%, #ffffff 55%, #fefbf5 100%); padding: 96px 0; }
.home-page .hero-inner { max-width: 1152px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.home-page .hero-pill { display: inline-flex; align-items: center; gap: 8px; background: #e6eaf1; color: #344256; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; margin-bottom: 24px; }
.home-page .hero-title { font-size: 56px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; color: #344256; margin: 0 0 20px; }
.home-page .hero-title .hero-line2 { display: block; color: #06327a; }
.home-page .hero-text { font-size: 19px; font-weight: 400; color: #64748b; line-height: 1.6; margin: 0 0 28px; }
.home-page .hero-badge { background: #06327a; color: #fff; font-weight: 700; font-size: 13px; padding: 4px 8px; border-radius: 5px; white-space: nowrap; }
.home-page .hero-nowrap { white-space: nowrap; }
.home-page .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.home-page .hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 0; min-height: 50px; padding: 0 20px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-page .hero-btn-primary { background: #06327a; color: #fff; }
.home-page .hero-btn-secondary { background: #fff; color: #1e293b; border: 1px solid #e2e8f0; }
.home-page .hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-page .mini-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 12px; text-align: center; box-shadow: 0 2px 8px rgba(15,23,42,0.05); }
.home-page .mini-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.home-page .mini-navy { color: #1f3c81; }
.home-page .mini-amber { color: #f59f0a; }
.home-page .mini-green { color: #16a34a; }
.home-page .mini-label { font-size: 14px; font-weight: 500; color: #334155; }
.home-page .how-section { background: #f7f8f9; padding: 80px 0; margin-top: 0; }
.home-page .how-section h2 { font-size: 36px; font-weight: 800; color: #344256; text-align: center; margin: 0 0 12px; }
.home-page .how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.home-page .how-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 0 24px 24px; margin-bottom: 0; box-shadow: 0 2px 8px rgba(15,23,42,0.04); }
.home-page .how-step { width: 48px; height: 48px; border-radius: 0 0 12px 0; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 17px; font-weight: 800; margin: 0 0 16px -24px; }
.home-page .how-step.s1 { background: #e6eaf1; color: #06327a; }
.home-page .how-step.s2 { background: #fef5e6; color: #d97706; }
.home-page .how-step.s3 { background: #e8f9ee; color: #16a34a; }
.home-page .how-step.s4 { background: #e6eaf1; color: #06327a; }
.home-page .how-card h3 { font-size: 20px; font-weight: 700; color: #1e293b; margin: 0 0 10px; }
.home-page .how-card p { font-size: 15px; line-height: 1.6; color: #64748b; margin: 0 0 12px; }
.home-page .how-card p:last-child { margin-bottom: 0; }
.home-page .cta-band { background: linear-gradient(90deg, #08347b, #2d528e); padding: 72px 24px; text-align: center; }
.home-page .cta-band h2 { font-size: 34px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.home-page .cta-band p { font-size: 17px; color: #dbeafe; margin: 0 0 28px; }
.home-page .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.home-page .cta-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.home-page .cta-btn-white { background: #fff; color: #06327a; }
.home-page .cta-btn-outline { background: transparent; color: #fff; border: 1px solid #fff; }
.home-page .contact-section { background: #fff; padding: 80px 0; margin-top: 0; }
.home-page .contact-section h2 { font-size: 36px; font-weight: 700; color: #344256; text-align: center; margin: 0 0 12px; }
.home-page .contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 100px; margin-top: 48px; }
.home-page .contact-left h3 { font-size: 21px; font-weight: 700; color: #1e293b; margin: 0 0 8px; }
.home-page .contact-left > p { font-size: 16px; color: #64748b; margin: 0 0 20px; }
.home-page .contact-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; text-decoration: none; color: #0f172a; }
.home-page .contact-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #e6eaf1; display: flex; align-items: center; justify-content: center; color: #1e3a8a; }
.home-page .contact-label { display: block; font-size: 14px; color: #64748b; }
.home-page .contact-email { display: block; font-size: 16px; font-weight: 700; color: #1e293b; word-break: break-all; }
.home-page .quick-links { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.home-page .quick-links h3 { font-size: 21px; font-weight: 700; color: #1e293b; margin: 0 0 12px; }
.home-page .ql-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; border: 1px solid #1f3c81; border-radius: 8px; background: #fff; color: #1f3c81; font-size: 14px; font-weight: 600; text-decoration: none; padding: 0 16px; margin-top: 12px; box-sizing: border-box; }
.home-page .site-footer { background: #fafbfc; border-top: 1px solid #e5e7eb; padding: 32px 24px; margin: 0; }
.home-page .footer-top { max-width: 1152px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.home-page .footer-brand { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 0; justify-content: flex-start; }
.home-page .footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.home-page .footer-links { margin-bottom: 0; }
.home-page .footer-links a { font-size: 14px; color: #64748b; }
.home-page .site-footer p { font-size: 14px; color: #64748b; text-align: center; margin: 24px 0 0; }
@media (min-width: 769px) {
  .pro-page .dots-wrap { display: none; }
}
@media (max-width: 768px) {
  .pro-page .header-nav { display: none; }
  .home-page header > nav { padding: 0 16px; }
  .home-page header nav a.brand img.site-logo { width: 32px; height: 32px; border-radius: 6px; }
  .home-page .hero-section { padding: 48px 0; }
  .home-page .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .home-page .hero-title { font-size: 40px; }
  .home-page .hero-text { font-size: 18px; }
  .home-page .hero-actions { flex-direction: column; }
  .home-page .hero-btn { width: 100%; }
  .home-page .how-section { padding: 56px 0; }
  .home-page .how-section h2, .home-page .contact-section h2 { font-size: 28px; }
  .home-page .how-grid { grid-template-columns: 1fr; }
  .home-page .cta-band { padding: 56px 20px; }
  .home-page .cta-band h2 { font-size: 28px; }
  .home-page .contact-section { padding: 56px 0; }
  .home-page .contact-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .home-page .footer-top { flex-direction: column; }
  .home-page .footer-brand { justify-content: center; }
}

.listing-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.listing-card strong { display: block; font-size: 16px; color: #0f172a; }
.listing-card .small { margin: 2px 0 10px; }
.listing-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Referral page, old lovable look */
.referral-page { background: #fff; }
.referral-page main { max-width: none; margin: 0; padding: 0; background: transparent; border: none; border-radius: 0; box-shadow: none; }
.ref-hero { background: linear-gradient(135deg, #eaeef4 0%, #fbfcfd 50%, #fef6e9 100%); text-align: center; padding: 80px 20px; }
.ref-badge { display: inline-block; background: #e6eaf1; color: #06327a; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.referral-page .ref-hero h1 { font-size: 52px; font-weight: 800; color: #0f172a; margin: 0 0 16px; line-height: 1.1; }
.ref-hero h1 .ref-amount { color: #06327a; }
.ref-hero p { color: #64748b; font-size: 17px; max-width: 680px; margin: 0 auto 28px; line-height: 1.6; }
.ref-btn { display: inline-flex; align-items: center; gap: 8px; background: #0f172a; color: #fff; border: none; border-radius: 10px; padding: 14px 24px; font-size: 16px; font-weight: 600; cursor: pointer; }
.ref-btn-white { background: #f0f2f4; color: #0f172a; }
.ref-how { background: #f7f8f9; text-align: center; padding: 80px 20px; }
.referral-page .ref-how h2, .referral-page .ref-why h2 { font-size: 34px; font-weight: 800; color: #0f172a; margin: 0 0 12px; }
.ref-how > p { color: #64748b; font-size: 16px; margin: 0 0 48px; }
.ref-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1150px; margin: 0 auto; }
.ref-step-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 40px 24px 32px; text-align: center; position: relative; box-shadow: 0 1px 3px rgba(15,23,42,0.06); }
.ref-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.ref-num.n1 { background: #1e3a8a; }
.ref-num.n2 { background: #f6b24d; }
.ref-num.n3 { background: #16a34a; }
.ref-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.ref-icon.i1 { background: #e6eaf1; color: #1e3a8a; }
.ref-icon.i2 { background: #fef5e6; color: #d97706; }
.ref-icon.i3 { background: #e8f9ee; color: #16a34a; }
.ref-step-card h3 { font-size: 18px; color: #0f172a; margin: 0 0 8px; }
.ref-step-card p { color: #64748b; font-size: 15px; line-height: 1.6; margin: 0; }
.ref-code { display: inline-block; background: #f1f5f9; border-radius: 8px; padding: 6px 12px; font-size: 14px; color: #0f172a; margin-top: 10px; word-break: break-all; }
.ref-amount-green { color: #16a34a; font-weight: 700; }
.ref-why { background: #fff; text-align: center; padding: 80px 20px; }
.ref-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 40px auto 0; }
.ref-why-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; text-align: left; }
.ref-why-card h3 { font-size: 16px; color: #0f172a; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.ref-why-card h3 svg { color: #1e3a8a; flex-shrink: 0; }
.ref-why-card p { color: #64748b; font-size: 14px; line-height: 1.6; margin: 0; }
.ref-cta { background: linear-gradient(90deg, #08347b, #1f4787); text-align: center; padding: 80px 20px; color: #fff; }
.ref-cta .ref-gift { margin-bottom: 16px; }
.referral-page .ref-cta h2 { font-size: 34px; font-weight: 800; margin: 0 0 12px; color: #fff; }
.ref-cta p { color: #dbeafe; font-size: 16px; max-width: 600px; margin: 0 auto 28px; line-height: 1.6; }
.ref-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.ref-modal-overlay.hidden { display: none; }
.ref-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; padding: 28px 24px; position: relative; }
.ref-modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 26px; color: #64748b; cursor: pointer; line-height: 1; }
.ref-modal h2 { font-size: 22px; color: #0f172a; margin: 0 0 4px; }
.ref-modal .ref-modal-sub { color: #64748b; font-size: 14px; margin: 0 0 16px; }
@media (max-width: 768px) {
  .referral-page .ref-hero h1 { font-size: 34px; }
  .ref-hero, .ref-how, .ref-why, .ref-cta { padding: 56px 16px; }
  .ref-steps { grid-template-columns: 1fr; }
  .ref-why-grid { grid-template-columns: 1fr; }
  .referral-page .ref-how h2, .referral-page .ref-why h2, .referral-page .ref-cta h2 { font-size: 28px; }
}
