/* admin/src/styles/admin.css */

/* ==========================================================================
   APPOINTLY — Admin UI Design Tokens
   Mirrors the warm plum/violet + amber/gold palette from
   appointly.tscholene.com so the admin and the marketing site share one
   visual identity. All tokens are scoped to .appointly-admin so we do not leak
   into the rest of wp-admin.
   ========================================================================== */
.appointly-admin {
    /* Brand accent — warm plum/violet */
    --appointly-accent:        #A855F7;
    --appointly-accent-hover:  #9333EA;
    --appointly-accent-soft:   rgba(168, 85, 247, 0.12);
    --appointly-accent-glow:   rgba(168, 85, 247, 0.32);

    /* CTA — warm amber/gold */
    --appointly-cta:           #F59E0B;
    --appointly-cta-hover:     #D97706;
    --appointly-cta-soft:      rgba(245, 158, 11, 0.12);
    --appointly-cta-text:      #0C0A14;

    /* Semantic status */
    --appointly-emerald:       #10B981;
    --appointly-emerald-soft:  rgba(16, 185, 129, 0.12);
    --appointly-red:           #EF4444;
    --appointly-red-soft:      rgba(239, 68, 68, 0.12);

    /* Surfaces — light mode */
    --appointly-bg:            #FDFBFF;
    --appointly-bg-elevated:   #FFFFFF;
    --appointly-bg-muted:      #F5F0FF;
    --appointly-border:        #E8E0F0;
    --appointly-border-strong: #D4C5E6;

    /* Text */
    --appointly-text:          #1A0E2E;
    --appointly-text-muted:    #5B4A7A;
    --appointly-text-dim:      #9485AD;

    /* Gradients */
    --appointly-gradient-brand: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #C084FC 100%);
    --appointly-gradient-warm:  linear-gradient(135deg, #A855F7 0%, #F59E0B 100%);
    --appointly-gradient-card:  linear-gradient(135deg, #1E1A28 0%, #16131F 100%);

    /* Radii */
    --appointly-radius-sm:  8px;
    --appointly-radius-md:  12px;
    --appointly-radius-lg:  16px;
    --appointly-radius-xl:  24px;

    /* Shadows */
    --appointly-shadow-sm: 0 1px 2px rgba(26, 14, 46, 0.04);
    --appointly-shadow-md: 0 4px 16px rgba(26, 14, 46, 0.06), 0 1px 3px rgba(26, 14, 46, 0.04);
    --appointly-shadow-lg: 0 12px 40px rgba(26, 14, 46, 0.1), 0 2px 8px rgba(26, 14, 46, 0.06);
    --appointly-shadow-glow: 0 0 60px rgba(168, 85, 247, 0.25);

    /* Typography */
    --appointly-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --appointly-font-body:    'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --appointly-font-serif:   'Instrument Serif', ui-serif, Georgia, 'Times New Roman', serif;
    --appointly-font-mono:    'DM Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

/* ==========================================================================
   Base admin shell
   ========================================================================== */
.appointly-admin {
    max-width: 1200px;
    margin: 20px auto 0;
    font-family: var(--appointly-font-body);
    color: var(--appointly-text);
}

.appointly-admin * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.appointly-admin h1,
.appointly-admin h2,
.appointly-admin h3,
.appointly-admin h4 {
    font-family: var(--appointly-font-heading);
    color: var(--appointly-text);
    letter-spacing: -0.015em;
}

/* ==========================================================================
   Buttons — shared .appointly-btn API
   Variants: --cta (amber gradient), --primary (plum), --ghost (outlined)
   ========================================================================== */
.appointly-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--appointly-radius-sm);
    font-family: var(--appointly-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    white-space: nowrap;
}

.appointly-btn:focus-visible {
    outline: 2px solid var(--appointly-accent);
    outline-offset: 2px;
}

.appointly-btn--cta {
    background: var(--appointly-cta);
    color: var(--appointly-cta-text);
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.25), 0 4px 12px rgba(245, 158, 11, 0.2);
}

.appointly-btn--cta:hover {
    background: var(--appointly-cta-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3), 0 8px 20px rgba(245, 158, 11, 0.25);
    color: var(--appointly-cta-text);
}

.appointly-btn--primary {
    background: var(--appointly-accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(168, 85, 247, 0.25), 0 4px 12px rgba(168, 85, 247, 0.2);
}

.appointly-btn--primary:hover {
    background: var(--appointly-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(168, 85, 247, 0.3), 0 8px 20px rgba(168, 85, 247, 0.25);
    color: #fff;
}

.appointly-btn--ghost {
    background: transparent;
    color: var(--appointly-accent);
    box-shadow: inset 0 0 0 1.5px var(--appointly-border-strong);
}

.appointly-btn--ghost:hover {
    background: var(--appointly-accent-soft);
    color: var(--appointly-accent-hover);
    box-shadow: inset 0 0 0 1.5px var(--appointly-accent);
}

/* ==========================================================================
   Pill — used for status badges in tables
   ========================================================================== */
.appointly-admin .appointly-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   Dashboard — hero, stats, body, Pro upsell
   ========================================================================== */
.appointly-dashboard {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 48px;
}

.appointly-dashboard__hero {
    padding: 12px 4px 4px;
}

.appointly-dashboard__kicker {
    display: inline-block;
    font-family: var(--appointly-font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--appointly-accent);
    margin-bottom: 10px;
}

.appointly-dashboard__heading {
    font-family: var(--appointly-font-serif);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 10px;
    color: var(--appointly-text);
    letter-spacing: -0.015em;
}

.appointly-dashboard__sub {
    font-size: 16px;
    color: var(--appointly-text-muted);
    margin: 0;
    max-width: 70ch;
    line-height: 1.55;
}

/* Onboarding banner */
.appointly-admin .appointly-onboarding-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--appointly-bg-muted);
    border: 1.5px solid var(--appointly-border-strong);
    border-radius: var(--appointly-radius-md);
    box-shadow: var(--appointly-shadow-sm);
}

.appointly-onboarding-banner__content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.appointly-onboarding-banner__content .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--appointly-accent);
}

