@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --ink: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --card: #ffffff;
    --bg: #f5f7fb;
    --brand: #111111;
    --brand-soft: #e9eef5;
    --accent: #2563eb;
    --accent-soft: #e0ebff;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, #eff4ff, transparent 55%), var(--bg);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.realtor-portal {
    padding: 70px 20px 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portal-actions-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.portal-actions-inner {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.portal-header-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    margin-bottom: 18px;
}

.portal-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.portal-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portal-shell {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
    width: 100%;
}

.portal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-header h1 {
    font-size: 24px;
    margin: 0;
}

.portal-subtitle {
    color: var(--muted);
    font-size: 13px;
}

.portal-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.portal-card.compact {
    padding: 14px 16px;
}

.portal-grid {
    display: grid;
    gap: 16px;
}

.loan-list {
    display: grid;
    gap: 10px;
}

.loan-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.loan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.loan-row:hover {
    border-color: #cbd5f5;
    background: #f8faff;
}

.loan-amount {
    font-weight: 700;
    font-size: 16px;
}

.loan-row .loan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.loan-row .loan-meta span {
    white-space: nowrap;
}

.loan-status {
    display: flex;
    align-items: center;
}

.portal-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.loan-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    display: grid;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.loan-card:hover {
    border-color: #cbd5f5;
    background: #f8faff;
}

.loan-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.loan-meta {
    color: var(--muted);
    font-size: 13px;
    display: grid;
    gap: 6px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--brand-soft);
    color: var(--ink);
}

.pill.success {
    background: #dcfce7;
    color: #15803d;
}

.pill.warning {
    background: #fef3c7;
    color: #92400e;
}

.pill.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn.primary {
    background: var(--brand);
    color: #fff;
}

.btn.secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--border);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.details-list {
    display: grid;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    align-items: baseline;
}

.detail-row span {
    color: var(--muted);
    white-space: nowrap;
}

.detail-row strong {
    white-space: nowrap;
}

.doc-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.doc-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.doc-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.doc-dropzone {
    border: 2px dashed #2563eb;
    border-radius: 10px;
    padding: 14px;
    margin-top: 10px;
    text-align: center;
    color: #2563eb;
    transition: background 0.15s, border-color 0.15s;
    font-size: 12px;
    cursor: pointer;
}

.doc-dropzone.dragover {
    background: rgba(37, 99, 235, 0.08);
    border-color: #1d4ed8;
}

.autocomplete {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    z-index: 5;
    max-height: 220px;
    overflow: auto;
    display: none;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
}

.autocomplete-item:hover {
    background: var(--brand-soft);
}

.profile-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.profile-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.profile-item p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: var(--muted);
}

.field input,
.field select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 8px 10px;
    font-size: 14px;
}

.field-grid {
    display: grid;
    gap: 12px;
}

.field-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.page-link {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    font-weight: 600;
}

