@layer components {
  /* Mobile Toast Notification */
  .mobile-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 32px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 16px;
    animation: toast-in 0.2s ease-out;
    cursor: pointer;

    &.toast-exit {
      animation: toast-out 0.15s ease-in forwards;
    }
  }

  .mobile-toast-icon {
    color: var(--color-success-dark);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-toast-error .mobile-toast-icon {
    color: var(--color-danger);
  }

  .mobile-toast-text {
    font-size: 15px;
    font-weight: 500;
    color: white;
  }

  @keyframes toast-in {
    from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }

  @keyframes toast-out {
    from {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
    to {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }
  }

  /* Mobile app body */
  body.mobile-app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    background: var(--color-bg);
  }

  /* Mobile main content area */
  .mobile-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    background: var(--color-bg);
  }

  /* Floating Pill Navigation */
  .mobile-pill-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-tertiary);
    border-radius: 16px;
    padding: 6px;
    display: flex;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: var(--z-nav);
  }

  .pill-nav-item {
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    position: relative;

    svg {
      width: 20px;
      height: 20px;
      stroke: var(--color-muted);
      fill: none;
      stroke-width: 2;
    }

    &:active {
      transform: scale(0.95);
    }

    &.active {
      background: var(--color-primary);

      svg {
        stroke: white;
      }

      .pill-nav-label {
        color: white;
      }
    }
  }

  .pill-nav-label {
    font-size: 10px;
    color: var(--color-muted);
    font-weight: 500;
  }

  /* Legacy tab bar support */
  .mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    z-index: var(--z-nav);
  }

  .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--color-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s;

    .tab-label {
      font-size: var(--text-x-small);
      margin-top: 0.25rem;
    }

    &.active {
      color: var(--color-primary);
    }
  }

  /* Page headers */
  .page-header {
    margin-bottom: 1.5rem;

    h1 {
      font-size: var(--text-x-large);
      font-weight: 600;
      margin: 0;
    }
  }

  .detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;

    .back-link {
      color: var(--color-text);
      padding: 0.5rem;
      margin: -0.5rem;
    }

    h1 {
      font-size: var(--text-large);
      font-weight: 600;
      margin: 0;
    }
  }

  /* Date navigation header */
  .date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0 1rem;

    h1 {
      font-size: var(--text-medium);
      font-weight: 500;
      margin: 0;
      text-transform: capitalize;
    }

    .nav-arrow {
      padding: 0.5rem;
      color: var(--color-text);
      border-radius: 8px;

      &:active {
        background: var(--color-bg-hover);
      }
    }
  }

  /* Appointment list */
  .appointment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Appointment card */
  .appointment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;

    .time {
      font-size: var(--text-large);
      font-weight: 600;
      min-width: 60px;
    }

    .details {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .customer-name {
      font-weight: 500;
    }

    &.compact {
      padding: 0.75rem 1rem;

      .time {
        font-size: var(--text-normal);
        min-width: auto;
      }
    }
  }

  /* Status badges */
  .status {
    font-size: var(--text-x-small);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    width: fit-content;

    &.status-pending {
      background: var(--color-warning);
      color: var(--color-warning-text);
    }

    &.status-confirmed {
      background: var(--color-success);
      color: var(--color-success-text);
    }

    &.status-cancelled {
      background: var(--color-danger-light);
      color: var(--color-danger);
    }

    &.status-completed {
      background: var(--color-success);
      color: var(--color-success-text);
    }
  }

  /* Customer list */
  .customer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .customer-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;

    .customer-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .customer-name {
      font-weight: 500;
    }

    .customer-phone {
      font-size: var(--text-small);
      color: var(--color-muted);
    }
  }

  /* Info rows */
  .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);

    .label {
      color: var(--color-muted);
      font-size: var(--text-small);
    }

    .value {
      font-weight: 500;
    }
  }

  .info-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);

    .label {
      color: var(--color-muted);
      font-size: var(--text-small);
      display: block;
      margin-bottom: 0.5rem;
    }

    .services-list {
      list-style: none;
      padding: 0;
      margin: 0;

      li {
        padding: 0.25rem 0;
      }
    }

    .notes {
      margin: 0;
      white-space: pre-wrap;
    }
  }

  /* Floating action button */
  .fab {
    position: fixed;
    bottom: calc(80px + 1rem + env(safe-area-inset-bottom));
    right: 1rem;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: var(--z-popup);
    text-decoration: none;

    &:active {
      transform: scale(0.95);
    }
  }

  /* Empty state */
  .empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-muted);

    p {
      margin-bottom: 1rem;
    }
  }

  /* Settings */
  .settings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .settings-section {
    h2 {
      font-size: var(--text-small);
      font-weight: 500;
      color: var(--color-muted);
      text-transform: uppercase;
      margin: 0 0 0.5rem;
    }
  }

  .settings-item {
    padding: 1rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;

    .item-label {
      font-weight: 500;
    }
  }

  /* Recent appointments in customer detail */
  .recent-appointments {
    margin-top: 2rem;

    h2 {
      font-size: var(--text-medium);
      font-weight: 500;
      margin: 0 0 1rem;
    }
  }

  /* Full width button modifier */
  .btn.full-width {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* ============================================
     Mobile Wizard Styles
     ============================================ */

  /* Full-screen wizard container */
  .mobile-wizard {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    z-index: var(--z-modal);
  }

  /* Wizard header */
  .mobile-wizard-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    padding-top: calc(1rem + env(safe-area-inset-top));
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    min-height: 56px;
  }

  .mobile-wizard-back,
  .mobile-wizard-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--color-text);
    border-radius: 8px;
    padding: 0;
    flex-shrink: 0;

    &:active {
      background: var(--color-bg-hover);
    }
  }

  .mobile-wizard-back.hidden {
    display: flex !important;
    visibility: hidden;
  }

  .mobile-wizard-title {
    flex: 1;
    font-size: var(--text-medium);
    font-weight: 600;
    margin: 0;
    text-align: center;
  }

  /* Wizard content area */
  .mobile-wizard-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Hidden form */
  .mobile-wizard-form {
    display: none;
  }

  /* Loading state */
  .mobile-wizard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem;
  }

  /* Individual wizard step */
  .wizard-step {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    animation: wizard-enter-right 0.25s ease-out;
  }

  .mobile-wizard[data-direction="back"] .wizard-step {
    animation-name: wizard-enter-left;
  }

  @keyframes wizard-enter-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes wizard-enter-left {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .wizard-step { animation: none; }
  }

  .wizard-step-content {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .wizard-step-title {
    font-size: var(--text-x-large);
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-text);
  }

  .wizard-step-description {
    font-size: var(--text-normal);
    color: var(--color-muted);
    margin: 0 0 1.5rem;
  }

  /* Wizard footer (fixed at bottom) */
  .wizard-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    z-index: var(--z-popup);
  }

  /* Choice cards (for customer type, search by, etc.) */
  .wizard-choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .wizard-choice-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    min-height: 72px;

    &:active {
      border-color: var(--color-primary);
      background: rgba(var(--color-primary-rgb), 0.05);
    }
  }

  .wizard-choice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border-radius: 12px;
    color: var(--color-primary);
    flex-shrink: 0;
  }

  .wizard-choice-text {
    flex: 1;

    h3 {
      font-size: var(--text-normal);
      font-weight: 600;
      margin: 0 0 0.25rem;
      color: var(--color-text);
    }

    p {
      font-size: var(--text-small);
      color: var(--color-muted);
      margin: 0;
    }
  }

  .wizard-choice-arrow {
    color: var(--color-muted);
    flex-shrink: 0;
  }

  .wizard-choice-card.wizard-choice-selected {
    border-color: var(--color-success-dark);
    background: rgba(40, 167, 69, 0.05);
  }

  .wizard-choice-icon-selected {
    background: var(--color-success-dark);
    color: white;
  }

  .wizard-or-divider {
    text-align: center;
    color: var(--color-muted);
    font-size: var(--text-small);
    margin: 0.5rem 0;
  }

  /* Search form */
  .wizard-search-form {
    margin-top: 1rem;
  }

  .wizard-search-input-wrapper {
    position: relative;
  }

  .wizard-search-input {
    width: 100%;
    padding: 1rem;
    font-size: var(--text-large);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-white);
    color: var(--color-text);

    &:focus {
      outline: none;
      border-color: var(--color-primary);
    }

    &::placeholder {
      color: var(--color-muted);
    }
  }

  /* Customer results list */
  .wizard-customer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .wizard-customer-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;

    &:active {
      border-color: var(--color-primary);
    }
  }

  .wizard-customer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: var(--text-large);
    flex-shrink: 0;
  }

  .wizard-customer-info {
    flex: 1;

    h3 {
      font-size: var(--text-normal);
      font-weight: 600;
      margin: 0;
      color: var(--color-text);
    }

    p {
      font-size: var(--text-small);
      color: var(--color-muted);
      margin: 0.25rem 0 0;
    }
  }

  .wizard-customer-address {
    font-size: var(--text-x-small);
  }

  /* Empty state */
  .wizard-empty-state {
    text-align: center;
    padding: 3rem 1rem;
  }

  .wizard-empty-icon {
    color: var(--color-muted);
    margin-bottom: 1rem;
  }

  /* Form styles */
  .wizard-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .wizard-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    label {
      font-size: var(--text-small);
      font-weight: 500;
      color: var(--color-text);
    }

    .optional {
      font-weight: 400;
      color: var(--color-muted);
    }
  }

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

  .wizard-form-field-grow {
    grid-column: span 1;
  }

  .wizard-form-field-small {
    max-width: 100px;
  }

  .wizard-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: var(--text-normal);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-white);
    color: var(--color-text);

    &:focus {
      outline: none;
      border-color: var(--color-primary);
    }

    &::placeholder {
      color: var(--color-muted);
    }

    &.error {
      border-color: var(--color-danger);
    }
  }

  /* Address list */
  .wizard-address-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .wizard-address-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;

    &:active {
      border-color: var(--color-primary);
    }

    &.wizard-address-new {
      border-style: dashed;
    }
  }

  .wizard-address-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border-radius: 12px;
    color: var(--color-primary);
    flex-shrink: 0;
  }

  .wizard-address-info {
    flex: 1;

    h3 {
      font-size: var(--text-normal);
      font-weight: 600;
      margin: 0;
      color: var(--color-text);
    }

    p {
      font-size: var(--text-small);
      color: var(--color-muted);
      margin: 0.25rem 0 0;
    }
  }

  .wizard-address-badge {
    display: inline-block;
    font-size: var(--text-x-small);
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 4px;
    margin-bottom: 0.25rem;

    &.wizard-address-badge-selected {
      background: var(--color-success-dark);
    }
  }

  /* Services list */
  .wizard-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .wizard-service-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;

    &.selected,
    &:has(input:checked) {
      border-color: var(--color-primary);
      background: rgba(var(--color-primary-rgb), 0.05);

      .wizard-service-check {
        opacity: 1;
        color: var(--color-primary);
      }
    }
  }

  .wizard-service-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .wizard-service-info {
    flex: 1;
    text-align: left;

    h3 {
      font-size: var(--text-normal);
      font-weight: 600;
      margin: 0;
      color: var(--color-text);
    }
  }

  .wizard-service-description {
    font-size: var(--text-small);
    color: var(--color-muted);
    margin: 0.25rem 0 0;
  }

  .wizard-service-price {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0.25rem 0 0;
  }

  .wizard-service-check {
    opacity: 0.2;
    color: var(--color-muted);
    transition: opacity 0.15s, color 0.15s;
    flex-shrink: 0;
  }

  .wizard-service-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
    font-size: var(--text-small);
    color: var(--color-muted);
  }

  .wizard-service-duration {
    color: var(--color-muted);
  }

  /* Quantity controls for services */
  .wizard-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .wizard-quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    color: var(--color-text);

    &:active {
      background: var(--color-primary);
      border-color: var(--color-primary);
      color: white;
    }

    svg {
      width: 16px;
      height: 16px;
    }
  }

  .wizard-quantity-input {
    width: 40px;
    height: 36px;
    text-align: center;
    font-size: var(--text-normal);
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--color-text);
    -moz-appearance: textfield;

    &::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
  }

  /* Services subtotal */
  .wizard-services-subtotal {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: var(--text-small);

    &.hidden { display: none; }
  }

  .wizard-services-subtotal-label {
    color: var(--color-muted);
  }

  .wizard-services-subtotal-value {
    font-weight: 600;
    color: var(--color-text);
  }

  /* Date grid */
  .wizard-date-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .wizard-date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    min-height: 72px;
    transition: border-color 0.15s, background-color 0.15s;

    &:active,
    &.selected {
      border-color: var(--color-primary);
      background: rgba(var(--color-primary-rgb), 0.1);
    }

    &.today {
      border-color: var(--color-primary);
    }
  }

  .wizard-date-weekday {
    font-size: var(--text-x-small);
    font-weight: 500;
    color: var(--color-muted);
    text-transform: uppercase;
  }

  .wizard-date-day {
    font-size: var(--text-x-large);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
  }

  .wizard-date-month {
    font-size: var(--text-x-small);
    color: var(--color-muted);
    text-transform: capitalize;
  }

  .wizard-date-custom {
    margin-top: 1rem;
  }

  .wizard-date-picker {
    &.hidden {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
  }

  /* Time slots grid */
  .wizard-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .wizard-time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-size: var(--text-normal);
    font-weight: 600;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    min-height: 56px;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;

    &:active,
    &.selected {
      border-color: var(--color-primary);
      background: var(--color-primary);
      color: white;
    }
  }

  /* Review sections */
  .wizard-review-sections {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
  }

  .wizard-review-section {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid var(--color-border);

    &:last-child {
      border-bottom: none;
    }

    &:active {
      background: var(--color-bg-hover);
    }
  }

  .wizard-review-label {
    grid-column: 1 / -1;
    font-size: var(--text-x-small);
    font-weight: 500;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
  }

  .wizard-review-value {
    grid-column: 1;
    text-align: left;

    strong {
      display: block;
      font-weight: 600;
      color: var(--color-text);
    }

    span {
      font-size: var(--text-small);
      color: var(--color-muted);
    }
  }

  .wizard-review-empty {
    color: var(--color-muted);
    font-style: italic;
  }

  .wizard-review-edit {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    color: var(--color-primary);

    svg {
      width: 20px;
      height: 20px;
    }
  }

  /* Primary and secondary buttons */
  .wizard-primary-btn {
    width: 100%;
    padding: 1rem;
    font-size: var(--text-normal);
    font-weight: 600;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    min-height: 56px;
    transition: opacity 0.15s;

    &:active {
      opacity: 0.9;
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    &.wizard-confirm-btn {
      background: var(--color-success-dark);
    }
  }

  .wizard-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    font-size: var(--text-normal);
    font-weight: 500;
    background: var(--color-bg-white);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    min-height: 56px;

    &:active {
      background: var(--color-bg-hover);
    }
  }

  /* Slot Picker Styles */
  .slot-recommendations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .slot-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    min-height: 72px;
    transition: border-color 0.15s, background-color 0.15s;

    &:active {
      border-color: var(--color-primary);
      background: rgba(var(--color-primary-rgb), 0.05);
    }
  }

  .slot-card-best {
    border-color: var(--color-success-dark);
    background: rgba(40, 167, 69, 0.05);

    .slot-card-date {
      background: var(--color-success-dark);
      color: white;
    }
  }

  .slot-card-good {
    border-color: var(--color-primary);

    .slot-card-date {
      background: rgba(var(--color-primary-rgb), 0.1);
      color: var(--color-primary);
    }
  }

  .slot-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    padding: 0.5rem;
    background: var(--color-bg);
    border-radius: 8px;
    flex-shrink: 0;
  }

  .slot-weekday {
    font-size: var(--text-x-small);
    font-weight: 600;
    text-transform: uppercase;
  }

  .slot-day {
    font-size: var(--text-large);
    font-weight: 700;
    line-height: 1;
  }

  .slot-month {
    font-size: var(--text-x-small);
    text-transform: capitalize;
  }

  .slot-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .slot-time {
    font-size: var(--text-large);
    font-weight: 700;
    color: var(--color-text);
  }

  .slot-reason {
    font-size: var(--text-small);
    color: var(--color-muted);
  }

  .slot-card-arrow {
    color: var(--color-muted);
    flex-shrink: 0;
  }

  /* Weekly Best Section */
  .slot-weekly {
    margin-bottom: 2rem;
  }

  .slot-section-title {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem;
  }

  .slot-week-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    min-height: 56px;

    &:active {
      border-color: var(--color-primary);
    }
  }

  .slot-week-header {
    font-size: var(--text-small);
    color: var(--color-muted);
  }

  .slot-week-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .slot-week-day {
    font-weight: 600;
    color: var(--color-text);
    text-transform: capitalize;
  }

  .slot-week-time {
    font-size: var(--text-large);
    font-weight: 700;
    color: var(--color-primary);
  }

  /* Quick Jump Section */
  .slot-later {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .slot-quick-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .slot-jump-btn {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    padding: 0.75rem 1rem;
    font-size: var(--text-small);
    font-weight: 500;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    cursor: pointer;
    min-height: 44px;

    &:active {
      background: var(--color-bg-secondary);
      border-color: var(--color-primary);
    }
  }

  .slot-empty {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg);
    border-radius: 12px;
    color: var(--color-muted);
    margin-bottom: 2rem;

    h3 {
      margin: 0 0 0.5rem;
      font-size: var(--text-medium);
      color: var(--color-text);
    }

    p {
      margin: 0;
      font-size: var(--text-small);
    }
  }

  /* Calendar Picker Styles */
  .calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
  }

  .calendar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: var(--color-text);
    border-radius: 12px;
    cursor: pointer;

    &:active {
      background: var(--color-bg-hover);
    }
  }

  .calendar-month-label {
    font-size: var(--text-large);
    font-weight: 600;
    color: var(--color-text);
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
  }

  .calendar-day-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-size: var(--text-x-small);
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
  }

  .calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    font-size: var(--text-normal);
    font-weight: 500;
    background: var(--color-bg-white);
    border: 2px solid transparent;
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    min-height: 44px;

    &:active:not(.disabled) {
      border-color: var(--color-primary);
      background: rgba(var(--color-primary-rgb), 0.1);
    }

    &.empty {
      background: transparent;
      cursor: default;
    }

    &.today {
      border-color: var(--color-primary);
      color: var(--color-primary);
    }

    &.selected {
      background: var(--color-success-dark);
      border-color: var(--color-success-dark);
      color: white;
    }

    &.disabled {
      color: var(--color-muted);
      opacity: 0.4;
      cursor: not-allowed;
      background: var(--color-bg);
    }
  }

  /* ============================================
     Mobile Components
     ============================================ */

  /* Crimson Header */
  .crimson-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    position: relative;

    &.compact {
      padding-bottom: 16px;
    }
  }

  .crimson-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    &.with-margin {
      margin-bottom: 24px;
    }
  }

  .crimson-profile-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 600;
  }

  .crimson-header-actions {
    display: flex;
    gap: 20px;
  }

  .crimson-header-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;

    svg {
      width: 24px;
      height: 24px;
      stroke: white;
      fill: none;
      stroke-width: 2;
    }
  }

  .crimson-greeting {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
    text-align: left;
  }

  .crimson-page-title {
    font-size: 22px;
    font-weight: 600;
    color: white;
    text-align: left;
  }

  .crimson-page-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    text-align: left;
  }

  /* Promo Card */
  .promo-card {
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-card-alt));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    text-align: left;

    &::after {
      content: '';
      position: absolute;
      right: -20px;
      bottom: -20px;
      width: 120px;
      height: 120px;
      background: radial-gradient(circle, rgba(var(--color-crimson-rgb), 0.3), transparent);
      border-radius: 50%;
    }
  }

  .promo-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 70%;
    color: var(--color-text);
  }

  .promo-btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;

    &:active {
      background: var(--color-primary-hover);
    }
  }

  /* Booking Link Card */
  .booking-link-card {
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-card-alt));
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 8px;
  }

  .booking-link-header {
    margin-bottom: 12px;
  }

  .booking-link-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
  }

  .booking-link-url {
    font-size: 12px;
    color: var(--color-muted);
    word-break: break-all;
  }

  .booking-link-actions {
    display: flex;
    gap: 8px;
  }

  .booking-link-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: background 0.15s;

    &:active {
      background: rgba(255, 255, 255, 0.2);
    }

    &.whatsapp {
      background: #25D366;

      &:active {
        background: #1da851;
      }
    }
  }

  /* Section */
  .section {
    padding: 24px 20px;
    border-bottom: 8px solid var(--color-bg-secondary);

    &:last-child {
      border-bottom: none;
    }
  }

  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
  }

  .section-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
  }

  .section-arrow {
    font-size: 20px;
    color: var(--color-muted);
  }

  .section-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
    text-align: left;

    &.success {
      color: var(--color-success-dark);
    }
  }

  /* Alert Card */
  .alert-card {
    background: linear-gradient(135deg, var(--color-crimson-light), var(--color-primary));
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: white;
  }

  .alert-card-icon {
    font-size: 24px;
  }

  .alert-card-content {
    flex: 1;
  }

  .alert-card-title {
    font-size: 14px;
    font-weight: 600;
  }

  .alert-card-subtitle {
    font-size: 12px;
    opacity: 0.9;
  }

  /* Stats Grid */
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  .stat-card {
    background: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 16px;
    text-align: left;

    &.wide {
      grid-column: span 2;
    }
  }

  .stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-crimson-light);

    &.large {
      font-size: 28px;
    }
  }

  .stat-label {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 4px;
  }

  .stat-change {
    font-size: 11px;
    color: var(--color-success-dark);
    margin-top: 4px;
  }

  /* Planning Row (Planning Page) */
  .planning-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-bg-secondary);
    border-radius: 12px;
    margin-top: 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: left;

    &:first-child {
      margin-top: 0;
    }
  }

  .planning-row-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .planning-row-content {
    flex: 1;
  }

  .planning-row-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--color-text);
  }

  .planning-row-subtitle {
    font-size: 12px;
    color: var(--color-muted);
  }

  .planning-row-arrow {
    color: var(--color-muted);
    font-size: 18px;
  }

  /* Feature Cards Row */
  .feature-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin: 16px -20px 0;
    padding: 0 20px;
    scrollbar-width: none;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  .feature-card {
    min-width: 140px;
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-card-alt));
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.15s;
    text-decoration: none;
    color: inherit;

    &:active {
      transform: scale(0.97);
    }
  }

  .feature-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: auto;
    min-height: 50px;
    color: var(--color-text);
  }

  .feature-card-btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 16px;
    text-align: center;
  }

  /* Appointment Card */
  .appointment-card {
    background: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.15s;
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: left;

    &:active {
      transform: scale(0.98);
    }

    &.next {
      border-left: 4px solid var(--color-primary);
    }

    &.completed {
      opacity: 0.6;
    }
  }

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

  .appointment-time {
    font-size: 13px;
    color: var(--color-crimson-light);
    font-weight: 600;
  }

  .appointment-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;

    &.confirmed {
      background: rgba(0, 200, 83, 0.2);
      color: var(--color-success-dark);
    }

    &.pending {
      background: rgba(255, 179, 0, 0.2);
      color: var(--color-accent-amber);
    }

    &.completed {
      background: var(--color-bg-tertiary);
      color: var(--color-muted);
    }
  }

  .appointment-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--color-text);
  }

  .appointment-service {
    font-size: 13px;
    color: var(--color-muted);
  }

  .appointment-location {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .appointment-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }

  .appointment-action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
    text-align: center;

    &:active {
      opacity: 0.8;
    }

    &.primary {
      background: var(--color-primary);
      color: white;
    }

    &.secondary {
      background: var(--color-bg-tertiary);
      color: var(--color-text);
    }
  }

  /* Week Calendar */
  .week-calendar {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    scrollbar-width: none;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  .week-day {
    min-width: 48px;
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;

    &.active {
      background: var(--color-primary);
    }

    &.has-appointments::after {
      content: '';
      display: block;
      width: 6px;
      height: 6px;
      background: var(--color-crimson-light);
      border-radius: 50%;
      margin: 4px auto 0;
    }

    &.active.has-appointments::after {
      background: white;
    }
  }

  .week-day-name {
    font-size: 11px;
    color: var(--color-muted);
    margin-bottom: 4px;

    .week-day.active & {
      color: rgba(255, 255, 255, 0.8);
    }
  }

  .week-day-num {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);

    .week-day.active & {
      color: white;
    }
  }

  /* Search Bar */
  .search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px 20px;

    svg {
      width: 20px;
      height: 20px;
      stroke: var(--color-muted);
      fill: none;
      stroke-width: 2;
    }
  }

  .search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 15px;
    outline: none;

    &::placeholder {
      color: var(--color-muted);
    }
  }

  /* Mode Tabs (Filter tabs) */
  .mode-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-bg-tertiary);
    padding: 0 20px;
  }

  .mode-tab {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    cursor: pointer;
    position: relative;
    background: none;
    border: none;
    text-decoration: none;

    &.active {
      color: var(--color-text);

      &::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--color-primary);
      }
    }
  }

  /* Customer Item */
  .customer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-secondary);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: left;
  }

  .customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
  }

  .customer-info {
    flex: 1;
  }

  .customer-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
  }

  .customer-detail {
    font-size: 13px;
    color: var(--color-muted);
  }

  .customer-arrow {
    color: var(--color-muted);
  }

  /* Settings Item */
  .settings-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-bg-secondary);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
  }

  .settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-top: 2px;
  }

  .settings-content {
    flex: 1;
  }

  .settings-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
  }

  .settings-subtitle {
    font-size: 13px;
    color: var(--color-muted);
  }

  .settings-arrow {
    color: var(--color-muted);
    font-size: 18px;
  }

  .settings-item-logout {
    border-top: 8px solid var(--color-bg-secondary);
    margin-top: 16px;
  }

  .settings-title-danger {
    color: var(--color-danger);
  }

  /* Settings Modal */
  .settings-modal-container {
    position: fixed;
    inset: 0;
    z-index: var(--z-nav);
    visibility: hidden;
    pointer-events: none;

    &.open {
      visibility: visible;
      pointer-events: auto;
    }
  }

  .settings-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;

    .settings-modal-container.open & {
      opacity: 1;
    }
  }

  .settings-modal {
    position: absolute;
    top: 80px;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background: var(--color-bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    border-top-right-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    .settings-modal-container.open & {
      transform: translateX(0);
    }
  }

  .settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-bg-secondary);
  }

  .settings-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
  }

  .settings-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-muted);

    svg {
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }
  }

  .settings-modal-content {
    flex: 1;
    overflow-y: auto;
  }

  /* Appointment Detail Page */
  .mobile-appointment-detail {
    .detail-header {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px;
      background: var(--color-primary);

      .back-link {
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      h1 {
        font-size: 18px;
        font-weight: 600;
        color: white;
        margin: 0;
      }
    }

    .appointment-info {
      padding: 20px;
    }

    .info-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 0;
      border-bottom: 1px solid var(--color-border);

      &:last-child {
        border-bottom: none;
      }
    }

    .info-section {
      padding: 16px 0;
      border-bottom: 1px solid var(--color-border);

      &:last-child {
        border-bottom: none;
      }
    }

    .label {
      font-size: 14px;
      color: var(--color-muted);
    }

    .value {
      font-size: 15px;
      font-weight: 500;
      color: var(--color-text);
    }

    .status {
      padding: 4px 12px;
      border-radius: 16px;
      font-size: 13px;
      font-weight: 500;
    }

    .status-confirmed {
      background: var(--color-state-confirmed-bg);
      color: var(--color-state-confirmed-text);
    }

    .status-pending {
      background: var(--color-state-pending-bg);
      color: var(--color-state-pending-text);
    }

    .status-cancelled {
      background: var(--color-state-cancelled-bg);
      color: var(--color-state-cancelled-text);
    }

    .status-completed {
      background: var(--color-state-completed-bg);
      color: var(--color-state-completed-text);
    }

    .services-list {
      list-style: none;
      padding: 0;
      margin: 8px 0 0 0;

      li {
        padding: 8px 0;
        font-size: 15px;
        color: var(--color-text);
      }
    }

    .notes {
      margin: 8px 0 0 0;
      font-size: 15px;
      color: var(--color-text);
      line-height: 1.5;
    }

    .address-section {
      .address-text {
        margin: 8px 0 12px 0;
        font-size: 15px;
        color: var(--color-text);
        line-height: 1.4;
      }

      .address-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }

      .address-action-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: var(--color-bg-secondary);
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        color: var(--color-text);
        text-decoration: none;
        transition: background 0.15s;

        &:active {
          background: var(--color-bg-tertiary);
        }

        &.whatsapp {
          background: #25D366;
          color: white;

          &:active {
            background: #1da851;
          }
        }
      }
    }

    .appointment-actions {
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
  }

  /* ============================================
     Customer Picker Styles
     ============================================ */

  .customer-picker-step {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .customer-picker-search {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }

  .customer-picker-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;

    svg {
      color: var(--color-muted);
      flex-shrink: 0;
    }

    &:focus-within {
      border-color: var(--color-primary);
    }
  }

  .customer-picker-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: var(--text-normal);
    color: var(--color-text);
    outline: none;

    &::placeholder {
      color: var(--color-muted);
    }
  }

  .customer-picker-body {
    flex: 1;
    display: flex;
    overflow: hidden;
  }

  .customer-picker-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem 1rem;
  }

  .customer-picker-loading {
    padding: 3rem;
    text-align: center;
    color: var(--color-muted);
  }

  .customer-picker-group {
    margin-bottom: 0.5rem;
  }

  .customer-picker-group-header {
    position: sticky;
    top: 0;
    padding: 0.5rem 0;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-muted);
    background: var(--color-bg);
    z-index: 5;
  }

  .customer-picker-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s;

    &:active {
      border-color: var(--color-primary);
    }
  }

  .customer-picker-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: var(--text-medium);
    flex-shrink: 0;
  }

  .customer-picker-info {
    flex: 1;
    min-width: 0;

    h4 {
      font-size: var(--text-normal);
      font-weight: 600;
      margin: 0;
      color: var(--color-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    p {
      font-size: var(--text-small);
      color: var(--color-muted);
      margin: 0.125rem 0 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .customer-picker-address {
    font-size: var(--text-x-small);
  }

  .customer-picker-status {
    font-size: var(--text-x-small);
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 0.25rem;
  }

  .customer-picker-arrow {
    color: var(--color-muted);
    flex-shrink: 0;
  }

  .customer-picker-index {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    background: var(--color-bg);

    &.hidden {
      display: none;
    }
  }

  .customer-picker-index-letter {
    padding: 0.125rem 0.375rem;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;

    &:active {
      color: var(--color-primary);
    }
  }

  .customer-picker-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;

    &.hidden {
      display: none;
    }

    h3 {
      font-size: var(--text-medium);
      font-weight: 600;
      margin: 0 0 0.5rem;
      color: var(--color-text);
    }

    p {
      font-size: var(--text-small);
      color: var(--color-muted);
      margin: 0 0 1.5rem;
    }

    .wizard-secondary-btn {
      width: auto;
      padding: 0.875rem 1.5rem;
    }
  }

  /* ============================================
     Settings Pages
     ============================================ */

  /* Full-screen settings page container */
  .settings-fullscreen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    z-index: var(--z-page);
    overflow-y: auto;
  }

  .settings-page {
    padding: 16px 20px;
  }

  .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  /* Booking Links List */
  .booking-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .booking-link-item {
    background: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 16px;
  }

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

  .booking-link-item-info {
    flex: 1;
    min-width: 0;
  }

  .booking-link-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
  }

  .booking-link-item-url {
    font-size: 12px;
    color: var(--color-muted);
    word-break: break-all;
  }

  .booking-link-item-services {
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 4px;
  }

  .booking-link-item-actions {
    display: flex;
    gap: 8px;
  }

  .booking-link-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--color-bg-tertiary);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s;

    &:active {
      background: var(--color-bg);
    }

    &.whatsapp {
      background: #25D366;
      color: white;

      &:active {
        background: #1da851;
      }
    }
  }

  /* Toggle Switch */
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
  }

  .toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-tertiary);
    transition: 0.2s;
    border-radius: 28px;

    &::before {
      position: absolute;
      content: "";
      height: 22px;
      width: 22px;
      left: 3px;
      bottom: 3px;
      background: white;
      transition: 0.2s;
      border-radius: 50%;
    }
  }

  .toggle-input:checked + .toggle-slider {
    background: var(--color-success-dark);
  }

  .toggle-input:checked + .toggle-slider::before {
    transform: translateX(20px);
  }

  .empty-hint {
    font-size: 13px;
    color: var(--color-muted);
  }

  /* Services List */
  .services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--color-bg-secondary);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
  }

  .service-item-info {
    flex: 1;
    min-width: 0;
  }

  .service-item-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
  }

  .service-item-details {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 2px;
  }

  .service-item-arrow {
    color: var(--color-muted);
    font-size: 18px;
  }

  /* Form Styles */
  .settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

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

  .form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
  }

  .form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);

    &:focus {
      outline: none;
      border-color: var(--color-primary);
    }

    &::placeholder {
      color: var(--color-muted);
    }

    &:disabled,
    &[readonly] {
      opacity: 0.6;
      cursor: not-allowed;
    }
  }

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

  .form-hint {
    font-size: 12px;
    color: var(--color-muted);
  }

  .form-actions {
    margin-top: 8px;
  }

  .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(var(--color-success-rgb), 0.15);
    color: var(--color-success-text);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
  }

  .form-input.readonly {
    opacity: 0.6;
    cursor: default;
  }

  /* Work Hours */
  .hours-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hours-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
  }

  .hours-day {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
  }

  .hours-day-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
  }

  .hours-times {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.15s;

    &.disabled {
      opacity: 0.4;
    }
  }

  .hours-time-input {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    text-align: center;

    &:focus {
      outline: none;
      border-color: var(--color-primary);
    }

    &:disabled {
      opacity: 0.5;
    }
  }

  .hours-separator {
    font-size: 13px;
    color: var(--color-muted);
  }

  /* Notification Settings */
  .notification-settings {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--color-border);
    border-radius: 12px;
    overflow: hidden;
  }

  .notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--color-bg-secondary);

    &.coming-soon {
      opacity: 0.6;
    }
  }

  .notification-item-info {
    flex: 1;
    min-width: 0;
  }

  .notification-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
  }

  .notification-item-description {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 2px;
  }

  .toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .toggle-switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
  }

  .toggle-input-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .toggle-switch-inline {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
  }

  .toggle-switch-inline .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-tertiary);
    transition: 0.2s;
    border-radius: 28px;

    &::before {
      position: absolute;
      content: "";
      height: 22px;
      width: 22px;
      left: 3px;
      bottom: 3px;
      background: white;
      transition: 0.2s;
      border-radius: 50%;
    }
  }

  .toggle-input-hidden:checked + .toggle-switch-inline .toggle-slider {
    background: var(--color-success-dark);
  }

  .toggle-input-hidden:checked + .toggle-switch-inline .toggle-slider::before {
    transform: translateX(20px);
  }

  .toggle-label-text {
    font-size: 15px;
    color: var(--color-text);
  }

  .toggle-switch.toggle-small {
    width: 40px;
    height: 24px;
  }

  .toggle-switch.toggle-small .toggle-slider::before {
    height: 18px;
    width: 18px;
  }

  .toggle-switch.toggle-small .toggle-input:checked + .toggle-slider::before {
    transform: translateX(16px);
  }

  .service-item.inactive {
    opacity: 0.6;
  }

  /* Category Picker */
  .category_picker {
    position: relative;
  }

  .category_picker_selected {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;

    &:active {
      border-color: var(--color-primary);
    }
  }

  .category_picker_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-tertiary);
    border-radius: 10px;
    color: var(--color-primary);
    flex-shrink: 0;
  }

  .category_picker_text {
    flex: 1;
    min-width: 0;
  }

  .category_picker_name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
  }

  .category_picker_aliases {
    display: block;
    font-size: 12px;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .category_picker_chevron {
    color: var(--color-muted);
    flex-shrink: 0;
  }

  .category_picker_dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: var(--z-popup);

    &.hidden {
      display: none;
    }
  }

  .category_picker_option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    text-align: left;
    color: var(--color-primary);

    &:last-child {
      border-bottom: none;
    }

    &:active {
      background: var(--color-bg-hover);
    }
  }

  .category_picker_option_text {
    flex: 1;
    min-width: 0;
  }

  .category_picker_option_name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
  }

  .category_picker_option_aliases {
    display: block;
    font-size: 12px;
    color: var(--color-muted);
  }

  /* Card Picker (generic) */
  .card_picker {
    position: relative;
  }

  .card_picker_selected {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;

    &:active {
      border-color: var(--color-primary);
    }
  }

  .card_picker_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-tertiary);
    border-radius: 10px;
    color: var(--color-primary);
    flex-shrink: 0;
  }

  .card_picker_text {
    flex: 1;
    min-width: 0;
  }

  .card_picker_title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
  }

  .card_picker_description {
    display: block;
    font-size: 12px;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card_picker_chevron {
    color: var(--color-muted);
    flex-shrink: 0;
  }

  .card_picker_dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: var(--z-popup);

    &.hidden {
      display: none;
    }
  }

  .card_picker_option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    text-align: left;
    color: var(--color-primary);

    &:last-child {
      border-bottom: none;
    }

    &:active {
      background: var(--color-bg-hover);
    }
  }

  .card_picker_option_text {
    flex: 1;
    min-width: 0;
  }

  .card_picker_option_title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
  }

  .card_picker_option_description {
    display: block;
    font-size: 12px;
    color: var(--color-muted);
  }
}
