/* ============================================================
   Patientenbereich â€“ theme-aware (Dark / Light)
   Funktioniert im Kontext von _Layout.cshtml mit hero-banner oder app-like im _PatientLayout
   ============================================================ */

/* App-Like Layout (_PatientLayout) */
.patient-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0f172a !important; /* Override base background gradient */
    color: #f8fafc;
    margin: 0;
}

:root[data-theme='light'] .patient-body {
    background: #f8faff !important;
    color: #0f172a;
}

.patient-header {
    background: rgba(30, 41, 59, 0.85); /* semi-transparent Dark theme */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

:root[data-theme='light'] .patient-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.patient-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patient-header-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

:root[data-theme='light'] .patient-header-brand {
    color: var(--brand-600);
}

.patient-header-brand:hover {
    opacity: 0.8;
    color: var(--brand-500); /* override bootstrap link text */
    text-decoration: none;
}

:root[data-theme='light'] .patient-header-brand:hover {
    color: var(--brand-600);
}

.patient-theme-toggle-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 252, 0.85);
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.patient-theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

:root[data-theme='light'] .patient-theme-toggle-btn {
    border-color: rgba(148, 163, 184, 0.3);
    color: #475569;
}

:root[data-theme='light'] .patient-theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #d97706;
    border-color: #d97706;
}

.patient-logout-btn {
    background: none;
    border: none;
    color: rgba(248, 250, 252, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
}

.patient-logout-btn:hover {
    color: #ef4444; /* danger */
    background: rgba(239, 68, 68, 0.1);
}

:root[data-theme='light'] .patient-logout-btn {
    color: rgba(15, 23, 42, 0.7);
}

:root[data-theme='light'] .patient-logout-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.patient-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.patient-footer {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 1.5rem 1rem;
    color: rgba(148, 163, 184, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.patient-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.patient-footer-copy {
    color: rgba(148, 163, 184, 0.7);
}

.patient-footer-separator {
    color: rgba(255, 255, 255, 0.15);
}

.patient-footer-links {
    display: flex;
    gap: 1.25rem;
}

.patient-footer a {
    color: rgba(148, 163, 184, 0.9);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    font-weight: 500;
}

.patient-footer a:hover {
    color: var(--brand-500);
}

:root[data-theme='light'] .patient-footer {
    color: rgba(100, 116, 139, 0.8);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

:root[data-theme='light'] .patient-footer-copy {
    color: rgba(100, 116, 139, 0.8);
}

:root[data-theme='light'] .patient-footer-separator {
    color: rgba(148, 163, 184, 0.4);
}

:root[data-theme='light'] .patient-footer a {
    color: rgba(71, 85, 105, 1);
}

:root[data-theme='light'] .patient-footer a:hover {
    color: var(--brand-600);
}

/* â”€â”€ Seiten-Wrapper â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-page {
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem 4rem;
    width: 100%;
}

.layout-body-compact-hero .patient-page {
    padding-top: 1.5rem;
}

.patient-page-auth {
    align-items: flex-start;
}

.patient-page-shell {
    width: 100%;
}

.patient-page-shell-auth {
    max-width: 560px;
}

.patient-page-header {
    margin-bottom: 1.25rem;
}

.patient-page-header-auth {
    text-align: center;
}

.patient-page-kicker {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
}

.patient-page-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fafc;
}

.patient-page-subtitle {
    margin: 0.45rem 0 0;
    color: rgba(148, 163, 184, 0.92);
    line-height: 1.65;
}

:root[data-theme='light'] .patient-page-kicker {
    color: #2563eb;
}

:root[data-theme='light'] .patient-page-title {
    color: #0f172a;
}

:root[data-theme='light'] .patient-page-subtitle {
    color: #64748b;
}

/* â”€â”€ Auth-Karte (Login & Registrierung) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.patient-page-shell-auth .patient-auth-card {
    max-width: none;
}

.patient-auth-card--wide {
    max-width: 540px;
}

:root[data-theme='light'] .patient-auth-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

/* ────────────────────────────────────────────────────────────────────────────────── */
.patient-auth-icon {
    font-size: 2.25rem;
    color: var(--brand-500);
    text-align: center;
    margin-bottom: 1rem;
}

.patient-auth-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.patient-auth-logo {
    width: auto;
    height: 76px;
    max-width: 160px;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.patient-auth-logo:hover {
    transform: scale(1.05);
}

/* ────────────────────────────────────────────────────────────────────────────────── */
.patient-auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    color: #f8fafc;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

:root[data-theme='light'] .patient-auth-title {
    color: #0f172a;
}

.patient-auth-sub {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.9);
    text-align: center;
    margin-bottom: 1.75rem;
}

:root[data-theme='light'] .patient-auth-sub {
    color: #64748b;
}

/* â”€â”€ Alerts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.patient-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

:root[data-theme='light'] .patient-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* â”€â”€ Form â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-form-group {
    margin-bottom: 1.25rem;
}

.patient-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .patient-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.patient-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

:root[data-theme='light'] .patient-label {
    color: #64748b;
}

.patient-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.65rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.95rem;
    color: #f1f5f9;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.patient-input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    background: rgba(255, 255, 255, 0.09);
}

.patient-input::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

.patient-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-position: right 0.85rem center;
    background-size: 1.15rem 1.15rem;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
    cursor: pointer;
}

.patient-select option {
    background: #1e293b;
    color: #f8fafc;
}

.patient-select:invalid {
    color: rgba(148, 163, 184, 0.8);
}

:root[data-theme='light'] .patient-input {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

:root[data-theme='light'] .patient-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

:root[data-theme='light'] .patient-input::placeholder {
    color: #94a3b8;
}

:root[data-theme='light'] .patient-select {
    color-scheme: light;
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-position: right 0.85rem center;
    background-size: 1rem 1rem;
    background-repeat: no-repeat;
}

:root[data-theme='light'] .patient-select option {
    background: #ffffff;
    color: #0f172a;
}

:root[data-theme='light'] .patient-select:invalid {
    color: #94a3b8;
}

/* Passwort-Wrap */
.patient-pw-wrap {
    position: relative;
}

.patient-pw-wrap .patient-input {
    padding-right: 2.75rem;
}

.patient-pw-toggle {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(148, 163, 184, 0.7);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s;
}

.patient-pw-toggle:hover {
    color: var(--brand-500);
}

:root[data-theme='light'] .patient-pw-toggle {
    color: #94a3b8;
}

:root[data-theme='light'] .patient-pw-toggle:hover {
    color: #2563eb;
}

/* Form-Meta-Informationen */
.patient-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.25rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.84rem;
}

.patient-meta-label {
    color: rgba(148, 163, 184, 0.85);
    font-weight: 500;
}

.patient-meta-value {
    color: #f1f5f9;
    font-weight: 600;
}

:root[data-theme='light'] .patient-meta-label {
    color: #64748b;
}

:root[data-theme='light'] .patient-meta-value {
    color: #1e293b;
}

/* ── Button-System ── */
.patient-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
    user-select: none;
    box-sizing: border-box;
}

.patient-btn:active {
    transform: translateY(0) scale(0.98);
}

.patient-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.65rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    user-select: none;
    box-sizing: border-box;
}

.patient-btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    color: #ffffff !important;
    text-decoration: none;
}