.appointly-onboarding-banner__content strong {
    display: block;
    font-size: 15px;
    color: var(--appointly-text);
    margin-bottom: 2px;
}

.appointly-onboarding-banner__content p {
    margin: 0;
    font-size: 13.5px;
    color: var(--appointly-text-muted);
}

/* Stats grid + tiles */
.appointly-dashboard .appointly-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.appointly-stat-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: var(--appointly-bg-elevated);
    border: 1px solid var(--appointly-border);
    border-radius: var(--appointly-radius-md);
    box-shadow: var(--appointly-shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
    position: relative;
    overflow: hidden;
}

.appointly-stat-tile::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--tile-accent, var(--appointly-accent));
}

.appointly-stat-tile--plum    { --tile-accent: #A855F7; }
.appointly-stat-tile--amber   { --tile-accent: #F59E0B; }
.appointly-stat-tile--emerald { --tile-accent: #10B981; }
.appointly-stat-tile--slate   { --tile-accent: #64748B; }

.appointly-stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--appointly-shadow-md);
}

.appointly-stat-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--appointly-radius-sm);
    background: var(--appointly-bg-muted);
    color: var(--tile-accent, var(--appointly-accent));
    flex-shrink: 0;
}

.appointly-stat-tile__icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.appointly-stat-tile__value {
    font-family: var(--appointly-font-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    color: var(--appointly-text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.appointly-stat-tile__label {
    font-size: 13px;
    color: var(--appointly-text-muted);
    font-weight: 500;
}

/* Dashboard body: recent bookings + mini calendar */
.appointly-dashboard__body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

@media (max-width: 980px) {
    .appointly-dashboard__body {
        grid-template-columns: 1fr;
    }
}

.appointly-dashboard__recent,
.appointly-dashboard__calendar {
    background: var(--appointly-bg-elevated);
    border: 1px solid var(--appointly-border);
    border-radius: var(--appointly-radius-md);
    padding: 24px;
    box-shadow: var(--appointly-shadow-sm);
}

.appointly-dashboard__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.appointly-dashboard__section-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--appointly-text);
    letter-spacing: -0.005em;
}

.appointly-dashboard__view-all {
    font-size: 13px;
    color: var(--appointly-accent);
    text-decoration: none;
    font-weight: 500;
}

.appointly-dashboard__view-all:hover {
    color: var(--appointly-accent-hover);
}

.appointly-dashboard__table {
    width: 100%;
    border-collapse: collapse;
}

.appointly-dashboard__table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--appointly-text-dim);
    border-bottom: 1px solid var(--appointly-border);
}

.appointly-dashboard__table tbody td {
    padding: 14px 12px;
    font-size: 13.5px;
    color: var(--appointly-text);
    border-bottom: 1px solid var(--appointly-border);
}

.appointly-dashboard__table tbody tr:last-child td {
    border-bottom: none;
}

.appointly-dashboard__table-row {
    cursor: pointer;
    transition: background 140ms ease;
}

.appointly-dashboard__table-row:hover {
    background: var(--appointly-bg-muted);
}

.appointly-dashboard__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--appointly-text-muted);
}

.appointly-dashboard__empty .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--appointly-text-dim);
    margin-bottom: 10px;
}

.appointly-dashboard__empty p {
    margin: 0 auto;
    font-size: 14px;
    max-width: 44ch;
    line-height: 1.5;
}

/* Mini calendar */
.appointly-admin .appointly-mini-cal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.appointly-admin .appointly-mini-cal__header {
    font-size: 14px;
    font-weight: 600;
    color: var(--appointly-text);
    text-align: center;
    text-transform: capitalize;
    letter-spacing: -0.005em;
}

.appointly-admin .appointly-mini-cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.appointly-admin .appointly-mini-cal__weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--appointly-text-dim);
    padding: 4px 0;
}

.appointly-admin .appointly-mini-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.appointly-admin .appointly-mini-cal__cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 6px;
    font-size: 12px;
    color: var(--appointly-text);
    background: transparent;
    transition: background 140ms ease;
}

.appointly-admin .appointly-mini-cal__cell--empty {
    background: transparent;
}

