/* ==========================================================================
   DentalBook Pro — Public Frontend Styles
   BEM naming convention with .db- prefix
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --db-primary:       #2563eb;
    --db-primary-hover: #1d4ed8;
    --db-primary-light: #eff6ff;
    --db-secondary:     #64748b;
    --db-success:       #16a34a;
    --db-warning:       #d97706;
    --db-danger:        #dc2626;
    --db-white:         #ffffff;
    --db-gray-50:       #f8fafc;
    --db-gray-100:      #f1f5f9;
    --db-gray-200:      #e2e8f0;
    --db-gray-300:      #cbd5e1;
    --db-gray-500:      #64748b;
    --db-gray-700:      #334155;
    --db-gray-900:      #0f172a;
    --db-radius:        8px;
    --db-radius-lg:     12px;
    --db-shadow:        0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --db-shadow-lg:     0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --db-transition:    0.2s ease;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
.db-booking *,
.db-doctors *,
.db-packages *,
.db-my-bookings *,
.db-portal *,
.db-my-account * {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Booking Wrapper
   -------------------------------------------------------------------------- */
.db-booking {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--db-gray-700);
}

/* --------------------------------------------------------------------------
   Progress Bar
   -------------------------------------------------------------------------- */
.db-booking__progress {
    margin-bottom: 32px;
}

.db-booking__steps {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.db-booking__step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    gap: 6px;
}

.db-booking__step-indicator::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--db-gray-200);
    z-index: 0;
}

.db-booking__step-indicator:last-child::before {
    display: none;
}

.db-booking__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--db-gray-200);
    color: var(--db-gray-500);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: background var(--db-transition), color var(--db-transition);
}

.db-booking__step-label {
    font-size: 12px;
    color: var(--db-gray-500);
    text-align: center;
    white-space: nowrap;
}

.db-booking__step-indicator--active .db-booking__step-number {
    background: var(--db-primary);
    color: var(--db-white);
}

.db-booking__step-indicator--active .db-booking__step-label {
    color: var(--db-primary);
    font-weight: 600;
}

.db-booking__step-indicator--completed .db-booking__step-number {
    background: var(--db-success);
    color: var(--db-white);
}

.db-booking__step-indicator--completed::before {
    background: var(--db-success);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.db-booking__step {
    display: none;
    animation: dbFadeIn 0.3s ease;
}

.db-booking__step--active {
    display: block;
}

@keyframes dbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.db-step__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--db-gray-900);
    margin: 0 0 8px;
}

.db-step__description {
    color: var(--db-gray-500);
    margin: 0 0 24px;
    font-size: 15px;
}

.db-step__actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.db-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--db-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background var(--db-transition), opacity var(--db-transition), transform var(--db-transition);
    line-height: 1.4;
}

.db-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.db-btn--primary:hover:not(:disabled) {
    background: var(--db-primary-hover);
}

.db-btn--secondary {
    background: var(--db-gray-100);
    color: var(--db-gray-700);
}

.db-btn--secondary:hover:not(:disabled) {
    background: var(--db-gray-200);
}

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

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

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

.db-btn--small {
    padding: 6px 14px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Service Cards
   -------------------------------------------------------------------------- */
.db-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.db-service-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--db-gray-200);
    border-radius: var(--db-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--db-transition), box-shadow var(--db-transition);
    position: relative;
}

.db-service-card:hover {
    border-color: var(--db-primary);
    box-shadow: var(--db-shadow-lg);
}

.db-service-card--selected {
    border-color: var(--db-primary);
    background: var(--db-primary-light);
}

.db-service-card__radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.db-service-card__image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.db-service-card__body {
    padding: 16px;
    flex: 1;
}

.db-service-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--db-gray-900);
}

.db-service-card__excerpt {
    font-size: 13px;
    color: var(--db-gray-500);
    margin: 0 0 12px;
}

.db-service-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.db-service-card__duration {
    color: var(--db-gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-service-card__price {
    font-weight: 700;
    color: var(--db-primary);
}

.db-service-card__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--db-primary);
    color: var(--db-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity var(--db-transition);
}

.db-service-card--selected .db-service-card__check {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Doctor Cards
   -------------------------------------------------------------------------- */
.db-doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.db-doctor-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--db-gray-200);
    border-radius: var(--db-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--db-transition), box-shadow var(--db-transition);
    position: relative;
}

.db-doctor-card:hover {
    border-color: var(--db-primary);
    box-shadow: var(--db-shadow-lg);
}

.db-doctor-card--selected {
    border-color: var(--db-primary);
    background: var(--db-primary-light);
}

.db-doctor-card__radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.db-doctor-card__photo {
    height: 120px;
    overflow: hidden;
    background: var(--db-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-doctor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-doctor-card__photo--placeholder .dashicons {
    font-size: 48px;
    color: var(--db-gray-300);
}

.db-doctor-card__body {
    padding: 16px;
}

.db-doctor-card__name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--db-gray-900);
}

.db-doctor-card__specialty,
.db-doctor-card__qualification {
    font-size: 13px;
    color: var(--db-gray-500);
    margin: 0 0 4px;
}

.db-doctor-card__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--db-primary);
    color: var(--db-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity var(--db-transition);
}

.db-doctor-card--selected .db-doctor-card__check {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Doctor Directory Grid (shortcode)
   -------------------------------------------------------------------------- */
.db-doctors__grid {
    display: grid;
    gap: 24px;
}

.db-doctors__grid--cols-1 { grid-template-columns: 1fr; }
.db-doctors__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.db-doctors__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.db-doctors__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   Date & Slot Picker
   -------------------------------------------------------------------------- */
.db-datetime__picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.db-slots-container {
    min-height: 120px;
}

.db-slots-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--db-gray-500);
    padding: 24px 0;
}