.patient-btn-primary:active {
    transform: translateY(0);
}

.patient-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0 !important;
    border-radius: 0.65rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    user-select: none;
    box-sizing: border-box;
}

.patient-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none;
}

.patient-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 0.65rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
    user-select: none;
    box-sizing: border-box;
}

.patient-btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
    color: #ffffff !important;
    text-decoration: none;
}

.patient-btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(148, 163, 184, 0.9);
}

.patient-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.patient-btn-sm {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.85rem !important;
    border-radius: 0.5rem !important;
}

.patient-btn-block {
    display: flex !important;
    width: 100% !important;
}

/* Light Theme Button Anpassungen */
:root[data-theme='light'] .patient-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

:root[data-theme='light'] .patient-btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}

:root[data-theme='light'] .patient-btn-secondary {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.28);
    color: #334155 !important;
}

:root[data-theme='light'] .patient-btn-secondary:hover {
    background: #e2e8f0;
    border-color: rgba(100, 116, 139, 0.35);
    color: #0f172a !important;
}

:root[data-theme='light'] .patient-btn-ghost {
    color: #64748b;
}

:root[data-theme='light'] .patient-btn-ghost:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(148, 163, 184, 0.2);
    color: #0f172a;
}

/* â”€â”€ Link unter der Form â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-auth-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
}

.patient-auth-link a {
    color: var(--brand-500);
    font-weight: 600;
    text-decoration: none;
}

.patient-auth-link a:hover {
    text-decoration: underline;
}

:root[data-theme='light'] .patient-auth-link {
    color: #64748b;
}

:root[data-theme='light'] .patient-auth-link a {
    color: #2563eb;
}

.patient-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
}

.patient-auth-secondary-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.86);
    text-decoration: none;
}

.patient-auth-secondary-link:hover {
    color: #cbd5e1;
    text-decoration: underline;
}

:root[data-theme='light'] .patient-auth-secondary-link {
    color: #64748b;
}

:root[data-theme='light'] .patient-auth-secondary-link:hover {
    color: #1d4ed8;
}

/* â”€â”€ Dashboard â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-dashboard {
    width: 100%;
    max-width: 720px;
}

.patient-dashboard-header {
    margin-bottom: 1.5rem;
}

.patient-welcome-card,
.patient-info-card {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

:root[data-theme='light'] .patient-welcome-card,
:root[data-theme='light'] .patient-info-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

.patient-welcome-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.patient-quick-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.patient-quick-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

:root[data-theme='light'] .patient-quick-tile {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.patient-quick-tile:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: inherit;
    text-decoration: none;
}

:root[data-theme='light'] .patient-quick-tile:hover {
    background: #f0f7ff;
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.patient-quick-tile-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.patient-quick-tile-icon--rx {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.patient-quick-tile-icon--chronik {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.patient-quick-tile-icon--chat {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.patient-quick-tile-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.patient-quick-tile-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

:root[data-theme='light'] .patient-quick-tile-title {
    color: #0f172a;
}

.patient-quick-tile-sub {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.85);
    margin-top: 0.15rem;
}

:root[data-theme='light'] .patient-quick-tile-sub {
    color: #64748b;
}

/* â”€â”€ Info Notice / Banner â”€â”€ */
.patient-rx-notice {
    margin-bottom: 1.25rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10b981;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.9);
}

:root[data-theme='light'] .patient-rx-notice {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #16a34a;
    color: #166534;
}

.patient-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.patient-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.patient-quick-link:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.12);
    color: #eef2ff;
}

:root[data-theme='light'] .patient-quick-link {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.18);
    color: #334155;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

:root[data-theme='light'] .patient-quick-link:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: #eff6ff;
    color: #1d4ed8;
}

.patient-welcome-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
    user-select: none;
}

.patient-welcome-text {
    flex: 1;
    min-width: 0;
}

.patient-welcome-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

:root[data-theme='light'] .patient-welcome-title {
    color: #0f172a;
}

.patient-welcome-sub {
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.95rem;
    margin: 0;
}

:root[data-theme='light'] .patient-welcome-sub {
    color: #64748b;
}