.appointly-admin .appointly-mini-cal__cell--today {
    background: var(--appointly-accent-soft);
    color: var(--appointly-accent);
    font-weight: 700;
}

.appointly-admin .appointly-mini-cal__dot {
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

/* ==========================================================================
   Pro Upgrade Card — adapts to prefers-color-scheme so it matches both
   light and dark hero states of appointly.tscholene.com. Default is the
   dark variant (warm plum gradient, light text), @media override flips
   to a warm light variant for users on light-mode OS/browser settings.
   ========================================================================== */
.appointly-pro-card {
    /* Card-scoped tokens — dark default */
    --appointly-pro-bg:          linear-gradient(135deg, #1E1A28 0%, #16131F 100%);
    --appointly-pro-border:      #2D2640;
    --appointly-pro-title:       #F5F0FF;
    --appointly-pro-lede:        #A89EC2;
    --appointly-pro-feature:     #CBD5E1;
    --appointly-pro-glow-bg:     radial-gradient(ellipse at center, rgba(168, 85, 247, 0.28), transparent 60%);
    --appointly-pro-ghost-color: #F5F0FF;
    --appointly-pro-ghost-ring:  rgba(245, 240, 255, 0.3);
    --appointly-pro-ghost-hover-bg:   rgba(245, 240, 255, 0.08);
    --appointly-pro-ghost-hover-ring: rgba(245, 240, 255, 0.5);
    --appointly-pro-kicker-color: #F59E0B;
    --appointly-pro-kicker-bg:    rgba(245, 158, 11, 0.1);
    --appointly-pro-kicker-ring:  rgba(245, 158, 11, 0.25);
    --appointly-pro-shadow:       var(--appointly-shadow-lg);

    position: relative;
    background: var(--appointly-pro-bg);
    border-radius: var(--appointly-radius-lg);
    padding: 40px 44px;
    overflow: hidden;
    border: 1px solid var(--appointly-pro-border);
    box-shadow: var(--appointly-pro-shadow);
}

/* Light-mode override — matches the website's light hero palette
   (warm white → lavender → amber hint). Triggered by the user's OS
   preferring light. */
@media (prefers-color-scheme: light) {
    .appointly-pro-card {
        --appointly-pro-bg:          linear-gradient(135deg, #F5F0FF 0%, #FDFBFF 55%, #FFF4E0 100%);
        --appointly-pro-border:      #E8E0F0;
        --appointly-pro-title:       #1A0E2E;
        --appointly-pro-lede:        #5B4A7A;
        --appointly-pro-feature:     #1A0E2E;
        --appointly-pro-glow-bg:     radial-gradient(ellipse at center, rgba(168, 85, 247, 0.22), transparent 60%);
        --appointly-pro-ghost-color: #7C3AED;
        --appointly-pro-ghost-ring:  rgba(124, 58, 237, 0.3);
        --appointly-pro-ghost-hover-bg:   rgba(124, 58, 237, 0.08);
        --appointly-pro-ghost-hover-ring: rgba(124, 58, 237, 0.55);
        --appointly-pro-kicker-color: #B45309;
        --appointly-pro-kicker-bg:    rgba(245, 158, 11, 0.14);
        --appointly-pro-kicker-ring:  rgba(245, 158, 11, 0.3);
        --appointly-pro-shadow:       0 12px 40px rgba(26, 14, 46, 0.08), 0 2px 8px rgba(26, 14, 46, 0.05);
    }
}

.appointly-pro-card__glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: var(--appointly-pro-glow-bg);
    pointer-events: none;
}

.appointly-pro-card__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.appointly-pro-card__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--appointly-font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--appointly-pro-kicker-color);
    background: var(--appointly-pro-kicker-bg);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    border: 1px solid var(--appointly-pro-kicker-ring);
}

.appointly-pro-card__kicker .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.appointly-admin .appointly-pro-card__title {
    font-family: var(--appointly-font-serif);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--appointly-pro-title);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.appointly-pro-card__lede {
    font-size: 15px;
    color: var(--appointly-pro-lede);
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 60ch;
}

.appointly-pro-card__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 28px;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.appointly-pro-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--appointly-pro-feature);
}

