/**
 * Components - Buttons, Forms, Modals, Cards
 * File: assets/css/components.css
 */

/* ========== BUTTONS ========== */
/* All buttons have 48px minimum height for proper touch targets (iOS/Android standard) */
.btn,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    min-height: 48px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
}

.btn-large,
.button-large {
    padding: 1rem 2rem;
    min-height: 56px;
    font-size: 1.1rem;
}

/* Large UI Mode - 56px minimum taps */
body.large-ui .btn,
body.large-ui .button {
    min-height: 56px;
    padding: 0.875rem 1.75rem;
    font-size: 1.1rem;
}

body.large-ui .btn-large,
body.large-ui .button-large {
    min-height: 56px;
    padding: 1.25rem 2.25rem;
    font-size: 1.15rem;
}

.btn-primary,
.button-primary {
    background: linear-gradient(135deg, var(--primary, #6b46c1) 0%, var(--primary-hover, #805ad5) 100%);
    color: white;
    border-color: transparent;
}

.btn-primary:hover,
.button-primary:hover {
    background: linear-gradient(135deg, var(--ott-accent, #f6ad55) 0%, var(--ott-accent-hover, #ed8936) 100%);
    color: var(--ott-accent-btn-text, #1a1a1a);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary,
.button-secondary {
    background: var(--ott-accent, #f6ad55);
    color: var(--ott-accent-btn-text, #1a1a1a);
    border-color: var(--ott-accent, #f6ad55);
}

.btn-secondary:hover,
.button-secondary:hover {
    background: var(--ott-accent-hover, #ed8936);
    color: var(--ott-accent-btn-text, #1a1a1a);
    border-color: var(--ott-accent-hover, #ed8936);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary, #6b46c1);
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary, #6b46c1);
    border: 2px solid var(--primary, #6b46c1);
}

.btn-outline-primary:hover {
    background: var(--primary, #6b46c1);
    color: white;
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--ott-accent, #f6ad55) 0%, var(--ott-accent-hover, #ed8936) 100%);
    color: var(--ott-accent-btn-text, #1a1a1a);
    transform: translateY(-2px);
}

.btn-danger,
.button-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn:disabled,
.button:disabled,
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Loading State */
.btn-loading,
.button-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
    cursor: wait;
}

.btn-loading .btn-text,
.button-loading .btn-text {
    opacity: 0;
}

.btn-loading .btn-loader,
.button-loading .btn-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-loader .ott-icon {
    animation: spin 1s linear infinite;
}

/* Inline loading (icon + text visible) */
.btn-loading-inline {
    pointer-events: none;
    opacity: 0.9;
}

.btn-loading-inline .ott-icon {
    animation: spin 1s linear infinite;
}

.btn-locked {
    background: #e2e8f0;
    color: #718096;
    cursor: not-allowed;
}

.btn-locked:disabled {
    opacity: 0.7;
}

/* Upgrade button - lighter purple for upsell CTAs */
.btn-upgrade {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    color: white;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 122, 234, 0.3);
}

/* Claim button - accent color for business claims */
.btn-claim {
    background: linear-gradient(135deg, var(--ott-accent, #f6ad55), var(--ott-accent-hover, #ed8936));
    color: var(--ott-accent-btn-text, #1a1a1a);
}

.btn-claim:hover {
    background: linear-gradient(135deg, var(--ott-accent-hover, #ed8936), var(--ott-accent-dark, #dd6b20));
    color: var(--ott-accent-btn-text, #1a1a1a);
}

/* Edit button - subtle gray */
.btn-edit {
    background: #edf2f7;
    color: #4a5568;
    border: 2px solid transparent;
}

.btn-edit:hover {
    background: #e2e8f0;
}

/* Delete button - outlined red */
.btn-delete {
    background: #fff;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.btn-delete:hover {
    background: #fed7d7;
}

/* Text button - minimal styling */
.btn-text {
    background: none;
    border: none;
    color: #6b7280;
    padding: 0.5rem;
    min-height: auto;
}

.btn-text:hover {
    color: #374151;
    background: #f3f4f6;
}

/* Small button variant */
.btn-sm {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Block button - full width */
.btn-block {
    width: 100%;
}

/* ========== FORMS ========== */
.form-row {
    margin-bottom: 1.25rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-row label .required {
    color: #e53e3e;
    margin-left: 0.25rem;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 48px;
    border: 1px solid var(--border-gray-dark, #cbd5e0);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.2s;
}

/* Large UI Mode - 56px inputs */
body.large-ui .form-row input[type="text"],
body.large-ui .form-row input[type="email"],
body.large-ui .form-row input[type="tel"],
body.large-ui .form-row input[type="password"],
body.large-ui .form-row input[type="number"],
body.large-ui .form-row select,
body.large-ui .form-row textarea {
    min-height: 56px;
    padding: 0.875rem 1.125rem;
    font-size: 1.1rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary, #6b46c1);
    box-shadow: 0 0 0 3px rgba(107,70,193,0.1);
}

.form-row textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row .helper {
    font-size: 0.85rem;
    color: var(--text-muted, #718096);
    margin-top: 0.25rem;
    display: block;
}

.form-row .helper-highlight {
    font-weight: 500;
    color: #0073aa;
}

.form-row.error input,
.form-row.error select,
.form-row.error textarea {
    border-color: #fc8181;
    background: #fff5f5;
}

.form-row .error-msg {
    color: #c53030;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-row.error .error-msg {
    display: block;
}

.form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-row {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    min-height: 48px;
}

.checkbox-row input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-row label {
    font-size: 0.95rem;
    color: var(--text-secondary, #4a5568);
    cursor: pointer;
    line-height: 1.6;
    font-weight: normal;
    padding: 0.5rem 0;
}

/* Large UI Mode */
body.large-ui .checkbox-row {
    min-height: 56px;
}

body.large-ui .checkbox-row input[type="checkbox"] {
    width: 32px;
    height: 32px;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted, #718096);
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: var(--ott-accent, #f6ad55);
    font-weight: 500;
}

.char-counter.at-limit {
    color: #e53e3e;
    font-weight: 600;
}

/* ========== CHARACTER-LIMITED FIELDS ========== */
.char-limited-field {
    position: relative;
}

.char-limited-field label {
    display: block;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.char-limited-field label .required {
    color: #e53e3e;
    margin-left: 0.25rem;
}

.char-limited-field .char-limited-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray-dark, #cbd5e0);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.char-limited-field .char-limited-input:focus {
    outline: none;
    border-color: var(--primary, #6b46c1);
    box-shadow: 0 0 0 3px rgba(107,70,193,0.1);
}

.char-limited-field .char-limited-input::placeholder {
    color: var(--text-tertiary, #a0aec0);
}

/* ========== NOTICES ========== */
.notice {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.notice-success {
    background: var(--color-success-light, #c6f6d5);
    color: var(--color-success-text, #22543d);
    border: 1px solid var(--color-success, #48bb78);
}

.notice-error {
    background: var(--color-error-light, #fed7d7);
    color: var(--color-error-text, #742a2a);
    border: 1px solid var(--color-error, #e53e3e);
}

.notice-info {
    background: var(--color-info-light, #bee3f8);
    color: var(--color-info-text, #1a365d);
    border: 1px solid var(--color-info, #3182ce);
}

.notice-warning {
    background: var(--color-warning-light, #fffbeb);
    color: var(--color-warning-text, #92400e);
    border: 1px solid var(--color-warning, #f6ad55);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.notice-warning a {
    color: #b45309;
    font-weight: 500;
}

/* ========== MODALS (Standardized System) ========== */

/* Modal Overlay */
.modal-overlay,
.ott-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay.show,
.modal-overlay.active,
.modal-overlay.open,
.ott-modal-overlay.show,
.ott-modal-overlay.active,
.ott-modal-overlay.open {
    display: flex;
}

/* Dark variant */
.ott-modal-overlay--dark {
    background: rgba(0, 0, 0, 0.8);
}

/* Modal Container */
.modal,
.ott-modal {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Legacy .modal with padding */
.modal {
    padding: 2rem;
    max-width: 600px;
    overflow-y: auto;
}

/* New .ott-modal without padding (uses header/body/footer) */
.ott-modal {
    padding: 0;
}

/* Size variants */
.ott-modal--md { max-width: 500px; }
.ott-modal--lg { max-width: 700px; }
.ott-modal--xl { max-width: 900px; }

/* Modal Header */
.modal-header,
.ott-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-gray, #e2e8f0);
    flex-shrink: 0;
}

/* Legacy .modal-header */
.modal-header {
    padding: 0;
    border-bottom: none;
    margin-bottom: 1.5rem;
    align-items: start;
}

.modal-header h2,
.modal-header h3,
.ott-modal-header h2,
.ott-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Close Button */
.modal-close,
.ott-modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted, #6b7280);
    border-radius: 6px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.modal-close:hover,
.ott-modal-close:hover {
    background: var(--bg-gray-100, #f3f4f6);
    color: var(--text-primary, #1f2937);
}

.modal-close:focus,
.ott-modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.2);
}

/* Modal Body */
.modal-content,
.ott-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    color: var(--text-secondary, #4a5568);
    line-height: 1.7;
}

/* Legacy .modal-content has no padding (modal itself has padding) */
.modal-content {
    padding: 0;
}

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

/* Modal Footer */
.modal-actions,
.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-gray, #e2e8f0);
    background: var(--bg-gray-50, #f9fafb);
    flex-shrink: 0;
}

/* Legacy .modal-actions */
.modal-actions {
    padding: 0;
    border-top: none;
    background: none;
    margin-top: 2rem;
    gap: 1rem;
}

/* ========== CARDS ========== */
.card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray, #e2e8f0);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
    margin: 0;
}

.card-body {
    color: var(--text-secondary, #4a5568);
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray, #e2e8f0);
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background: #e9d8fd;
    color: var(--primary, #6b46c1);
}

.badge-success {
    background: var(--color-success-light, #c6f6d5);
    color: var(--color-success-text, #22543d);
}

.badge-warning {
    background: var(--color-warning-light, #feebc8);
    color: var(--color-warning-text, #7c2d12);
}

.badge-danger {
    background: var(--color-error-light, #fed7d7);
    color: var(--color-error-text, #742a2a);
}

.badge-info {
    background: var(--color-info-light, #bee3f8);
    color: var(--color-info-text, #1a365d);
}

/* ========== SPINNER ========== */
.spinner {
    border: 4px solid var(--border-gray, #e2e8f0);
    border-top: 4px solid var(--primary, #6b46c1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-gray, #e2e8f0);
}

.tab {
    padding: 0.6rem 1.25rem;
    min-height: 40px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted, #718096);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* Large UI Mode */
body.large-ui .tab {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
}

.tab:hover {
    color: var(--text-secondary, #4a5568);
}

.tab.active {
    color: var(--primary, #6b46c1);
    border-bottom-color: var(--primary, #6b46c1);
}

.tab .count {
    display: inline-block;
    background: var(--bg-gray-200, #e2e8f0);
    color: var(--text-secondary, #4a5568);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.tab.active .count {
    background: #e9d8fd;
    color: var(--primary, #6b46c1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== RATING STARS ========== */
.stars {
    color: var(--ott-accent, #f6ad55);
    font-size: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-text {
    color: var(--text-muted, #718096);
    font-size: 0.9rem;
}

/* ========== EMPTY STATES ========== */
.empty-state {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary, #1a202c);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted, #718096);
    margin-bottom: 1.5rem;
}

/* ========== INFO BOXES ========== */
.info-box {
    background: var(--bg-gray-100, #edf2f7);
    border-left: 4px solid var(--primary, #6b46c1);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary, #4a5568);
    line-height: 1.7;
}

.info-box strong {
    color: var(--text-primary, #2d3748);
}

/* ========== DASHBOARD ALERTS ========== */
.dashboard-alert {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 0 auto 1rem;
    max-width: 1400px;
    align-items: flex-start;
    border: 2px solid;
}

.dashboard-alert svg {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.alert-content p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.alert-content p:last-child {
    margin-bottom: 0;
}

.alert-danger {
    background: var(--color-error-bg, #fef2f2);
    border-color: var(--color-error, #e53e3e);
    color: var(--color-error-text, #991b1b);
}

.alert-danger svg {
    color: var(--color-error, #e53e3e);
}

.alert-warning {
    background: var(--color-warning-bg, #fffbeb);
    border-color: var(--color-warning, #ed8936);
    color: var(--color-warning-text, #92400e);
}

.alert-warning svg {
    color: var(--color-warning, #ed8936);
}

.alert-info {
    background: var(--color-info-bg, #eff6ff);
    border-color: var(--color-info, #3182ce);
    color: var(--color-info-text, #1e3a8a);
}

.alert-info svg {
    color: var(--color-info, #3182ce);
}

.alert-success {
    background: var(--color-success-bg, #f0fdf4);
    border-color: var(--color-success, #48bb78);
    color: var(--color-success-text, #14532d);
}

.alert-success svg {
    color: var(--color-success, #48bb78);
}

.alert-upgrade {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4f46e5;
    color: white;
}

.alert-upgrade svg {
    color: #fbbf24;
}

.alert-upgrade .btn {
    background: white;
    color: #4f46e5;
    border: none;
    font-weight: 600;
}

.alert-upgrade .btn:hover {
    background: #f0f0ff;
}

/* Button hover accent colors moved to original .btn-* definitions above */


/* ========== FLOATING ACTION BUTTON (FAB) SYSTEM ========== */

/* FAB Container */
.ott-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* FAB Button */
.ott-fab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 48px;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
    color: white;
}

.ott-fab-btn:hover {
    transform: translateY(-2px);
}

.ott-fab-btn:active {
    transform: translateY(0);
}

.ott-fab-btn svg,
.ott-fab-btn .ott-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Minimized FAB */
.ott-fab.minimized .ott-fab-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    min-height: auto;
    justify-content: center;
}

.ott-fab.minimized .ott-fab-btn span {
    display: none;
}

/* FAB Color Variants */
.ott-fab-btn--primary {
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
}
.ott-fab-btn--primary:hover {
    box-shadow: 0 6px 16px rgba(107, 70, 193, 0.3);
}

.ott-fab-btn--danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}
.ott-fab-btn--danger:hover {
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.3);
}

.ott-fab-btn--info {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
}
.ott-fab-btn--info:hover {
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.35);
}

/* ========== FAB MODAL OVERLAY ========== */
.ott-fab-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ott-fab-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== FAB MODAL ========== */
.ott-fab-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.ott-fab-overlay.active .ott-fab-modal {
    transform: translateY(0);
}

.ott-fab-modal--lg {
    max-width: 560px;
}

.ott-fab-modal--xl {
    max-width: 700px;
}

/* ========== FAB MODAL HEADER ========== */
.ott-fab-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.ott-fab-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ott-fab-modal-header h3 svg,
.ott-fab-modal-header h3 .ott-icon {
    width: 24px;
    height: 24px;
}

/* Colored header */
.ott-fab-modal-header--primary {
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
    border-bottom: none;
}

.ott-fab-modal-header--info {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    border-bottom: none;
}

.ott-fab-modal-header--danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    border-bottom: none;
}

.ott-fab-modal-header--primary h3,
.ott-fab-modal-header--info h3,
.ott-fab-modal-header--danger h3 {
    color: white;
}

/* ========== FAB MODAL CLOSE ========== */
.ott-fab-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #718096;
    cursor: pointer;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.ott-fab-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2d3748;
}

.ott-fab-modal-header--primary .ott-fab-modal-close,
.ott-fab-modal-header--info .ott-fab-modal-close,
.ott-fab-modal-header--danger .ott-fab-modal-close {
    color: rgba(255, 255, 255, 0.8);
}

.ott-fab-modal-header--primary .ott-fab-modal-close:hover,
.ott-fab-modal-header--info .ott-fab-modal-close:hover,
.ott-fab-modal-header--danger .ott-fab-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ========== FAB MODAL BODY ========== */
.ott-fab-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ========== FAB CONTEXT INFO ========== */
.ott-fab-context {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.ott-fab-context-label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ott-fab-context-value {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    word-break: break-word;
}

/* ========== FAB FORM ========== */
.ott-fab-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ott-fab-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ott-fab-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.ott-fab-form-group label .required {
    color: #e53e3e;
}

.ott-fab-form-group label .optional {
    color: #718096;
    font-weight: 400;
    font-size: 13px;
}

.ott-fab-form-group input,
.ott-fab-form-group select,
.ott-fab-form-group textarea {
    padding: 10px 14px;
    min-height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ott-fab-form-group input:focus,
.ott-fab-form-group select:focus,
.ott-fab-form-group textarea:focus {
    outline: none;
    border-color: var(--primary, #6b46c1);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.15);
}

.ott-fab-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.ott-fab-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ========== FAB MODAL FOOTER ========== */
.ott-fab-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.ott-fab-modal-footer--end {
    justify-content: flex-end;
}

.ott-fab-actions {
    display: flex;
    gap: 10px;
}

/* Footer link */
.ott-fab-link {
    color: var(--primary, #6b46c1);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ott-fab-link:hover {
    text-decoration: underline;
}

.ott-fab-link svg {
    width: 16px;
    height: 16px;
}

/* Action buttons */
.ott-fab-btn-cancel {
    padding: 10px 20px;
    min-height: 44px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.15s;
}

.ott-fab-btn-cancel:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.ott-fab-btn-submit {
    padding: 10px 20px;
    min-height: 44px;
    background: var(--primary, #6b46c1);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.15s;
}

.ott-fab-btn-submit:hover {
    opacity: 0.9;
}

.ott-fab-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ott-fab-btn-submit--info {
    background: #3182ce;
}

.ott-fab-btn-submit--info:hover {
    background: #2c5282;
}

/* ========== FAB LOADING ========== */
.ott-fab-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #718096;
}

.ott-fab-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--primary, #6b46c1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

.ott-fab-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ========== FAB MESSAGES ========== */
.ott-fab-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.ott-fab-message--success {
    background: var(--color-success-bg, #f0fdf4);
    border: 1px solid var(--color-success, #48bb78);
    color: var(--color-success-text, #166534);
}

.ott-fab-message--error {
    background: var(--color-error-bg, #fef2f2);
    border: 1px solid var(--color-error, #e53e3e);
    color: var(--color-error-text, #991b1b);
}

/* ========== FAB SUCCESS STATE ========== */
.ott-fab-success {
    text-align: center;
    padding: 40px 20px;
}

.ott-fab-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #c6f6d5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ott-fab-success-icon svg {
    width: 32px;
    height: 32px;
    color: #276749;
}

.ott-fab-success h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #276749;
}

.ott-fab-success p {
    margin: 0 0 20px;
    color: #4a5568;
}

.ott-fab-success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ========== FAB LIST (for existing items) ========== */
.ott-fab-list {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.ott-fab-list-empty {
    padding: 16px;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
}

.ott-fab-list-item {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ott-fab-list-item:last-child {
    border-bottom: none;
}

.ott-fab-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ott-fab-list-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.ott-fab-list-count {
    background: #e2e8f0;
    color: #4a5568;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* List item badges - extends .badge */
.ott-fab-badge {
    font-size: 10px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-gray-200, #e2e8f0);
    color: var(--text-secondary, #4a5568);
    flex-shrink: 0;
}

/* ========== FAB SCREENSHOT ========== */
.ott-fab-screenshot-section {
    margin-bottom: 20px;
}

.ott-fab-screenshot-section > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.ott-fab-screenshot-preview {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    max-height: 200px;
}

.ott-fab-screenshot-preview.hidden {
    display: none;
}

.ott-fab-screenshot-preview img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
    background: #f7fafc;
}

.ott-fab-screenshot-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.ott-fab-screenshot-btn {
    padding: 4px 10px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.ott-fab-screenshot-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ott-fab-screenshot-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
}

.ott-fab-screenshot-controls.hidden {
    display: none;
}

.ott-fab-screenshot-hint {
    font-size: 13px;
    color: #718096;
}

/* Existing notes section */
.ott-fab-existing {
    margin-bottom: 20px;
}

.ott-fab-list-item-name {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
}

.ott-fab-list-item-status {
    font-size: 11px;
    color: #a0aec0;
}

.ott-fab-list-item-status.completed { color: #48bb78; }
.ott-fab-list-item-status.in_progress { color: #ed8936; }

.ott-fab-list-item-image {
    text-decoration: none;
    font-size: 16px;
    opacity: 0.8;
}

.ott-fab-list-item-image:hover { opacity: 1; }

/* Screenshot remove button */
.ott-fab-screenshot-remove {
    background: rgba(229, 62, 62, 0.8);
}

.ott-fab-screenshot-remove:hover {
    background: rgba(197, 48, 48, 0.9);
}

/* Add another button */
.ott-fab-add-another {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.ott-fab-add-another:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Capturing indicator */
.ott-fab-capturing {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 9999999;
}

/* ========== FAB HIGH CONTRAST ========== */
@media (prefers-contrast: high) {
    .ott-fab-btn {
        border: 2px solid currentColor;
    }
    
    .ott-fab-modal {
        border: 2px solid #2d3748;
    }
}

/* ========== TOAST NOTIFICATION SYSTEM ========== */

.ott-toast {
    position: fixed;
    min-width: 300px;
    max-width: 450px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

/* Toast positions */
.ott-toast--tr {
    top: 20px;
    right: 20px;
    transform: translateX(120%);
}

.ott-toast--tl {
    top: 20px;
    left: 20px;
    transform: translateX(-120%);
}

.ott-toast--br {
    bottom: 20px;
    right: 20px;
    transform: translateX(120%);
}

.ott-toast--bl {
    bottom: 20px;
    left: 20px;
    transform: translateX(-120%);
}

/* Show state */
.ott-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Hide state */
.ott-toast.hide.ott-toast--tr,
.ott-toast.hide.ott-toast--br {
    transform: translateX(120%);
    opacity: 0;
}

.ott-toast.hide.ott-toast--tl,
.ott-toast.hide.ott-toast--bl {
    transform: translateX(-120%);
    opacity: 0;
}

/* Toast content */
.ott-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
}

.ott-toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ott-toast-icon svg {
    width: 100%;
    height: 100%;
}

.ott-toast-message {
    flex: 1;
    font-weight: 500;
    padding-right: 1rem;
}

/* Close button */
.ott-toast-close {
    position: absolute;
    top: -0.25rem;
    right: -0.5rem;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: currentColor;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0;
}

.ott-toast-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ott-toast-close:active {
    transform: scale(0.95);
}

/* Progress bar */
.ott-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: currentColor;
    opacity: 0.4;
    width: 0;
    border-radius: 0 0 0 12px;
}

/* Toast variants */
.ott-toast--success {
    background: var(--color-success-bg, #f0fff4);
    border: 2px solid var(--color-success, #48bb78);
    color: var(--color-success-text, #22543d);
}

.ott-toast--success .ott-toast-progress {
    background: var(--color-success, #48bb78);
}

.ott-toast--error {
    background: var(--color-error-bg, #fff5f5);
    border: 2px solid var(--color-error, #e53e3e);
    color: var(--color-error-text, #742a2a);
}

.ott-toast--error .ott-toast-progress {
    background: var(--color-error, #e53e3e);
}

.ott-toast--warning {
    background: var(--color-warning-bg, #fffaf0);
    border: 2px solid var(--color-warning, #ed8936);
    color: var(--color-warning-text, #7c2d12);
}

.ott-toast--warning .ott-toast-progress {
    background: var(--color-warning, #ed8936);
}

.ott-toast--info {
    background: var(--color-info-bg, #ebf8ff);
    border: 2px solid var(--color-info, #3182ce);
    color: var(--color-info-text, #1a365d);
}

.ott-toast--info .ott-toast-progress {
    background: var(--color-info, #3182ce);
}

/* Shake animation */
.ott-toast.shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Clickable toast */
.ott-toast[data-clickable] {
    cursor: pointer;
}

.ott-toast[data-clickable]:active {
    transform: scale(0.98) translateX(0);
}

/* Desktop hover */
@media (hover: hover) {
    .ott-toast:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px) translateX(0);
    }

    .ott-toast--success:hover {
        border-color: #68d391;
    }

    .ott-toast--error:hover {
        border-color: #feb2b2;
    }

    .ott-toast--warning:hover {
        border-color: #f6ad55;
    }

    .ott-toast--info:hover {
        border-color: #63b3ed;
    }
}

/* Focus visible */
.ott-toast-close:focus-visible {
    outline: 3px solid var(--primary, #6b46c1);
    outline-offset: 2px;
}

/* ========== REVIEW SUBMISSION PAGE ========== */
.review-submission-page {
    max-width: 700px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.review-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.job-summary {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.job-summary h3 {
    font-size: 1.3rem;
    color: var(--text-primary, #1a202c);
    margin-bottom: 0.5rem;
}

.job-meta {
    color: var(--text-muted, #718096);
    font-size: 0.9rem;
    margin: 0;
}

.review-form h2 {
    font-size: 1.75rem;
    color: var(--text-primary, #1a202c);
    margin-bottom: 0.5rem;
}

.review-form .description {
    color: var(--text-muted, #718096);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Star Rating */
.rating-row {
    margin-bottom: 2rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 3rem;
    color: #cbd5e0;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--ott-accent, #f6ad55);
}

.rating-label {
    display: block;
    color: #718096;
    font-size: 0.95rem;
}

.rating-scale {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.scale-option {
    flex: 1;
    text-align: center;
}

.scale-option input {
    display: none;
}

.scale-option span {
    display: block;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: #718096;
}

.scale-option input:checked + span {
    background: var(--primary, #6b46c1);
    border-color: var(--primary, #6b46c1);
    color: white;
}

.scale-option:hover span {
    border-color: var(--primary, #6b46c1);
}

/* Success State */
.success-container {
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-success, #48bb78) 0%, var(--color-success-dark, #38a169) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
}

.success-container h2 {
    font-size: 2rem;
    color: var(--text-primary, #1a202c);
    margin-bottom: 1rem;
}

.success-container p {
    color: var(--text-secondary, #4a5568);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ========== CATEGORY STATUS COMPONENTS ========== */

.category-status-card {
    background: white;
    border: 1px solid var(--border-gray, #e2e8f0);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.category-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-gray-50, #f8fafc);
    border-radius: 8px;
}

.cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cat-name {
    font-weight: 600;
    color: var(--text-primary, #1a202c);
}

.cat-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #4a5568);
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cat-progress {
    flex: 1;
    margin: 0 1rem;
}

.progress-bar-mini {
    height: 6px;
    background: var(--bg-gray-200, #e2e8f0);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-mini .fill {
    height: 100%;
    background: linear-gradient(90deg, #6b46c1, #805ad5);
    border-radius: 3px;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-muted, #718096);
    margin-top: 0.25rem;
}

.cat-status-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cat-status-badge.open { background: #c6f6d5; color: #22543d; }
.cat-status-badge.saturated { background: #fed7d7; color: #742a2a; }
.cat-status-badge.mixed { background: #fef3c7; color: #78350f; }

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-gray-100, #f0f0f0);
    border-radius: 20px;
    font-size: 0.85rem;
}

.pill-label {
    color: var(--text-secondary, #4a5568);
}

/* Notice Boxes */
.notice-box {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.notice-box.info {
    background: #ebf8ff;
    border: 1px solid #3182ce;
    color: #1a365d;
}

.subscription-category-notice {
    background: #f0fff4;
    border: 1px solid #48bb78;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.status-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.category-help-content {
    padding: 1rem;
    background: var(--bg-gray-50, #f8fafc);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.learn-more-link {
    color: var(--primary, #6b46c1);
    font-weight: 500;
}

.learn-more-link:hover {
    text-decoration: underline;
}

/* Tier badges */
.cat-status-badge.free { background: #e2e8f0; color: #4a5568; }

/* ========== HIGHLIGHT BOX ========== */
.highlight-box {
    background: linear-gradient(135deg, var(--primary, #6b46c1) 0%, #9333ea 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.highlight-box h3,
.highlight-box h4 {
    color: white;
    margin: 0 0 0.5rem;
}

.highlight-box p {
    margin: 0;
    opacity: 0.95;
}

.highlight-box a {
    color: white;
    text-decoration: underline;
}

/* ========== VERIFICATION BADGE ========== */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    background: #d1fae5;
    color: #065f46;
}

.verification-badge svg {
    flex-shrink: 0;
}

.verification-badge.badge-primary {
    background: var(--primary-light, #e9d8fd);
    color: var(--primary-dark, #553c9a);
}

.verification-badge.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.verification-badge.badge-warning {
    background: #fef3c7;
    color: #78350f;
}

.verification-badge.badge-muted {
    background: #e2e8f0;
    color: #4a5568;
}

/* ========== STAT CARDS ========== */
/* Unified stat display component - replaces .metric-card, .stat-box, .stats-card */
.stat-card,
.stat-box,
.stats-card,
.metric-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-gray, #e2e8f0);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

/* Light background variant */
.stat-card--light {
    background: var(--bg-gray-50, #f7fafc);
    border: none;
}

.stat-value,
.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #1a202c);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-value.large,
.metric-value.large {
    font-size: 2.5rem;
}

.stat-value.success,
.metric-value.success { color: var(--color-success, #48bb78); }
.stat-value.warning,
.metric-value.warning { color: var(--color-warning, #ed8936); }
.stat-value.danger,
.metric-value.danger { color: var(--color-danger, #e53e3e); }
.stat-value.primary,
.metric-value.primary { color: var(--primary, #6b46c1); }

.stat-label,
.metric-label {
    color: var(--text-muted, #718096);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* ========== INFO MODAL (Standardized) ========== */
/* Info button - simple icon, color change on hover */
.ott-info-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted, #718096);
    transition: color 0.2s;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ott-info-btn:hover {
    color: var(--primary, #6b46c1);
}

/* Info modal overlay */
.ott-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Info modal container */
.ott-info-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Info modal header */
.ott-info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-light, #f7fafc);
    border-bottom: 1px solid var(--border-gray, #e2e8f0);
}

.ott-info-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Info modal close button */
.ott-info-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted, #718096);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.ott-info-modal-close:hover {
    background: var(--bg-gray-100, #edf2f7);
    color: var(--text-primary, #1a202c);
}

/* Info modal body */
.ott-info-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
}

.ott-info-modal-body h4 {
    margin: 20px 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
}

.ott-info-modal-body h4:first-child {
    margin-top: 0;
}

/* Info list */
.ott-info-list {
    margin: 0 0 15px 20px;
    padding: 0;
}

.ott-info-list li {
    margin-bottom: 8px;
    color: var(--text-secondary, #4a5568);
    line-height: 1.5;
}

/* Info table */
.ott-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ott-info-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-gray, #e2e8f0);
    color: var(--text-secondary, #4a5568);
}

.ott-info-table tr:last-child td {
    border-bottom: none;
}

.ott-info-table td:nth-child(2) {
    width: 80px;
    color: var(--primary, #6b46c1);
    font-weight: 600;
}

/* Info card (for tier-style content blocks) */
.ott-info-card {
    padding: 12px 14px;
    border-left: 4px solid var(--primary, #6b46c1);
    background: var(--bg-light, #f7fafc);
    border-radius: 6px;
    margin-bottom: 12px;
}

.ott-info-card:last-child {
    margin-bottom: 0;
}

.ott-info-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
}

.ott-info-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #4a5568);
    line-height: 1.5;
}

/* Info modal footer */
.ott-info-modal-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray, #e2e8f0);
}

.ott-info-modal-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted, #718096);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .ott-info-modal {
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }
    
    .ott-info-modal-body {
        max-height: calc(90vh - 70px);
    }
}