.db-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.db-slot-btn {
    padding: 10px 16px;
    border: 2px solid var(--db-gray-200);
    border-radius: var(--db-radius);
    background: var(--db-white);
    color: var(--db-gray-700);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--db-transition), background var(--db-transition), color var(--db-transition);
}

.db-slot-btn:hover {
    border-color: var(--db-primary);
    color: var(--db-primary);
}

.db-slot-btn--selected {
    border-color: var(--db-primary);
    background: var(--db-primary);
    color: var(--db-white);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.db-form-group {
    margin-bottom: 20px;
}

.db-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--db-gray-700);
}

.db-form-required {
    color: var(--db-danger);
    margin-left: 2px;
}

.db-form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--db-gray-200);
    border-radius: var(--db-radius);
    font-size: 15px;
    color: var(--db-gray-900);
    background: var(--db-white);
    transition: border-color var(--db-transition);
    outline: none;
}

.db-form-control:focus {
    border-color: var(--db-primary);
}

.db-form-control--error {
    border-color: var(--db-danger);
}

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

.db-form-error {
    display: block;
    font-size: 13px;
    color: var(--db-danger);
    margin-top: 4px;
}

.db-form-hint {
    font-size: 13px;
    color: var(--db-gray-500);
    margin: 4px 0 0;
}

/* --------------------------------------------------------------------------
   Confirm Summary
   -------------------------------------------------------------------------- */
.db-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.db-confirm-row th,
.db-confirm-row td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--db-gray-100);
}

.db-confirm-row th {
    font-weight: 600;
    color: var(--db-gray-500);
    width: 40%;
    font-size: 14px;
}

.db-confirm-row td {
    color: var(--db-gray-900);
}

.db-confirm-disclaimer {
    font-size: 13px;
    color: var(--db-gray-500);
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Success Screen
   -------------------------------------------------------------------------- */
.db-step-success {
    text-align: center;
    padding: 40px 20px;
}

.db-success__icon {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
}

.db-success__checkmark {
    width: 80px;
    height: 80px;
}

.db-success__circle {
    stroke: var(--db-success);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: dbStrokeCircle 0.6s ease forwards;
}

.db-success__check {
    stroke: var(--db-success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: dbStrokeCheck 0.4s 0.5s ease forwards;
}

@keyframes dbStrokeCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes dbStrokeCheck {
    to { stroke-dashoffset: 0; }
}

.db-success__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--db-success);
    margin: 0 0 12px;
}

.db-success__message {
    color: var(--db-gray-500);
    margin: 0 0 32px;
}

.db-success__ref-box {
    display: inline-block;
    background: var(--db-primary-light);
    border: 2px solid var(--db-primary);
    border-radius: var(--db-radius-lg);
    padding: 16px 32px;
    margin-bottom: 24px;
}

.db-success__ref-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--db-primary);
    margin: 0 0 4px;
}

.db-success__ref-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--db-primary);
    margin: 0;
    font-family: monospace;
}

.db-success__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.db-success__detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--db-gray-700);
}

.db-success__detail-icon {
    color: var(--db-primary);
}

.db-success__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Status Badges
   -------------------------------------------------------------------------- */
.db-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.db-status-badge--pending   { background: #fef3c7; color: #92400e; }
.db-status-badge--confirmed { background: #d1fae5; color: #065f46; }
.db-status-badge--in_chair  { background: #dbeafe; color: #1e40af; }
.db-status-badge--completed { background: #dcfce7; color: #166534; }
.db-status-badge--cancelled { background: #fee2e2; color: #991b1b; }
.db-status-badge--no_show   { background: #f3f4f6; color: #374151; }

.db-payment-badge { @extend .db-status-badge; }
.db-payment-badge--unpaid   { background: #fef3c7; color: #92400e; }
.db-payment-badge--paid     { background: #d1fae5; color: #065f46; }
.db-payment-badge--refunded { background: #ede9fe; color: #5b21b6; }

/* --------------------------------------------------------------------------
   My Bookings
   -------------------------------------------------------------------------- */
.db-my-bookings {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.db-my-bookings__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.db-my-bookings__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--db-gray-900);
}

.db-my-bookings__filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.db-filter-btn {
    padding: 6px 16px;
    border-radius: 100px;
    border: 2px solid var(--db-gray-200);
    color: var(--db-gray-500);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: border-color var(--db-transition), color var(--db-transition);
}

.db-filter-btn:hover,
.db-filter-btn--active {
    border-color: var(--db-primary);
    color: var(--db-primary);
}

.db-my-bookings__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.db-booking-card {
    border: 1px solid var(--db-gray-200);
    border-radius: var(--db-radius-lg);
    overflow: hidden;
    box-shadow: var(--db-shadow);
}

.db-booking-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--db-gray-50);
    border-bottom: 1px solid var(--db-gray-200);
}

.db-booking-card__ref {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--db-gray-700);
}

.db-booking-card__body {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.db-booking-card__detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--db-gray-700);
}

.db-booking-card__icon {
    color: var(--db-primary);
    font-size: 16px;
}

.db-booking-card__footer {
    padding: 12px 16px;
    background: var(--db-gray-50);
    border-top: 1px solid var(--db-gray-200);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Booking Detail
   -------------------------------------------------------------------------- */
.db-booking-detail {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px;
}

.db-booking-detail__header {
    margin-bottom: 24px;
}

.db-back-link {
    color: var(--db-primary);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.db-booking-detail__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--db-gray-900);
}

.db-booking-detail__ref-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.db-booking-detail__ref {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--db-gray-700);
}

.db-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.db-detail-table th,
.db-detail-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--db-gray-100);
    text-align: left;
    font-size: 15px;
}

.db-detail-table th {
    font-weight: 600;
    color: var(--db-gray-500);
    width: 35%;
}

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */
.db-notice {
    padding: 12px 16px;
    border-radius: var(--db-radius);
    margin-bottom: 16px;
    font-size: 14px;
}

.db-notice--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.db-notice--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.db-notice--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.db-booking__error {
    padding: 12px 16px;
    border-radius: var(--db-radius);
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    margin-top: 16px;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Spinner
   -------------------------------------------------------------------------- */
.db-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--db-primary);
    border-radius: 50%;
    animation: dbSpin 0.7s linear infinite;
}

