/* ==========================================================================
   DoctorKade24 - Ultra-Minimal Native-App Booking & Checkout UI
   Zero External CDN | Zero CLS | High-Conversion Medical Fintech Aesthetics
   ========================================================================== */

:root {
    --dk-primary: #2563eb;
    --dk-primary-soft: #eff6ff;
    --dk-emerald: #059669;
    --dk-emerald-hover: #047857;
    --dk-bg: #f6f8fb;
    --dk-surface: #ffffff;
    --dk-surface-tint: #fafbfd;
    --dk-surface-muted: #f3f5f8;
    --dk-border: #e6eaf0;
    --dk-border-subtle: #eff2f6;
    --dk-border-strong: #cfd6e0;
    --dk-text: #0f172a;
    --dk-text-secondary: #334155;
    --dk-text-muted: #64748b;
    --dk-danger: #dc2626;
    --dk-radius-xl: 20px;
    --dk-radius-lg: 14px;
    --dk-radius-md: 10px;
    --dk-radius-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    direction: rtl;
    -webkit-tap-highlight-color: transparent;
}

body.dk-standalone-booking-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--dk-bg);
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
    color: var(--dk-text);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dk-book-bg {
    min-height: 100vh;
    padding: 28px 16px 44px;
}

.dk-book-container {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    background: var(--dk-surface);
    border-radius: var(--dk-radius-xl);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 12px 32px -12px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    border: 1px solid var(--dk-border);
    position: relative;
}

/* ==========================================================================
   Step 1: Calendar & Slots (Minimal App Style)
   ========================================================================== */

.dk-book-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--dk-border-subtle);
    background: var(--dk-surface);
    gap: 12px;
}

.dk-book-header h2 {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--dk-text);
    margin: 0;
}

.dk-book-back {
    color: var(--dk-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: var(--dk-radius-sm);
    background: transparent;
    border: 1px solid var(--dk-border);
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
    flex-shrink: 0;
}

.dk-book-back:hover {
    color: var(--dk-text);
    border-color: var(--dk-border-strong);
    background: var(--dk-surface-tint);
}

.dk-book-doc-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    gap: 16px;
    background: var(--dk-surface);
}

.dk-book-doc-text h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: var(--dk-text);
    font-weight: 700;
}

.dk-book-doc-text p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--dk-text-muted);
    line-height: 1.7;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dk-book-phone-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 5px;
    font-size: 0.82rem;
    color: var(--dk-text-secondary);
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.dk-book-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px var(--dk-border);
    flex-shrink: 0;
}

.dk-book-notice {
    background: var(--dk-surface-tint);
    border-radius: var(--dk-radius-md);
    margin: 0 24px 20px;
    padding: 12px 16px;
    text-align: right;
    border: 1px solid var(--dk-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dk-book-notice strong {
    color: var(--dk-primary);
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.dk-notice-text-wrapper {
    width: 100%;
    max-height: 3.4em;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.dk-notice-text-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.2em;
    background: linear-gradient(transparent, var(--dk-surface-tint));
    pointer-events: none;
    transition: opacity 0.2s;
}

.dk-notice-text-wrapper.expanded {
    max-height: 1500px;
}

.dk-notice-text-wrapper.expanded::after {
    opacity: 0;
}

#dk-notice-inner {
    color: var(--dk-text-secondary);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.75;
    text-align: center;
}

.dk-read-more-btn {
    background: none;
    border: none;
    color: var(--dk-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    padding: 3px 8px;
    font-family: inherit;
    display: none;
}

.dk-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: var(--dk-surface-tint);
    border-top: 1px solid var(--dk-border-subtle);
    border-bottom: 1px solid var(--dk-border-subtle);
    margin-bottom: 12px;
}

.dk-month-btn {
    background: var(--dk-surface);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius-sm);
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--dk-text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
}

.dk-month-btn:hover:not(:disabled) {
    border-color: var(--dk-primary);
    color: var(--dk-primary);
}

.dk-month-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dk-month-label {
    font-weight: 700;
    color: var(--dk-text);
    font-size: 0.88rem;
}

.dk-book-days-wrapper {
    display: flex;
    align-items: center;
    padding: 0 14px;
    margin-bottom: 18px;
    background: var(--dk-surface);
}

.dk-book-days {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 8px;
    padding: 6px 10px;
    scrollbar-width: none;
    flex: 1;
    cursor: grab;
    user-select: none;
}

.dk-book-days:active {
    cursor: grabbing;
    scroll-snap-type: none;
}

.dk-book-days::-webkit-scrollbar {
    display: none;
}

.dk-day-card {
    scroll-snap-align: center;
    flex: 0 0 88px;
    border: 1px solid var(--dk-border);
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--dk-surface);
}