.appointly-pro-card__features .dashicons {
    color: #F59E0B;
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.appointly-pro-card__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.appointly-pro-card__actions .appointly-btn--ghost {
    color: var(--appointly-pro-ghost-color);
    box-shadow: inset 0 0 0 1.5px var(--appointly-pro-ghost-ring);
}

.appointly-pro-card__actions .appointly-btn--ghost:hover {
    background: var(--appointly-pro-ghost-hover-bg);
    color: var(--appointly-pro-ghost-color);
    box-shadow: inset 0 0 0 1.5px var(--appointly-pro-ghost-hover-ring);
}

@media (max-width: 640px) {
    .appointly-pro-card {
        padding: 28px 24px;
    }
    .appointly-pro-card__features {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Admin header + nav overrides — take precedence over the legacy blue
   rules further down in this file.
   ========================================================================== */
.appointly-admin .appointly-admin__header {
    background: var(--appointly-bg-elevated);
    border: 1px solid var(--appointly-border);
    border-radius: var(--appointly-radius-md);
    padding: 18px 24px;
    margin-bottom: 28px;
    box-shadow: var(--appointly-shadow-sm);
}

.appointly-admin .appointly-admin__header h1 {
    margin: 0 0 14px;
    font-family: var(--appointly-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--appointly-text);
    letter-spacing: -0.01em;
}

.appointly-admin .appointly-admin__nav-item {
    transition: background 160ms ease, color 160ms ease;
}

.appointly-admin .appointly-admin__nav-item.is-active {
    background: var(--appointly-accent);
    color: #fff;
}

.appointly-admin .appointly-admin__nav-item:hover:not(.is-active) {
    background: var(--appointly-accent-soft);
    color: var(--appointly-accent-hover);
}

/* ==========================================================================
   Legacy styles below — preserved for pages not yet rebranded
   (Bookings, Services, ServiceEditor, Settings, SetupWizard, BlockedDates,
   BookingDetail). These still use the old blue/green palette internally
   and will be progressively migrated to the token system in 2.0.x releases.
   ========================================================================== */
.appointly-admin-legacy-reset-marker {}

.appointly-admin__header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.appointly-admin__header h1 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.appointly-admin__nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.appointly-admin__nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 200ms ease;
}

.appointly-admin__nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.appointly-admin__nav-item.is-active {
    background: #0284c7;
    color: #fff;
}

.appointly-admin__nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.appointly-admin__content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    min-height: 400px;
}

/* =============================================
   Dashboard
   ============================================= */

.appointly-dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 12px;
    color: #64748b;
}

/* Stats Cards Grid */
.appointly-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .appointly-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .appointly-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Card */
.appointly-stats-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 200ms ease;
}

.appointly-stats-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.appointly-stats-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.appointly-stats-card__icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.appointly-stats-card__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.appointly-stats-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.appointly-stats-card__title {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Dashboard Body: Recent Bookings + Calendar */
.appointly-dashboard__body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}

@media (max-width: 900px) {
    .appointly-dashboard__body {
        grid-template-columns: 1fr;
    }
}

.appointly-dashboard__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.appointly-dashboard__section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.appointly-dashboard__view-all {
    font-size: 13px;
    font-weight: 500;
    color: #0284c7;
    text-decoration: none;
}

.appointly-dashboard__view-all:hover {
    text-decoration: underline;
}

.appointly-dashboard__empty {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 32px 0;
}

/* Recent Bookings Table */
.appointly-dashboard__recent {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.appointly-dashboard__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.appointly-dashboard__table thead th {
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.appointly-dashboard__table tbody td {
    padding: 10px 12px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.appointly-dashboard__table-row:hover td {
    background: #f8fafc;
}

.appointly-dashboard__table-row:last-child td {
    border-bottom: none;
}

/* Mini Calendar */
.appointly-dashboard__calendar {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.appointly-mini-cal__header {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 12px;
}

.appointly-mini-cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.appointly-mini-cal__weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    padding: 4px 0;
}

.appointly-mini-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.appointly-mini-cal__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    min-height: 32px;
    border-radius: 6px;
    position: relative;
}

.appointly-mini-cal__cell--today {
    background: #EFF6FF;
}

.appointly-mini-cal__cell--today .appointly-mini-cal__day {
    color: #2563EB;
    font-weight: 700;
}

.appointly-mini-cal__day {
    font-size: 12px;
    color: #334155;
    line-height: 1;
}

.appointly-mini-cal__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-top: 3px;
}

.appointly-mini-cal__cell--empty {
    min-height: 0;
}

/* =============================================
   Bookings List Page
   ============================================= */

.appointly-bookings__header {
    margin-bottom: 16px;
}

.appointly-bookings__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

/* Filter Bar */
.appointly-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.appointly-filter-bar .components-base-control {
    margin-bottom: 0;
    min-width: 150px;
    flex: 1;
}

.appointly-filter-bar .components-base-control:last-child {
    flex: 2;
}

/* =============================================
   Booking Table
   ============================================= */

.appointly-table-loading,
.appointly-table-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #64748b;
}

.appointly-table-wrap {
    overflow-x: auto;
}

.appointly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.appointly-table thead th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.appointly-table tbody td {
    padding: 12px 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.appointly-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.appointly-table__row {
    cursor: pointer;
    transition: background 150ms ease;
}

.appointly-table__row:hover td {
    background: #f0f7ff;
}

.appointly-table__actions {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.appointly-table__actions .components-button {
    font-size: 12px;
    padding: 4px 10px;
    min-height: 28px;
}

.appointly-table--compact {
    font-size: 13px;
}

.appointly-table--compact thead th {
    padding: 8px 12px;
    font-size: 11px;
}

.appointly-table--compact tbody td {
    padding: 8px 12px;
}

/* =============================================
   Status Badge
   ============================================= */

.appointly-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.appointly-status-badge--large {
    padding: 6px 16px;
    font-size: 14px;
}

/* =============================================
   Pagination
   ============================================= */

.appointly-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}

.appointly-pagination__info {
    font-size: 13px;
    color: #64748b;
}

.appointly-pagination__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appointly-pagination__per-page {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    background: #fff;
}

.appointly-pagination__pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.appointly-pagination__pages .components-button {
    min-width: 32px;
    min-height: 32px;
    justify-content: center;
    font-size: 13px;
}

.appointly-pagination__ellipsis {
    padding: 0 4px;
    color: #94a3b8;
}

/* =============================================
   Booking Detail Page
   ============================================= */

.appointly-detail-loading,
.appointly-detail-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
}

