/* ============================================
   TrikAi Avatar - Component Styles
   Buttons, Cards, Inputs, Modals, Nav, etc.
   ============================================ */

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    font-size: var(--text-button);
    line-height: 1;
    padding: 14px var(--space-8);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

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

/* Primary Button - Gradient */
.btn--primary {
    background: var(--gradient-cta);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--primary:hover:not(:disabled) {
    box-shadow: var(--shadow-lg), var(--shadow-glow-sm);
    filter: brightness(1.1);
}

/* Secondary Button - Outline */
.btn--secondary {
    background: transparent;
    color: var(--color-purple);
    border: 2px solid var(--color-purple);
}

.btn--secondary:hover:not(:disabled) {
    background: var(--color-purple-muted);
}

/* Ghost Button */
.btn--ghost {
    background: transparent;
    color: var(--color-lavender);
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: var(--text-body);
    padding: var(--space-2) var(--space-4);
}

.btn--ghost:hover:not(:disabled) {
    background: var(--color-surface-3);
}

/* Destructive Button */
.btn--danger {
    background: var(--color-coral);
    color: white;
}

.btn--danger:hover:not(:disabled) {
    background: var(--color-coral-dark);
    box-shadow: var(--shadow-glow-coral);
}

/* Icon Button */
.btn--icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
    background: var(--color-surface-3);
    color: var(--color-text-secondary);
    font-size: 20px;
}

.btn--icon:hover:not(:disabled) {
    background: var(--color-surface-4);
    color: var(--color-text-primary);
}

.btn--icon-sm {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.btn--icon-lg {
    width: 56px;
    height: 56px;
    font-size: 24px;
}

/* Small Button */
.btn--sm {
    font-size: var(--text-button-sm);
    padding: 10px var(--space-5);
}

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

/* Social Login Button */
.btn--social {
    background: var(--color-surface-2);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
}

.btn--social:hover:not(:disabled) {
    background: var(--color-surface-3);
    border-color: var(--color-border);
}

/* === Cards === */
.card {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-fast);
}

.card--interactive {
    cursor: pointer;
}

.card--interactive:hover {
    border-color: rgba(123, 104, 238, 0.3);
    background: var(--color-surface-2);
    box-shadow: var(--shadow-glow-sm);
}

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

.card--elevated {
    background: var(--color-surface-2);
    box-shadow: var(--shadow-md);
}

.card--glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
}

.card--selected {
    border-color: var(--color-purple);
    background: var(--color-purple-muted);
}

.card--gradient {
    background: var(--gradient-surface);
    border: 1px solid var(--color-border-subtle);
}

/* === Form Inputs === */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.input-group__label {
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
}

.input-group__label--required::after {
    content: ' *';
    color: var(--color-coral);
}

.input {
    width: 100%;
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-body);
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.input::placeholder {
    color: var(--color-text-muted);
}

.input:focus {
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px var(--color-purple-muted);
    outline: none;
}

.input--error {
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px var(--color-coral-muted);
}

.input--error:focus {
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px var(--color-coral-muted);
}

.input-group__error {
    font-size: var(--text-caption);
    color: var(--color-coral);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.input-group__hint {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
}

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

/* Search Input */
.input--search {
    padding-left: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236F6F94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}

/* === Toggle Switch === */
.toggle {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    user-select: none;
}

.toggle__track {
    width: 48px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--color-surface-3);
    position: relative;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.toggle__thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-text-secondary);
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all var(--transition-spring);
}

.toggle--active .toggle__track {
    background: var(--color-purple);
}

.toggle--active .toggle__thumb {
    transform: translateX(20px);
    background: white;
}

.toggle__label {
    font-size: var(--text-body);
    color: var(--color-text-primary);
    flex: 1;
}

.toggle__description {
    font-size: var(--text-body-sm);
    color: var(--color-text-muted);
}

/* === Checkbox === */
.checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    user-select: none;
}

.checkbox__box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    font-size: 14px;
    color: transparent;
}

.checkbox--checked .checkbox__box {
    background: var(--color-purple);
    border-color: var(--color-purple);
    color: white;
}

.checkbox__label {
    font-size: var(--text-body);
    color: var(--color-text-primary);
}

.checkbox--checked .checkbox__label {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

/* === Chips / Tags === */
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-body-sm);
    font-weight: var(--weight-medium);
    border: 1px solid var(--color-border);
    background: var(--color-surface-1);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
    white-space: nowrap;
}

.chip:hover {
    background: var(--color-surface-3);
    border-color: var(--color-purple);
}