.page-link.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.page-info {
    color: var(--muted);
    font-size: 12px;
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.portal-footer {
    border-bottom: 1px solid var(--border);
    background: #fff;
    padding: 12px 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.portal-footer-grid {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
    align-items: center;
}

.footer-logo {
    height: 28px;
    width: auto;
    display: block;
    margin-bottom: 6px;
}

.portal-footer-grid strong {
    color: var(--ink);
    display: block;
}

.portal-footer-grid a {
    color: var(--ink);
    text-decoration: none;
    margin-right: 12px;
}

.portal-footer-line {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
}

.portal-footer-line strong {
    color: var(--ink);
}

.portal-footer-right {
    margin-left: auto;
    margin-right: 24px;
    text-align: right;
    white-space: nowrap;
}

.portal-footer-lang {
    margin-left: 10px;
    display: inline-flex;
    gap: 6px;
}

.portal-footer-lang a {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--ink);
    text-decoration: none;
}

.portal-footer-lang a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

@media (max-width: 720px) {
    .portal-footer {
        padding: 8px 0;
    }

    .portal-footer-grid {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .footer-logo {
        height: 22px;
        margin-bottom: 0;
    }

    .portal-footer-line {
        flex: 1;
        flex-direction: row;
        align-items: center;
        font-size: 11px;
        gap: 6px;
    }

    .portal-footer-line strong {
        display: none;
    }

    .portal-footer-address {
        display: none;
    }

    .portal-footer-right {
        margin-left: 0;
        margin-right: 12px;
        text-align: right;
        white-space: nowrap;
        font-size: 11px;
    }

    .portal-footer-lang {
        margin-left: 8px;
    }
}

.portal-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.portal-modal.open {
    display: flex;
}

.portal-modal-card {
    width: min(960px, 100%);
    height: min(80vh, 680px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.portal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.portal-modal-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 900px) {
    .portal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .portal-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.commission-advance {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, #eff4ff, transparent 55%), var(--bg);
    padding: 32px 20px 80px;
}

.portal-actions {
    max-width: 1120px;
    margin: 0 auto 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}

.advance-layout {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
    gap: 28px;
    align-items: stretch;
}

/* Full-page hero background variant */
.commission-advance.hero-background {
    position: relative;
    min-height: 100vh;
    padding: 60px 0 0 0;
    margin: 0;
    background: transparent !important;
}

.hero-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.60) 0%,
        rgba(30, 58, 95, 0.45) 50%,
        rgba(15, 23, 42, 0.60) 100%
    );
}

.commission-advance.hero-background .advance-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.commission-advance.hero-background .advance-main {
    width: 100%;
}

.commission-advance.hero-background .advance-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.commission-advance.hero-background .portal-actions {
    position: relative;
    z-index: 10;
    max-width: 720px;
    padding: 20px 20px 0;
}

.commission-advance.hero-background .portal-actions .btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.commission-advance.hero-background .portal-actions .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero footer links at bottom */
.hero-footer-links {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.hero-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.hero-footer-links span {
    margin: 0 10px;
}

/* Add bottom padding to page */
.commission-advance.hero-background .advance-layout {
    padding-bottom: 20px;
}

/* Hero Intro Section */
.hero-intro {
    position: relative;
    z-index: 10;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-intro-content {
    max-width: 800px;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 28px;
    color: white;
}

.hero-badge i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 24px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 40px;
    max-width: 650px;
}

.hero-subtitle strong {
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    animation: bounceDown 2s infinite;
}

.hero-scroll-indicator i {
    font-size: 1.4rem;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.form-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--ink);
}

/* Mobile responsive for hero intro */
@media (max-width: 768px) {
    .hero-intro {
        min-height: 75vh;
        padding: 30px 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-stat-value {
        font-size: 2.2rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-value {
        font-size: 1.8rem;
    }
}

.advance-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-card {
    flex: 0 0 auto;
}

.advance-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 18px 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.advance-card h1,
.advance-card h2 {
    margin-top: 0;
    white-space: nowrap;
}

.advance-card h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .advance-card h1 {
        font-size: 18px;
    }
    .advance-card h2 {
        font-size: 16px;
    }
}

.lead {
    color: var(--muted);
    margin-bottom: 8px;
}

.lead.lead-strong {
    font-size: 16px;
    color: var(--ink);
    font-weight: 600;
}

.lead-list.lead-strong {
    font-size: 15px;
    color: var(--ink);
    font-weight: 600;
}

.lead-list {
    margin: 8px 0 18px 18px;
    color: var(--muted);
    font-size: 13px;
}

.process-list {
    margin: 0 0 16px 20px;
    padding: 0;
    display: grid;
    gap: 12px;
    color: var(--ink);
    font-size: 14px;
}

.process-list li strong {
    display: block;
    margin-bottom: 4px;
}

.process-list p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.example-list {
    margin: 8px 0 12px 18px;
    color: var(--muted);
    font-size: 13px;
    display: grid;
    gap: 6px;
}

.note {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.note a {
    color: var(--ink);
    text-decoration: underline;
}

.section-note {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.section-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.form-alert {
    background: #fff1f2;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 12px 16px;
    border-radius: 12px;
    margin: 14px 0 18px;
    color: #b91c1c;
    font-size: 13px;
}

.form-notice {
    background: #eff6ff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 12px 16px;
    border-radius: 12px;
    margin: 14px 0 18px;
    color: #1e3a8a;
    font-size: 13px;
}

.panel-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

@media (min-width: 900px) {
    .commission-advance .panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.panel-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.panel-card h2 {
    margin-top: 0;
}

.panel-simulator {
    margin: 6px 0 18px;
}

.form-actions.split {
    justify-content: space-between;
}

.quick-request {
    margin-top: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #99b5ff;
    background: #f0f6ff;
    color: var(--ink);
    text-decoration: none;
}

.quick-request strong {
    display: block;
    font-size: 15px;
}

.quick-request span {
    color: var(--muted);
    font-size: 13px;
}

.quick-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0ecff;
    color: var(--accent);
    font-weight: 700;
    display: grid;
    place-items: center;
}

.file-field {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    background: #fff;
}

.file-field input[type="file"] {
    width: 100%;
}

.file-hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}

.advance-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}

/* Marketing Hero Section (alternative to FAQ sidebar) */
.advance-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}

.advance-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.advance-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.7) 30%,
        rgba(15, 23, 42, 0.3) 60%,
        rgba(15, 23, 42, 0.1) 100%
    );
}

.advance-hero-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    color: white;
}

.advance-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.advance-hero-badge i {
    color: #10b981;
}

.advance-hero h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.advance-hero p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.advance-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.hero-stat {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.advance-hero-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.hero-feature i {
    color: #10b981;
    font-size: 1.1rem;
}

@media (max-width: 980px) {
    .advance-hero {
        min-height: 350px;
        border-radius: 18px;
    }

    .advance-hero-content {
        padding: 20px;
    }

    .advance-hero h3 {
        font-size: 1.25rem;
    }

    .advance-hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .hero-stat {
        padding: 10px 6px;
    }

    .hero-stat-value {
        font-size: 1.1rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }
}

.side-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 14px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.side-card h3 {
    margin-top: 0;
}

.panel-simulator .side-card {
    padding-top: 10px;
}

.help-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.help-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    flex: 1;
    min-height: 0;
    max-height: 1250px;
    overflow: auto;
    padding-right: 6px;
}

.help-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--brand-soft);
    font-size: 13px;
    display: grid;
    gap: 6px;
}

.help-question {
    font-weight: 600;
    color: var(--ink);
}

.help-answer {
    color: var(--muted);
    white-space: pre-line;
}

.calc-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}

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

@media (max-width: 980px) {
    .advance-layout {
        grid-template-columns: 1fr;
    }

    .form-actions.split {
        flex-direction: column;
        gap: 10px;
    }
}
