/* ==========================================================================
   DR. MAHAR KASHIF RASHEED — UNIFIED PATIENT ACCOUNT & PROFILE PORTAL CSS
   Clean white/emerald clinical design, mobile-first, zero horizontal overflow
   ========================================================================== */

/* ─── 1. GLOBAL HEADER & DRAWER ACCOUNT PILL ─── */
.dk-nav-account-slot {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.dk-account-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border-radius: 9999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 170px;
}

.dk-account-pill:hover {
    background: #d1fae5;
    border-color: #34d399;
    transform: translateY(-1px);
    color: #064e3b;
}

.dk-account-pill--guest {
    padding: 7px 13px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.dk-account-pill--guest:hover {
    background: #f8fafc;
    border-color: #059669;
    color: #047857;
}

.dk-pill-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    background: #047857;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dk-pill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dk-pill-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #dk-header-account-slot,
    .dk-nav-account-slot {
        display: none !important;
    }
}

.dk-drawer-account-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
    border: 1px solid #a7f3d0;
    text-decoration: none;
    color: #0f172a;
}

.dk-drawer-account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #047857;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.18);
}

.dk-drawer-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dk-drawer-account-meta {
    min-width: 0;
    flex: 1;
}

.dk-drawer-account-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dk-drawer-account-sub {
    font-size: 0.74rem;
    color: #047857;
    font-weight: 600;
}

/* ─── 2. PROFILE PORTAL PAGE SHELL ─── */
.dk-portal-main {
    padding: 36px 0 72px;
    min-height: 70vh;
    background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 260px, #f8fafc 100%);
}

.dk-portal-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.dk-portal-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.dk-portal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.dk-portal-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #090d16;
    margin: 0 0 6px;
    line-height: 1.2;
}

.dk-portal-lead {
    font-size: 0.94rem;
    color: #475569;
    margin: 0;
    max-width: 660px;
}

/* ─── 3. GUEST AUTHENTICATION LAYOUT ─── */
.dk-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 24px;
    align-items: start;
}

.dk-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.08);
    width: 100%;
}

.dk-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dk-card-sub {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0 0 18px;
}

.dk-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.dk-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 8px;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.dk-tab-btn.is-active {
    background: #ffffff;
    color: #047857;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.dk-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dk-field {
    margin-bottom: 14px;
    min-width: 0;
}

.dk-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.dk-input,
.dk-select,
.dk-textarea {
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dk-input:focus,
.dk-select:focus,
.dk-textarea:focus {
    outline: none;
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.dk-input[readonly],
.dk-input:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.dk-textarea {
    min-height: 86px;
    resize: vertical;
}

.dk-phone-row {
    display: grid;
    grid-template-columns: minmax(128px, 165px) minmax(0, 1fr);
    gap: 8px;
}

.dk-pass-wrap {
    position: relative;
}

.dk-pass-wrap .dk-input {
    padding-right: 44px;
}

.dk-eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.dk-eye-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dk-status-hint {
    font-size: 0.74rem;
    font-weight: 700;
    margin-top: 5px;
    min-height: 16px;
}

.dk-status-hint.ok { color: #059669; }
.dk-status-hint.err { color: #dc2626; }
.dk-status-hint.muted { color: #64748b; }

.dk-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #475569;
    margin: 6px 0 16px;
    cursor: pointer;
}

.dk-check-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #059669;
    margin-top: 2px;
    flex-shrink: 0;
}

.dk-check-row a {
    color: #047857;
    font-weight: 700;
    text-decoration: underline;
}

.dk-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #047857, #059669);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.24);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.dk-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.32);
}

.dk-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.dk-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 11px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.dk-btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #059669;
    color: #047857;
}

.dk-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 11px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.dk-btn-danger:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #f87171;
}

.dk-alert {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.45;
}

.dk-alert--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.dk-alert--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

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

/* ─── 4. OTP VERIFICATION CODE VIEW ─── */
.dk-otp-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
}

.dk-otp-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.dk-otp-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.dk-otp-desc {
    font-size: 0.84rem;
    color: #475569;
    margin: 0 0 12px;
}

.dk-otp-email-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.dk-otp-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 0.76rem;
    font-weight: 700;
}

.dk-otp-chip {
    padding: 5px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-family: 'JetBrains Mono', monospace;
}

.dk-otp-chip.is-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.dk-otp-digits {
    display: grid;
    grid-template-columns: repeat(6, clamp(38px, 11vw, 50px));
    justify-content: center;
    gap: clamp(5px, 1.5vw, 9px);
    margin: 0 auto 18px;
}

.dk-otp-digit {
    width: 100%;
    height: clamp(46px, 13vw, 56px);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.15rem, 4vw, 1.4rem);
    font-weight: 800;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dk-otp-digit:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}