.chip--active {
    background: var(--color-purple-muted);
    border-color: var(--color-purple);
    color: var(--color-purple-light);
}

.chip--sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-caption);
}

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: var(--weight-bold);
    line-height: 1;
}

.badge--purple {
    background: var(--color-purple);
    color: white;
}

.badge--coral {
    background: var(--color-coral);
    color: white;
}

.badge--teal {
    background: var(--color-teal);
    color: var(--color-bg);
}

.badge--gold {
    background: var(--color-gold);
    color: var(--color-bg);
}

.badge--premium {
    background: var(--gradient-gold-coral);
    color: white;
    padding: 4px 10px;
    font-size: var(--text-caption);
    font-weight: var(--weight-semibold);
}

/* === Tab Navigation (Bottom) === */
.tab-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--tab-nav-height);
    background: rgba(22, 19, 30, 0.85);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: var(--safe-area-bottom);
    z-index: var(--z-sticky);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.tab-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-2) var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--text-overline);
    font-weight: var(--weight-medium);
    letter-spacing: 0;
    text-transform: none;
    transition: color var(--transition-fast);
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    min-width: 56px;
}

.tab-nav__item:hover {
    color: var(--color-text-secondary);
}

.tab-nav__item--active {
    color: var(--color-purple);
}

.tab-nav__icon {
    font-size: 22px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-nav__badge {
    position: absolute;
    top: 2px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-coral);
}

/* === App Header === */
.app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 13, 20, 0.9);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--color-border-subtle);
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    z-index: var(--z-fixed);
    gap: var(--space-3);
}

.app-header__back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    border: none;
}

.app-header__back:hover {
    background: var(--color-surface-3);
    color: var(--color-text-primary);
}

.app-header__title {
    flex: 1;
    font-family: var(--font-heading);
    font-size: var(--text-h4);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.app-header__actions .btn--icon,
.app-header__actions .btn--icon-sm {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-subtle);
}

.app-header__actions .btn--icon:hover,
.app-header__actions .btn--icon-sm:hover {
    background: var(--color-surface-2);
    color: var(--color-purple);
    border-color: var(--color-purple);
}

/* === Modal / Popup === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    z-index: var(--z-modal);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.modal__title {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--weight-semibold);
}

.modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    font-size: 18px;
}

.modal__close:hover {
    background: var(--color-surface-3);
    color: var(--color-text-primary);
}

.modal__body {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    margin-bottom: var(--space-6);
}

.modal__actions {
    display: flex;
    gap: var(--space-3);
}

.modal__actions--stacked {
    flex-direction: column;
}

/* === Bottom Sheet === */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface-2);
    border-top: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-3) var(--space-5) var(--space-8);
    z-index: var(--z-modal);
    animation: slideUpModal 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.bottom-sheet__handle {
    width: 40px;
    height: 4px;
    background: var(--color-surface-4);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-5);
}

/* === Toast Notification === */
.toast-container {
    position: fixed;
    top: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: calc(100% - var(--space-8));
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--color-surface-3);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    pointer-events: all;
}

.toast--success {
    border-color: var(--color-teal);
    background: rgba(79, 209, 197, 0.1);
}

.toast--error {
    border-color: var(--color-coral);
    background: rgba(255, 107, 107, 0.1);
}

.toast--info {
    border-color: var(--color-purple);
    background: rgba(123, 104, 238, 0.1);
}

.toast__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast__message {
    flex: 1;
    font-size: var(--text-body-sm);
    color: var(--color-text-primary);
}

.toast__close {
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 16px;
    background: none;
    border: none;
    padding: var(--space-1);
}

/* === Progress Bar === */
.progress-bar {
    height: 4px;
    background: var(--color-surface-3);
    border-radius: var(--radius-full);
    overflow: hidden;
    width: 100%;
}

.progress-bar__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-bar--thick {
    height: 8px;
}