.patient-info-card h2 {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

:root[data-theme='light'] .patient-info-card h2 {
    color: #64748b;
}

.patient-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.patient-card-copy {
    margin: 0.35rem 0 0;
    color: rgba(148, 163, 184, 0.88);
    line-height: 1.6;
}

:root[data-theme='light'] .patient-card-copy {
    color: #64748b;
}

.patient-info-table {
    width: 100%;
    border-collapse: collapse;
}

.patient-info-table td {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    vertical-align: top;
}

:root[data-theme='light'] .patient-info-table td {
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

.patient-info-table tr:last-child td {
    border-bottom: none;
}

.patient-info-table td:first-child {
    font-weight: 600;
    color: rgba(148, 163, 184, 0.75);
    width: 40%;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-right: 1rem;
}

:root[data-theme='light'] .patient-info-table td:first-child {
    color: #64748b;
}

.patient-info-table td:last-child {
    color: #e2e8f0;
}

:root[data-theme='light'] .patient-info-table td:last-child {
    color: #1e3a5f;
}

/* â”€â”€ Success-Alert â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

:root[data-theme='light'] .patient-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

/* â”€â”€ Textarea â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-textarea {
    resize: vertical;
    min-height: 3.5rem;
}

/* â”€â”€ Profil-Meta (z.B. "Registriert seit") â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-form-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.5rem;
}

:root[data-theme='light'] .patient-form-meta {
    border-top-color: rgba(148, 163, 184, 0.15);
}

.patient-meta-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

:root[data-theme='light'] .patient-meta-label {
    color: #64748b;
}

.patient-meta-value {
    font-size: 0.95rem;
    color: #e2e8f0;
}

:root[data-theme='light'] .patient-meta-value {
    color: #1e3a5f;
}

/* â”€â”€ Rezeptanfragen-Liste â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-rx-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.patient-rx-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s;
}

:root[data-theme='light'] .patient-rx-item {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.15);
}

.patient-rx-item.patient-rx-pending {
    border-left: 3px solid #f59e0b;
}

.patient-rx-item.patient-rx-approved {
    border-left: 3px solid #22c55e;
}

.patient-rx-item.patient-rx-rejected {
    border-left: 3px solid #ef4444;
}

.patient-rx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.patient-rx-medication {
    font-weight: 700;
    font-size: 1rem;
    color: #f1f5f9;
}

:root[data-theme='light'] .patient-rx-medication {
    color: #0f172a;
}

.patient-rx-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.patient-rx-pending .patient-rx-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.patient-rx-approved .patient-rx-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.patient-rx-rejected .patient-rx-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

:root[data-theme='light'] .patient-rx-pending .patient-rx-badge {
    background: #fffbeb;
    color: #d97706;
}

:root[data-theme='light'] .patient-rx-approved .patient-rx-badge {
    background: #f0fdf4;
    color: #16a34a;
}

:root[data-theme='light'] .patient-rx-rejected .patient-rx-badge {
    background: #fef2f2;
    color: #dc2626;
}

.patient-rx-notes {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.85);
    margin: 0.25rem 0 0.5rem;
}

:root[data-theme='light'] .patient-rx-notes {
    color: #64748b;
}

.patient-rx-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.patient-rx-date {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.65);
}

:root[data-theme='light'] .patient-rx-date {
    color: #94a3b8;
}

.patient-rx-comment {
    margin-top: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 0.5rem;
    font-size: 0.88rem;
    color: #c7d2fe;
}

:root[data-theme='light'] .patient-rx-comment {
    background: #eff6ff;
    color: #1e40af;
}

/* â”€â”€ Prescription History Stats â”€â”€ */
.patient-rx-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.patient-rx-stat {
    font-size: 0.85rem;
    color: #94a3b8;
    white-space: nowrap;
}

.patient-rx-stat-pending i { color: #f59e0b; }
.patient-rx-stat-approved i { color: #22c55e; }
.patient-rx-stat-rejected i { color: #ef4444; }

:root[data-theme='light'] .patient-rx-stats {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

:root[data-theme='light'] .patient-rx-stat {
    color: #64748b;
}

.patient-rx-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
}

/* Re-request button */
.patient-rx-reorder-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.45);
    border-radius: 0.45rem;
    background: rgba(99, 102, 241, 0.08);
    color: #a5b4fc;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.patient-rx-reorder-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.7);
    color: #e0e7ff;
}

:root[data-theme='light'] .patient-rx-reorder-btn {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
}

:root[data-theme='light'] .patient-rx-reorder-btn:hover {
    background: rgba(99, 102, 241, 0.14);
    border-color: #4f46e5;
    color: #3730a3;
}

/* ── Einklappbare Profil-Karte ── */
.patient-card-collapsible {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.patient-card-collapsible.is-open {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.patient-card-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.65rem;
    background: none;
    border: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
    border-radius: 1.25rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.patient-card-collapsible.is-open .patient-card-toggle {
    border-radius: 1.25rem 1.25rem 0 0;
}

.patient-card-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.patient-card-collapsible.is-open .patient-card-toggle:hover {
    transform: translateY(0);
}

.patient-card-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.patient-card-toggle-title {
    font-weight: 600;
    font-size: 1rem;
    color: #e2e8f0;
    white-space: nowrap;
}

.patient-card-toggle-left i {
    color: var(--brand-500, #3b82f6);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), color 0.24s ease;
}

.patient-card-collapsible.is-open .patient-card-toggle-left i {
    transform: scale(1.08);
    color: #60a5fa;
}

.patient-card-toggle-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 32ch;
}

.patient-card-chevron {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #64748b;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.24s ease;
}

.patient-card-collapsible.is-open .patient-card-chevron {
    color: #cbd5e1;
    transform: rotate(180deg) scale(1.08);
}

.patient-card-body {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 1.65rem;
    opacity: 0;
    transform: translateY(-0.35rem);
    pointer-events: none;
    transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease, transform 0.24s ease;
}

.patient-card-collapsible.is-open .patient-card-body {
    padding: 1.15rem 1.65rem 2rem;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


@media (prefers-reduced-motion: reduce) {
    .patient-card-collapsible,
    .patient-card-toggle,
    .patient-card-chevron,
    .patient-card-toggle-left i,
    .patient-card-body {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .patient-page {
        padding-top: 1.75rem;
    }

    .layout-body-compact-hero .patient-page {
        padding-top: 1rem;
    }

    .patient-page-title {
        font-size: 1.55rem;
    }

    .patient-welcome-card {
        flex-direction: row;
        align-items: center;
        gap: 1.15rem;
        padding: 1.35rem 1.25rem;
    }

    .patient-welcome-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.15rem;
    }

    .patient-welcome-title {
        font-size: 1.35rem;
    }

    .patient-welcome-sub {
        font-size: 0.85rem;
    }

    .patient-card-toggle {
        padding: 1.1rem 1.25rem;
    }

    .patient-card-collapsible.is-open .patient-card-body {
        padding: 1rem 1.25rem 1.85rem;
    }
}

@media (max-width: 480px) {
    .patient-welcome-card {
        gap: 0.85rem;
        padding: 1.15rem 1rem;
    }

    .patient-welcome-avatar {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .patient-welcome-title {
        font-size: 1.2rem;
    }
}



@media (max-width: 576px) {
    .patient-quick-links {
        flex-direction: column;
    }

    .patient-quick-link {
        width: 100%;
        justify-content: center;
    }
}

/* Light theme */
:root[data-theme='light'] .patient-card-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
}

:root[data-theme='light'] .patient-card-toggle-left i {
    color: #2563eb;
}

:root[data-theme='light'] .patient-card-collapsible.is-open .patient-card-toggle-left i {
    color: #1d4ed8;
}

:root[data-theme='light'] .patient-card-toggle-title {
    color: #1e293b;
}

:root[data-theme='light'] .patient-card-toggle-sub {
    color: #64748b;
}

:root[data-theme='light'] .patient-card-chevron {
    color: #64748b;
}

/* ── Modal: Versicherungsart ─────────────────────────────────────── */
.patient-modal {
    border: none;
    padding: 0;
    margin: auto;
    background: transparent;
    color: inherit;
}

.patient-modal::backdrop {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

:root[data-theme='light'] .patient-modal::backdrop {
    background: rgba(226, 232, 240, 0.58);
}

.patient-insurance-modal {
    width: min(34rem, calc(100% - 2rem));
    max-width: 34rem;
    opacity: 0;
    transform: translateY(1.2rem) scale(0.97);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.patient-insurance-modal[open] {
    display: block;
}

.patient-insurance-modal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.patient-insurance-modal.is-closing {
    opacity: 0;
    transform: translateY(1rem) scale(0.965);
}

.patient-insurance-modal__panel {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
    box-shadow: 0 34px 80px rgba(2, 8, 23, 0.48), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.patient-insurance-modal__glow {
    position: absolute;
    top: -4.5rem;
    right: -3.25rem;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.24) 0%, rgba(59, 130, 246, 0) 72%);
    pointer-events: none;
}

:root[data-theme='light'] .patient-insurance-modal__panel {
    border-color: rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.06);
}

.patient-insurance-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.patient-insurance-modal__close:hover {
    transform: translateY(-1px) rotate(90deg);
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.28);
    color: #eff6ff;
}

:root[data-theme='light'] .patient-insurance-modal__close {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
}

:root[data-theme='light'] .patient-insurance-modal__close:hover {
    background: rgba(219, 234, 254, 0.95);
    border-color: rgba(37, 99, 235, 0.18);
    color: #1e40af;
}

.patient-insurance-modal__header {
    position: relative;
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
    padding-right: 3.25rem;
}

.patient-insurance-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

:root[data-theme='light'] .patient-insurance-modal__eyebrow {
    background: rgba(219, 234, 254, 0.88);
    border-color: rgba(96, 165, 250, 0.24);
    color: #1d4ed8;
}

.patient-insurance-modal__title {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fafc;
}

.patient-insurance-modal__description {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.65;
}

:root[data-theme='light'] .patient-insurance-modal__title {
    color: #0f172a;
}

:root[data-theme='light'] .patient-insurance-modal__description {
    color: #64748b;
}

.patient-insurance-modal__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.patient-insurance-option {
    display: flex;
    cursor: pointer;
    height: 100%;
}

.patient-insurance-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.patient-insurance-option__card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.65rem;
    min-height: 11rem;
    width: 100%;
    height: 100%;
    padding: 1.15rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.22) 100%);
    color: #e2e8f0;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.patient-insurance-option:hover .patient-insurance-option__card {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.26);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.patient-insurance-option__input:focus-visible + .patient-insurance-option__card {
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.patient-insurance-option__input:checked + .patient-insurance-option__card {
    border-color: rgba(96, 165, 250, 0.5);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(30, 64, 175, 0.16) 100%);
    box-shadow: 0 18px 36px rgba(30, 58, 138, 0.2);
    transform: translateY(-2px);
}

:root[data-theme='light'] .patient-insurance-option__card {
    border-color: rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.88) 100%);
    color: #1e293b;
}