.db-spinner--small {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

@keyframes dbSpin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Package Cards
   -------------------------------------------------------------------------- */
.db-packages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.db-package-card {
    border: 1px solid var(--db-gray-200);
    border-radius: var(--db-radius-lg);
    overflow: hidden;
    box-shadow: var(--db-shadow);
    transition: box-shadow var(--db-transition), transform var(--db-transition);
}

.db-package-card:hover {
    box-shadow: var(--db-shadow-lg);
    transform: translateY(-2px);
}

.db-package-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.db-package-card__body {
    padding: 20px;
}

.db-package-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--db-gray-900);
}

.db-package-card__excerpt {
    font-size: 14px;
    color: var(--db-gray-500);
    margin: 0 0 16px;
}

.db-package-card__features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.db-package-card__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--db-gray-700);
}

.db-package-card__features .dashicons {
    color: var(--db-success);
}

.db-package-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--db-gray-100);
    background: var(--db-gray-50);
}

.db-package-card__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--db-primary);
}

/* --------------------------------------------------------------------------
   Single Package Page
   -------------------------------------------------------------------------- */
.db-single-package {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--db-gray-700);
}

.db-single-package__hero {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    display: flex;
    align-items: flex-end;
}

.db-single-package__hero--has-photo {
    background-size: cover;
    background-position: center;
}

.db-single-package__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 32px 32px;
}

.db-single-package__badge {
    display: inline-block;
    background: #f59e0b;
    color: #1c1917;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    width: fit-content;
}

.db-single-package__title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.db-single-package__tagline {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
}

.db-single-package__price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.db-single-package__price {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.db-single-package__price--offer {
    color: #fbbf24;
}

.db-single-package__price--original {
    font-size: 18px;
    text-decoration: line-through;
    color: rgba(255,255,255,0.55);
}

.db-single-package__campaign-label {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.db-single-package__countdown {
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.db-single-package__body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    gap: 36px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.db-single-package__content {
    flex: 2;
    min-width: 280px;
}

.db-single-package__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--db-gray-700);
    margin-bottom: 28px;
}

.db-single-package__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-single-package__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--db-gray-700);
}

.db-single-package__features .dashicons {
    color: var(--db-primary);
    font-size: 18px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.db-single-package__sidebar {
    flex: 1;
    min-width: 240px;
    position: sticky;
    top: 80px;
}

.db-single-package__purchase-card {
    background: #fff;
    border: 1px solid var(--db-gray-200);
    border-radius: var(--db-radius-lg);
    padding: 24px;
    box-shadow: var(--db-shadow-lg);
    margin-bottom: 16px;
}

.db-single-package__purchase-price {
    margin-bottom: 12px;
}

.db-single-package__purchase-offer {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
}

.db-single-package__purchase-was {
    font-size: 13px;
    color: var(--db-gray-500);
    text-decoration: line-through;
}

.db-single-package__purchase-regular {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--db-primary);
    line-height: 1;
}

.db-single-package__purchase-free {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--db-success);
}

.db-single-package__purchase-meta {
    font-size: 13px;
    color: var(--db-gray-500);
    margin: 0 0 20px;
}

.db-single-package__offer-note {
    font-size: 12px;
    color: #dc2626;
    margin: 12px 0 0;
    text-align: center;
}

.db-single-package__back-link {
    display: block;
    font-size: 13px;
    color: var(--db-gray-500);
    text-decoration: none;
    text-align: center;
    padding: 8px;
}

.db-single-package__back-link:hover { color: var(--db-primary); }

/* --------------------------------------------------------------------------
   Single Service Page (mirrors package single)
   -------------------------------------------------------------------------- */
.db-single-service {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--db-gray-700);
}

.db-single-service__hero {
    position: relative;
    min-height: 280px;
    background: linear-gradient(135deg, #2d1b69 0%, #7c3aed 100%);
    display: flex;
    align-items: flex-end;
}

.db-single-service__hero--has-photo {
    background-size: cover;
    background-position: center;
}

.db-single-service__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 32px 32px;
}

.db-single-service__hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.db-single-service__hero-badge .dashicons {
    font-size: 14px;
    width: 16px;
    height: 16px;
}

.db-single-service__title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.db-single-service__tagline {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
}

.db-single-service__hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.db-single-service__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.db-single-service__meta-pill .dashicons {
    font-size: 14px;
    width: 16px;
    height: 16px;
}

.db-single-service__body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    gap: 36px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.db-single-service__content {
    flex: 2;
    min-width: 280px;
}

.db-single-service__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--db-gray-700);
    margin-bottom: 28px;
}

.db-single-service__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-single-service__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--db-gray-700);
}