/* === Circular Progress === */
.circular-progress {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.circular-progress__svg {
    transform: rotate(-90deg);
}

.circular-progress__track {
    fill: none;
    stroke: var(--color-surface-3);
}

.circular-progress__fill {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.circular-progress__label {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
}

/* === Avatar Display === */
.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-circle--sm { width: 40px; height: 40px; font-size: 16px; }
.avatar-circle--md { width: 64px; height: 64px; font-size: 24px; }
.avatar-circle--lg { width: 120px; height: 120px; font-size: 40px; }
.avatar-circle--xl { width: 160px; height: 160px; font-size: 56px; }

.avatar-circle--breathing {
    animation: avatarBreathe 2s ease-in-out infinite, avatarGlow 2s ease-in-out infinite;
}

.avatar-circle--float {
    animation: avatarFloat 3s ease-in-out infinite;
}

/* === Divider with Label === */
.divider-label {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--text-body-sm);
    margin: var(--space-4) 0;
}

.divider-label::before,
.divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* === Password Strength === */
.password-strength {
    display: flex;
    gap: var(--space-1);
    margin-top: var(--space-2);
}

.password-strength__bar {
    height: 3px;
    flex: 1;
    border-radius: var(--radius-full);
    background: var(--color-surface-3);
    transition: background var(--transition-fast);
}

.password-strength--weak .password-strength__bar:nth-child(1) {
    background: var(--color-coral);
}

.password-strength--medium .password-strength__bar:nth-child(1),
.password-strength--medium .password-strength__bar:nth-child(2) {
    background: var(--color-gold);
}

.password-strength--strong .password-strength__bar:nth-child(1),
.password-strength--strong .password-strength__bar:nth-child(2),
.password-strength--strong .password-strength__bar:nth-child(3) {
    background: var(--color-teal);
}

.password-strength--very-strong .password-strength__bar {
    background: var(--color-teal);
}

/* === Stat Card === */
.stat-card {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.stat-card__value {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
}

.stat-card__label {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.stat-card__trend {
    font-size: var(--text-caption);
    font-weight: var(--weight-medium);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-1);
}

.stat-card__trend--up { color: var(--color-teal); }
.stat-card__trend--down { color: var(--color-coral); }

/* === Section Header === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: var(--text-h4);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
}

.section-header__action {
    font-size: var(--text-body-sm);
    color: var(--color-purple);
    font-weight: var(--weight-medium);
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--transition-fast);
}

.section-header__action:hover {
    color: var(--color-purple-light);
}

/* === List Item === */
.list-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.list-item:hover {
    background: var(--color-surface-2);
}

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

.list-item__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.list-item__content {
    flex: 1;
    min-width: 0;
}

.list-item__title {
    font-size: var(--text-body);
    font-weight: var(--weight-medium);
    color: var(--color-text-primary);
}

.list-item__subtitle {
    font-size: var(--text-body-sm);
    color: var(--color-text-muted);
    margin-top: 2px;
}

.list-item__trailing {
    flex-shrink: 0;
    color: var(--color-text-muted);
    font-size: 18px;
}

/* === FAQ Accordion === */
.accordion {
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion__item {
    border-bottom: 1px solid var(--color-border-subtle);
}

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

.accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    transition: background var(--transition-fast);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--color-text-primary);
    font-size: var(--text-body);
    font-weight: var(--weight-medium);
}

.accordion__header:hover {
    background: var(--color-surface-2);
}

.accordion__icon {
    font-size: 16px;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.accordion__item--open .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion__item--open .accordion__content {
    max-height: 500px;
    padding: 0 var(--space-5) var(--space-4);
}

.accordion__text {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-body);
}

/* === Select Dropdown === */
.select {
    position: relative;
}

.select__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px var(--space-4);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-primary);
    font-size: var(--text-body);
}

.select__trigger:hover {
    border-color: var(--color-purple);
}

.select__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-1);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-height: 240px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-lg);
}

.select__option {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: var(--text-body);
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--color-text-primary);
}

.select__option:hover {
    background: var(--color-surface-3);
}

.select__option--active {
    color: var(--color-purple);
    background: var(--color-purple-muted);
}

/* === Tabs (Horizontal) === */
.tabs {
    display: flex;
    gap: var(--space-1);
    background: var(--color-surface-1);
    border-radius: var(--radius-lg);
    padding: var(--space-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs__item {
    flex: 1;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-default);
    font-size: var(--text-body-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    background: none;
    border: none;
    min-width: fit-content;
}

.tabs__item:hover {
    color: var(--color-text-secondary);
}

.tabs__item--active {
    background: var(--color-surface-3);
    color: var(--color-text-primary);
}

/* === Notification Dot === */
.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-coral);
    border: 2px solid var(--color-bg);
}

/* === Slider / Range === */
.slider-container {
    width: 100%;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--color-surface-3);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-purple);
    cursor: pointer;
    box-shadow: var(--shadow-glow-purple);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-purple);
    cursor: pointer;
    border: none;
}

/* === Desktop: Constrain fixed elements to phone frame === */
@media (min-width: 768px) {
    .tab-nav {
        width: 430px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-radius: 0 0 32px 32px;
    }

    .bottom-sheet {
        max-width: 430px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}