:root[data-theme='light'] .patient-insurance-option:hover .patient-insurance-option__card {
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

:root[data-theme='light'] .patient-insurance-option__input:checked + .patient-insurance-option__card {
    border-color: rgba(96, 165, 250, 0.34);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.96) 0%, rgba(239, 246, 255, 0.92) 100%);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.12);
}

.patient-insurance-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
    font-size: 1.1rem;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.patient-insurance-option__input:checked + .patient-insurance-option__card .patient-insurance-option__icon {
    background: rgba(239, 246, 255, 0.18);
    color: #eff6ff;
    transform: scale(1.04);
}

:root[data-theme='light'] .patient-insurance-option__icon {
    background: rgba(219, 234, 254, 0.68);
    color: #1d4ed8;
}

:root[data-theme='light'] .patient-insurance-option__input:checked + .patient-insurance-option__card .patient-insurance-option__icon {
    background: rgba(255, 255, 255, 0.86);
    color: #1e3a8a;
}

.patient-insurance-option__title {
    font-size: 1.08rem;
    font-weight: 800;
    color: inherit;
}

.patient-insurance-option__copy {
    color: rgba(203, 213, 225, 0.8);
    line-height: 1.55;
    font-size: 0.92rem;
}

:root[data-theme='light'] .patient-insurance-option__copy {
    color: #64748b;
}

.patient-insurance-modal__validation {
    margin: 0.9rem 0 0;
    min-height: 1.35rem;
    color: #93c5fd;
    font-size: 0.88rem;
    opacity: 0;
    transform: translateY(-0.2rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.patient-insurance-modal__validation.is-visible {
    opacity: 1;
    transform: translateY(0);
}

:root[data-theme='light'] .patient-insurance-modal__validation {
    color: #1d4ed8;
}

.patient-insurance-modal__info-wrap {
    margin-top: 0.35rem;
}

.patient-insurance-modal__info-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.patient-insurance-modal__info-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
}

.patient-insurance-modal__info-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    flex-shrink: 0;
}

.patient-insurance-modal__info-chevron {
    margin-left: auto;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
    transition: transform 0.22s ease;
}

.patient-insurance-modal__info-toggle[aria-expanded='true'] .patient-insurance-modal__info-chevron {
    transform: rotate(180deg);
}

:root[data-theme='light'] .patient-insurance-modal__info-toggle {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.74);
    color: #0f172a;
}

:root[data-theme='light'] .patient-insurance-modal__info-toggle:hover {
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(239, 246, 255, 0.84);
}

:root[data-theme='light'] .patient-insurance-modal__info-toggle-icon {
    background: rgba(219, 234, 254, 0.86);
    color: #1d4ed8;
}

:root[data-theme='light'] .patient-insurance-modal__info-chevron {
    color: #64748b;
}

.patient-insurance-modal__info {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.65;
    transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
}