.db-single-service__features .dashicons {
    color: #7c3aed;
    font-size: 18px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.db-single-service__sidebar {
    flex: 1;
    min-width: 240px;
    position: sticky;
    top: 80px;
}

.db-single-service__booking-card {
    background: #fff;
    border: 1px solid var(--db-gray-200);
    border-radius: var(--db-radius-lg);
    padding: 24px;
    box-shadow: var(--db-shadow-lg);
    margin-bottom: 16px;
}

.db-single-service__booking-price {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--db-gray-100);
}

.db-single-service__price-amount {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
}

.db-single-service__price-label {
    display: block;
    font-size: 13px;
    color: var(--db-gray-500);
    margin-top: 4px;
}

.db-single-service__price-free {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--db-success);
}

.db-single-service__booking-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--db-gray-500);
    margin-bottom: 20px;
}

.db-single-service__booking-meta .dashicons {
    font-size: 16px;
    width: 18px;
    height: 18px;
    color: #7c3aed;
}

.db-single-service__login-hint {
    font-size: 12px;
    color: var(--db-gray-500);
    text-align: center;
    margin: 8px 0 0;
}

.db-single-service__booking-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--db-gray-500);
    margin: 14px 0 0;
}

.db-single-service__back-link {
    display: block;
    font-size: 13px;
    color: var(--db-gray-500);
    text-decoration: none;
    text-align: center;
    padding: 8px;
}

.db-single-service__back-link:hover { color: #7c3aed; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .db-booking {
        padding: 16px 12px;
    }

    .db-booking__steps {
        gap: 0;
    }

    .db-booking__step-label {
        display: none;
    }

    .db-service-grid,
    .db-doctor-grid {
        grid-template-columns: 1fr;
    }

    .db-doctors__grid--cols-2,
    .db-doctors__grid--cols-3,
    .db-doctors__grid--cols-4 {
        grid-template-columns: 1fr;
    }

    .db-packages__grid {
        grid-template-columns: 1fr;
    }

    .db-single-package__body,
    .db-single-service__body {
        flex-direction: column;
        padding: 24px 16px;
    }

    .db-single-package__hero-overlay,
    .db-single-service__hero-overlay {
        padding: 24px 16px 20px;
    }

    .db-single-package__sidebar,
    .db-single-service__sidebar {
        position: static;
        width: 100%;
    }

    .db-step__actions {
        flex-direction: column;
    }

    .db-btn {
        width: 100%;
        justify-content: center;
    }

    .db-my-bookings__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .db-booking-card__body {
        grid-template-columns: 1fr;
    }

    .db-confirm-row th {
        width: 35%;
    }
}

@media (max-width: 480px) {
    .db-booking__step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ==========================================================================
   My Account — Patient Portal
   ========================================================================== */

/* Reset for account wrapper */
.db-my-account * {
    box-sizing: border-box;
}

.db-my-account {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    max-width: 960px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Login Gate
   -------------------------------------------------------------------------- */
.db-account-gate {
    text-align: center;
    padding: 64px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.db-account-gate__icon {
    font-size: 40px !important;
    width: 40px !important;
    height: 40px !important;
    color: #7c3aed;
    margin-bottom: 16px;
    display: block;
}

.db-account-gate__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.db-account-gate__text {
    color: #64748b;
    margin: 0 0 24px;
}

/* --------------------------------------------------------------------------
   Account Header
   -------------------------------------------------------------------------- */
.db-my-account__header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 12px 12px 0 0;
    padding: 0 24px;
}

.db-my-account__header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.db-my-account__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.db-my-account__avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255,255,255,.4);
    display: block;
}

.db-my-account__avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #16a34a;
    border: 2px solid #7c3aed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-my-account__avatar-badge .dashicons {
    color: #fff;
    font-size: 11px !important;
    width: 11px !important;
    height: 11px !important;
}

.db-my-account__user-info {
    flex: 1;
    min-width: 0;
}

.db-my-account__name {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-my-account__email {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.8);
    margin-bottom: 6px;
}

.db-my-account__role-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255,255,255,.2);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
}

