/**
 * Workshopr Component Library Styles
 *
 * Import this file in header.php to enable all component styles.
 * Components use design system tokens from platform-tokens.css
 */

/* ==========================================================================
   BADGE COMPONENT (ws-badge)
   ========================================================================== */

.ws-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: var(--font-medium, 500);
    line-height: 1;
    white-space: nowrap;
    border-radius: var(--radius-sm, 4px);
    transition: all var(--transition-fast, 150ms ease);
}

/* Badge icon */
.ws-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ws-badge__icon .material-symbols-outlined {
    font-size: inherit;
}

/* --------------------------------------------------------------------------
   Badge Sizes
   -------------------------------------------------------------------------- */

.ws-badge--sm {
    padding: 2px 6px;
    font-size: 11px;
}

.ws-badge--sm .ws-badge__icon .material-symbols-outlined {
    font-size: 12px;
}

.ws-badge--md {
    padding: 4px 10px;
    font-size: 12px;
}

.ws-badge--md .ws-badge__icon .material-symbols-outlined {
    font-size: 14px;
}

.ws-badge--lg {
    padding: 6px 14px;
    font-size: 14px;
}

.ws-badge--lg .ws-badge__icon .material-symbols-outlined {
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   Badge Variants
   -------------------------------------------------------------------------- */

/* Default - neutral gray */
.ws-badge--default {
    background: var(--gray-100, #F5F5F4);
    color: var(--gray-600, #57534E);
    border: 1px solid var(--gray-200, #E7E5E4);
}

/* Duration - subtle gray with clock context */
.ws-badge--duration {
    background: var(--gray-100, #F5F5F4);
    color: var(--gray-500, #78716C);
    border: none;
}

/* Category - uses custom color via CSS vars */
.ws-badge--category {
    background: var(--badge-bg, var(--gray-100, #F5F5F4));
    color: var(--badge-color, var(--gray-600, #57534E));
    border: none;
}

/* NEW badge */
.ws-badge--new {
    background: var(--color-success-light, #DCFCE7);
    color: var(--color-success-dark, #166534);
    border: none;
    text-transform: uppercase;
    font-weight: var(--font-semibold, 600);
    letter-spacing: 0.05em;
}

/* Count badge (for notifications, etc) */
.ws-badge--count {
    background: var(--mainsite-primary, #E54D4D);
    color: var(--text-inverse, #FFFFFF);
    border: none;
    min-width: 18px;
    text-align: center;
    justify-content: center;
}

.ws-badge--count.ws-badge--sm {
    min-width: 14px;
    padding: 1px 4px;
}

/* --------------------------------------------------------------------------
   Status Variants (for ws-badge--status)
   -------------------------------------------------------------------------- */

.ws-badge--success {
    background: var(--color-success-light, #DCFCE7);
    color: var(--color-success-dark, #166534);
}

.ws-badge--warning {
    background: var(--color-warning-light, #FEF3C7);
    color: var(--color-warning-dark, #92400E);
}

.ws-badge--error {
    background: var(--color-error-light, #FEE2E2);
    color: var(--color-error-dark, #991B1B);
}

.ws-badge--info {
    background: var(--color-info-light, #DBEAFE);
    color: var(--color-info-dark, #1E40AF);
}

/* --------------------------------------------------------------------------
   Shape Modifiers
   -------------------------------------------------------------------------- */

.ws-badge--pill {
    border-radius: var(--radius-full, 9999px);
}

/* ==========================================================================
   BUTTON COMPONENT (ws-btn)
   ========================================================================== */

.ws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: var(--font-semibold, 600);
    letter-spacing: var(--tracking-wide, 0.025em);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast, 150ms ease);
    position: relative;
}

.ws-btn:disabled,
.ws-btn--loading {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Button icon */
.ws-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Button Sizes
   -------------------------------------------------------------------------- */

.ws-btn--sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.ws-btn--md {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 10px;
}

.ws-btn--lg {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 10px;
}

/* Icon-only buttons */
.ws-btn--icon-only.ws-btn--sm {
    padding: 8px;
}

.ws-btn--icon-only.ws-btn--md {
    padding: 12px;
}

.ws-btn--icon-only.ws-btn--lg {
    padding: 14px;
}

/* Full width */
.ws-btn--full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Button Variants
   -------------------------------------------------------------------------- */

/* Primary - gradient background */
.ws-btn--primary {
    background: var(--mainsite-gradient, linear-gradient(135deg, #E54D4D 0%, #C73E3E 100%));
    color: var(--text-inverse, #FFFFFF);
}

.ws-btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--mainsite-shadow, 0 4px 14px rgba(229, 77, 77, 0.25));
}

.ws-btn--primary:active:not(:disabled) {
    transform: scale(0.98);
}

/* Secondary - outlined navy */
.ws-btn--secondary {
    background: var(--bg-surface, #FFFFFF);
    color: var(--color-navy, #1A2744);
    border: 2px solid var(--color-navy, #1A2744);
}

.ws-btn--secondary:hover:not(:disabled) {
    background: var(--color-navy, #1A2744);
    color: var(--text-inverse, #FFFFFF);
}

/* Ghost - subtle, minimal */
.ws-btn--ghost {
    background: transparent;
    color: var(--text-default, #5C5242);
    border: 1px solid var(--gray-300, #D6D3D1);
}

.ws-btn--ghost:hover:not(:disabled) {
    background: var(--gray-50, #FAFAF9);
    border-color: var(--gray-400, #A8A29E);
}

/* Danger - destructive actions */
.ws-btn--danger {
    background: var(--color-error, #EF4444);
    color: var(--text-inverse, #FFFFFF);
}

.ws-btn--danger:hover:not(:disabled) {
    background: var(--color-error-dark, #DC2626);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

/* --------------------------------------------------------------------------
   Loading Spinner
   -------------------------------------------------------------------------- */

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

@keyframes ws-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   INPUT COMPONENT (ws-input)
   ========================================================================== */

.ws-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-field--inline {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.ws-field--inline .ws-field__label {
    margin-bottom: 0;
    min-width: 100px;
}

/* Labels */
.ws-field__label {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: var(--font-medium, 500);
    color: var(--text-dark, #2C2416);
}

.ws-field__required {
    color: var(--color-error, #EF4444);
    margin-left: 2px;
}

/* Input wrapper */
.ws-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ws-input-wrap--has-icon-left .ws-input {
    padding-left: 42px;
}

.ws-input-wrap--has-icon-right .ws-input {
    padding-right: 42px;
}

.ws-input-wrap__icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    color: var(--gray-400, #A8A29E);
    pointer-events: none;
}

.ws-input-wrap__icon--left {
    left: 0;
}

.ws-input-wrap__icon--right {
    right: 0;
}

/* Base input styles */
.ws-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 15px;
    color: var(--text-dark, #2C2416);
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-xl, 12px);
    transition: all var(--transition-fast, 150ms ease);
}

.ws-input::placeholder {
    color: var(--gray-400, #A8A29E);
}

.ws-input:hover:not(:disabled):not(:focus) {
    border-color: var(--gray-300, #D6D3D1);
}

.ws-input:focus {
    outline: none;
    border-color: var(--mainsite-primary, #E54D4D);
    box-shadow: 0 0 0 3px var(--mainsite-light, #FEE2E2);
}

/* Textarea */
textarea.ws-input {
    min-height: 100px;
    resize: vertical;
}

/* Select */
select.ws-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* --------------------------------------------------------------------------
   Input Sizes
   -------------------------------------------------------------------------- */

.ws-input--sm {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.ws-input--lg {
    padding: 16px 20px;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   Input States
   -------------------------------------------------------------------------- */

.ws-input:disabled {
    background: var(--gray-50, #FAFAF9);
    color: var(--gray-400, #A8A29E);
    cursor: not-allowed;
}

.ws-input--error,
.ws-field--error .ws-input {
    border-color: var(--color-error, #EF4444);
}

.ws-input--error:focus,
.ws-field--error .ws-input:focus {
    box-shadow: 0 0 0 3px var(--color-error-light, #FEE2E2);
}

.ws-input--success,
.ws-field--success .ws-input {
    border-color: var(--color-success, #22C55E);
}

.ws-input--success:focus,
.ws-field--success .ws-input:focus {
    box-shadow: 0 0 0 3px var(--color-success-light, #DCFCE7);
}

/* Helper/error text */
.ws-field__helper,
.ws-field__error {
    font-size: 12px;
    margin-top: 4px;
}

.ws-field__helper {
    color: var(--text-muted, #78716C);
}

.ws-field__error {
    color: var(--color-error, #EF4444);
}

/* ==========================================================================
   CARD COMPONENT (ws-card)
   ========================================================================== */

.ws-card {
    background: var(--bg-surface, #FFFFFF);
    border-radius: var(--radius-xl, 12px);
    border: 1px solid var(--gray-200, #E7E5E4);
    transition: all var(--transition-base, 200ms ease);
}

/* --------------------------------------------------------------------------
   Card Variants
   -------------------------------------------------------------------------- */

.ws-card--content {
    padding: 20px;
}

.ws-card--feature {
    padding: 24px;
}

.ws-card--compact {
    padding: 16px;
}

.ws-card--flush {
    padding: 0;
}

/* --------------------------------------------------------------------------
   Card Modifiers
   -------------------------------------------------------------------------- */

.ws-card--hoverable {
    cursor: pointer;
}

.ws-card--hoverable:hover {
    box-shadow: var(--shadow-lg, 0 10px 15px rgba(0,0,0,0.08));
    transform: translateY(-2px);
}

.ws-card--elevated {
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.07));
    border: none;
}

.ws-card--bordered {
    border-width: 2px;
}

/* --------------------------------------------------------------------------
   Card Sections
   -------------------------------------------------------------------------- */

.ws-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100, #F5F5F4);
}

.ws-card__body {
    padding: 20px;
}

.ws-card__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100, #F5F5F4);
}

/* Flush cards get section padding */
.ws-card--flush .ws-card__header,
.ws-card--flush .ws-card__body,
.ws-card--flush .ws-card__footer {
    padding: 16px 20px;
}

/* Remove double borders between sections */
.ws-card__header + .ws-card__body {
    padding-top: 16px;
}

.ws-card__body + .ws-card__footer {
    padding-top: 0;
}

/* ==========================================================================
   INTEGRATION: Listing Cards
   Ensures components integrate with existing listing-redesign.css
   ========================================================================== */

/* Duration badge in listing card meta */
.listing-card-meta .ws-badge {
    font-size: 12px;
    padding: 0;
    background: none;
    border: none;
    color: var(--gray-500, #78716C);
}

.listing-card-meta .ws-badge__icon .material-symbols-outlined {
    font-size: 14px;
}

/* Category badge in listing card footer */
.listing-card-footer .ws-badge--category {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full, 9999px);
}

/* Category badge in detail page header */
.page-header .ws-badge--category {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--radius-full, 9999px);
    margin-bottom: 12px;
}

/* Action buttons on detail pages */
.action-buttons-standalone .ws-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--gray-200, #E7E5E4);
    color: var(--gray-500, #78716C);
}

.action-buttons-standalone .ws-btn:hover {
    background: var(--gray-50, #FAFAF9);
    border-color: var(--gray-300, #D6D3D1);
    color: var(--mainsite-primary, #E54D4D);
}

/* ==========================================================================
   AVATAR COMPONENT (ws-avatar)
   ========================================================================== */

.ws-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--avatar-bg, linear-gradient(135deg, var(--mainsite-primary, #E54D4D) 0%, var(--mainsite-dark, #C73E3E) 100%));
    color: var(--text-inverse, #FFFFFF);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: var(--font-semibold, 600);
    flex-shrink: 0;
    overflow: hidden;
}

.ws-avatar__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ws-avatar__initials {
    text-transform: uppercase;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Avatar Sizes
   -------------------------------------------------------------------------- */

.ws-avatar--xs {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.ws-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.ws-avatar--md {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.ws-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 18px;
}

.ws-avatar--xl {
    width: 80px;
    height: 80px;
    font-size: 24px;
}

/* --------------------------------------------------------------------------
   Avatar Modifiers
   -------------------------------------------------------------------------- */

.ws-avatar--ring {
    box-shadow: 0 0 0 3px var(--bg-surface, #FFFFFF), 0 0 0 5px var(--mainsite-primary, #E54D4D);
}

/* Status indicator */
.ws-avatar__status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%;
    height: 25%;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface, #FFFFFF);
}

.ws-avatar__status--online {
    background: var(--color-success, #22C55E);
}

.ws-avatar__status--offline {
    background: var(--gray-400, #A8A29E);
}

.ws-avatar__status--busy {
    background: var(--color-error, #EF4444);
}

/* Avatar group */
.ws-avatar-group {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.ws-avatar-group .ws-avatar {
    margin-left: -8px;
    box-shadow: 0 0 0 2px var(--bg-surface, #FFFFFF);
}

.ws-avatar-group .ws-avatar:last-child {
    margin-left: 0;
}

/* ==========================================================================
   MODAL COMPONENT (ws-modal)
   ========================================================================== */

/* Overlay */
.ws-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: var(--z-modal-backdrop, 400);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow, 300ms ease), visibility var(--transition-slow, 300ms ease);
}

.ws-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal container */
.ws-modal {
    position: relative;
    width: 100%;
    background: var(--bg-surface, #FFFFFF);
    border-radius: var(--radius-2xl, 16px);
    box-shadow: var(--shadow-xl, 0 20px 25px rgba(0,0,0,0.10));
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-slow, 300ms ease);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    z-index: var(--z-modal, 500);
}

.ws-modal-overlay.is-open .ws-modal {
    transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   Modal Sizes
   -------------------------------------------------------------------------- */

.ws-modal--sm {
    max-width: 360px;
}

.ws-modal--default {
    max-width: 500px;
}

.ws-modal--lg {
    max-width: 640px;
}

.ws-modal--xl {
    max-width: 800px;
}

.ws-modal--full {
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
}

/* --------------------------------------------------------------------------
   Modal Variants
   -------------------------------------------------------------------------- */

/* Drawer (slides from right) */
.ws-modal-overlay.ws-modal-overlay--drawer {
    justify-content: flex-end;
    padding: 0;
}

.ws-modal--drawer {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
}

.ws-modal-overlay.is-open .ws-modal--drawer {
    transform: translateX(0);
}

.ws-modal--drawer.ws-modal--sm { max-width: 320px; }
.ws-modal--drawer.ws-modal--default { max-width: 400px; }
.ws-modal--drawer.ws-modal--lg { max-width: 500px; }

/* Bottom sheet (mobile) */
.ws-modal--bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-2xl, 16px) var(--radius-2xl, 16px) 0 0;
    transform: translateY(100%);
}

.ws-modal-overlay.is-open .ws-modal--bottom-sheet {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Modal Parts
   -------------------------------------------------------------------------- */

.ws-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200, #E7E5E4);
    flex-shrink: 0;
}

.ws-modal__title {
    font-family: var(--font-heading, 'Fraunces', serif);
    font-size: 18px;
    font-weight: var(--font-semibold, 600);
    color: var(--text-dark, #2C2416);
    margin: 0;
}

.ws-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: var(--radius-md, 6px);
    color: var(--gray-500, #78716C);
    cursor: pointer;
    transition: all var(--transition-fast, 150ms ease);
}

.ws-modal__close:hover {
    background: var(--gray-100, #F5F5F4);
    color: var(--text-dark, #2C2416);
}

/* Header with color */
.ws-modal__header[style*="background"] .ws-modal__title {
    color: inherit;
}

.ws-modal__header[style*="background"] .ws-modal__close {
    color: rgba(255, 255, 255, 0.7);
}

.ws-modal__header[style*="background"] .ws-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ws-modal__body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.ws-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200, #E7E5E4);
    flex-shrink: 0;
}

/* Footer alignment variants */
.ws-modal__footer--between {
    justify-content: space-between;
}

.ws-modal__footer--start {
    justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
    .ws-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .ws-modal:not(.ws-modal--drawer) {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--radius-2xl, 16px) var(--radius-2xl, 16px) 0 0;
        transform: translateY(100%);
    }

    .ws-modal-overlay.is-open .ws-modal:not(.ws-modal--drawer) {
        transform: translateY(0);
    }

    /* Drag indicator for bottom sheet */
    .ws-modal:not(.ws-modal--drawer)::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--gray-300, #D6D3D1);
        border-radius: 2px;
    }

    .ws-modal__header {
        padding-top: 24px;
    }
}

/* ==========================================================================
   TABS COMPONENT (ws-tabs)
   ========================================================================== */

.ws-tabs {
    width: 100%;
}

.ws-tabs__nav {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--gray-200, #E7E5E4);
}

.ws-tabs--scrollable .ws-tabs__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ws-tabs--scrollable .ws-tabs__nav::-webkit-scrollbar {
    display: none;
}

.ws-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: var(--font-medium, 500);
    color: var(--gray-500, #78716C);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast, 150ms ease);
}

.ws-tabs__btn:hover:not(.is-disabled) {
    color: var(--text-dark, #2C2416);
    background: var(--gray-50, #FAFAF9);
}

.ws-tabs__btn.is-active {
    color: var(--mainsite-primary, #E54D4D);
    border-bottom-color: var(--mainsite-primary, #E54D4D);
    font-weight: var(--font-semibold, 600);
}

.ws-tabs__btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ws-tabs__btn.is-gated {
    color: var(--gray-400, #A8A29E);
}

/* Tab icon */
.ws-tabs__icon {
    display: inline-flex;
    align-items: center;
}

.ws-tabs__icon .material-symbols-outlined {
    font-size: 18px;
}

/* Tab count badge */
.ws-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--gray-100, #F5F5F4);
    border-radius: var(--radius-full, 9999px);
    font-size: 11px;
    font-weight: var(--font-semibold, 600);
}

.ws-tabs__btn.is-active .ws-tabs__count {
    background: var(--mainsite-light, #FEE2E2);
    color: var(--mainsite-primary, #E54D4D);
}

/* Gated lock icon */
.ws-tabs__lock {
    display: inline-flex;
    margin-left: 2px;
}

.ws-tabs__lock-icon {
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Tab Sizes
   -------------------------------------------------------------------------- */

.ws-tabs--sm .ws-tabs__btn {
    padding: 8px 12px;
    font-size: 13px;
}

.ws-tabs--lg .ws-tabs__btn {
    padding: 16px 20px;
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Tab Variants
   -------------------------------------------------------------------------- */

/* Pill variant */
.ws-tabs--pill .ws-tabs__nav {
    gap: 4px;
    padding: 4px;
    background: var(--gray-100, #F5F5F4);
    border: none;
    border-radius: var(--radius-full, 9999px);
}

.ws-tabs--pill .ws-tabs__btn {
    border: none;
    border-radius: var(--radius-full, 9999px);
    margin-bottom: 0;
}

.ws-tabs--pill .ws-tabs__btn.is-active {
    background: var(--bg-surface, #FFFFFF);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
    color: var(--text-dark, #2C2416);
}

/* Segmented variant */
.ws-tabs--segmented .ws-tabs__nav {
    gap: 0;
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-lg, 8px);
    overflow: hidden;
}

.ws-tabs--segmented .ws-tabs__btn {
    flex: 1;
    justify-content: center;
    border: none;
    border-right: 1px solid var(--gray-200, #E7E5E4);
    border-radius: 0;
    margin-bottom: 0;
}

.ws-tabs--segmented .ws-tabs__btn:last-child {
    border-right: none;
}

.ws-tabs--segmented .ws-tabs__btn.is-active {
    background: var(--mainsite-primary, #E54D4D);
    color: var(--text-inverse, #FFFFFF);
}

/* Tab content panes */
.ws-tab-pane {
    display: none;
}

.ws-tab-pane.is-active {
    display: block;
    animation: wsFadeIn 200ms ease;
}

@keyframes wsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   SELECT COMPONENT (ws-select)
   ========================================================================== */

.ws-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ws-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 15px;
    color: var(--text-dark, #2C2416);
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-xl, 12px);
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast, 150ms ease);
}

.ws-select:hover:not(:disabled) {
    border-color: var(--gray-300, #D6D3D1);
}

.ws-select:focus {
    outline: none;
    border-color: var(--mainsite-primary, #E54D4D);
    box-shadow: 0 0 0 3px var(--mainsite-light, #FEE2E2);
}

.ws-select:disabled {
    background: var(--gray-50, #FAFAF9);
    color: var(--gray-400, #A8A29E);
    cursor: not-allowed;
}

.ws-select__arrow {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: var(--gray-400, #A8A29E);
}

.ws-select__arrow .material-symbols-outlined {
    font-size: 20px;
}

/* Select sizes */
.ws-select--sm {
    padding: 8px 36px 8px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.ws-select--lg {
    padding: 16px 44px 16px 20px;
    font-size: 16px;
}

/* ==========================================================================
   TOAST COMPONENT (ws-toast)
   ========================================================================== */

.ws-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.ws-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #7F1D1D;
    color: #FFFFFF;
    border-radius: var(--radius-xl, 12px);
    box-shadow: var(--shadow-xl, 0 20px 25px rgba(0,0,0,0.10));
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: var(--font-medium, 500);
    pointer-events: auto;
    animation: wsToastIn 300ms ease;
}

.ws-toast.is-leaving {
    animation: wsToastOut 200ms ease forwards;
}

@keyframes wsToastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wsToastOut {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
}

.ws-toast__icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.ws-toast__icon svg {
    width: 20px;
    height: 20px;
}

.ws-toast__message {
    flex: 1;
}

.ws-toast__action {
    background: none;
    border: none;
    color: var(--mainsite-light, #FEE2E2);
    font-size: 13px;
    font-weight: var(--font-semibold, 600);
    cursor: pointer;
    padding: 4px 8px;
    margin: -4px -8px -4px 0;
    border-radius: var(--radius-md, 6px);
    transition: background var(--transition-fast, 150ms ease);
}

.ws-toast__action:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ws-toast__close {
    display: flex;
    background: none;
    border: none;
    color: var(--gray-400, #A8A29E);
    cursor: pointer;
    padding: 4px;
    margin: -4px -8px -4px 0;
    border-radius: var(--radius-md, 6px);
    transition: all var(--transition-fast, 150ms ease);
}

.ws-toast__close:hover {
    color: var(--text-inverse, #FFFFFF);
    background: rgba(255, 255, 255, 0.1);
}

.ws-toast__close svg {
    width: 18px;
    height: 18px;
}

/* Toast variants — all use the base dark red background */
.ws-toast--success,
.ws-toast--error,
.ws-toast--warning,
.ws-toast--info {
    background: #7F1D1D;
}

/* Mobile positioning */
@media (max-width: 600px) {
    .ws-toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .ws-toast {
        width: 100%;
    }
}

/* ==========================================================================
   TOOLTIP COMPONENT (ws-tooltip)
   ========================================================================== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    z-index: var(--z-tooltip, 600);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 50ms ease, visibility 50ms ease, transform 50ms ease;
}

/* Tooltip content */
[data-tooltip]::after {
    content: attr(data-tooltip);
    padding: 6px 10px;
    background: var(--gray-900, #1C1917);
    color: var(--text-inverse, #FFFFFF);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: var(--font-medium, 500);
    line-height: 1.4;
    white-space: nowrap;
    border-radius: var(--radius-md, 6px);
    box-shadow: var(--shadow-lg, 0 10px 15px rgba(0,0,0,0.08));
}

/* Tooltip arrow */
[data-tooltip]::before {
    content: '';
    border: 5px solid transparent;
}

/* Show on hover/focus */
[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus::before,
[data-tooltip]:focus::after {
    opacity: 1;
    visibility: visible;
}

/* Position: Top (default) */
[data-tooltip]::after,
[data-tooltip][data-tooltip-position="top"]::after {
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
}

[data-tooltip]:hover::after,
[data-tooltip][data-tooltip-position="top"]:hover::after {
    transform: translateX(-50%) translateY(0);
}

[data-tooltip]::before,
[data-tooltip][data-tooltip-position="top"]::before {
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--gray-900, #1C1917);
}

/* Position: Bottom */
[data-tooltip][data-tooltip-position="bottom"]::after {
    top: calc(100% + 8px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
}

[data-tooltip][data-tooltip-position="bottom"]:hover::after {
    transform: translateX(-50%) translateY(0);
}

[data-tooltip][data-tooltip-position="bottom"]::before {
    top: calc(100% + 3px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: transparent;
    border-bottom-color: var(--gray-900, #1C1917);
}

/* Position: Left */
[data-tooltip][data-tooltip-position="left"]::after {
    right: calc(100% + 8px);
    left: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) translateX(4px);
}

[data-tooltip][data-tooltip-position="left"]:hover::after {
    transform: translateY(-50%) translateX(0);
}

[data-tooltip][data-tooltip-position="left"]::before {
    right: calc(100% + 3px);
    left: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-left-color: var(--gray-900, #1C1917);
}

/* Position: Right */
[data-tooltip][data-tooltip-position="right"]::after {
    left: calc(100% + 8px);
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
}

[data-tooltip][data-tooltip-position="right"]:hover::after {
    transform: translateY(-50%) translateX(0);
}

[data-tooltip][data-tooltip-position="right"]::before {
    left: calc(100% + 3px);
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-right-color: var(--gray-900, #1C1917);
}

/* Light variant */
[data-tooltip-variant="light"]::after {
    background: var(--bg-surface, #FFFFFF);
    color: var(--text-dark, #2C2416);
    border: 1px solid var(--gray-200, #E7E5E4);
}

[data-tooltip-variant="light"]::before {
    border-top-color: var(--bg-surface, #FFFFFF);
}

/* No arrow */
[data-tooltip-arrow="false"]::before {
    display: none;
}

/* ==========================================================================
   ACCORDION COMPONENT (ws-accordion)
   ========================================================================== */

.ws-accordion {
    width: 100%;
}

.ws-accordion__item {
    border-bottom: 1px solid var(--gray-200, #E7E5E4);
}

.ws-accordion__item:last-child {
    border-bottom: none;
}

.ws-accordion__trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: var(--font-semibold, 600);
    color: var(--text-dark, #2C2416);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast, 150ms ease);
}

.ws-accordion__trigger:hover {
    color: var(--mainsite-primary, #E54D4D);
}

.ws-accordion__trigger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ws-accordion__icon {
    display: flex;
    align-items: center;
    color: var(--gray-400, #A8A29E);
}

.ws-accordion__icon .material-symbols-outlined {
    font-size: 20px;
}

.ws-accordion__title {
    flex: 1;
}

.ws-accordion__arrow {
    display: flex;
    align-items: center;
    color: var(--gray-400, #A8A29E);
    transition: transform var(--transition-fast, 150ms ease);
}

.ws-accordion__arrow .material-symbols-outlined {
    font-size: 20px;
}

.ws-accordion__item.is-open .ws-accordion__arrow {
    transform: rotate(180deg);
}

.ws-accordion__panel {
    overflow: hidden;
    transition: max-height var(--transition-base, 200ms ease);
}

.ws-accordion__panel[hidden] {
    display: none;
}

.ws-accordion__content {
    padding: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-default, #5C5242);
}

/* --------------------------------------------------------------------------
   Accordion Sizes
   -------------------------------------------------------------------------- */

.ws-accordion--sm .ws-accordion__trigger {
    padding: 12px 0;
    font-size: 14px;
}

.ws-accordion--sm .ws-accordion__content {
    padding-bottom: 12px;
    font-size: 13px;
}

.ws-accordion--lg .ws-accordion__trigger {
    padding: 20px 0;
    font-size: 16px;
}

.ws-accordion--lg .ws-accordion__content {
    padding-bottom: 20px;
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Accordion Variants
   -------------------------------------------------------------------------- */

/* Bordered variant */
.ws-accordion--bordered .ws-accordion__item {
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-xl, 12px);
    margin-bottom: 8px;
    overflow: hidden;
}

.ws-accordion--bordered .ws-accordion__item:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-200, #E7E5E4);
}

.ws-accordion--bordered .ws-accordion__trigger {
    padding: 16px;
}

.ws-accordion--bordered .ws-accordion__content {
    padding: 0 16px 16px;
}

.ws-accordion--bordered .ws-accordion__item.is-open {
    background: var(--gray-50, #FAFAF9);
}

/* Flush variant */
.ws-accordion--flush .ws-accordion__item {
    border: none;
}

.ws-accordion--flush .ws-accordion__trigger {
    padding: 12px 0;
}

/* ==========================================================================
   PROGRESS BAR COMPONENT (ws-progress)
   ========================================================================== */

.ws-progress-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ws-progress__label {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: var(--font-medium, 500);
    color: var(--text-default, #5C5242);
}

.ws-progress__value {
    margin-left: auto;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: var(--font-semibold, 600);
    color: var(--text-dark, #2C2416);
}

.ws-progress {
    width: 100%;
    background: var(--gray-100, #F5F5F4);
    border-radius: var(--radius-full, 9999px);
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Progress Sizes
   -------------------------------------------------------------------------- */

.ws-progress--sm {
    height: 4px;
}

.ws-progress--md {
    height: 8px;
}

.ws-progress--lg {
    height: 12px;
}

/* --------------------------------------------------------------------------
   Progress Bar Fill
   -------------------------------------------------------------------------- */

.ws-progress__bar {
    height: 100%;
    border-radius: var(--radius-full, 9999px);
    transition: width var(--transition-base, 200ms ease);
}

/* Variant: Primary (default) */
.ws-progress__bar--primary {
    background: var(--mainsite-gradient, linear-gradient(135deg, #E54D4D 0%, #C73E3E 100%));
}

/* Variant: Success */
.ws-progress__bar--success {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

/* Variant: Warning */
.ws-progress__bar--warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Variant: Error */
.ws-progress__bar--error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

/* Variant: Info */
.ws-progress__bar--info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* --------------------------------------------------------------------------
   Progress Striped Pattern
   -------------------------------------------------------------------------- */

.ws-progress__bar--striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.ws-progress__bar--animated {
    animation: ws-progress-stripes 1s linear infinite;
}

@keyframes ws-progress-stripes {
    from {
        background-position: 1rem 0;
    }
    to {
        background-position: 0 0;
    }
}

/* --------------------------------------------------------------------------
   Progress Indeterminate State
   -------------------------------------------------------------------------- */

.ws-progress__bar--indeterminate {
    width: 30% !important;
    animation: ws-progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes ws-progress-indeterminate {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(233%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ==========================================================================
   ALERT COMPONENT (ws-alert)
   ========================================================================== */

.ws-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-xl, 12px);
    font-family: var(--font-body, 'Inter', sans-serif);
}

.ws-alert__icon {
    display: flex;
    flex-shrink: 0;
    margin-top: 1px;
}

.ws-alert__icon .material-symbols-outlined {
    font-size: 20px;
}

.ws-alert__content {
    flex: 1;
    min-width: 0;
}

.ws-alert__title {
    font-size: 14px;
    font-weight: var(--font-semibold, 600);
    margin-bottom: 4px;
}

.ws-alert__message {
    font-size: 14px;
    line-height: 1.5;
}

.ws-alert__actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.ws-alert__action {
    font-size: 13px;
    font-weight: var(--font-semibold, 600);
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity var(--transition-fast, 150ms ease);
}

.ws-alert__action:hover {
    opacity: 0.8;
}

.ws-alert__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    border-radius: var(--radius-md, 6px);
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-fast, 150ms ease);
    margin: -2px -4px -2px 0;
}

.ws-alert__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.ws-alert__close .material-symbols-outlined {
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   Alert Variants
   -------------------------------------------------------------------------- */

/* Info (default) */
.ws-alert--info {
    background: var(--color-info-light, #DBEAFE);
    color: var(--color-info-dark, #1E40AF);
}

.ws-alert--info .ws-alert__action {
    color: var(--color-info-dark, #1E40AF);
}

/* Success */
.ws-alert--success {
    background: var(--color-success-light, #DCFCE7);
    color: var(--color-success-dark, #166534);
}

.ws-alert--success .ws-alert__action {
    color: var(--color-success-dark, #166534);
}

/* Warning */
.ws-alert--warning {
    background: var(--color-warning-light, #FEF3C7);
    color: var(--color-warning-dark, #92400E);
}

.ws-alert--warning .ws-alert__action {
    color: var(--color-warning-dark, #92400E);
}

/* Error */
.ws-alert--error {
    background: var(--color-error-light, #FEE2E2);
    color: var(--color-error-dark, #991B1B);
}

.ws-alert--error .ws-alert__action {
    color: var(--color-error-dark, #991B1B);
}

/* --------------------------------------------------------------------------
   Alert Modifiers
   -------------------------------------------------------------------------- */

/* Bordered (left accent) */
.ws-alert--bordered {
    border-left: 4px solid currentColor;
    border-radius: 0 var(--radius-xl, 12px) var(--radius-xl, 12px) 0;
}

/* Filled (solid background) */
.ws-alert--filled.ws-alert--info {
    background: var(--color-info, #3B82F6);
    color: var(--text-inverse, #FFFFFF);
}

.ws-alert--filled.ws-alert--success {
    background: var(--color-success, #22C55E);
    color: var(--text-inverse, #FFFFFF);
}

.ws-alert--filled.ws-alert--warning {
    background: var(--color-warning, #F59E0B);
    color: var(--text-inverse, #FFFFFF);
}

.ws-alert--filled.ws-alert--error {
    background: var(--color-error, #EF4444);
    color: var(--text-inverse, #FFFFFF);
}

.ws-alert--filled .ws-alert__action {
    color: var(--text-inverse, #FFFFFF);
}

.ws-alert--filled .ws-alert__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   BANNER COMPONENT (ws-banner)
   Full-width announcement/promotional strip for the top of pages.
   ========================================================================== */

.ws-banner {
    width: 100%;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    line-height: 1.5;
}

.ws-banner__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ws-banner--centered .ws-banner__inner {
    justify-content: center;
}

.ws-banner__icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ws-banner__icon .material-symbols-outlined,
.ws-banner__icon .icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ws-banner__message {
    font-weight: 500;
}

.ws-banner__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition-fast, 150ms ease);
}

.ws-banner__action:hover {
    opacity: 0.8;
}

.ws-banner__arrow {
    font-size: 15px;
    transition: transform var(--transition-fast, 150ms ease);
}

.ws-banner__action:hover .ws-banner__arrow {
    transform: translateX(2px);
}

.ws-banner__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm, 4px);
    margin-left: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast, 150ms ease),
                background var(--transition-fast, 150ms ease);
}

.ws-banner__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

.ws-banner__close .material-symbols-outlined,
.ws-banner__close .icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   Banner Variants
   -------------------------------------------------------------------------- */

/* Default: light neutral background */
.ws-banner--default {
    background: var(--gray-100, #F5F5F4);
    color: var(--text-dark, #2C2416);
}

.ws-banner--default .ws-banner__action {
    color: var(--mainsite-primary, #E54D4D);
}

.ws-banner--default .ws-banner__close {
    color: var(--text-muted, #78716C);
}

/* Brand: primary brand color background */
.ws-banner--brand {
    background: var(--mainsite-gradient, linear-gradient(135deg, #E54D4D 0%, #C73E3E 100%));
    color: #FFFFFF;
}

.ws-banner--brand .ws-banner__action {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ws-banner--brand .ws-banner__close {
    color: #FFFFFF;
}

.ws-banner--brand .ws-banner__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Success: green tint */
.ws-banner--success {
    background: #F0FDF4;
    color: #166534;
}

.ws-banner--success .ws-banner__action {
    color: #15803D;
}

.ws-banner--success .ws-banner__close {
    color: #166534;
}

/* Warning: amber tint */
.ws-banner--warning {
    background: #FFFBEB;
    color: #92400E;
}

.ws-banner--warning .ws-banner__action {
    color: #B45309;
}

.ws-banner--warning .ws-banner__close {
    color: #92400E;
}

/* Dark: dark background for high contrast */
.ws-banner--dark {
    background: var(--color-ink, #2C2416);
    color: #FFFFFF;
}

.ws-banner--dark .ws-banner__action {
    color: var(--mainsite-light, #FEE2E2);
}

.ws-banner--dark .ws-banner__close {
    color: #FFFFFF;
}

.ws-banner--dark .ws-banner__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* DNA: dark red to primary red for Facilitator DNA app */
.ws-banner--dna {
    background: linear-gradient(135deg, #7F1D1D 0%, #E54D4D 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.ws-banner--dna::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 60%,
        transparent 80%
    );
    background-size: 200% 100%;
    animation: ws-banner-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ws-banner-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ws-banner--dna .ws-banner__action {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ws-banner--dna .ws-banner__close {
    color: #FFFFFF;
}

.ws-banner--dna .ws-banner__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   Banner Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
    .ws-banner__inner {
        padding: 8px 16px;
        gap: 8px;
    }

    .ws-banner__message {
        font-size: 13px;
    }

    .ws-banner__action {
        font-size: 13px;
    }
}

/* ==========================================================================
   SKELETON COMPONENT (ws-skeleton)
   ========================================================================== */

.ws-skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-100, #F5F5F4) 25%,
        var(--gray-200, #E7E5E4) 50%,
        var(--gray-100, #F5F5F4) 75%
    );
    background-size: 200% 100%;
    animation: ws-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md, 6px);
}

@keyframes ws-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* --------------------------------------------------------------------------
   Skeleton Variants
   -------------------------------------------------------------------------- */

/* Text */
.ws-skeleton--text {
    height: 16px;
    width: 100%;
    border-radius: var(--radius-sm, 4px);
}

.ws-skeleton--text-title {
    height: 20px;
    width: 60%;
}

.ws-skeleton--text-short {
    width: 40%;
}

/* Text container for multiple lines */
.ws-skeleton-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Avatar */
.ws-skeleton--avatar {
    border-radius: 50%;
}

.ws-skeleton--avatar.ws-skeleton--sm {
    width: 32px;
    height: 32px;
}

.ws-skeleton--avatar.ws-skeleton--md {
    width: 40px;
    height: 40px;
}

.ws-skeleton--avatar.ws-skeleton--lg {
    width: 56px;
    height: 56px;
}

/* Image */
.ws-skeleton--image {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-lg, 8px);
}

/* Button */
.ws-skeleton--button {
    border-radius: var(--radius-lg, 8px);
}

.ws-skeleton--button.ws-skeleton--sm {
    height: 32px;
    width: 80px;
}

.ws-skeleton--button.ws-skeleton--md {
    height: 40px;
    width: 100px;
}

.ws-skeleton--button.ws-skeleton--lg {
    height: 48px;
    width: 120px;
}

/* Input */
.ws-skeleton--input {
    width: 100%;
    border-radius: var(--radius-xl, 12px);
}

.ws-skeleton--input.ws-skeleton--sm {
    height: 36px;
}

.ws-skeleton--input.ws-skeleton--md {
    height: 44px;
}

.ws-skeleton--input.ws-skeleton--lg {
    height: 52px;
}

/* --------------------------------------------------------------------------
   Skeleton Modifiers
   -------------------------------------------------------------------------- */

.ws-skeleton--circle {
    border-radius: 50%;
}

.ws-skeleton--rounded {
    border-radius: var(--radius-xl, 12px);
}

/* --------------------------------------------------------------------------
   Skeleton Card (composite)
   -------------------------------------------------------------------------- */

.ws-skeleton-card {
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-xl, 12px);
    overflow: hidden;
}

.ws-skeleton-card .ws-skeleton--image {
    border-radius: 0;
}

.ws-skeleton-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   SECTION HEADER COMPONENT (ws-section-header)
   ========================================================================== */

.ws-section-header {
    text-align: center;
    margin-bottom: var(--space-10, 40px);
}

.ws-section-header--left {
    text-align: left;
}

.ws-section-header--left .ws-section-header__desc {
    margin-left: 0;
    margin-right: 0;
}

/* Label (small text above heading) */
.ws-section-header__label {
    display: inline-block;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: var(--font-semibold, 600);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mainsite-primary, #E54D4D);
    margin-bottom: var(--space-3, 12px);
}

/* Title */
.ws-section-header__title {
    font-family: var(--font-heading, 'Fraunces', serif);
    font-size: 1.75rem;
    font-weight: var(--font-bold, 700);
    margin-bottom: var(--space-2, 8px);
    letter-spacing: var(--tracking-tight, -0.02em);
    color: var(--text-dark, #2C2416);
    line-height: var(--leading-snug, 1.35);
}

/* Subtitle (secondary text - italic + brand color) */
.ws-section-header__subtitle {
    color: var(--mainsite-primary, #E54D4D);
    font-style: italic;
}

/* Description */
.ws-section-header__desc {
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--text-muted, #78716C);
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--text-small, 0.875rem);
    line-height: var(--leading-relaxed, 1.625);
}

/* Responsive */
@media (max-width: 600px) {
    .ws-section-header__title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   FEATURE CARD COMPONENT (ws-feature-card)
   ========================================================================== */

.ws-feature-card {
    padding: 28px;
    display: flex;
    gap: 20px;
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-xl, 12px);
    transition: border-color var(--transition-base, 200ms ease),
                box-shadow var(--transition-base, 200ms ease),
                transform var(--transition-base, 200ms ease);
    text-decoration: none;
    color: inherit;
}

.ws-feature-card:hover {
    border-color: var(--gray-300, #D6D3D1);
    box-shadow: var(--shadow-lg, 0 10px 15px rgba(0,0,0,0.08));
    transform: translateY(-2px);
}

/* Icon container */
.ws-feature-card__icon {
    width: 52px;
    height: 52px;
    background: var(--mainsite-very-light, #FEF2F2);
    border-radius: var(--radius-xl, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-base, 200ms ease),
                color var(--transition-base, 200ms ease);
}

.ws-feature-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--mainsite-primary, #E54D4D);
    transition: color var(--transition-base, 200ms ease);
}

.ws-feature-card__icon .material-symbols-outlined {
    font-size: 24px;
    color: var(--mainsite-primary, #E54D4D);
    transition: color var(--transition-base, 200ms ease);
}

.ws-feature-card:hover .ws-feature-card__icon {
    background: var(--mainsite-primary, #E54D4D);
}

.ws-feature-card:hover .ws-feature-card__icon svg,
.ws-feature-card:hover .ws-feature-card__icon .material-symbols-outlined {
    color: var(--text-inverse, #FFFFFF);
}

/* Content */
.ws-feature-card__title {
    font-family: var(--font-heading, 'Fraunces', serif);
    font-size: 15px;
    font-weight: var(--font-semibold, 600);
    margin-bottom: 6px;
    color: var(--text-dark, #2C2416);
}

.ws-feature-card__desc {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    color: var(--text-muted, #78716C);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Feature Card Variants
   -------------------------------------------------------------------------- */

/* Compact - smaller padding for denser lists */
.ws-feature-card--compact {
    padding: 20px;
    gap: 16px;
}

.ws-feature-card--compact .ws-feature-card__icon {
    width: 44px;
    height: 44px;
}

.ws-feature-card--compact .ws-feature-card__icon svg,
.ws-feature-card--compact .ws-feature-card__icon .material-symbols-outlined {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Coming Soon - softer, no hover lift */
.ws-feature-card--coming-soon {
    padding: 24px;
}

.ws-feature-card--coming-soon:hover {
    transform: none;
}

.ws-feature-card--coming-soon .ws-feature-card__icon {
    width: 48px;
    height: 48px;
}

.ws-feature-card--coming-soon .ws-feature-card__icon svg {
    width: 22px;
    height: 22px;
}

.ws-feature-card--coming-soon .ws-feature-card__title {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 16px;
}

.ws-feature-card--coming-soon .ws-feature-card__desc {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .ws-feature-card {
        padding: 20px;
        gap: 16px;
    }
}

/* ==========================================================================
   STAT COMPONENT (ws-stat)
   ========================================================================== */

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

.ws-stat__icon {
    display: block;
    margin-bottom: var(--space-1, 4px);
    color: var(--text-muted, #78716C);
}

.ws-stat__icon .material-symbols-outlined {
    font-size: 20px;
}

.ws-stat__value {
    display: block;
    font-family: var(--font-heading, 'Fraunces', serif);
    font-size: 28px;
    font-weight: var(--font-bold, 700);
    color: var(--text-dark, #2C2416);
    line-height: 1.2;
}

.ws-stat__label {
    display: block;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 12px;
    color: var(--text-muted, #78716C);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-1, 4px);
}

/* Stats Group */
.ws-stats {
    display: flex;
    align-items: center;
    gap: var(--space-6, 24px);
}

.ws-stats__divider {
    width: 1px;
    height: 36px;
    background: var(--gray-300, #D6D3D1);
    opacity: 0.5;
}

@media (max-width: 600px) {
    .ws-stat__value {
        font-size: 22px;
    }

    .ws-stats {
        gap: var(--space-4, 16px);
    }
}

/* ==========================================================================
   CHECKLIST COMPONENT (ws-checklist)
   ========================================================================== */

.ws-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
}

.ws-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2, 8px);
}

.ws-checklist__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--mainsite-primary, #E54D4D);
    margin-top: 1px;
}

.ws-checklist__icon .material-symbols-outlined {
    font-size: 20px;
}

.ws-checklist__text {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-small, 14px);
    color: var(--text-default, #5C5242);
    line-height: 1.5;
}

/* Compact variant */
.ws-checklist--compact {
    gap: var(--space-2, 8px);
}

.ws-checklist--compact .ws-checklist__text {
    font-size: 13px;
}

.ws-checklist--compact .ws-checklist__icon .material-symbols-outlined {
    font-size: 16px;
}

/* ==========================================================================
   EMPTY STATE COMPONENT (ws-empty-state)
   ========================================================================== */

.ws-empty-state {
    text-align: center;
    padding: var(--space-16, 64px) var(--space-8, 32px);
    max-width: 400px;
    margin: 0 auto;
}

.ws-empty-state__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5, 20px);
    background: var(--gray-100, #F5F5F4);
    border-radius: 50%;
    color: var(--gray-400, #A8A29E);
}

.ws-empty-state__icon .material-symbols-outlined {
    font-size: 28px;
}

.ws-empty-state__title {
    font-family: var(--font-heading, 'Fraunces', serif);
    font-size: 18px;
    font-weight: var(--font-semibold, 600);
    color: var(--text-dark, #2C2416);
    margin-bottom: var(--space-2, 8px);
}

.ws-empty-state__desc {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-small, 14px);
    color: var(--text-muted, #78716C);
    line-height: 1.6;
    margin-bottom: var(--space-6, 24px);
}

.ws-empty-state__action {
    margin-top: var(--space-4, 16px);
}

/* ==========================================================================
   BREADCRUMB COMPONENT (ws-breadcrumb)
   ========================================================================== */

.ws-breadcrumb {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
}

.ws-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: var(--space-1, 4px);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.ws-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 4px);
}

.ws-breadcrumb__link {
    color: var(--text-muted, #78716C);
    text-decoration: none;
    transition: color var(--transition-fast, 150ms ease);
}

.ws-breadcrumb__link:hover {
    color: var(--mainsite-primary, #E54D4D);
}

.ws-breadcrumb__text {
    color: var(--text-dark, #2C2416);
    font-weight: var(--font-medium, 500);
}

.ws-breadcrumb__separator {
    display: inline-flex;
    align-items: center;
    color: var(--gray-400, #A8A29E);
}

.ws-breadcrumb__separator .material-symbols-outlined {
    font-size: 16px;
}

.ws-breadcrumb__item--current .ws-breadcrumb__text {
    color: var(--text-default, #5C5242);
}


/* ============================================
   COMPONENT: Form Row
   Consistent wrapper for form fields
   ============================================ */

.ws-form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-1, 4px);
}

.ws-form-row--inline {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4, 16px);
}

.ws-form-row--inline .ws-form-row__label {
    min-width: 140px;
    padding-top: 10px;
    flex-shrink: 0;
}

.ws-form-row__label {
    font-size: var(--text-small, 0.875rem);
    font-weight: var(--font-medium, 500);
    color: var(--text-default, #5C5242);
    line-height: 1.4;
}

.ws-form-row__required {
    color: var(--color-error, #EF4444);
    margin-left: 2px;
}

.ws-form-row__field {
    flex: 1;
    min-width: 0;
}

.ws-form-row__helper {
    font-size: var(--text-caption, 0.75rem);
    color: var(--text-muted, #78716C);
    line-height: 1.4;
    margin: 0;
}

.ws-form-row__error {
    font-size: var(--text-caption, 0.75rem);
    color: var(--color-error, #EF4444);
    line-height: 1.4;
    margin: 0;
}

.ws-form-row--error .ws-form-row__label {
    color: var(--color-error, #EF4444);
}

/* ==========================================================================
   PROMPT SELECT
   Inline label + dropdown for contextual navigation prompts.
   e.g. "I need help with [Goal...]" or "Most popular [Workshops...]"
   ========================================================================== */

.ws-prompt-select {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Label: serif italic */
.ws-prompt-select__label {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-ink, #1e293b);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Dropdown wrapper */
.ws-prompt-select__dropdown {
    position: relative;
    flex: 1;
    max-width: 320px;
}

/* Native select */
.ws-prompt-select__select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: #FFFFFF;
    border: 2px solid var(--color-primary, #E54D4D);
    border-radius: 10px;
    padding: 12px 40px 12px 16px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-ink, #1e293b);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232C2416' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.ws-prompt-select__select:hover {
    border-color: var(--color-primary, #E54D4D);
}

.ws-prompt-select__select:focus {
    outline: none;
    border-color: var(--color-primary, #E54D4D);
    box-shadow: 0 0 0 3px rgba(229, 77, 77, 0.15);
}

/* --------------------------------------------------------------------------
   Variant: Muted — softer border for secondary prompts
   -------------------------------------------------------------------------- */

.ws-prompt-select--muted .ws-prompt-select__label {
    color: var(--color-ink-muted, #6b7280);
}

.ws-prompt-select--muted .ws-prompt-select__select {
    border-color: var(--color-border, #e5e7eb);
}

.ws-prompt-select--muted .ws-prompt-select__select:hover,
.ws-prompt-select--muted .ws-prompt-select__select:focus {
    border-color: var(--color-primary, #E54D4D);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .ws-prompt-select {
        flex-direction: column;
        gap: 8px;
    }

    .ws-prompt-select__label {
        font-size: 15px;
    }

    .ws-prompt-select__dropdown {
        max-width: 100%;
        width: 100%;
    }
}