.patient-insurance-modal__info.is-open {
    max-height: 12rem;
    margin-top: 0.75rem;
    padding: 0.95rem 1rem;
    border-color: rgba(59, 130, 246, 0.12);
}

:root[data-theme='light'] .patient-insurance-modal__info {
    background: rgba(255, 255, 255, 0.78);
    color: #475569;
}

:root[data-theme='light'] .patient-insurance-modal__info.is-open {
    border-color: rgba(96, 165, 250, 0.18);
}

.patient-insurance-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.patient-insurance-modal__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8rem;
    padding: 0.8rem 1.1rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.patient-insurance-modal__secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

:root[data-theme='light'] .patient-insurance-modal__secondary {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
}

:root[data-theme='light'] .patient-insurance-modal__secondary:hover {
    border-color: rgba(148, 163, 184, 0.28);
    background: #ffffff;
    color: #0f172a;
}

.patient-insurance-modal__submit {
    width: auto;
    margin-top: 0;
    padding-inline: 1.4rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
}

.patient-insurance-modal__submit:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 18px 36px rgba(29, 78, 216, 0.3);
}

:root[data-theme='light'] .patient-insurance-modal__submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.2);
}

:root[data-theme='light'] .patient-insurance-modal__submit:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.patient-insurance-modal__submit:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.patient-insurance-modal__submit:disabled:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: none;
    box-shadow: none;
}

:root[data-theme='light'] .patient-insurance-modal__submit:disabled:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

@media (max-width: 576px) {
    .patient-insurance-modal__panel {
        padding: 1.2rem;
        border-radius: 1.35rem;
    }

    .patient-insurance-modal__header {
        padding-right: 2.8rem;
    }

    .patient-insurance-modal__options {
        grid-template-columns: 1fr;
    }

    .patient-insurance-option__card {
        min-height: 0;
    }

    .patient-insurance-modal__actions {
        flex-direction: column-reverse;
    }

    .patient-insurance-modal__secondary,
    .patient-insurance-modal__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .patient-insurance-modal,
    .patient-insurance-option__card,
    .patient-insurance-option__icon,
    .patient-insurance-modal__close,
    .patient-insurance-modal__validation,
    .patient-insurance-modal__info,
    .patient-insurance-modal__info-toggle,
    .patient-insurance-modal__info-chevron,
    .patient-insurance-modal__secondary,
    .patient-insurance-modal__submit {
        transition: none !important;
    }
}

/* â”€â”€ Modal: Konto gesperrt â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.patient-locked-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.patient-locked-modal {
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(239, 68, 68, 0.1);
    animation: dpSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.patient-locked-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ef4444;
    margin: 0 auto 1.25rem;
}

.patient-locked-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.patient-locked-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.patient-locked-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.patient-locked-close {
    display: block;
    width: 100%;
    padding: 0.65rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.patient-locked-close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
    color: #94a3b8;
}

/* Light theme */
:root[data-theme='light'] .patient-locked-modal {
    background: #ffffff;
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}

:root[data-theme='light'] .patient-locked-title {
    color: #0f172a;
}

:root[data-theme='light'] .patient-locked-desc {
    color: #64748b;
}

:root[data-theme='light'] .patient-locked-close {
    border-color: #e2e8f0;
    color: #94a3b8;
}

:root[data-theme='light'] .patient-locked-close:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* ── Ergebnis Freigabe ── */
.patient-share-result {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
}
:root[data-theme='light'] .patient-share-result { background: #f8fafc; border-color: rgba(37, 99, 235, 0.25); }
.patient-share-result-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.85rem; color: #f8fafc; }
:root[data-theme='light'] .patient-share-result-title { color: #0f172a; }
.patient-share-result-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: start; }
@media (max-width: 560px) { .patient-share-result-grid { grid-template-columns: 1fr; } }
.patient-share-qr {
    padding: 0.6rem;
    background: #ffffff;
    border-radius: 12px;
    min-width: 160px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.patient-share-warn { margin: 1rem 0 0; font-size: 0.8rem; color: #fbbf24; line-height: 1.5; }

/* ── Dialoge (Datenschutz, Einwilligung, Freigabe, Löschung) ── */
.patient-dialog {
    max-width: 520px;
    width: calc(100% - 2rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 0;
    background: #1e293b;
    color: #f1f5f9;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), overlay 0.26s allow-discrete, display 0.26s allow-discrete;
}

.patient-dialog[open],
.patient-dialog.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.patient-dialog.is-closing {
    opacity: 0 !important;
    transform: translateY(14px) scale(0.96) !important;
    transition: opacity 0.22s ease-in, transform 0.22s cubic-bezier(0.4, 0, 1, 1) !important;
}

.patient-dialog::backdrop {
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.26s ease, overlay 0.26s allow-discrete, display 0.26s allow-discrete;
}

.patient-dialog[open]::backdrop,
.patient-dialog.is-visible::backdrop {
    opacity: 1;
}

.patient-dialog.is-closing::backdrop {
    opacity: 0 !important;
    transition: opacity 0.22s ease-in !important;
}

@starting-style {
    .patient-dialog[open] {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    .patient-dialog[open]::backdrop {
        opacity: 0;
    }
}

.patient-dialog-body { padding: 2rem 1.75rem; text-align: center; }

/* Dialog-Icon: zentriert, größer, ohne Background und Rahmen */
.patient-dialog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    color: var(--brand-500);
    font-size: 2.85rem;
    margin: 0 auto 1.15rem;
    line-height: 1;
}

:root[data-theme='light'] .patient-dialog-icon {
    color: var(--brand-600);
}

.patient-dialog-icon-danger {
    color: #ef4444 !important;
}

.patient-dialog-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.01em;
}

.patient-dialog-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f5f9;
    text-align: center;
}

.patient-dialog-text p {
    color: #f1f5f9;
    font-weight: 500;
}

.patient-dialog-text ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
    text-align: left;
}

.patient-dialog-text li {
    margin-bottom: 0.35rem;
    color: #f1f5f9;
}

.patient-dialog-small {
    font-size: 0.86rem;
    color: #cbd5e1;
    margin: 0.85rem 0 0;
    line-height: 1.5;
    text-align: center;
}

.patient-dialog-text a,
.patient-dialog-small a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600;
}

:root[data-theme='light'] .patient-dialog {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.18);
}

:root[data-theme='light'] .patient-dialog-title {
    color: #0f172a;
}