.db-my-account__logout {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.db-my-account__logout:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.db-my-account__logout .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* --------------------------------------------------------------------------
   Tab Navigation
   -------------------------------------------------------------------------- */
.db-my-account__nav {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 16px;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.db-my-account__nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}

.db-my-account__nav-item:hover {
    color: #7c3aed;
}

.db-my-account__nav-item--active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

.db-my-account__nav-icon {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* --------------------------------------------------------------------------
   Tab Content
   -------------------------------------------------------------------------- */
.db-my-account__content {
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    padding: 24px;
    min-height: 400px;
}

/* --------------------------------------------------------------------------
   Dashboard — Welcome Banner
   -------------------------------------------------------------------------- */
.db-account-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.db-account-welcome__text {
    flex: 1;
}

.db-account-welcome__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.db-account-welcome__sub {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.85);
}

/* --------------------------------------------------------------------------
   Dashboard — Stat Cards
   -------------------------------------------------------------------------- */
.db-account-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.db-account-stat {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.db-account-stat__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-account-stat__icon .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

.db-account-stat--blue  .db-account-stat__icon { background: #eff6ff; color: #2563eb; }
.db-account-stat--green .db-account-stat__icon { background: #f0fdf4; color: #16a34a; }
.db-account-stat--purple .db-account-stat__icon { background: #f5f3ff; color: #7c3aed; }
.db-account-stat--teal  .db-account-stat__icon { background: #f0fdfa; color: #0d9488; }

.db-account-stat__value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 2px;
}

.db-account-stat__label {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* --------------------------------------------------------------------------
   Dashboard — Section Wrapper
   -------------------------------------------------------------------------- */
.db-account-section {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    overflow: hidden;
}

.db-account-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.db-account-section__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.db-account-section__title .dashicons {
    color: #7c3aed;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.db-account-section__link {
    font-size: 12px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}

.db-account-section__link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Dashboard — Empty State
   -------------------------------------------------------------------------- */
.db-account-empty {
    text-align: center;
    padding: 40px 24px;
}

.db-account-empty__icon {
    font-size: 36px !important;
    width: 36px !important;
    height: 36px !important;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.db-account-empty p {
    color: #64748b;
    margin: 0 0 16px;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Dashboard — Upcoming Cards
   -------------------------------------------------------------------------- */
.db-upcoming-list {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.db-upcoming-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.db-upcoming-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 2px 8px rgba(124,58,237,.1);
    color: inherit;
}

.db-upcoming-card__date-block {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f5f3ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-upcoming-card--confirmed .db-upcoming-card__date-block { background: #f0fdf4; }
.db-upcoming-card--pending   .db-upcoming-card__date-block { background: #fffbeb; }

.db-upcoming-card__day {
    font-size: 16px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
}

.db-upcoming-card--confirmed .db-upcoming-card__day { color: #16a34a; }
.db-upcoming-card--pending   .db-upcoming-card__day { color: #d97706; }

.db-upcoming-card__month {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.db-upcoming-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.db-upcoming-card__service {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-upcoming-card__doctor,
.db-upcoming-card__time {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-upcoming-card__doctor .dashicons,
.db-upcoming-card__time .dashicons {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
}

.db-upcoming-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.db-upcoming-card__arrow {
    color: #cbd5e1;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* --------------------------------------------------------------------------
   Dashboard — Package Progress Cards
   -------------------------------------------------------------------------- */
.db-account-packages {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.db-pkg-progress-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    transition: border-color .15s;
}

.db-pkg-progress-card--warning {
    border-color: #fbbf24;
    background: #fffdf0;
}

.db-pkg-progress-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.db-pkg-progress-card__icon {
    width: 36px;
    height: 36px;
    background: #f5f3ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7c3aed;
}

.db-pkg-progress-card--warning .db-pkg-progress-card__icon {
    background: #fffbeb;
    color: #d97706;
}

.db-pkg-progress-card__icon .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.db-pkg-progress-card__title-wrap {
    flex: 1;
    min-width: 0;
}

.db-pkg-progress-card__name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.db-pkg-progress-card__expiry {
    font-size: 11px;
    color: #64748b;
}

.db-pkg-progress-card__expiry-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 4px;
    padding: 1px 6px;
}

.db-pkg-progress-card__sessions {
    text-align: right;
    flex-shrink: 0;
}

.db-pkg-progress-card__sessions-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
}

.db-pkg-progress-card--warning .db-pkg-progress-card__sessions-num {
    color: #d97706;
}

.db-pkg-progress-card__sessions-lbl {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.db-pkg-progress-card__bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.db-pkg-progress-card__bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.db-pkg-progress-card__bar-fill {
    height: 100%;
    background: #7c3aed;
    border-radius: 99px;
    transition: width .3s;
}

.db-pkg-progress-card--warning .db-pkg-progress-card__bar-fill {
    background: #d97706;
}

.db-pkg-progress-card__bar-label {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Bookings Tab
   -------------------------------------------------------------------------- */
.db-bookings-tab__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.db-bookings-tab__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   Status Filter Tabs
   -------------------------------------------------------------------------- */
.db-status-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.db-status-tab {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}

.db-status-tab:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.db-status-tab--active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

/* --------------------------------------------------------------------------
   Booking List Items
   -------------------------------------------------------------------------- */
.db-booking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.db-booking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color .15s, box-shadow .15s;
}

.db-booking-item:hover {
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(124,58,237,.07);
}

.db-booking-item--cancelled {
    opacity: .75;
}

.db-booking-item--completed {
    border-left: 3px solid #16a34a;
}

.db-booking-item__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    height: 52px;
    background: #f5f3ff;
    border-radius: 8px;
    text-align: center;
}

.db-booking-item--confirmed .db-booking-item__date { background: #f0fdf4; }
.db-booking-item--pending   .db-booking-item__date { background: #fffbeb; }
.db-booking-item--cancelled .db-booking-item__date { background: #fef2f2; }
.db-booking-item--completed .db-booking-item__date { background: #f0fdf4; }

.db-booking-item__date-day {
    font-size: 18px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
}

.db-booking-item--confirmed .db-booking-item__date-day { color: #16a34a; }
.db-booking-item--pending   .db-booking-item__date-day { color: #d97706; }
.db-booking-item--cancelled .db-booking-item__date-day { color: #dc2626; }
.db-booking-item--completed .db-booking-item__date-day { color: #16a34a; }

.db-booking-item__date-mon {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    line-height: 1.2;
}

.db-booking-item__date-yr {
    font-size: 9px;
    color: #94a3b8;
    line-height: 1.2;
}

.db-booking-item__body {
    flex: 1;
    min-width: 0;
}

.db-booking-item__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.db-booking-item__ref {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    font-family: monospace;
}

.db-booking-item__service {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-booking-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.db-booking-item__meta-item {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
}

.db-booking-item__meta-item .dashicons {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
}

.db-booking-item__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Status Pills
   -------------------------------------------------------------------------- */
.db-status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: .2px;
}

.db-status-pill--pending   { background: #fffbeb; color: #d97706; }
.db-status-pill--confirmed { background: #f0fdf4; color: #16a34a; }
.db-status-pill--completed { background: #f0fdf4; color: #15803d; }
.db-status-pill--cancelled { background: #fef2f2; color: #dc2626; }
.db-status-pill--in_chair  { background: #eff6ff; color: #2563eb; }
.db-status-pill--no_show   { background: #fef2f2; color: #9f1239; }

/* --------------------------------------------------------------------------
   Payment Dot / Pill
   -------------------------------------------------------------------------- */
.db-payment-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.db-payment-dot--paid     { color: #16a34a; }
.db-payment-dot--unpaid   { color: #d97706; }
.db-payment-dot--refunded { color: #7c3aed; }

.db-pay-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.db-pay-pill--paid     { background: #f0fdf4; color: #16a34a; }
.db-pay-pill--unpaid   { background: #fffbeb; color: #d97706; }
.db-pay-pill--refunded { background: #f5f3ff; color: #7c3aed; }

/* --------------------------------------------------------------------------
   Booking Detail Page
   -------------------------------------------------------------------------- */
.db-detail-wrap {
    max-width: 900px;
}

.db-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color .15s;
}

.db-detail-back:hover { color: #7c3aed; }

.db-detail-back .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.db-detail-refbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.db-detail-refbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.db-detail-refbar__ref {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    font-family: monospace;
    letter-spacing: .5px;
}

.db-detail-refbar__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.db-detail-grid {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.db-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
}

.db-detail-card--action {
    border-color: #e2e8f0;
}

.db-detail-card--danger {
    border-color: #fecaca;
}

.db-detail-card__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.db-detail-card__heading .dashicons {
    color: #7c3aed;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.db-detail-card__heading--danger { background: #fef2f2; }
.db-detail-card__heading--danger .dashicons { color: #dc2626; }

.db-detail-card__hint {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px;
}

.db-detail-rows {
    padding: 4px 0;
}

.db-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.db-detail-row--last {
    border-bottom: none;
}

.db-detail-row__label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    min-width: 110px;
    flex-shrink: 0;
    padding-top: 1px;
}

.db-detail-row__label .dashicons {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
    color: #94a3b8;
}

.db-detail-row__value {
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
    flex: 1;
}

.db-detail-row__value--muted { color: #64748b; }

.db-detail-row--notes .db-detail-row__value {
    white-space: pre-line;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
}

.db-detail-sidebar {
    width: 280px;
    min-width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-detail-sidebar .db-detail-card {
    flex: none;
}

.db-detail-sidebar .db-detail-card--action,
.db-detail-sidebar .db-detail-card--danger {
    padding: 14px 16px;
}

.db-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.db-field-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
    transition: border-color .15s;
}

.db-field-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}

.db-field-msg {
    font-size: 12px;
    margin: 8px 0 0;
}

.db-detail-btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons (account additions)
   -------------------------------------------------------------------------- */
.db-btn--block {
    width: 100%;
    justify-content: center;
}

.db-btn--danger-outline {
    background: transparent;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.db-btn--danger-outline:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* --------------------------------------------------------------------------
   Profile Tab Notice
   -------------------------------------------------------------------------- */
.db-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.db-notice--info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.db-notice--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.db-notice--error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.db-notice--warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* ==========================================================================
   My Account — Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .db-my-account__content {
        padding: 16px;
    }

    .db-account-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .db-detail-grid {
        flex-direction: column;
    }

    .db-detail-sidebar {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .db-my-account__header {
        border-radius: 8px 8px 0 0;
        padding: 0 16px;
    }

    .db-my-account__logout-text {
        display: none;
    }

    .db-my-account__nav {
        padding: 0 8px;
    }

    .db-my-account__nav-item {
        padding: 12px 10px;
        font-size: 12px;
    }

    .db-account-welcome {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .db-account-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .db-account-stat {
        padding: 12px;
        gap: 8px;
    }

    .db-account-stat__value {
        font-size: 18px;
    }

    .db-booking-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .db-booking-item__actions {
        flex-direction: row;
        width: 100%;
    }

    .db-booking-item__actions .db-btn {
        flex: 1;
    }

    .db-detail-refbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .db-detail-refbar__actions {
        width: 100%;
    }

    .db-detail-row__label {
        min-width: 90px;
    }

    .db-detail-sidebar .db-detail-card--action,
    .db-detail-sidebar .db-detail-card--danger {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .db-account-stats {
        grid-template-columns: 1fr 1fr;
    }

    .db-upcoming-card {
        flex-wrap: wrap;
    }

    .db-upcoming-card__right {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        margin-top: 4px;
    }
}

/* ==========================================================================
   Service Single Page — New Components
   ========================================================================== */

/* Breadcrumb */
.db-svc-breadcrumb {
    font-size: 12px;
    color: #6b7280;
    padding: 10px 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.db-svc-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}
.db-svc-breadcrumb a:hover { color: #7c3aed; }
.db-svc-breadcrumb__sep { color: #d1d5db; }
.db-svc-breadcrumb__current { color: #374151; font-weight: 500; }

/* Star Rating Strip */
.db-svc-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}
.db-svc-stars__star { color: #f59e0b; font-size: 16px; line-height: 1; }
.db-svc-stars__label { font-size: 12px; }

/* Feature Strip */
.db-svc-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin: 28px 0;
}
.db-svc-features__item {
    background: #fff;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}
.db-svc-features__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
}
.db-svc-features__icon .dashicons { font-size: 20px; width: 20px; height: 20px; }
.db-svc-features__heading {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.db-svc-features__text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.3;
}

/* FAQ Accordion */
.db-svc-faq { margin: 28px 0; }
.db-svc-faq__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.db-svc-faq__title .dashicons { color: #7c3aed; font-size: 20px; width: 20px; height: 20px; }
.db-svc-faq__item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}
.db-svc-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}
.db-svc-faq__question::-webkit-details-marker { display: none; }
.db-svc-faq__question:hover { background: #fafafa; }
.db-svc-faq__arrow {
    font-size: 18px;
    color: #7c3aed;
    transition: transform 0.2s;
    flex-shrink: 0;
}
details[open] .db-svc-faq__arrow { transform: rotate(180deg); }
.db-svc-faq__answer {
    padding: 0 18px 16px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.65;
    border-top: 1px solid #f3f4f6;
}

/* Trust Badges */
.db-svc-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.db-svc-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    background: #f3f0ff;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 500;
}
.db-svc-trust-badge .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* Doctor Avatars Strip */
.db-svc-doctors-strip {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 12px;
}
.db-svc-doctor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-right: -8px;
}
.db-svc-doctor-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-right: -8px;
}
.db-svc-doctors-strip__label {
    margin-left: 16px;
    font-size: 12px;
    color: #6b7280;
}

/* Related Services */
.db-related-services {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #f3f4f6;
}
.db-related-services__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}
.db-related-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.db-related-service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.db-related-service-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: #c4b5fd;
}
.db-related-service-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.db-related-service-card__pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.db-related-service-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
}
.db-related-service-card__link {
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    margin-top: auto;
}

/* ==========================================================================
   Account Portal — Stat Strip
   ========================================================================== */

.db-my-account__stat-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
}
.db-my-account__stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
}
.db-my-account__stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
}
.db-my-account__stat-lbl {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.db-my-account__stat-sep {
    width: 1px;
    height: 32px;
    background: #e5e7eb;
}

/* ==========================================================================
   Account Dashboard — Countdown pill + day-of-week
   ========================================================================== */

.db-countdown-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: middle;
    margin-left: 4px;
}

.db-upcoming-card__dow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c3aed;
    line-height: 1;
    margin-bottom: 2px;
}

/* ==========================================================================
   Bookings List — Month Group Headers
   ========================================================================== */

.db-booking-month-header {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 18px 0 6px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 8px;
}
.db-booking-month-header:first-child { padding-top: 4px; }

/* ==========================================================================
   Booking Detail — Status Timeline
   ========================================================================== */

.db-status-timeline {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px 20px;
    overflow-x: auto;
}
.db-status-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 70px;
}
.db-status-timeline__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: background 0.2s, border-color 0.2s;
}
.db-status-timeline__step--done .db-status-timeline__dot {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}
.db-status-timeline__step--done .db-status-timeline__dot::after {
    content: '✓';
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}
.db-status-timeline__step--current .db-status-timeline__dot {
    background: #fff;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.db-status-timeline__step--current .db-status-timeline__dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7c3aed;
    display: block;
}
.db-status-timeline__label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    margin-top: 6px;
    white-space: nowrap;
}
.db-status-timeline__step--done .db-status-timeline__label,
.db-status-timeline__step--current .db-status-timeline__label {
    color: #374151;
}
.db-status-timeline__step--current .db-status-timeline__label {
    color: #7c3aed;
    font-weight: 700;
}
.db-status-timeline__line {
    position: absolute;
    top: 14px;
    left: calc(50% + 14px);
    right: calc(-50% + 14px);
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}
.db-status-timeline__line--done { background: #7c3aed; }
.db-status-timeline__step:last-child .db-status-timeline__line { display: none; }
.db-status-timeline__cancelled-label {
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    padding: 10px 20px 0;
    text-align: center;
    width: 100%;
}

/* ==========================================================================
   Profile Tab — Two-Column Grid + Avatar Block
   ========================================================================== */

.db-profile-avatar-block {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0 24px;
}
.db-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.db-profile-avatar-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}
.db-profile-avatar-email {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.db-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.db-profile-form { display: flex; flex-direction: column; gap: 16px; }

/* ==========================================================================
   Responsive — Service & Account additions
   ========================================================================== */

@media (max-width: 900px) {
    .db-svc-features { grid-template-columns: repeat(2, 1fr); }
    .db-related-services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .db-profile-grid { grid-template-columns: 1fr; }

    .db-my-account__stat-item { padding: 0 16px; }
    .db-my-account__stat-num { font-size: 17px; }

    .db-status-timeline { padding: 12px 12px 16px; }
    .db-status-timeline__dot { width: 22px; height: 22px; }
    .db-status-timeline__line { top: 11px; left: calc(50% + 11px); right: calc(-50% + 11px); }
    .db-status-timeline__step--done .db-status-timeline__dot::after { font-size: 11px; }
    .db-status-timeline__step--current .db-status-timeline__dot::after { width: 8px; height: 8px; }
    .db-status-timeline__label { font-size: 10px; }
}

@media (max-width: 640px) {
    .db-svc-features { grid-template-columns: 1fr 1fr; }
    .db-related-services__grid { grid-template-columns: 1fr; }

    .db-svc-trust-badges { gap: 6px; }
    .db-svc-trust-badge { font-size: 11px; padding: 4px 9px; }

    .db-profile-avatar { width: 52px; height: 52px; font-size: 18px; }
    .db-profile-avatar-name { font-size: 15px; }

    .db-my-account__stat-strip { gap: 0; }
    .db-my-account__stat-item { padding: 0 12px; }
    .db-my-account__stat-num { font-size: 15px; }
    .db-my-account__stat-lbl { font-size: 10px; }
}

/* ==========================================================================
   Account Page — CSS Fixes
   ========================================================================== */

/* Profile grid equal height */
.db-profile-grid > .db-detail-card {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.db-profile-form {
    flex: 1;
}

/* Countdown pill — better contrast inside purple banner */
.db-countdown-pill {
    background: rgba(255,255,255,0.3) !important;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff !important;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

/* Status timeline — prevent text wrapping on small screens */
.db-status-timeline__step {
    min-width: 60px;
    max-width: 90px;
    flex: 1;
}
.db-status-timeline__label {
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Booking month header — full width inside flex list */
.db-booking-list {
    display: block; /* was flex in some themes */
}
.db-booking-month-header {
    display: block;
    width: 100%;
    clear: both;
}

/* Stat strip — fix on very small screens */
@media (max-width: 400px) {
    .db-my-account__stat-strip {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 8px;
    }
    .db-my-account__stat-sep { display: none; }
    .db-my-account__stat-item { flex: 1; min-width: 80px; }
}

/* Detail card heading icon alignment */
.db-detail-card__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    background: #fafafa;
    border-radius: 12px 12px 0 0;
}
.db-detail-card__heading .dashicons {
    color: #7c3aed;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Account welcome section — ensure countdown is visible */
.db-account-welcome__sub {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ==========================================================================
   Booking Form — Compact Selectors (Branch + Doctor pills in steps)
   ========================================================================== */

.db-compact-selector {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.db-compact-selector__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.db-compact-selector__label .dashicons {
    color: #7c3aed;
    font-size: 15px;
    width: 15px;
    height: 15px;
}
.db-compact-selector__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.db-pill-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
}
.db-pill-option:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
    color: #7c3aed;
}
.db-pill-option--selected {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #fff;
}
.db-pill-option__radio { display: none; }
.db-pill-option__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.db-pill-option__initial {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.db-pill-option--selected .db-pill-option__initial {
    background: rgba(255,255,255,0.25);
}
.db-pill-option .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   Booking Form — Auth Tabs (Step 3)
   ========================================================================== */

.db-auth-tabs {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}
.db-auth-tabs__nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.db-auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.db-auth-tab:hover {
    color: #7c3aed;
    background: #faf5ff;
}
.db-auth-tab--active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
    background: #fff;
}
.db-auth-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.db-auth-panel {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.db-auth-panel[hidden] { display: none; }
.db-auth-panel--active { display: flex; flex-direction: column; }
.db-auth-panel__hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

/* ==========================================================================
   Booking Form — Booking Summary (inline, above submit)
   ========================================================================== */

.db-booking-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.db-booking-summary__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}
.db-booking-summary__title .dashicons {
    color: #10b981;
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.db-booking-summary__rows { display: flex; flex-direction: column; gap: 6px; }
.db-booking-summary__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
}
.db-booking-summary__label {
    min-width: 80px;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    flex-shrink: 0;
}
.db-booking-summary__value {
    color: #111827;
    font-weight: 500;
}

/* ==========================================================================
   Booking Form — 3-step progress bar (compact, 3 items)
   ========================================================================== */

.db-booking--3step .db-booking__steps {
    justify-content: center;
}
.db-booking--3step .db-booking__step-indicator {
    flex: none;
    min-width: 80px;
}

/* Optional: password wrap in auth panels */
.db-auth-panel .db-field__password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.db-auth-panel .db-field__password-wrap input {
    flex: 1;
    padding-right: 42px;
}
.db-auth-panel .db-field__toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    display: flex;
    align-items: center;
}
.db-auth-panel .db-field__toggle-pw:hover { color: #7c3aed; }

.db-form-optional {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
    margin-left: 4px;
}

@media (max-width: 480px) {
    .db-auth-tabs__nav { flex-direction: column; }
    .db-auth-tab { border-bottom: none; border-right: 3px solid transparent; justify-content: flex-start; padding: 10px 16px; }
    .db-auth-tab--active { border-right-color: #7c3aed; background: #faf5ff; }
    .db-compact-selector__pills { flex-direction: column; }
    .db-pill-option { width: 100%; }
}

/* =============================================================================
   Floating Booking Widget (Feature 1)
   ============================================================================= */

/* Trigger button */
.db-widget-trigger {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.db-widget-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.30);
}
.db-widget-trigger__icon { font-size: 18px; }

/* Overlay */
.db-widget-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 16px 90px 16px;
}
.db-widget-overlay[hidden] { display: none; }

/* Panel */
.db-widget-panel {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 40px rgba(0,0,0,0.20);
    overflow: hidden;
    animation: db-slide-up 0.25s ease;
}
@keyframes db-slide-up {
    from { transform: translateY(100px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.db-widget-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.db-widget-panel__title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.db-widget-panel__close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 4px;
}
.db-widget-panel__close:hover { color: #111827; }

.db-widget-panel__body {
    overflow-y: auto;
    flex: 1;
    padding: 20px;
}
/* Hide progress bar inside widget for cleaner look */
.db-widget-panel__body .db-booking__progress { display: none; }

/* Quick Book button */
.db-quick-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.db-quick-book-btn__icon { font-size: 18px; }
.db-quick-book-btn:disabled { opacity: 0.7; cursor: wait; }

/* =============================================================================
   WhatsApp Button (Feature 3)
   ============================================================================= */

/* Floating WhatsApp button */
.db-whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 140px; /* offset so it doesn't overlap widget trigger */
    z-index: 9997;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.db-whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.30);
}
/* When widget is not enabled, move WhatsApp to right side */
body:not(:has(.db-widget-trigger)) .db-whatsapp-float { right: 28px; }

/* Inline WhatsApp button */
.db-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.db-whatsapp-btn:hover { background: #1ebe59; color: #fff; }

/* =============================================================================
   Responsive: widget panel full-screen on mobile
   ============================================================================= */
@media (max-width: 520px) {
    .db-widget-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .db-widget-panel {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
    }
    .db-widget-trigger { right: 16px; bottom: 16px; padding: 12px 16px; font-size: 14px; }
    .db-whatsapp-float { right: 16px; bottom: 84px; }
}
