/* ── Feature Panel Mockups — Star Modules ── */

/* Section wrapper */
.feature-panel-section {
    padding: 72px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.feature-panel-section:last-of-type { border-bottom: none; }

/* Inner grid: panel + text side-by-side */
.feature-panel-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 1024px) {
    .feature-panel-grid {
        flex-direction: row;
        gap: 56px;
    }
    .feature-panel-grid.fp-reverse { flex-direction: row-reverse; }
    .feature-panel-grid > * { flex: 1; min-width: 0; }
}

/* ── Panel (Screen Mockup) ── */
.fp-screen {
    width: 100%;
    max-width: 420px;
    background: #1a2230;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .fp-screen { max-width: none; }
}

/* Title bar */
.fp-title-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #2a3444;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fp-title-dots {
    display: flex;
    gap: 5px;
}
.fp-title-dots span {
    width: 8px; height: 8px; border-radius: 50%;
}
.fp-title-dots span:nth-child(1) { background: #ff5f57; }
.fp-title-dots span:nth-child(2) { background: #febc2e; }
.fp-title-dots span:nth-child(3) { background: #28c840; }
.fp-title-text {
    flex: 1;
    text-align: center;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Panel header (module name bar) */
.fp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fp-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fp-header-icon {
    width: 16px; height: 16px;
    color: #B48434;
}
.fp-header-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
.fp-header-close {
    width: 14px; height: 14px;
    color: rgba(255,255,255,0.35);
}

/* Panel body */
.fp-body {
    padding: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    min-height: 200px;
}

/* Panel footer */
.fp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}
.fp-footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fp-footer-logo {
    width: 18px; height: 18px;
    padding: 2px;
    background: white;
    border: 1.5px solid #B48434;
    color: #B48434;
}
.fp-footer-name {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    font-family: 'Inter', sans-serif;
}
.fp-footer-icons {
    display: flex;
    gap: 8px;
}
.fp-footer-icons svg {
    width: 12px; height: 12px;
    color: rgba(255,255,255,0.3);
}

/* ── Text Side ── */
.fp-text {
    text-align: center;
}
@media (min-width: 1024px) {
    .fp-text { text-align: left; }
}
.fp-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #B48434;
    background: rgba(180,132,52,0.12);
    padding: 3px 10px;
    margin-bottom: 12px;
}
.fp-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
@media (min-width: 640px) {
    .fp-heading { font-size: 28px; }
}
.fp-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 16px;
}
.fp-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
}
@media (min-width: 1024px) {
    .fp-bullets { display: flex; }
}
.fp-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-align: left;
}
.fp-bullets li svg {
    width: 16px; height: 16px;
    color: #B48434;
    flex-shrink: 0;
    margin-top: 2px;
}
.fp-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #B48434;
    text-decoration: none;
    transition: color 0.2s;
}
.fp-cta:hover { color: #d4a450; }
.fp-cta svg {
    width: 14px; height: 14px;
    transition: transform 0.2s;
}
.fp-cta:hover svg { transform: translateX(3px); }


/* ═══ Inner Component Styles ═══ */

/* ── Chat Module ── */
.fp-chat-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
}
.fp-chat-toggle-btn {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: default;
}
.fp-chat-toggle-btn.active {
    color: #B48434;
    background: rgba(180,132,52,0.1);
    border-color: rgba(180,132,52,0.3);
}
.fp-chat-msg {
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 10.5px;
    line-height: 1.5;
}
.fp-chat-msg.user {
    background: rgba(180,132,52,0.08);
    border-left: 2px solid #B48434;
}
.fp-chat-msg.assistant {
    background: rgba(255,255,255,0.04);
    border-left: 2px solid rgba(255,255,255,0.15);
}
.fp-chat-role {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.45);
}
.fp-chat-input {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 8px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
}
.fp-chat-input span {
    flex: 1;
    font-size: 10px;
    color: rgba(255,255,255,0.25);
}
.fp-chat-input svg {
    width: 12px; height: 12px;
    color: rgba(255,255,255,0.2);
}
.fp-cite { color: #B48434; font-weight: 600; }

/* ── Analysis Module ── */
.fp-analysis-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
    margin-top: 12px;
}
.fp-analysis-label:first-child { margin-top: 0; }
.fp-analysis-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 10px;
    margin-bottom: 4px;
}
.fp-analysis-val {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.fp-analysis-sub {
    font-size: 9.5px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}
.fp-analysis-party {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.fp-analysis-avatar {
    width: 24px; height: 24px;
    background: rgba(180,132,52,0.15);
    border: 1px solid rgba(180,132,52,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #B48434;
    flex-shrink: 0;
}
.fp-analysis-name { font-size: 11px; font-weight: 600; color: #fff; }
.fp-analysis-role { font-size: 9px; color: rgba(255,255,255,0.4); }
.fp-sec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 3px;
    font-size: 10.5px;
}
.fp-sec-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fp-sec-dot.high { background: #dc2626; }
.fp-sec-dot.medium { background: #ea580c; }
.fp-sec-dot.low { background: #16a34a; }
.fp-sec-name { flex: 1; color: rgba(255,255,255,0.8); }
.fp-sec-rating {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}
.fp-regulation-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(66,129,164,0.15);
    border: 1px solid rgba(66,129,164,0.25);
    color: #6cb4d9;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* ── Risk Module ── */
.fp-risk-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.fp-risk-stat {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.fp-risk-num {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.fp-risk-lbl {
    font-size: 9px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    margin-top: 4px;
}
.fp-risk-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 6px;
    padding: 8px 10px;
}
.fp-risk-item.expanded {
    border-color: rgba(180,132,52,0.25);
}
.fp-risk-item-hdr {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fp-badge {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    letter-spacing: 0.03em;
}
.fp-badge.high { background: rgba(220,38,38,0.15); color: #f87171; border: 1px solid rgba(220,38,38,0.25); }
.fp-badge.moderate { background: rgba(234,88,12,0.15); color: #fb923c; border: 1px solid rgba(234,88,12,0.25); }
.fp-badge.covered { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.25); }
.fp-risk-title {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.fp-risk-detail {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 10.5px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}
.fp-risk-suggestion {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(180,132,52,0.06);
    border-left: 2px solid #B48434;
}
.fp-risk-suggestion-lbl {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #B48434;
    margin-bottom: 3px;
}
.fp-risk-collapsed {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 4px;
    font-size: 10.5px;
    color: rgba(255,255,255,0.5);
}

/* ── Redline Module ── */
.fp-change-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 10px;
    margin-bottom: 6px;
}
.fp-change-hdr {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.fp-action-badge {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    letter-spacing: 0.03em;
}
.fp-action-badge.accept { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.25); }
.fp-action-badge.negotiate { background: rgba(234,88,12,0.15); color: #fb923c; border: 1px solid rgba(234,88,12,0.25); }
.fp-change-title {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.fp-change-old {
    display: block;
    font-size: 10px;
    color: #f87171;
    text-decoration: line-through;
    margin-bottom: 3px;
    padding: 3px 6px;
    background: rgba(220,38,38,0.06);
}
.fp-change-new {
    display: block;
    font-size: 10px;
    color: #4ade80;
    padding: 3px 6px;
    background: rgba(22,163,74,0.06);
    margin-bottom: 4px;
}
.fp-change-reason {
    font-size: 9.5px;
    color: rgba(255,255,255,0.45);
    font-style: italic;
    line-height: 1.4;
}

/* ── Drafting Module ── */
.fp-form-group {
    margin-bottom: 10px;
}
.fp-form-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}
.fp-form-input {
    width: 100%;
    padding: 5px 8px;
    font-size: 10.5px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    box-sizing: border-box;
}
.fp-form-select {
    width: 100%;
    padding: 5px 8px;
    font-size: 10.5px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    appearance: none;
    box-sizing: border-box;
}
.fp-vars {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}
.fp-var-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(180,132,52,0.1);
    border: 1px solid rgba(180,132,52,0.25);
    color: #d4a450;
    font-family: monospace;
}
.fp-preview {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}
.fp-preview .fp-var-highlight {
    background: rgba(180,132,52,0.15);
    color: #d4a450;
    padding: 0 2px;
    font-weight: 600;
}

/* ── Enhance Module ── */
.fp-enhance-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}
.fp-enhance-pill {
    font-size: 9.5px;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    cursor: default;
}
.fp-enhance-pill.active {
    background: rgba(180,132,52,0.12);
    border-color: rgba(180,132,52,0.35);
    color: #B48434;
}
.fp-enhance-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.fp-enhance-col {
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.fp-enhance-col-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 6px;
}
.fp-enhance-col p {
    font-size: 10px;
    line-height: 1.6;
    margin: 0;
}
.fp-enhance-old p { color: rgba(255,255,255,0.45); }
.fp-enhance-new p { color: rgba(255,255,255,0.85); }
.fp-enhance-changes {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}
.fp-enhance-changes strong {
    color: #B48434;
    font-weight: 600;
}


/* ═══ More Features — Compact Grid ═══ */

.fp-more-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}
.fp-more-title-text {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}
.fp-more-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 640px) {
    .fp-more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .fp-more-grid { grid-template-columns: repeat(4, 1fr); }
}
.fp-more-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(20, 29, 36, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}
.fp-more-card:hover {
    border-color: rgba(180,132,52,0.3);
    box-shadow: 0 4px 16px rgba(180,132,52,0.1);
    transform: translateY(-2px);
}
.fp-more-icon {
    width: 32px; height: 32px;
    background: rgba(180,132,52,0.12);
    border: 1px solid rgba(180,132,52,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-more-icon svg {
    width: 16px; height: 16px;
    color: #fff;
}
.fp-more-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2px;
}
.fp-more-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}