:root[data-theme='light'] .patient-dialog-text {
    color: #1e293b;
}

:root[data-theme='light'] .patient-dialog-text p {
    color: #1e293b;
}

:root[data-theme='light'] .patient-dialog-text li {
    color: #1e293b;
}

:root[data-theme='light'] .patient-dialog-small {
    color: #475569;
}

:root[data-theme='light'] .patient-dialog-text a,
:root[data-theme='light'] .patient-dialog-small a {
    color: #1d4ed8;
}

/* Rechtliche Hinweisbox im Dialog */
.patient-dialog-legal {
    text-align: left;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 0.82rem;
    line-height: 1.5;
    color: #fde68a;
}

.patient-dialog-legal strong {
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

:root[data-theme='light'] .patient-dialog-legal {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

:root[data-theme='light'] .patient-dialog-legal strong {
    color: #b45309;
}

/* Info-Hinweisbox im Dialog (z. B. digitaler Rechnungsversand) */
.patient-dialog-notice {
    text-align: left;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-size: 0.84rem;
    line-height: 1.5;
    color: #93c5fd;
}

.patient-dialog-notice strong {
    color: #60a5fa;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

:root[data-theme='light'] .patient-dialog-notice {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

:root[data-theme='light'] .patient-dialog-notice strong {
    color: #1d4ed8;
}

/* Sicherheits- & DSGVO-Box (für Freigabe & externe Ärzte) */
.patient-security-box {
    margin-top: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 0.85rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    text-align: left;
}

.patient-security-box-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 0.6rem;
}

.patient-security-box-body {
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.9);
}

.patient-security-box-list {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
}

.patient-security-box-list li {
    margin-bottom: 0.35rem;
}

.patient-security-box-list strong {
    color: #a7f3d0;
}

:root[data-theme='light'] .patient-security-box {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

:root[data-theme='light'] .patient-security-box-header {
    color: #065f46;
}

:root[data-theme='light'] .patient-security-box-body {
    color: #1e293b;
}

:root[data-theme='light'] .patient-security-box-list strong {
    color: #047857;
}

/* Feature-Karten im Dialog (z. B. Datenschutz-Hinweise) */
.patient-dialog-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
    text-align: left;
}

.patient-dialog-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

:root[data-theme='light'] .patient-dialog-feature {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.patient-feature-icon {
    font-size: 1.4rem;
    color: #60a5fa;
    flex-shrink: 0;
    width: 1.85rem;
    text-align: center;
}

:root[data-theme='light'] .patient-feature-icon {
    color: #2563eb;
}

.patient-feature-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.patient-feature-body strong {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
}

:root[data-theme='light'] .patient-feature-body strong {
    color: #0f172a;
}

.patient-feature-body span {
    color: #e2e8f0;
}

:root[data-theme='light'] .patient-feature-body span {
    color: #334155;
}

.patient-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.patient-dialog-actions form {
    margin: 0;
    display: inline-flex;
}

.patient-dialog-actions .patient-btn-primary,
.patient-dialog-actions .patient-btn-secondary,
.patient-dialog-actions .patient-btn-danger,
.patient-dialog-actions .patient-btn-ghost {
    margin-top: 0 !important;
    width: auto !important;
}

@media (max-width: 480px) {
    .patient-dialog-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .patient-dialog-actions form,
    .patient-dialog-actions .patient-btn-primary,
    .patient-dialog-actions .patient-btn-secondary,
    .patient-dialog-actions .patient-btn-danger,
    .patient-dialog-actions .patient-btn-ghost {
        width: 100% !important;
        display: flex !important;
    }
}

.patient-hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 1.25rem 0; }
:root[data-theme='light'] .patient-hr { border-top-color: rgba(148, 163, 184, 0.2); }

/* ── Einheitliches Switch / Toggle System ── */
.patient-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 2.75rem;
    height: 1.55rem;
    flex-shrink: 0;
    cursor: pointer;
}

.patient-switch input,
.patient-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.patient-switch-slider,
.patient-toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(148, 163, 184, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

:root[data-theme='light'] .patient-switch-slider,
:root[data-theme='light'] .patient-toggle-track {
    background: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.4);
}

.patient-switch-slider::before,
.patient-toggle-thumb {
    content: "";
    position: absolute;
    height: 1.15rem;
    width: 1.15rem;
    left: 0.18rem;
    bottom: 0.14rem;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.patient-switch input:checked + .patient-switch-slider,
.patient-toggle-input:checked + .patient-toggle-track {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
}

:root[data-theme='light'] .patient-switch input:checked + .patient-switch-slider,
:root[data-theme='light'] .patient-toggle-input:checked + .patient-toggle-track {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
}

.patient-switch input:checked + .patient-switch-slider::before,
.patient-toggle-input:checked + .patient-toggle-track .patient-toggle-thumb {
    transform: translateX(1.2rem);
}

.patient-switch input:focus-visible + .patient-switch-slider,
.patient-toggle-input:focus-visible + .patient-toggle-track {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

/* ── Toggle-Reihen & Karten ── */
.patient-toggle-row,
.patient-consent-row,
.patient-privacy-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
    padding: 1.1rem 1.25rem;
    border-radius: 0.9rem;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    margin-bottom: 0.85rem;
}

:root[data-theme='light'] .patient-toggle-row,
:root[data-theme='light'] .patient-consent-row,
:root[data-theme='light'] .patient-privacy-toggle-card {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.22);
}

.patient-toggle-row:hover,
.patient-consent-row:hover,
.patient-privacy-toggle-card:hover {
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(59, 130, 246, 0.3);
}

:root[data-theme='light'] .patient-toggle-row:hover,
:root[data-theme='light'] .patient-consent-row:hover,
:root[data-theme='light'] .patient-privacy-toggle-card:hover {
    background: #f1f5f9;
    border-color: rgba(37, 99, 235, 0.25);
}

.patient-toggle-text,
.patient-consent-text,
.patient-toggle-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.patient-toggle-title,
.patient-consent-text strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f8fafc;
}

:root[data-theme='light'] .patient-toggle-title,
:root[data-theme='light'] .patient-consent-text strong {
    color: #0f172a;
}

.patient-toggle-desc,
.patient-consent-text span {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(148, 163, 184, 0.85);
}

:root[data-theme='light'] .patient-toggle-desc,
:root[data-theme='light'] .patient-consent-text span {
    color: #64748b;
}

