:root {
    --brand-primary: #0d9488;
    --brand-dark: #0f766e;
    --brand-darker: #134e4a;
    --brand-light: #ccfbf1;
    --accent: #f59e0b;
    --surface: #ffffff;
    --bg: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --footer-bg: #0f172a;
}

/* Public site */
.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

.site-navbar {
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 100%) !important;
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.25);
}

.site-navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-brand {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.site-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.site-logo-wrap {
    display: inline-block;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.2rem 0.55rem;
    line-height: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.site-logo-wrap-sidebar {
    padding: 0.25rem 0.5rem;
}

.site-logo-sidebar {
    height: 36px;
    max-width: 140px;
}

.site-logo-auth {
    height: 56px;
    max-width: 220px;
}

.sidebar-brand-link {
    display: block;
    padding: 0.25rem 0;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.85);
    padding: 2rem 0;
    margin-top: 0;
}

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

.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-brand {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

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

.hero-section {
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 55%, #115e59 100%);
    color: #fff;
    border-radius: 1.25rem;
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.bid-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    overflow: hidden;
    margin-bottom: 0;
    background: var(--surface);
}

.bid-card .card-body {
    padding: 1.5rem 1.5rem 1.35rem;
}

.bid-card .card-title {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.bid-card .card-text {
    margin-bottom: 1rem;
    line-height: 1.55;
}

.bids-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.bid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.tier-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.public-cta-bar {
    background: var(--brand-light);
    border: 1px solid #99f6e4;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.content-card {
    background: var(--surface);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.content-card .content-card-body {
    padding: 2rem;
}

.content-card .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-card .mb-3,
.content-card .mb-4 {
    margin-bottom: 1.25rem !important;
}

.tier-option-card {
    display: block;
    background: var(--surface);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    cursor: pointer;
    height: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    margin: 0;
}

.tier-option-card:has(input:checked) {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.tier-option-card:hover {
    border-color: #94a3b8;
}

/* Dashboard */
.dashboard-body {
    background: var(--bg);
    min-height: 100vh;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0f172a 0%, #134e4a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
}

.sidebar-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    padding: 1rem 0.75rem 0.35rem;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(13, 148, 136, 0.45);
    color: #fff;
    font-weight: 600;
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-topbar {
    background: var(--surface);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.topbar-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.dashboard-content {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
}

.bid-card-locked {
    opacity: 0.95;
}

.panel-card {
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-card-body {
    padding: 1.75rem 2rem;
    flex: 1 1 auto;
}

.panel-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.panel-card-footer {
    padding: 1.25rem 2rem 1.75rem;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.card-grid > [class*="col"] {
    display: flex;
}

.card-grid .panel-card,
.card-grid .stat-card {
    width: 100%;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list li:first-child {
    padding-top: 0;
}

.info-list .info-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex: 0 0 42%;
}

.info-list .info-value {
    font-size: 0.9375rem;
    color: var(--text);
    text-align: right;
    word-break: break-word;
}

.code-chip {
    display: inline-block;
    background: #f0fdfa;
    color: var(--brand-darker);
    border: 1px solid #99f6e4;
    padding: 0.2rem 0.55rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
}

.metric-box .metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.metric-box .metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
}

.empty-state {
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.75rem;
}

.dashboard-form .form-field-group {
    margin-bottom: 1.5rem;
}

.dashboard-form .form-field-check {
    margin-bottom: 1.25rem;
    padding-top: 0.25rem;
}

.dashboard-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.dashboard-form .form-control,
.dashboard-form .form-select {
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    border-color: #cbd5e1;
}

.dashboard-form .form-control:focus,
.dashboard-form .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
}

.dashboard-form textarea.form-control {
    min-height: 140px;
    line-height: 1.55;
}

.dashboard-form .form-text {
    margin-top: 0.45rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.dashboard-form .form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.selector-help {
    border-radius: 0.75rem;
    border: 1px solid #bae6fd;
}

.selector-help code {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
}

.panel-card .table {
    margin-bottom: 0;
}

.panel-card .table th {
    padding: 0.85rem 1.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: #f8fafc;
}

.panel-card .table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.panel-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #fafbfc;
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.stat-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 108px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.1;
}

.stat-warning .stat-value { color: #d97706; }
.stat-info .stat-value { color: #0284c7; }
.stat-success .stat-value { color: #059669; }

.usage-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.9rem;
}

.usage-metric-row:last-child {
    border-bottom: none;
}

.usage-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.role-badge {
    background: var(--brand-light) !important;
    color: var(--brand-darker) !important;
    font-weight: 600;
}

.review-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.review-item:last-child {
    border-bottom: none;
}

.panel-card .list-group-item {
    padding: 1rem 1.5rem;
    border-color: #f1f5f9;
}

.panel-card .list-group-flush > .list-group-item:last-child {
    border-bottom: none;
}

.badge.status-pending { background: #fef3c7; color: #92400e; }
.badge.status-ai_categorized { background: #dbeafe; color: #1e40af; }
.badge.status-approved { background: #d1fae5; color: #065f46; }
.badge.status-published { background: #ccfbf1; color: #0f766e; }
.badge.status-pending,
.badge.status-approved,
.badge.status-rejected { font-weight: 600; }

.payment-details dt {
    color: var(--text-muted);
    font-weight: 500;
}

.payment-details dd {
    margin-bottom: 0.75rem;
}

/* Bid list  clickable cards */
.bid-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.bid-card-link:hover {
    color: inherit;
}

.bid-card-accent {
    height: 4px;
    background: var(--brand-primary);
}

.bid-card-accent.accent-closed {
    background: #ef4444;
}

.bid-org-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
}

.bid-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bid-card-link:hover .bid-card-title {
    color: var(--brand-dark);
}

.bid-deadline-chip {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.bid-deadline-chip.open {
    background: #d1fae5;
    color: #065f46;
}

.bid-deadline-chip.closed {
    background: #fee2e2;
    color: #991b1b;
}

.bid-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.bid-card-cta.muted {
    color: var(--text-muted);
}

.page-header-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .page-header-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.bid-search-bar {
    background: var(--surface);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

/* Bid detail hero */
.bid-detail-hero {
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 100%);
}

.bid-detail-hero.hero-closed {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.bid-hero-org {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.bid-hero-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.bid-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.bid-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.bid-fact-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.bid-fact-card.bid-fact-wide {
    grid-column: 1 / -1;
}

.bid-fact-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: var(--brand-light);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bid-fact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.bid-fact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.bid-section-block {
    margin-top: 1.5rem;
}

.bid-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-light);
}

.bid-check-list {
    padding-left: 1.25rem;
    margin: 0;
}

.bid-check-list li {
    margin-bottom: 0.5rem;
    line-height: 1.55;
}

.bid-lot-table {
    font-size: 0.875rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.bid-lot-table thead {
    background: var(--brand-darker);
    color: #fff;
}

.lot-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
}

.bid-description-body {
    line-height: 1.7;
    color: #334155;
}

.bid-contact-grid {
    margin-bottom: 1.5rem;
}

.bid-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.bid-contact-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #fff 100%);
    border: 1px solid #99f6e4;
    border-radius: 0.75rem;
    transition: box-shadow 0.2s ease;
}

.bid-contact-card:hover {
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

.bid-contact-card.bid-contact-wide {
    grid-column: 1 / -1;
}

.bid-contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.bid-contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.bid-contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.bid-contact-value a {
    color: var(--brand-dark);
    text-decoration: none;
}

.bid-contact-value a:hover {
    text-decoration: underline;
}

.preview-tabs .nav-link {
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
}

.preview-tabs .nav-link.active {
    color: var(--brand-dark);
    border-bottom-color: var(--brand);
    background: transparent;
}

.preview-formatted-body h2,
.preview-formatted-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-darker);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.preview-formatted-body table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.preview-formatted-body table th,
.preview-formatted-body table td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.preview-formatted-body table thead {
    background: var(--brand-darker);
    color: #fff;
}

.account-settings-nav .nav-link {
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
}

.account-settings-nav .nav-link.active {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.account-settings-panel {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: #fff;
}

.account-danger-zone {
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

/* AI assistant sidebar */
.ai-assistant-panel {
    position: sticky;
    top: 1rem;
}

.ai-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-darker);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--brand-light) 0%, #fff 100%);
    border-radius: 0.75rem;
    border: 1px solid #99f6e4;
}

.ai-tool-card {
    background: var(--surface);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.ai-tool-card.premium {
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 40%);
}

.ai-tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.ai-tool-icon.summary {
    background: #dbeafe;
    color: #1d4ed8;
}

.ai-tool-icon.proposal {
    background: #fef3c7;
    color: #b45309;
}

.ai-tool-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ai-tool-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.ai-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-bullet-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.ai-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-primary);
}

.ai-summary-wide {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.ai-summary-wide-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.ai-summary-wide-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

.ai-bullet-list-wide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.25rem 2rem;
}

.ai-bullet-list-wide li {
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.proposal-section-wide {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.proposal-section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.proposal-upload-card {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.proposal-paper {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 12px 40px rgba(15, 23, 42, 0.12);
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

.proposal-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-darker));
}

.proposal-paper-header {
    padding: 2rem 2.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.proposal-paper-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-darker);
    background: var(--brand-light);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.proposal-paper-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 0;
}

.proposal-paper-body {
    padding: 2rem 2.5rem 2.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #1f2937;
}

.proposal-markdown h1,
.proposal-markdown h2,
.proposal-markdown h3,
.proposal-markdown h4 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.proposal-markdown h2 {
    font-size: 1.15rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.35rem;
}

.proposal-markdown h3 {
    font-size: 1rem;
}

.proposal-markdown p {
    margin-bottom: 0.85rem;
}

.proposal-markdown ul,
.proposal-markdown ol {
    margin-bottom: 1rem;
    padding-left: 1.35rem;
}

.proposal-markdown li {
    margin-bottom: 0.35rem;
}

.proposal-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.proposal-markdown th,
.proposal-markdown td {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.65rem;
    text-align: left;
}

.proposal-markdown th {
    background: #f9fafb;
}

.proposal-markdown hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.proposal-markdown blockquote {
    border-left: 3px solid var(--brand-primary);
    padding-left: 1rem;
    color: #4b5563;
    margin: 1rem 0;
}

.proposal-output {
    font-size: 0.85rem;
    line-height: 1.6;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

@media print {
    body * {
        visibility: hidden;
    }

    .proposal-paper,
    .proposal-paper * {
        visibility: visible;
    }

    .proposal-paper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        box-shadow: none;
        border: none;
    }

    .site-navbar,
    .site-footer,
    .proposal-upload-card,
    .proposal-section-header,
    .ai-assistant-panel,
    .ai-summary-wide,
    .bid-detail-hero,
    .content-card {
        display: none !important;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.preview-raw-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    max-height: 520px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.page-hero {
    padding-bottom: 0.5rem;
}

.pricing-card {
    background: var(--surface);
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    height: 100%;
    position: relative;
}

.pricing-card-featured {
    border-color: var(--brand-primary);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.12);
}

.pricing-badge,
.pricing-badge-sm {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-darker);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.pricing-tier {
    font-size: 1.25rem;
    font-weight: 800;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-darker);
    margin: 0.75rem 0 1.25rem;
}

.pricing-amount span:first-child {
    font-size: 2.5rem;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-amount-sm {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-darker);
    margin: 0.5rem 0 1rem;
}

.pricing-amount-sm span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features,
.pricing-features-sm {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.pricing-features li,
.pricing-features-sm li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.pricing-features li i {
    color: var(--brand-primary);
    margin-right: 0.5rem;
}

.pricing-steps {
    padding-left: 1.25rem;
    line-height: 1.8;
}

.pricing-billing-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.pricing-billing-label {
    font-weight: 700;
    color: var(--text);
}

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

.pricing-tagline {
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-amount-custom {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-darker);
    margin: 0.75rem 0 1rem;
}

.pricing-card-enterprise {
    border-color: #6366f1;
    background: linear-gradient(180deg, #eef2ff 0%, #fff 100%);
}

.pricing-badge-enterprise {
    background: #e0e7ff;
    color: #3730a3;
}

.pricing-save-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.pricing-example-card {
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
}

.pricing-example-card-highlight {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, #f0fdfa 0%, #fff 100%);
}

.billing-period-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.billing-period-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    cursor: pointer;
}

.tier-option-card-enterprise {
    border-color: #6366f1;
}

.pricing-equiv {
    min-height: 1.25rem;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

/* Pricing cards  strikethrough list vs deal price */
.pricing-price-stack {
    margin: 0.75rem 0 1.25rem;
}

.pricing-price-stack-sm {
    margin: 0.5rem 0 0.75rem;
}

.pricing-price-compare {
    margin-bottom: 0.15rem;
}

.pricing-price-strike {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 600;
}

.pricing-price-strike-label {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.85rem;
}

.pricing-amount-deal {
    line-height: 1.1;
}

.pricing-amount-deal span:first-child {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--brand-darker);
}

.pricing-billed-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.pricing-alt-note {
    font-size: 0.75rem;
    margin: 0.25rem 0 0;
}

/* Checkout billing option cards */
.billing-option-card {
    display: block;
    position: relative;
    height: 100%;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.billing-option-card:hover {
    border-color: #99f6e4;
}

.billing-option-card.is-selected {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.billing-option-featured {
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}

.billing-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.billing-option-head {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.billing-option-save {
    font-size: 0.7rem;
    font-weight: 700;
    background: #dcfce7;
    color: #166534;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.billing-option-rec {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--brand-light);
    color: var(--brand-darker);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.billing-option-compare {
    margin-bottom: 0.25rem;
}

.billing-option-total {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-darker);
    line-height: 1.2;
}

.billing-option-total span {
    font-size: 1rem;
    font-weight: 700;
}

.billing-option-equiv {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.25rem;
}

.billing-option-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.checkout-summary {
    border: 2px solid var(--brand-primary);
    background: linear-gradient(135deg, #f0fdfa 0%, #fff 100%);
}

.checkout-total {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-darker);
    line-height: 1.1;
}

.verify-email-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--brand-light);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.verification-code-input {
    letter-spacing: 0.45em;
    font-weight: 700;
    font-size: 1.5rem;
    max-width: 12rem;
    margin: 0 auto;
}

.alert-category-picker {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    max-height: 320px;
    overflow-y: auto;
    background: #f8fafc;
}

.alert-category-group {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.alert-category-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.alert-category-parent,
.alert-category-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.alert-category-parent {
    font-weight: 600;
}

.alert-category-child {
    margin-left: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.alert-category-parent input,
.alert-category-child input {
    flex-shrink: 0;
}

.tier-option-card-featured {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.about-riftronix-card {
    border-left: 4px solid var(--brand-primary);
}

.about-built-by {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.about-riftronix-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.about-riftronix-list li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.about-riftronix-list i {
    color: var(--brand-primary);
    margin-right: 0.5rem;
}

.feature-mini-card {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: 100%;
}

.feature-mini-card i {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a,
.footer-link-light {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-links a:hover,
.footer-link-light:hover {
    color: #fff;
}

.sub-status-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.plan-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-benefits-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.plan-benefits-list i {
    color: var(--brand-primary);
    margin-right: 0.4rem;
}

@media (max-width: 991px) {
    .dashboard-sidebar {
        width: 72px;
    }
    .dashboard-sidebar span,
    .sidebar-heading,
    .sidebar-brand span {
        display: none;
    }
    .dashboard-main {
        margin-left: 72px;
    }
    .sidebar-brand {
        text-align: center;
        padding: 1rem 0.5rem;
    }
    .sidebar-link {
        justify-content: center;
        padding: 0.75rem;
    }
}