.dk-day-card span {
    font-size: 0.76rem;
    color: var(--dk-text-muted);
}

.dk-day-card strong {
    font-size: 0.88rem;
    color: var(--dk-text);
    font-weight: 700;
}

.dk-day-card small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dk-emerald) !important;
}

.dk-day-card:hover:not(.dk-day-disabled) {
    border-color: var(--dk-border-strong);
}

.dk-day-card.active {
    border-color: var(--dk-primary);
    background: var(--dk-primary-soft);
}

.dk-day-card.active span,
.dk-day-card.active strong {
    color: var(--dk-primary);
}

.dk-day-card.dk-day-disabled {
    opacity: 0.42;
    cursor: not-allowed;
    background: var(--dk-surface-tint);
    border-color: var(--dk-border-subtle);
}

.dk-day-card.dk-day-disabled small {
    color: #94a3b8 !important;
}

.dk-book-slots-container {
    padding: 0 24px 32px;
}

.dk-slot-group {
    background: var(--dk-surface);
}

.dk-slot-group-title {
    margin: 0 0 12px 0;
    font-size: 0.82rem;
    color: var(--dk-text-muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dk-border-subtle);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dk-slot-group-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dk-primary);
}

.dk-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
}

.dk-slot-btn {
    padding: 9px 6px;
    border-radius: var(--dk-radius-sm);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    text-align: center;
}

.dk-slot-btn.available {
    background: var(--dk-surface);
    border: 1px solid var(--dk-border-strong);
    color: var(--dk-text);
}

.dk-slot-btn.available:hover {
    background: var(--dk-primary);
    border-color: var(--dk-primary);
    color: #fff;
}

.dk-slot-btn.disabled {
    background: var(--dk-surface-muted);
    border: 1px solid var(--dk-border-subtle);
    color: #94a3b8;
    cursor: not-allowed;
}

.dk-slots-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    text-align: center;
}

.dk-slots-empty p {
    color: var(--dk-text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.dk-btn-next-available {
    background: var(--dk-primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--dk-radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.dk-btn-next-available:hover {
    opacity: 0.92;
}

/* ==========================================================================
   Step 2: Ultra-Minimal Native-App Checkout (No Nested Card Clutter)
   ========================================================================== */

.dk-checkout-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--dk-surface);
    border-bottom: 1px solid var(--dk-border-subtle);
    gap: 12px;
}

.dk-checkout-appbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dk-checkout-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dk-primary-soft);
    color: var(--dk-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.dk-checkout-appbar h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dk-text);
}

.dk-checkout-appbar-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--dk-border);
    color: var(--dk-text-muted);
    border-radius: var(--dk-radius-sm);
    padding: 6px 11px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.dk-checkout-appbar-back:hover {
    border-color: var(--dk-border-strong);
    color: var(--dk-text);
    background: var(--dk-surface-tint);
}

/* Seamless 2-Pane Split (Stripe/Apple Style) */
.dk-checkout-split {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    align-items: stretch;
    background: var(--dk-surface);
}

.dk-checkout-form-col {
    padding: 28px 30px 32px;
    background: var(--dk-surface);
}

.dk-checkout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--dk-text);
    font-weight: 700;
    margin: 0 0 18px;
}

/* iOS-Style Segmented Control */
.dk-who-toggle-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--dk-surface-muted);
    padding: 4px;
    border-radius: 11px;
    margin-bottom: 22px;
}

.dk-who-label {
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--dk-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
    user-select: none;
}

.dk-who-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.dk-who-label.active {
    background: var(--dk-surface);
    color: var(--dk-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Clean, Balanced Form Grid (No Empty Gaps) */
.dk-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
}

.dk-float-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dk-float-group.dk-full-span,
.dk-float-group.dk-date-group-border {
    grid-column: span 2;
    border: none;
    padding: 0;
    background: transparent;
}

.dk-float-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dk-text-secondary);
    padding-right: 2px;
}