.appointly-detail__back {
    margin-bottom: 16px;
}

.appointly-detail__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .appointly-detail__layout {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.appointly-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.appointly-card h3 {
    margin: 0 0 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.appointly-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.appointly-card__field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.appointly-card__field--full {
    grid-column: 1 / -1;
}

.appointly-card__label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.appointly-card__value {
    font-size: 14px;
    color: #1e293b;
}

.appointly-card__value a {
    color: #0284c7;
    text-decoration: none;
}

.appointly-card__value a:hover {
    text-decoration: underline;
}

/* Detail: Status Display */
.appointly-detail__status-display {
    text-align: center;
    margin-bottom: 16px;
}

.appointly-detail__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.appointly-detail__price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.appointly-detail__note {
    margin-top: 12px;
}

.appointly-detail__note p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #475569;
}

/* Detail: Actions */
.appointly-detail__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.appointly-detail__actions .components-button {
    justify-content: center;
    width: 100%;
}

/* =============================================
   Timeline
   ============================================= */

.appointly-timeline {
    position: relative;
    padding-left: 20px;
}

.appointly-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
    border-radius: 1px;
}

.appointly-timeline__event {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
}

.appointly-timeline__event:last-child {
    padding-bottom: 0;
}

.appointly-timeline__dot {
    position: absolute;
    left: -18px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0284c7;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
    flex-shrink: 0;
}

.appointly-timeline__event:last-child .appointly-timeline__dot {
    background: #10b981;
}

.appointly-timeline__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.appointly-timeline__content strong {
    font-size: 13px;
    color: #0f172a;
}

.appointly-timeline__content span {
    font-size: 12px;
    color: #94a3b8;
}

/* =============================================
   Offer Modal
   ============================================= */

.appointly-offer-modal .components-modal__content {
    min-width: 400px;
}

.appointly-offer-modal__summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.appointly-offer-modal__summary p {
    margin: 0 0 4px;
    font-size: 14px;
    color: #334155;
}

.appointly-offer-modal__summary p:last-child {
    margin-bottom: 0;
}

.appointly-offer-modal__notice {
    margin-bottom: 12px;
}

.appointly-offer-modal__field {
    margin-bottom: 12px;
}

.appointly-offer-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.appointly-offer-modal__actions .components-button.is-primary .components-spinner {
    margin-right: 6px;
}

/* =============================================
   Calendar Grid (reusable)
   ============================================= */

.appointly-cal {
    margin-bottom: 24px;
}

.appointly-cal__month-label {
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 12px;
}

.appointly-cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.appointly-cal__weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.appointly-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.appointly-cal__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 150ms ease;
    position: relative;
    user-select: none;
}

.appointly-cal__cell:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.appointly-cal__cell--empty {
    cursor: default;
    min-height: 0;
}

.appointly-cal__cell--empty:hover {
    background: transparent;
    border-color: transparent;
}

.appointly-cal__cell--today {
    background: #eff6ff;
    border-color: #93c5fd;
}

.appointly-cal__cell--today .appointly-cal__day-number {
    color: #2563eb;
    font-weight: 700;
}

.appointly-cal__cell--selected {
    background: #dbeafe;
    border-color: #3b82f6;
}

.appointly-cal__cell--blocked {
    background: #fef2f2;
    border-color: #fca5a5;
}

.appointly-cal__cell--blocked:hover {
    background: #fee2e2;
    border-color: #f87171;
}

.appointly-cal__cell--blocked .appointly-cal__day-number {
    color: #dc2626;
    font-weight: 600;
}

.appointly-cal__day-number {
    font-size: 14px;
    color: #334155;
    line-height: 1;
}

.appointly-cal__blocked-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.appointly-cal__blocked-indicator .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    color: #ef4444;
}

/* =============================================
   Blocked Dates Page
   ============================================= */

.appointly-blocked__header {
    margin-bottom: 16px;
}

.appointly-blocked__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.appointly-blocked__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.appointly-blocked__nav-label {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    min-width: 180px;
    text-align: center;
}

.appointly-blocked__today-btn {
    margin-left: auto;
}

.appointly-blocked__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.appointly-blocked__list {
    margin-top: 32px;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.appointly-blocked__list h3 {
    margin: 0 0 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.appointly-blocked__empty {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 24px 0;
}

/* Blocked Dates Modals */
.appointly-blocked-modal .components-modal__content {
    min-width: 380px;
}

.appointly-blocked-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* =============================================
   Services List Page
   ============================================= */

.appointly-services-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 12px;
    color: #64748b;
}

.appointly-services__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.appointly-services__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.appointly-services__reorder-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    font-size: 13px;
    color: #92400E;
}

.appointly-services__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
}