.dk-otp-digit:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.dk-otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ─── 5. AUTH SIDEBAR INFO PANEL ─── */
.dk-info-card {
    background: linear-gradient(155deg, #090d16 0%, #0f172a 55%, #064e3b 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 26px;
    border: 1px solid #1e293b;
}

.dk-info-card h3 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.dk-info-card p {
    color: #cbd5e1;
    font-size: 0.86rem;
    margin: 0 0 18px;
}

.dk-sync-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.dk-sync-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 11px 12px;
}

.dk-sync-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ─── 6. LOGGED-IN PROFILE DASHBOARD ─── */
.dk-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #17324d 58%, #065f46 100%);
    border-radius: 22px;
    padding: 26px;
    color: #ffffff;
    margin-bottom: 22px;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.42);
}

.dk-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.dk-hero-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1 1 320px;
}

.dk-hero-avatar-wrap {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.dk-hero-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.78);
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dk-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dk-hero-cam-btn {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #059669;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dk-hero-meta {
    min-width: 0;
    flex: 1;
}

.dk-hero-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.dk-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dk-badge-mrn {
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

.dk-hero-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px;
    word-break: break-word;
}

.dk-hero-username {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    color: #99f6e4;
    margin: 0 0 10px;
}

.dk-hero-photo-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dk-hero-chip-btn {
    padding: 6px 11px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dk-hero-chip-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.dk-hero-chip-btn.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(252, 165, 165, 0.4);
    color: #fecaca;
}

.dk-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dk-hero-contacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dk-hero-contact-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0;
}

.dk-hero-contact-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.dk-hero-contact-val {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.dk-stat-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.dk-stat-lbl {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.dk-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.dk-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 22px;
    align-items: start;
}

.dk-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

/* Bookings List */
.dk-booking-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 13px 14px;
    background: #f8fafc;
    margin-bottom: 10px;
}

.dk-booking-item:last-child {
    margin-bottom: 0;
}

.dk-booking-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.dk-booking-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.dk-status-pill {
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.dk-status-pill.ok { background: #dcfce7; color: #166534; }
.dk-status-pill.warn { background: #fef3c7; color: #92400e; }
.dk-status-pill.err { background: #fee2e2; color: #991b1b; }
.dk-status-pill.info { background: #dbeafe; color: #1e40af; }

.dk-booking-meta {
    font-size: 0.78rem;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ─── 7. INTERACTIVE CIRCLE AVATAR CROPPER MODAL ─── */
.dk-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dk-modal-backdrop[hidden] {
    display: none;
}

.dk-modal-card {
    background: #ffffff;
    border-radius: 22px;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    border: 1px solid #e2e8f0;
}

.dk-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dk-modal-head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.dk-modal-close {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

.dk-crop-stage {
    position: relative;
    width: min(260px, 70vw);
    height: min(260px, 70vw);
    margin: 10px auto 16px;
    border-radius: 18px;
    background: #0f172a;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    user-select: none;
}

.dk-crop-stage:active {
    cursor: grabbing;
}

.dk-crop-stage img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    max-height: none;
    pointer-events: none;
    user-select: none;
}

.dk-crop-circle-mask {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.56);
    pointer-events: none;
}

.dk-crop-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.dk-zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dk-zoom-row input[type="range"] {
    flex: 1;
    accent-color: #059669;
}

.dk-crop-modes {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
}

.dk-crop-mode-btn {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.dk-crop-mode-btn.is-active {
    background: #ecfdf5;
    border-color: #059669;
    color: #047857;
}

/* Toast */
.dk-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: min(380px, calc(100vw - 40px));
    background: #0f172a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
    z-index: 99999;
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.dk-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.dk-toast.is-err {
    background: #991b1b;
}

.dk-toast.is-ok {
    background: #065f46;
}

/* ─── 8. RESPONSIVE BREAKPOINTS (TABLET & MOBILE) ─── */
@media (max-width: 960px) {
    .dk-auth-grid,
    .dk-profile-grid {
        grid-template-columns: 1fr;
    }
    .dk-hero-contacts {
        grid-template-columns: 1fr;
    }
    .dk-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dk-portal-main {
        padding: 22px 0 54px;
    }
    .dk-portal-container {
        padding: 0 14px;
    }
    .dk-card,
    .dk-info-card,
    .dk-hero-card {
        padding: 18px 15px;
        border-radius: 16px;
    }
    .dk-form-grid-2,
    .dk-phone-row {
        grid-template-columns: 1fr;
    }
    .dk-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .dk-hero-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .dk-hero-actions {
        width: 100%;
    }
    .dk-hero-actions button {
        flex: 1;
    }
    .dk-tab-btn {
        font-size: 0.76rem;
        padding: 9px 4px;
    }
}

/* ─── 9. PRO-ONLY VIDEOS HEADER OPTION & BADGE ─── */
.dk-pro-nav-item a.dk-pro-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dk-pro-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #047857, #059669);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