.dk-float-input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius-md);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dk-text);
    outline: none;
    background: var(--dk-surface);
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    font-variant-numeric: tabular-nums;
}

.dk-float-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.dk-float-input:focus {
    border-color: var(--dk-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.dk-locked-input[readonly] {
    background: var(--dk-surface-tint);
    color: var(--dk-text-muted);
    cursor: not-allowed;
    border-color: var(--dk-border-subtle);
    box-shadow: none;
}

.dk-input-ltr {
    direction: ltr;
    text-align: left;
}

/* Custom Minimal Dropdowns */
.dk-date-dropdowns {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 10px;
    width: 100%;
}

.dk-date-sel {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 30px;
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius-md);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dk-text);
    outline: none;
    cursor: pointer;
    background-color: var(--dk-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dk-date-sel:focus {
    border-color: var(--dk-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

/* Minimal Discount Input */
.dk-discount-container {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--dk-border-subtle);
}

.dk-discount-container p {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--dk-text-secondary);
}

.dk-discount-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--dk-surface);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius-md);
    padding: 4px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dk-discount-box:focus-within {
    border-color: var(--dk-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.dk-discount-box input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.84rem;
    color: var(--dk-text);
    outline: none;
    min-width: 0;
}

.dk-discount-box input::placeholder {
    color: #94a3b8;
}

.dk-discount-box button {
    height: 36px;
    background: var(--dk-surface-muted);
    color: var(--dk-text);
    border: 1px solid var(--dk-border);
    padding: 0 14px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.dk-discount-box button:hover {
    background: var(--dk-primary-soft);
    border-color: #bfdbfe;
    color: var(--dk-primary);
}

/* Summary Pane (Subtle Tinted Panel, No Inner Card Shadow) */
.dk-checkout-summary-col {
    background: var(--dk-surface-tint);
    border-right: 1px solid var(--dk-border-subtle);
}

.dk-summary-card {
    padding: 28px 28px 32px;
    background: transparent;
}

.dk-summary-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--dk-text);
    font-weight: 700;
    margin: 0 0 18px;
}

.dk-summary-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dk-emerald);
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    padding: 3px 9px;
    border-radius: 999px;
}

.dk-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dk-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.83rem;
    color: var(--dk-text-muted);
    margin-bottom: 11px;
}

.dk-summary-list li:last-child {
    margin-bottom: 0;
}

.dk-summary-list li strong {
    color: var(--dk-text);
    font-weight: 600;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

/* Sleek Single Date/Time Strip */
.dk-summary-datetime-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dk-surface);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius-md);
    margin-top: 14px;
    overflow: hidden;
}

.dk-dt-pill {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dk-dt-pill:first-child {
    border-left: 1px solid var(--dk-border-subtle);
}

.dk-dt-pill span {
    font-size: 0.72rem;
    color: var(--dk-text-muted);
}

.dk-dt-pill strong {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--dk-text);
    font-variant-numeric: tabular-nums;
}

.dk-summary-divider {
    height: 1px;
    background: var(--dk-border);
    margin: 18px 0;
    opacity: 0.7;
}

.dk-tax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem !important;
    color: var(--dk-text-muted) !important;
    margin-top: 2px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--dk-border);
}

.dk-tax-row span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dk-tax-row span:last-child {
    font-weight: 600;
    color: var(--dk-text-secondary);
    font-variant-numeric: tabular-nums;
}

/* Clean Typographic Total Row */
#row-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 14px;
    margin-top: 4px;
    margin-bottom: 0;
}

#row-total span {
    color: var(--dk-text);
    font-size: 0.88rem;
    font-weight: 700;
}

#row-total strong {
    color: var(--dk-text);
    font-size: 1.08rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Subtle Hairline Deposit Info */
.dk-deposit-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffdf7;
    color: #78350f;
    border: 1px solid #f3e8c8;
    padding: 10px 12px;
    border-radius: var(--dk-radius-md);
    font-size: 0.77rem;
    text-align: right;
    margin-top: 14px;
    font-weight: 500;
    line-height: 1.65;
}

.dk-deposit-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d97706;
}