.appointly-services__empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #cbd5e1;
}

.appointly-services__empty p {
    margin: 0;
    font-size: 14px;
    max-width: 400px;
}

.appointly-services__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =============================================
   Service Card
   ============================================= */

.appointly-service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.appointly-service-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.appointly-service-card--inactive {
    opacity: 0.65;
}

.appointly-service-card__order {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.appointly-service-card__order .components-button {
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    justify-content: center;
}

.appointly-service-card__image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.appointly-service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appointly-service-card__body {
    flex: 1;
    min-width: 0;
}

.appointly-service-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.appointly-service-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.appointly-service-card__badges {
    display: flex;
    gap: 6px;
}

.appointly-service-card__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.appointly-service-card__badge--day {
    background: #DBEAFE;
    color: #1D4ED8;
}

.appointly-service-card__badge--timeslot {
    background: #EDE9FE;
    color: #6D28D9;
}

.appointly-service-card__badge--active {
    background: #D1FAE5;
    color: #047857;
}

.appointly-service-card__badge--inactive {
    background: #F3F4F6;
    color: #6B7280;
}

.appointly-service-card__description {
    margin: 0 0 6px;
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.appointly-service-card__meta {
    display: flex;
    gap: 14px;
}

.appointly-service-card__count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.appointly-service-card__count .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.appointly-service-card__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.appointly-service-card__actions .components-button {
    font-size: 12px;
    padding: 4px 10px;
    min-height: 28px;
}

@media (max-width: 768px) {
    .appointly-service-card {
        flex-wrap: wrap;
    }

    .appointly-service-card__body {
        width: 100%;
        order: 1;
    }

    .appointly-service-card__actions {
        order: 2;
        width: 100%;
        justify-content: flex-end;
    }

    .appointly-service-card__description {
        max-width: 100%;
    }
}

/* =============================================
   Service Editor
   ============================================= */

.appointly-editor-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 12px;
    color: #64748b;
}

.appointly-service-editor__top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.appointly-service-editor__top-bar h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.appointly-editor-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.appointly-editor-section__title {
    margin: 0;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.appointly-editor-section__body {
    padding: 20px;
}

.appointly-editor-section__body > .components-base-control {
    margin-bottom: 16px;
}

.appointly-editor-section__body > .components-base-control:last-child {
    margin-bottom: 0;
}

/* Image Picker */
.appointly-editor-image {
    margin-bottom: 16px;
}

.appointly-editor-image__label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: #1e1e1e;
    margin-bottom: 8px;
}

.appointly-editor-image__preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.appointly-editor-image__preview img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.appointly-editor-image__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Editor Actions (Save/Cancel bar) */
.appointly-editor-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 4px;
}

/* =============================================
   Field Builder
   ============================================= */

.appointly-field-builder__empty,
.appointly-addon-editor__empty {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

.appointly-field-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color 200ms ease;
}

.appointly-field-row:hover {
    border-color: #cbd5e1;
}

.appointly-field-row__order {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    padding-top: 18px;
}

.appointly-field-row__order .components-button {
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    justify-content: center;
}

.appointly-field-row__main {
    flex: 1;
    min-width: 0;
}

.appointly-field-row__top {
    display: grid;
    grid-template-columns: 2fr auto 1fr auto;
    gap: 12px;
    align-items: flex-start;
}

.appointly-field-row__key {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 18px;
    font-size: 12px;
    color: #64748b;
}

.appointly-field-row__key code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #334155;
}

.appointly-field-row__key-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: #1e1e1e;
}

.appointly-field-row__required {
    padding-top: 24px;
}

.appointly-field-row__options {
    margin-top: 10px;
}

.appointly-field-row__delete {
    flex-shrink: 0;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .appointly-field-row__top {
        grid-template-columns: 1fr;
    }

    .appointly-field-row__key {
        padding-top: 0;
    }

    .appointly-field-row__required {
        padding-top: 0;
    }
}

/* =============================================
   Addon Editor
   ============================================= */

.appointly-addon-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color 200ms ease;
}

.appointly-addon-row:hover {
    border-color: #cbd5e1;
}

.appointly-addon-row__order {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    padding-top: 18px;
}

.appointly-addon-row__order .components-button {
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    justify-content: center;
}

.appointly-addon-row__main {
    flex: 1;
    min-width: 0;
}

.appointly-addon-row__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.appointly-addon-row__desc {
    margin-top: 0;
}