.patient-consent-meta {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.65);
}

/* ── Toggle Pills (z. B. im Share-Modal) ── */
.patient-toggle-pills {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.75rem 0;
}

.patient-toggle-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin: 0;
}

.patient-toggle-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(59, 130, 246, 0.25);
}

:root[data-theme='light'] .patient-toggle-pill {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme='light'] .patient-toggle-pill:hover {
    background: #f1f5f9;
    border-color: rgba(37, 99, 235, 0.25);
}

.patient-toggle-pill-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f1f5f9;
}

:root[data-theme='light'] .patient-toggle-pill-left {
    color: #1e293b;
}

/* â”€â”€ Dokumente â”€â”€ */
.patient-doc-list { display: flex; flex-direction: column; gap: 0.6rem; }
.patient-doc-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: var(--surface-2, rgba(30, 41, 59, 0.45));
    border: 1px solid var(--border, rgba(148, 163, 184, 0.12));
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.patient-doc-item:hover { border-color: rgba(59, 130, 246, 0.4); transform: translateX(3px); }
:root[data-theme='light'] .patient-doc-item { background: #f8fafc; }
.patient-doc-icon-invoice { color: #22c55e; font-size: 1.25rem; }
.patient-doc-icon-medical { color: #3b82f6; font-size: 1.25rem; }
.patient-doc-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.patient-doc-name { font-weight: 600; overflow-wrap: anywhere; }
.patient-doc-view,
.patient-doc-download,
.patient-doc-delete {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.4rem !important;
    height: 2.4rem !important;
    border-radius: 10px !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease !important;
    box-shadow: none !important;
    line-height: 1 !important;
    font-family: inherit !important;
}
.patient-doc-view {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #60a5fa !important;
}
.patient-doc-view:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    transform: scale(1.08) !important;
    color: #93c5fd !important;
}
.patient-doc-download {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #60a5fa !important;
}
.patient-doc-download:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    transform: scale(1.08) !important;
    color: #93c5fd !important;
}
.patient-doc-delete {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
}
.patient-doc-delete:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    transform: scale(1.08) !important;
    color: #fca5a5 !important;
}

:root[data-theme='light'] .patient-doc-view {
    background: #eff6ff !important;
    color: #2563eb !important;
}
:root[data-theme='light'] .patient-doc-view:hover {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}
:root[data-theme='light'] .patient-doc-download {
    background: #eff6ff !important;
    color: #2563eb !important;
}
:root[data-theme='light'] .patient-doc-download:hover {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}
:root[data-theme='light'] .patient-doc-delete {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}
:root[data-theme='light'] .patient-doc-delete:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

/* ── Document Viewer Modal ── */
.patient-doc-viewer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: fadeIn 0.2s ease-out;
}
.patient-doc-viewer-dialog {
    width: 100%;
    max-width: 950px;
    height: 88vh;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
:root[data-theme='light'] .patient-doc-viewer-dialog {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}
.patient-doc-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.4);
}
:root[data-theme='light'] .patient-doc-viewer-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}
.patient-doc-viewer-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}
:root[data-theme='light'] .patient-doc-viewer-title {
    color: #0f172a;
}
.patient-doc-viewer-close {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.patient-doc-viewer-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}
:root[data-theme='light'] .patient-doc-viewer-close {
    background: #f1f5f9;
    color: #64748b;
}
:root[data-theme='light'] .patient-doc-viewer-close:hover {
    background: #fee2e2;
    color: #dc2626;
}
.patient-doc-viewer-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    overflow: hidden;
    position: relative;
}
:root[data-theme='light'] .patient-doc-viewer-body {
    background: #f1f5f9;
}
.patient-doc-viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.patient-doc-viewer-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: auto;
}
.patient-doc-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.patient-doc-viewer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.95rem;
}
.patient-empty-hint { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--text-muted, rgba(148, 163, 184, 0.7)); }

/* ── Empty State Box ── */
.patient-empty-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.25rem 1.5rem;
    background: var(--surface-2, rgba(30, 41, 59, 0.35));
    border: 1px dashed var(--border, rgba(148, 163, 184, 0.2));
    border-radius: 14px;
    margin: 0.5rem 0 1rem;
}
:root[data-theme='light'] .patient-empty-state-box {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.patient-empty-state-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
}
.patient-empty-state-title {
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
}
.patient-empty-state-desc {
    font-size: 0.84rem;
    color: var(--text-muted, #94a3b8);
    max-width: 440px;
    margin: 0;
}
:root[data-theme='light'] .patient-empty-state-desc {
    color: #64748b;
}

/* ── Upload Badge ── */
.patient-upload-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
:root[data-theme='light'] .patient-upload-badge {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* ── Upload Zone & Dropzone ── */
.patient-upload-wrapper {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border, rgba(148, 163, 184, 0.15));
}
:root[data-theme='light'] .patient-upload-wrapper {
    border-top-color: #e2e8f0;
}

.patient-dropzone {
    border: 2px dashed rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.03);
    border-radius: 14px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.patient-dropzone:hover, .patient-dropzone.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}
:root[data-theme='light'] .patient-dropzone {
    background: #f0f7ff;
    border-color: #93c5fd;
}
:root[data-theme='light'] .patient-dropzone:hover, :root[data-theme='light'] .patient-dropzone.drag-over {
    background: #e0f2fe;
    border-color: #2563eb;
}

.patient-dropzone-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    transition: transform 0.2s ease;
}
.patient-dropzone:hover .patient-dropzone-icon {
    transform: scale(1.1);
}
.patient-dropzone-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.patient-dropzone-link {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.patient-dropzone-hint {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
}
:root[data-theme='light'] .patient-dropzone-hint {
    color: #64748b;
}

/* ── Ausgewählte Datei Card ── */
.patient-selected-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    background: var(--surface-2, rgba(30, 41, 59, 0.6));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    animation: fadeIn 0.2s ease-out;
}
:root[data-theme='light'] .patient-selected-file-card {
    background: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}