.dk-wallet-section {
    background: var(--dk-surface);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius-md);
    padding: 10px 12px;
    margin-top: 12px;
}

.dk-wallet-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--dk-text);
    font-weight: 600;
}

.dk-wallet-label input[type="checkbox"] {
    accent-color: var(--dk-emerald);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Minimal, Crisp Action Buttons */
.dk-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.dk-btn-submit {
    width: 100%;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--dk-emerald);
    color: #fff;
    border: none;
    border-radius: var(--dk-radius-md);
    padding: 0 18px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.12s, opacity 0.15s;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.2);
}

.dk-btn-submit:hover:not(:disabled) {
    background: var(--dk-emerald-hover);
}

.dk-btn-submit:active:not(:disabled) {
    transform: scale(0.985);
}

.dk-btn-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.dk-btn-back {
    width: 100%;
    height: 38px;
    background: transparent;
    color: var(--dk-text-muted);
    border: none;
    border-radius: var(--dk-radius-sm);
    padding: 0 12px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}

.dk-btn-back:hover {
    color: var(--dk-text);
    background: var(--dk-surface-muted);
}

.dk-trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.74rem;
    color: #94a3b8;
}

/* ==========================================================================
   Profile Completion Modal
   ========================================================================== */

.dk-prof-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    padding: 16px;
}

.dk-prof-modal {
    background: var(--dk-surface);
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    text-align: center;
    font-family: inherit;
    direction: rtl;
}

.dk-prof-modal h3 {
    font-size: 1.15rem;
    color: var(--dk-text);
    margin: 0 0 6px;
    font-weight: 800;
}

.dk-prof-modal p {
    font-size: 0.82rem;
    color: var(--dk-text-muted);
    margin: 0 0 18px;
    line-height: 1.6;
}

.dk-prof-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.dk-prof-row input,
.dk-prof-row select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius-md);
    font-family: inherit;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--dk-surface);
    color: var(--dk-text);
    text-align: right;
}

.dk-prof-row input::placeholder {
    color: #94a3b8;
}

.dk-prof-row input:focus,
.dk-prof-row select:focus {
    border-color: var(--dk-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.dk-prof-submit {
    background: var(--dk-primary);
    color: #fff;
    border: none;
    width: 100%;
    height: 44px;
    border-radius: var(--dk-radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
    margin-top: 8px;
}

.dk-prof-submit:hover {
    opacity: 0.92;
}

/* ==========================================================================
   Responsive & Native Mobile App Experience
   ========================================================================== */

@media (max-width: 860px) {
    .dk-checkout-split {
        grid-template-columns: 1fr;
    }

    .dk-checkout-summary-col {
        border-right: none;
        border-top: 1px solid var(--dk-border-subtle);
    }
}

@media (max-width: 640px) {
    .dk-book-bg {
        padding: 0;
        background: var(--dk-surface);
    }

    .dk-book-container {
        border-radius: 0;
        border: none;
        box-shadow: none;
        min-height: 100vh;
    }

    .dk-book-header,
    .dk-checkout-appbar {
        padding: 13px 16px;
        position: sticky;
        top: 0;
        z-index: 30;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(10px);
    }

    .dk-book-doc-info {
        padding: 16px;
    }

    .dk-book-notice {
        margin: 0 16px 16px;
    }

    .dk-month-nav {
        padding: 10px 16px;
    }

    .dk-book-slots-container {
        padding: 0 16px 32px;
    }

    .dk-checkout-form-col {
        padding: 18px 16px 20px;
    }

    .dk-summary-card {
        padding: 18px 16px 104px;
    }

    .dk-form-fields {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dk-float-group.dk-full-span,
    .dk-float-group.dk-date-group-border {
        grid-column: span 1;
    }

    /* Native App Sticky Bottom Action Bar */
    .dk-summary-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        flex-direction: row;
        gap: 8px;
        margin: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--dk-border);
        z-index: 50;
    }

    .dk-btn-submit {
        flex: 2.4;
        height: 46px;
    }

    .dk-btn-back {
        flex: 0.9;
        height: 46px;
        border: 1px solid var(--dk-border);
        background: var(--dk-surface);
        color: var(--dk-text-secondary);
        border-radius: var(--dk-radius-md);
    }
}