.appointly-addon-row__delete {
    flex-shrink: 0;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .appointly-addon-row__top {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Slot Configurator
   ============================================= */

.appointly-slot-config {
    margin-top: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.appointly-slot-config__fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .appointly-slot-config__fields {
        grid-template-columns: 1fr;
    }
}

.appointly-slot-config__preview {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.appointly-slot-config__preview strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.appointly-slot-config__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.appointly-slot-config__slot-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #DBEAFE;
    color: #1D4ED8;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* =============================================
   Email Templates Page
   ============================================= */

.appointly-email-templates__header {
    margin-bottom: 16px;
}

.appointly-email-templates__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.appointly-email-templates__notice {
    margin-bottom: 16px;
}

.appointly-email-templates__selector {
    max-width: 320px;
    margin-bottom: 20px;
}

.appointly-email-templates__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 12px;
    color: #64748b;
}

/* Split view: editor (60%) + preview (40%) */
.appointly-email-templates__split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .appointly-email-templates__split {
        grid-template-columns: 1fr;
    }
}

/* Editor pane */
.appointly-email-templates__editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appointly-email-templates__subject .components-text-control__input {
    font-size: 14px;
}

/* Placeholder buttons */
.appointly-email-templates__placeholders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.appointly-email-templates__placeholders-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.appointly-email-templates__placeholder-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.appointly-email-templates__placeholder-btn.components-button {
    font-size: 11px;
    padding: 3px 8px;
    min-height: 26px;
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 4px;
}

.appointly-email-templates__placeholder-btn.components-button:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Body textarea */
.appointly-email-templates__body-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appointly-email-templates__body-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    color: #1e293b;
    background: #fafbfc;
    tab-size: 4;
}

.appointly-email-templates__body-textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 1px #0284c7;
    background: #fff;
}

/* Preview pane */
.appointly-email-templates__preview {
    position: sticky;
    top: 32px;
}

.appointly-email-preview h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.appointly-email-preview__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    color: #94a3b8;
    gap: 8px;
}

.appointly-email-preview__empty .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.appointly-email-preview__empty p {
    margin: 0;
    font-size: 13px;
    text-align: center;
    max-width: 200px;
}

/* Actions bar */
.appointly-email-templates__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* =============================================
   Settings Page
   ============================================= */

.appointly-settings-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 12px;
    color: #64748b;
}

.appointly-settings__header {
    margin-bottom: 16px;
}

.appointly-settings__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.appointly-settings__notice {
    margin-bottom: 16px;
}

/* Collapsible panels */
.appointly-settings-panel {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 200ms ease;
}

.appointly-settings-panel:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.appointly-settings-panel.is-open {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.appointly-settings-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: #fafbfc;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    transition: background 150ms ease;
}

.appointly-settings-panel__header:hover {
    background: #f1f5f9;
}

.appointly-settings-panel.is-open .appointly-settings-panel__header {
    border-bottom: 1px solid #e2e8f0;
}

.appointly-settings-panel__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.appointly-settings-panel__title .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #64748b;
}

.appointly-settings-panel__header > .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.appointly-settings-panel__body {
    padding: 20px;
}

/* Settings fields layout */
.appointly-settings__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.appointly-settings__fields .components-base-control {
    margin-bottom: 0;
}

/* Logo field */
.appointly-settings__logo-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.appointly-settings__logo-controls {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.appointly-settings__logo-preview {
    flex-shrink: 0;
}

.appointly-settings__logo-preview img {
    max-width: 160px;
    max-height: 80px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    object-fit: contain;
    background: #fafbfc;
    padding: 8px;
}

.appointly-settings__logo-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Color fields */
.appointly-settings__color-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appointly-settings__color-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appointly-settings__color-input {
    width: 40px;
    height: 36px;
    padding: 2px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    flex-shrink: 0;
}

.appointly-settings__color-input::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.appointly-settings__color-input::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

.appointly-settings__color-text {
    max-width: 120px;
}

.appointly-settings__color-text .components-text-control__input {
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
}

.appointly-settings__color-swatch {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* SMTP section */
.appointly-settings__smtp {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.appointly-settings__smtp .components-base-control {
    margin-bottom: 0;
}

.appointly-settings__smtp-test {
    align-self: flex-start;
    margin-top: 4px;
}

/* Frontend texts editor */
.appointly-frontend-texts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointly-frontend-texts__empty {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

.appointly-frontend-texts__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.appointly-frontend-texts__row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.appointly-frontend-texts__row:last-child {
    border-bottom: none;
}

.appointly-frontend-texts__row--header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 8px 14px;
}

.appointly-frontend-texts__key {
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
    word-break: break-all;
}

.appointly-frontend-texts__value {
    margin-bottom: 0 !important;
}

.appointly-frontend-texts__value .components-text-control__input {
    font-size: 13px;
    min-height: 32px;
}

.appointly-frontend-texts__add {
    align-self: flex-start;
}

.appointly-settings__texts-actions {
    margin-top: 8px;
}

/* Sticky save bar */
.appointly-settings__save-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 16px 0;
    margin-top: 24px;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
}

.appointly-settings__save-bar .components-button.is-primary {
    min-width: 140px;
    justify-content: center;
}

/* =============================================
   Setup Wizard
   ============================================= */

.appointly-wizard {
    max-width: 640px;
    margin: 40px auto;
}

.appointly-wizard__step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
}

.appointly-wizard__progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.appointly-wizard__progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background 200ms;
}

.appointly-wizard__progress-dot.is-active {
    background: #0284c7;
}

.appointly-wizard__title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.appointly-wizard__body {
    margin-bottom: 32px;
}

.appointly-wizard__nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.appointly-wizard__nav > :last-child {
    margin-left: auto;
}

.appointly-wizard__license {
    margin-bottom: 24px;
}

.appointly-wizard__license h3 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.appointly-wizard__comparison {
    margin: 24px 0;
}