.patient-selected-file-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.patient-selected-file-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.patient-selected-file-name {
    font-weight: 600;
    font-size: 0.92rem;
    word-break: break-all;
}
.patient-selected-file-size {
    font-size: 0.76rem;
    color: var(--text-muted, #94a3b8);
}
:root[data-theme='light'] .patient-selected-file-size {
    color: #64748b;
}
.patient-selected-file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Datenfreigaben ── */
.patient-share-list { display: flex; flex-direction: column; gap: 0.6rem; }
.patient-share-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    background: var(--surface-2, rgba(30, 41, 59, 0.45));
    border: 1px solid var(--border, rgba(148, 163, 184, 0.12));
    border-radius: 12px;
}
:root[data-theme='light'] .patient-share-item { background: #f8fafc; }
.patient-share-item.is-inactive { opacity: 0.6; }
.patient-share-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.patient-share-status { font-weight: 700; font-size: 0.85rem; }
.patient-share-meta { font-size: 0.76rem; color: var(--text-muted, rgba(148, 163, 184, 0.75)); }
.patient-share-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

.patient-btn-ghost-sm, .patient-btn-danger-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 2.4rem; height: 2.4rem;
    border-radius: 10px;
    border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.patient-btn-ghost-sm:hover { background: rgba(59, 130, 246, 0.15); transform: scale(1.05); }
.patient-btn-danger-sm {
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
}
.patient-btn-danger-sm:hover { background: rgba(239, 68, 68, 0.2); transform: scale(1.05); }


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   APP-TABS & NEUE FEATURES (Dokumente, Freigaben, DSGVO, Dialoge)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Tab-Bar (Desktop: Pill-Bar, Mobile: Bottom-Bar) â”€â”€ */
.patient-tabbar {
    position: relative;
    display: flex;
    gap: 0.35rem;
    margin: 1.25rem 0 1.5rem;
    padding: 0.35rem;
    background: var(--surface-2, rgba(30, 41, 59, 0.6));
    border: 1px solid var(--border, rgba(148, 163, 184, 0.15));
    border-radius: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.patient-tabbar::-webkit-scrollbar { display: none; }

.patient-tabbar-btn {
    position: relative;
    flex: 1 1 0;
    min-width: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted, rgba(148, 163, 184, 0.9));
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, transform 0.15s ease;
    white-space: nowrap;
}
.patient-tabbar-btn:hover { color: var(--text, #f1f5f9); background: rgba(59, 130, 246, 0.08); }
.patient-tabbar-btn:active { transform: scale(0.97); }
.patient-tabbar-btn.is-active { color: var(--text, #f1f5f9); }
.patient-tabbar-btn i { font-size: 0.95rem; }

.patient-tabbar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 999px;
    animation: patientBadgePulse 2.4s ease-in-out infinite;
}
@keyframes patientBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45); }
    50%      { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

.patient-tabbar-indicator {
    position: absolute;
    bottom: 0.3rem;
    left: 0;
    height: 3px;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* â”€â”€ Panels + Staggered Entrance â”€â”€ */
.patient-tab-panel { display: block; }
.patient-tab-panel[hidden] { display: none; }

.patient-tab-panel.animate-in > * {
    animation: patientPanelEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--stagger-delay, 0ms);
}
@keyframes patientPanelEnter {
    from { opacity: 0; transform: translateY(14px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
:root[data-theme='light'] .patient-tabbar { background: #ffffff; border-color: rgba(148, 163, 184, 0.25); }
:root[data-theme='light'] .patient-tabbar-btn { color: #64748b; }
:root[data-theme='light'] .patient-tabbar-btn:hover { color: #0f172a; background: rgba(59, 130, 246, 0.08); }
:root[data-theme='light'] .patient-tabbar-btn.is-active { color: #0f172a; }

/* Mobile: fixierte Bottom-Tab-Bar (App-Feeling) */
@media (max-width: 640px) {
    .patient-tabbar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 1030;
        margin: 0;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(12px);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
    }
    :root[data-theme='light'] .patient-tabbar {
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
    }
    .patient-tabbar-btn { flex-direction: column; gap: 0.15rem; font-size: 0.68rem; padding: 0.4rem 0.3rem; }
    .patient-tabbar-btn i { font-size: 1.1rem; }
    .patient-tabbar-indicator { display: none; }
    .patient-main { padding-bottom: 5.5rem !important; }
}

/* ── Willkommens-Bereich in der Übersicht ── */
.patient-welcome-dash {
    padding: 1.85rem 2rem;
}

.patient-welcome-dash-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.65rem;
}

.patient-welcome-dash-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    color: #60a5fa;
    font-size: 1.6rem;
    flex-shrink: 0;
}

:root[data-theme='light'] .patient-welcome-dash-icon {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: #0284c7;
}

.patient-welcome-dash-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #ffffff;
}

:root[data-theme='light'] .patient-welcome-dash-title {
    color: #0f172a;
}

.patient-welcome-dash-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
}

:root[data-theme='light'] .patient-welcome-dash-lead {
    color: #475569;
}

.patient-welcome-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .patient-welcome-services {
        grid-template-columns: 1fr;
    }
    .patient-welcome-dash {
        padding: 1.25rem 1.15rem;
    }
    .patient-welcome-dash-header {
        gap: 0.85rem;
    }
    .patient-welcome-dash-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.35rem;
    }
    .patient-welcome-dash-title {
        font-size: 1.2rem;
    }
}

.patient-welcome-service-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.patient-welcome-service-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

:root[data-theme='light'] .patient-welcome-service-card {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

:root[data-theme='light'] .patient-welcome-service-card:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}

.patient-welcome-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.patient-welcome-service-icon.rx { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.patient-welcome-service-icon.chat { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.patient-welcome-service-icon.doc { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.patient-welcome-service-icon.sec { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

:root[data-theme='light'] .patient-welcome-service-icon.rx { background: #dbeafe; color: #2563eb; }
:root[data-theme='light'] .patient-welcome-service-icon.chat { background: #d1fae5; color: #059669; }
:root[data-theme='light'] .patient-welcome-service-icon.doc { background: #fef3c7; color: #d97706; }
:root[data-theme='light'] .patient-welcome-service-icon.sec { background: #ede9fe; color: #7c3aed; }

.patient-welcome-service-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.patient-welcome-service-body strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

:root[data-theme='light'] .patient-welcome-service-body strong {
    color: #0f172a;
}

.patient-welcome-service-body span {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #cbd5e1;
}

:root[data-theme='light'] .patient-welcome-service-body span {
    color: #475569;
}

.patient-welcome-dash-footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #94a3b8;
}

:root[data-theme='light'] .patient-welcome-dash-footer {
    border-top-color: #e2e8f0;
    color: #64748b;
}
