:root {
    --color-primary: #0B2A44;
    --color-primary-dark: #082033;
    --color-accent: #F2B300;
    --color-accent-dark: #D89A00;
    --color-surface: #ffffff;
    --color-bg: #f5f7fa;
    --color-text: #1a1a1a;
    --color-muted: #6b7280;
    --color-danger: #dc3545;
    --color-success: #198754;
    --color-nav-bg: #0B2A44;
    --header-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-card: 0 2px 4px rgba(11, 42, 68, 0.08);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--color-success);
}

.invalid {
    outline: 1px solid var(--color-danger);
}

.validation-message {
    color: var(--color-danger);
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/* Mobile-First Styles */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.app-container {
    min-height: 100vh;
    background-color: var(--color-bg);
}

.app-container--no-nav {
    padding-bottom: 0;
}

.app-container--with-nav {
    padding-bottom: 64px;
}

.main-content {
    width: 100%;
    height: 100%;
}

/* Login & SignUp Styles */
.login-container,
.signup-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--header-gradient);
}

.login-card,
.signup-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-card h1,
.signup-card h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.subtitle {
    color: #666;
    margin: 0 0 24px 0;
    font-size: 15px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #333;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(242, 179, 0, 0.2);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--color-accent-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

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

.button-group .btn {
    flex: 1;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.login-link,
.signup-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.login-link a,
.signup-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.spinner-border {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.spinner-border-sm {
    width: 14px;
    height: 14px;
}

/* Quotes List Styles */
.quotes-container {
    min-height: 100vh;
    background-color: var(--color-bg);
}

.quotes-header {
    background: var(--header-gradient);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
}

.org-name {
    opacity: 0.9;
    font-size: 13px;
}

.header-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.header-actions .btn {
    flex: 1;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading-container .spinner-border {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
}

.empty-state p {
    color: #666;
    margin: 0 0 24px 0;
    font-size: 16px;
}

.quotes-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quotes-grid {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.list-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.list-search-icon {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    pointer-events: none;
}

.list-search-icon .icon {
    width: 1rem;
    height: 1rem;
}

.list-search-input {
    width: 100%;
    padding: 10px 36px 10px 36px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.list-search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(242, 179, 0, 0.2);
}

.list-search-clear {
    position: absolute;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: #eee;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sort-toggle {
    display: flex;
    gap: 8px;
}

.sort-toggle-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.sort-toggle-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.filter-chip.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.quote-customer {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-overdue {
    background-color: #ffebee;
    color: #c62828;
}

.quote-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.quote-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.quote-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    display: flex;
    position: relative;
}

.quote-card-content {
    flex: 1;
    padding: 16px;
    cursor: pointer;
}

.quote-card-content:active {
    transform: scale(0.98);
}

.quote-card-actions {
    display: flex;
    align-items: center;
    padding: 16px 8px;
}

.btn-delete {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    opacity: 0.6;
}

.btn-delete:hover {
    background: #fee;
    opacity: 1;
    transform: scale(1.1);
}


.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.quote-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.quote-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-locked {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.status-sent {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-paid {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-void {
    background-color: #f5f5f5;
    color: #757575;
}

.status-accepted {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-rejected {
    background-color: #ffebee;
    color: #d32f2f;
}

.quote-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.detail-item .label {
    color: #666;
}

.detail-item .value {
    font-weight: 600;
    color: #333;
}

.detail-item .total {
    color: var(--color-primary);
    font-size: 16px;
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .quotes-header {
        padding: 24px 32px;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .user-info {
        align-items: flex-end;
    }

    .header-actions {
        margin-top: 0;
    }

    .quotes-list {
        padding: 24px 32px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 16px;
    }

    .quotes-grid {
        padding: 24px 32px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 16px;
    }

    .list-toolbar {
        padding: 16px 32px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .list-search-box {
        flex: 1;
        min-width: 240px;
    }

    .sort-toggle {
        flex: 0 0 auto;
    }

    .sort-toggle-btn {
        flex: 0 0 auto;
        min-width: 80px;
    }
}

/* Delete Confirmation Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body .text-muted {
    color: #666;
    font-size: 14px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Deleted Quotes Styling */
.quote-card.deleted-quote {
    opacity: 0.7;
    background: #f5f5f5;
}

.quote-card.deleted-quote .quote-card-content {
    cursor: default;
}

.deleted-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
    vertical-align: middle;
}

/* Price Loading Indicator */
.price-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #6c757d;
    font-size: 14px;
    min-height: 38px;
}

.price-loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.billing-banner {
    margin: 16px 20px 0;
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.billing-banner strong {
    font-size: 16px;
}

.billing-banner span {
    font-size: 14px;
    line-height: 1.4;
}

.billing-banner-trial {
    background: #e8f0f8;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.billing-banner-blocked {
    background: #fdecea;
    border: 1px solid #dc3545;
    color: #842029;
}

/* Shared UI components */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.empty-icon .icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-primary);
    opacity: 0.6;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-back .icon {
    width: 1rem;
    height: 1rem;
}

.header-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.page-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
    display: block;
}

.content-card-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.quote-date {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--color-muted);
}

.quote-total {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.quote-card-body {
    padding: 0 16px 16px;
}

.quote-card--clickable {
    display: block;
    padding: 16px;
    cursor: pointer;
}

.quote-card--clickable:active {
    transform: scale(0.99);
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-row .icon {
    width: 1rem;
    height: 1rem;
    color: var(--color-muted);
}

.btn-success {
    background-color: var(--color-success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #157347;
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(11, 42, 68, 0.2);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(11, 42, 68, 0.05);
}

.alert-warning {
    background-color: #fff8e6;
    color: #7a5c00;
    border: 1px solid #f2d98b;
}

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

.ms-2 {
    margin-left: 0.5rem;
}

.help-tooltip {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 6px;
}

.help-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(11, 42, 68, 0.2);
    border-radius: 50%;
    background: white;
    color: var(--color-primary);
    cursor: pointer;
}

.help-tooltip-icon {
    width: 14px;
    height: 14px;
}

.help-tooltip-popover {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 20;
    min-width: 220px;
    max-width: 280px;
    padding: 10px 12px;
    background: var(--color-primary);
    color: white;
    font-size: 13px;
    line-height: 1.4;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.account-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.connect-banner-wrap {
    padding: 0 20px;
}

.connect-banner-wrap .billing-banner {
    margin: 16px 0;
}

.connect-banner-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    margin-top: 4px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-brand .icon {
    width: 56px;
    height: 56px;
}

.auth-brand-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.auth-tagline {
    text-align: center;
    color: var(--color-muted);
    font-size: 14px;
    margin: -12px 0 0 0;
}

.form-label-with-help {
    display: inline-flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: var(--color-nav-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 16px;
    transition: color 0.15s;
}

.bottom-nav-link.active {
    color: var(--color-accent);
}

.bottom-nav-link .icon {
    width: 1.35rem;
    height: 1.35rem;
}

/* Form / edit pages (light background) */
.new-quote-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.form-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.form-page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.form-page-header .btn-back {
    background: transparent;
    border: 1px solid rgba(11, 42, 68, 0.15);
    color: var(--color-primary);
    margin-bottom: 0;
}

.form-page-header .btn-back:hover {
    background: rgba(11, 42, 68, 0.05);
}

.quote-form {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    background: #f8f9fb;
    border-top: 1px solid #e8e8e8;
}

.section-heading {
    padding: 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
}