.appointly-wizard__comparison table {
    width: 100%;
    border-collapse: collapse;
}

.appointly-wizard__comparison th,
.appointly-wizard__comparison td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 14px;
}

.appointly-wizard__comparison th {
    font-weight: 600;
    color: #334155;
}

.appointly-wizard__color-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #334155;
}

.appointly-wizard__embed-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    text-align: left;
}

.appointly-wizard__embed-method {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.appointly-wizard__embed-method strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.appointly-wizard__embed-method p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.appointly-wizard__embed-method code {
    display: inline-block;
    margin-top: 4px;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #334155;
}

/* =============================================
   Pro Badge
   ============================================= */

.appointly-pro-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}

/* =============================================
   Upsell Overlay
   ============================================= */

.appointly-upsell-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    background: rgba(248, 250, 252, 0.85);
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    gap: 8px;
}

.appointly-upsell-overlay p {
    color: #64748b;
    font-size: 14px;
    margin: 4px 0 8px;
}

.appointly-upsell-overlay--full {
    min-height: 300px;
    margin-top: 16px;
}

.appointly-upsell-overlay__icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.appointly-upsell-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

/* =============================================
   Upsell Modal
   ============================================= */

.appointly-upsell-modal .components-modal__content {
    max-width: 440px;
}

.appointly-upsell-modal__price {
    text-align: center;
    margin-bottom: 20px;
}

.appointly-upsell-modal__amount {
    font-size: 2rem;
    font-weight: 800;
    color: #7C3AED;
}

.appointly-upsell-modal__period {
    font-size: 1rem;
    color: #64748b;
    margin-left: 4px;
}

.appointly-upsell-modal__features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.appointly-upsell-modal__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #334155;
}

.appointly-upsell-modal__feature .dashicons {
    color: #10b981;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.appointly-upsell-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.appointly-upsell-modal__upgrade-btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #7C3AED, #6D28D9) !important;
    border-color: #6D28D9 !important;
    font-weight: 600;
}

.appointly-upsell-modal__upgrade-btn:hover {
    background: linear-gradient(135deg, #6D28D9, #5B21B6) !important;
}

/* =============================================
   License Panel
   ============================================= */

.appointly-license-panel {
    padding: 4px 0;
}

.appointly-license-panel--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.appointly-license-panel__notice {
    margin-bottom: 16px;
}

.appointly-license-panel__status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.appointly-license-panel__label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.appointly-license-panel__badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.appointly-license-panel__active {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.appointly-license-panel__info p {
    margin: 0 0 6px;
    font-size: 14px;
    color: #334155;
}

.appointly-license-panel__info code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #475569;
}

.appointly-license-panel__input-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.appointly-license-panel__input-row .components-base-control {
    flex: 1;
    margin-bottom: 0;
}

.appointly-license-panel__expired .components-notice {
    margin-bottom: 16px;
}

/* =============================================
   Payment Section
   ============================================= */

.appointly-payment-section__subtitle {
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.appointly-payment-section__subtitle:first-child {
    margin-top: 0;
}

.appointly-payment-section__webhook-url {
    margin-top: 8px;
}

.appointly-payment-section__webhook-url .components-base-control__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

.appointly-payment-section__url-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.appointly-payment-section__url-value {
    flex: 1;
    display: block;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    word-break: break-all;
    user-select: all;
}

/* =============================================
   Offer Modal — Pricing Breakdown
   ============================================= */

.appointly-offer-modal__pricing {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.appointly-offer-modal__pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: #475569;
}

.appointly-offer-modal__pricing-row--total {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 15px;
    color: #0f172a;
}

/* =============================================
   Email Templates — Pro notice
   ============================================= */

.appointly-email-templates__pro-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 13px;
    color: #64748b;
}

.appointly-card__value--pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.appointly-admin__alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 12px 0;
}

.appointly-admin__alert--warning {
    background: rgba(245, 158, 11, 0.1);
    color: rgb(180, 83, 9);
    border-left: 4px solid rgb(245, 158, 11);
}

.appointly-admin__alert--error {
    background: rgba(239, 68, 68, 0.1);
    color: rgb(153, 27, 27);
    border-left: 4px solid rgb(239, 68, 68);
}

/* -----------------------------------------------------------------------
 * Review prompt admin notice (Free 2.0.4 — refactored to remove inline
 * styles for WP.org plugin review compliance).
 * ----------------------------------------------------------------------- */

.appointly-review-notice {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.appointly-review-notice__icon {
    font-size: 28px !important;
    color: #F59E0B;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.appointly-review-notice__body {
    flex: 1 1 auto;
    min-width: 240px;
}

.appointly-review-notice__cta,
.appointly-review-notice .appointly-review-dismiss {
    white-space: nowrap;
}

.appointly-review-notice .appointly-review-dismiss {
    color: #64748b;
}

/* Status change modal (Free 2.0.5 — replaces window.confirm() for
 * admin booking status transitions). */
.appointly-status-change-modal .components-modal__content {
    max-width: 480px;
}
.appointly-status-change-modal__description {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: #334155;
}
.appointly-status-change-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}
