:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --sidebar: #0f172a;
    --card: #ffffff;
    --text: #111827;
    --muted: #667085;
    --border: #e4e7ec;
    --ring: rgba(37, 99, 235, 0.18);
    --shadow: 0 14px 38px rgba(16, 24, 40, 0.08);
    --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.06);
    --radius: 12px;
}

* { box-sizing: border-box; }

img {
    display: block;
    max-width: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
    margin: 0;
    line-height: 1.55;
}

html[lang="ar"] body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

a { color: var(--primary); }

.btn {
    border-radius: 10px;
    font-weight: 700;
}

.btn-sm {
    border-radius: 8px;
}

.form-control,
.form-select {
    border-color: var(--border);
    border-radius: 10px;
    min-height: 42px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 16px var(--ring);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.sidebar {
    width: 252px;
    height: 100vh;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0) 28%),
        var(--sidebar);
    color: #fff;
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    padding: 16px 12px;
    z-index: 10;
    box-shadow: 10px 0 34px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
    padding: 4px 8px 16px;
    font-size: 1.05rem;
    min-height: 52px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    letter-spacing: 0;
}

.admin-header {
    margin-inline-start: 252px;
    padding: 16px 32px 0;
    max-width: 1480px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-language-switcher {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 6px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.admin-language-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;
    font-size: 0.84rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 800;
}

.admin-language-switcher a.active {
    background: var(--primary);
    color: #fff;
}

.auth-language-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.sidebar-logo,
.brand-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 11px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-logo {
    width: 132px;
    height: auto;
}

.navbar-brand .brand-logo {
    width: 128px;
}

.sidebar nav,
.sidebar-nav {
    display: grid;
    gap: 3px;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 4px 3px 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.sidebar:hover .sidebar-nav,
.sidebar:hover nav {
    scrollbar-color: rgba(148, 163, 184, 0.38) transparent;
}

.sidebar-nav::-webkit-scrollbar,
.sidebar nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track,
.sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.sidebar nav::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

.sidebar:hover .sidebar-nav::-webkit-scrollbar-thumb,
.sidebar:hover nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.38);
}

.sidebar a,
.sidebar-logout button {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 11px;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 700;
    min-height: 42px;
    position: relative;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-logout {
    margin: 10px 3px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    position: sticky;
    bottom: 0;
    background: var(--sidebar);
}

.sidebar-logout button {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: start;
}

.sidebar a:hover,
.sidebar-logout button:hover,
.sidebar-logout button:focus {
    background: rgba(148, 163, 184, 0.12);
    color: #fff;
    transform: translateX(1px);
}

.sidebar a.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.24), rgba(37, 99, 235, 0.1));
    color: #fff;
    box-shadow: inset 3px 0 0 #60a5fa;
}

.sidebar a i,
.sidebar-logout i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1;
    color: #94a3b8;
}

.sidebar a.active i,
.sidebar a:hover i,
.sidebar-logout button:hover i {
    color: #dbeafe;
}

.sidebar-nav a[href="subscription.php"],
.sidebar-nav a[href="calendar.php"],
.sidebar-nav a[href="settings.php"],
.sidebar-nav a[href="finance.php"],
.sidebar-nav a[href="subscription_settings.php"],
.sidebar-nav a[href="logs.php"] {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.content {
    margin-inline-start: 252px;
    padding: 24px 32px 40px;
    max-width: 1480px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 8px;
}

.page-header h1,
.auth-card h1,
.auth-box h1 {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    font-weight: 800;
    margin: 0 0 6px;
}

.page-header p {
    color: var(--muted);
    margin: 0;
}

.card-box,
.metric-card,
.auth-card,
.auth-box,
.info-card,
.service-card-admin,
.service-public-card {
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-box {
    padding: 20px;
    margin-bottom: 20px;
}

.card-box:hover,
.metric-card:hover,
.service-card-admin:hover,
.service-public-card:hover,
.info-card:hover {
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.1);
}

.table-card {
    overflow: hidden;
}

.table-responsive {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    background: #fff;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.table {
    margin-bottom: 0;
    min-width: 720px;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #475467;
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
    padding: 13px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    border-color: #eef2f7;
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: background 150ms ease, box-shadow 150ms ease;
}

.table-hover tbody tr:hover {
    background: #f8fbff;
}

.table-search-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.table-search-row .form-control {
    max-width: 320px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 28px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(15, 23, 42, 0.96)),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.35), transparent 34%);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.22);
}

.dashboard-hero .eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #bfdbfe;
    font-weight: 850;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
}

.dashboard-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: #eff6ff;
    background: rgba(255,255,255,0.1);
    font-weight: 750;
    font-size: 0.86rem;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.quick-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
}

.kpi-card > i {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 10px;
    color: var(--primary);
    background: #eff6ff;
    font-size: 1.1rem;
}

.kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.kpi-card strong {
    display: block;
    margin-top: 5px;
    font-size: 1.7rem;
    line-height: 1.1;
}

.kpi-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 750;
}

.trend.up {
    color: #039855;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.chart-card {
    min-width: 0;
}

.chart-card canvas {
    width: 100% !important;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-title-row h2 {
    margin: 0;
}

.card-title-row span {
    color: var(--muted);
    font-weight: 750;
    font-size: 0.84rem;
}

.landing-page {
    background: #fff;
}

.landing-hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 56px 0 44px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.landing-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 56px;
    align-items: center;
}

.landing-copy h1 {
    max-width: 760px;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.95;
    font-weight: 920;
    margin: 0 0 22px;
    color: #0f172a;
}

.landing-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.2rem;
    margin-bottom: 26px;
}

.trust-row {
    margin-top: 20px;
    color: var(--muted);
    font-weight: 750;
}

.product-preview {
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.preview-topbar {
    display: flex;
    gap: 7px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.preview-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    padding: 18px;
}

.preview-card,
.preview-list {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.preview-card.wide {
    grid-row: span 2;
}

.preview-card small {
    color: var(--muted);
    font-weight: 850;
}

.preview-card strong {
    display: block;
    margin: 6px 0 18px;
    font-size: 2rem;
}

.preview-bars {
    display: flex;
    align-items: end;
    gap: 9px;
    height: 150px;
}

.preview-bars i {
    flex: 1;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.preview-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
}

.preview-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.preview-list div:last-child {
    border-bottom: 0;
}

.preview-list span {
    color: var(--muted);
}

.landing-section {
    padding: 78px 0;
}

.muted-band {
    background: #f8fafc;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading h2,
.landing-pricing-cta h2,
.faq-grid h2,
.landing-cta h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 900;
    color: #0f172a;
}

.section-heading p,
.landing-pricing-cta p,
.faq-grid p,
.landing-cta p {
    color: var(--muted);
    font-size: 1.05rem;
}

.feature-grid,
.steps-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-grid article,
.steps-grid div,
.testimonial-grid blockquote {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.feature-grid i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 12px;
    color: var(--primary);
    background: #eff6ff;
    font-size: 1.2rem;
}

.feature-grid h3,
.steps-grid h3 {
    font-size: 1.1rem;
    font-weight: 850;
}

.feature-grid p,
.steps-grid p {
    color: var(--muted);
    margin: 0;
}

.steps-grid span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}

.landing-pricing-cta,
.faq-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.testimonial-grid blockquote {
    margin: 0;
    color: #344054;
    font-size: 1rem;
}

.testimonial-grid cite {
    display: block;
    margin-top: 18px;
    color: #0f172a;
    font-style: normal;
    font-weight: 850;
}

.faq-grid {
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 850;
}

.faq-list p {
    margin: 12px 0 0;
}

.landing-cta {
    padding: 80px 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0f172a);
}

.landing-cta h2 {
    color: #fff;
}

.landing-cta p {
    max-width: 680px;
    margin: 0 auto 26px;
    color: #dbeafe;
}

.card-box h2,
.info-card h2,
.service-card-admin h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
}

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

.metric-card {
    padding: 20px;
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-card span {
    color: var(--muted);
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-card,
.card-box {
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.metric-card small { color: var(--muted); }

.dashboard-grid,
.profile-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
}

.responsive-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.responsive-form.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stacked-form {
    display: grid;
    gap: 10px;
}

label {
    font-weight: 700;
    margin-bottom: 6px;
}

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.table tbody td {
    border-color: #eef2f6;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    --bs-table-hover-bg: #f8fafc;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.form-actions,
.button-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-panel { margin-bottom: 16px; }
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.table-card { overflow: hidden; }
.table { margin-bottom: 0; }
.actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.actions-cell form { display: inline; }

.admin-users-table {
    min-width: 1280px;
}

.admin-action-grid {
    display: grid;
    gap: 8px;
    min-width: 320px;
}

.admin-action-grid form,
.admin-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.admin-inline-form .form-select {
    width: 132px;
}

.admin-inline-form .form-control {
    width: 76px;
}

.full-span {
    grid-column: 1 / -1;
}

.employee-schedule-form {
    min-width: 360px;
}

.employee-schedule-form .form-control {
    width: 92px;
}

.mini-days {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.mini-days label {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.chart-bars {
    min-height: 240px;
    display: flex;
    align-items: end;
    gap: 18px;
    padding: 20px 8px 4px;
    overflow-x: auto;
}

.chart-bar-item {
    min-width: 86px;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}

.chart-bar {
    width: 44px;
    border-radius: 10px 10px 3px 3px;
    background: linear-gradient(180deg, var(--primary), #93c5fd);
    box-shadow: var(--shadow-sm);
}

.funnel-list,
.finance-breakdown {
    display: grid;
    gap: 14px;
}

.funnel-row {
    display: grid;
    gap: 8px;
}

.funnel-row > div:first-child,
.finance-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.funnel-row span,
.finance-breakdown span {
    color: var(--muted);
    font-weight: 700;
}

.funnel-track {
    height: 12px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.funnel-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #93c5fd);
}

.finance-breakdown > div {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.finance-breakdown > div:last-child {
    border-bottom: 0;
}

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

.profile-language-switcher {
    display: flex;
    justify-content: center;
    padding: 18px 20px 0;
}

.pagination-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.service-grid,
.service-public-grid,
.gallery-grid,
.gallery-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card-admin {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service-card-admin.is-inactive {
    opacity: 0.68;
}

.service-card-admin > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.service-card-admin:not(:has(> img))::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, rgba(37,99,235,0.09), rgba(16,24,40,0.04)),
        var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.service-public-card > img {
    width: calc(100% + 36px);
    margin: -18px -18px 4px;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.service-card-body,
.service-public-card {
    padding: 18px;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.settings-form hr {
    margin: 28px 0;
}

.profile-preview-logo img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    margin: 0 auto 20px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.working-days-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.day-check {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.gallery-upload-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
    background: var(--surface-soft);
}

.auth-page,
.public-booking {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-card,
.auth-box {
    width: min(100%, 460px);
    padding: 32px;
    border-radius: 18px;
}

.auth-card h1,
.auth-box h1 {
    text-align: center;
}

.language-switch {
    text-align: end;
    margin-bottom: 12px;
}

.public-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.booking-cover {
    width: calc(100% + 64px);
    height: 150px;
    object-fit: cover;
    margin: -32px -32px 18px;
    border-radius: 18px 18px 0 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.social-links a {
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    background: #eff6ff;
    border-radius: 999px;
    padding: 5px 9px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.calendar-day {
    min-height: 180px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 14px;
}

.calendar-day h2 {
    font-size: 0.95rem;
    font-weight: 850;
    margin-bottom: 12px;
}

.calendar-event {
    display: grid;
    gap: 3px;
    border-inline-start: 4px solid var(--primary);
    background: var(--surface-soft);
    border-radius: 8px;
    padding: 9px 10px;
    margin-bottom: 8px;
    cursor: grab;
}

.calendar-event.has-conflict {
    background: #fff7ed;
    outline: 1px solid #fed7aa;
}

.service-image-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: none;
    background: var(--surface-soft);
}

.profile-page {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    min-height: 100vh;
    padding: 32px 16px;
}

.profile-container {
    max-width: 1180px;
    margin: 0 auto;
}

.profile-hero {
    text-align: initial;
    padding: 0 0 28px;
    margin-bottom: 24px;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow);
}

.profile-hero h1 {
    font-weight: 850;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.profile-cover {
    height: 220px;
    background:
        linear-gradient(135deg, rgba(37,99,235,0.22), rgba(16,24,40,0.16)),
        linear-gradient(135deg, #eef4ff, #f8fafc);
    position: relative;
    overflow: hidden;
}

.profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.18));
}

.profile-cover-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: 0 32px;
    margin-top: -58px;
    position: relative;
    z-index: 2;
}

.profile-logo {
    width: 124px;
    height: 124px;
    min-width: 124px;
    object-fit: cover;
    border-radius: 28px;
    border: 5px solid #fff;
    background: #fff;
    box-shadow: var(--shadow);
}

.profile-copy {
    padding: 70px 0 0;
    min-width: 0;
}

.profile-description {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 24px 32px 0;
}

.info-card {
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.info-card i {
    color: var(--primary);
    font-size: 1.8rem;
}

.info-card h2 {
    margin-top: 8px;
}

.section-title {
    text-align: center;
    font-weight: 800;
    margin: 28px 0 18px;
}

.gallery-button {
    border: 0;
    background: transparent;
    padding: 0;
}

.gallery-button img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--surface-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-button:hover img {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.map-container {
    overflow: hidden;
    border-radius: 14px;
    margin: 24px 0;
}

.map-container iframe {
    width: 100%;
    height: 320px;
    border: 0;
}

.service-public-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-public-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.service-public-card strong {
    color: var(--primary);
    font-size: 1.05rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.86);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 1000;
}

.lightbox[hidden] { display: none; }

.lightbox img {
    max-width: min(100%, 1000px);
    max-height: 86vh;
    border-radius: 12px;
}

.lightbox-close {
    position: fixed;
    inset-block-start: 18px;
    inset-inline-end: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2.4rem;
}

.hero-section {
    padding: 70px 0;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.navbar {
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.navbar-brand {
    letter-spacing: -0.03em;
}

.min-vh-75 { min-height: 75vh; }
.hero-card {
    background: #fff;
    padding: 32px;
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.mini-card,
.booking-preview,
.public-link,
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.public-link {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

.pricing-page,
.onboarding-page {
    min-height: 100vh;
}

.pricing-hero {
    padding: 64px 0 36px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.pricing-hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 850;
    letter-spacing: -0.02em;
}

.pricing-hero p {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 24px;
}

.billing-toggle {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.billing-toggle button {
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 9px 14px;
    font-weight: 800;
    color: var(--muted);
}

.billing-toggle button.active {
    background: var(--primary);
    color: #fff;
}

.billing-toggle span {
    font-size: 0.78rem;
    opacity: 0.84;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.tenant-pricing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 0 24px;
}

.pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-card.featured {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.13);
}

.plan-ribbon {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    background: #ecfdf3;
    color: #027a48;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 0.78rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.plan-price strong {
    font-size: 2.8rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.plan-list {
    padding: 0;
    margin: 0 0 8px;
    list-style: none;
    display: grid;
    gap: 10px;
}

.plan-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.plan-list i {
    color: #16a34a;
}

.comparison-section {
    margin-bottom: 48px;
}

.comparison-table th,
.comparison-table td {
    text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: start;
}

.subscription-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #fff, #eff6ff);
}

.trial-countdown {
    text-align: center;
    min-width: 140px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.trial-countdown span {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.trial-countdown strong {
    font-size: 2.4rem;
    line-height: 1;
}

.subscription-result-card {
    max-width: 860px;
    margin: 40px auto;
    text-align: center;
}

.subscription-result-card h1 {
    font-weight: 900;
    margin: 14px 0 8px;
}

.subscription-result-card .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0;
    text-align: start;
}

.empty-state {
    padding: 42px 20px;
    text-align: center;
    color: var(--muted);
}

.empty-state-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    font-size: 2rem;
}

.empty-state h3 {
    color: var(--text);
    font-weight: 850;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.wizard-steps a {
    text-decoration: none;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-steps span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef2f7;
}

.wizard-steps a.active,
.wizard-steps a.done {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.24);
}

.wizard-steps a.active span,
.wizard-steps a.done span {
    background: var(--primary);
    color: #fff;
}

.wizard-card {
    max-width: 860px;
}

.finish-panel {
    text-align: center;
    padding: 20px;
}

.finish-panel i,
.confirmation-icon {
    color: #16a34a;
    font-size: 3.2rem;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-item {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.notification-item i {
    color: var(--primary);
    font-size: 1.35rem;
}

.notification-item h2 {
    font-size: 1rem;
    margin: 0 0 4px;
    font-weight: 850;
}

.notification-item p {
    margin: 0;
    color: var(--muted);
}

.notification-danger {
    border-color: rgba(220, 38, 38, 0.28);
}

.notification-warning {
    border-color: rgba(217, 119, 6, 0.32);
}

.confirmation-card {
    text-align: center;
}

.confirmation-summary {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    text-align: start;
}

.confirmation-summary div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.confirmation-summary span {
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 992px) {
    .stats-grid,
    .service-grid,
    .service-public-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .responsive-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-grid,
    .dashboard-charts,
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .landing-hero-inner,
    .feature-grid,
    .steps-grid,
    .testimonial-grid,
    .landing-pricing-cta,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .landing-hero {
        min-height: auto;
    }
    .pricing-grid,
    .tenant-pricing,
    .wizard-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 14px;
        overflow: visible;
    }
    .sidebar-brand {
        justify-content: center;
        margin-bottom: 12px;
    }
    .sidebar nav,
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 4px;
    }
    .sidebar a {
        white-space: nowrap;
    }
    .sidebar-logout {
        margin: 0;
        padding: 0;
        border-top: 0;
        position: static;
        background: transparent;
        flex: 0 0 auto;
    }
    .sidebar-logout button {
        white-space: nowrap;
    }
    .content {
        margin-inline-start: 0;
        padding: 20px;
    }
    .admin-header {
        margin-inline-start: 0;
        padding: 14px 20px 0;
        flex-wrap: wrap;
    }
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .subscription-hero {
        align-items: stretch;
        flex-direction: column;
    }
    .dashboard-hero {
        flex-direction: column;
        border-radius: 14px;
        padding: 22px;
    }
    .quick-actions .btn {
        flex: 1 1 180px;
        justify-content: center;
    }
    .landing-copy h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }
    .preview-grid {
        grid-template-columns: 1fr;
    }
    .preview-card.wide,
    .preview-list {
        grid-column: auto;
    }
    .working-days-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .table {
        min-width: 760px;
    }
}

@media (max-width: 576px) {
    .stats-grid,
    .kpi-grid,
    .service-grid,
    .service-public-grid,
    .gallery-grid,
    .gallery-upload-grid,
    .responsive-form,
    .responsive-form.two-col,
    .working-days-box,
    .pricing-grid,
    .tenant-pricing,
    .wizard-steps {
        grid-template-columns: 1fr;
    }
    .auth-card,
    .auth-box,
    .card-box {
        padding: 20px;
    }
    .landing-section {
        padding: 52px 0;
    }
    .landing-hero {
        padding: 36px 0 32px;
    }
    .product-preview {
        border-radius: 16px;
    }
    .preview-list div {
        flex-direction: column;
        gap: 4px;
    }
    .table-search-row {
        flex-direction: column;
    }
    .table-search-row .form-control {
        max-width: none;
    }
    .actions-cell .btn,
    .actions-cell form {
        width: 100%;
    }
    .actions-cell .btn {
        display: block;
    }
}

.bookly-toast-region {
    position: fixed;
    inset-block-start: 20px;
    inset-inline-end: 20px;
    z-index: 2000;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.bookly-toast {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    padding: 13px 13px 13px 14px;
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--primary);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    color: var(--text);
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: auto;
}

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

.bookly-toast i {
    font-size: 1.1rem;
}

.bookly-toast span {
    min-width: 0;
    font-weight: 700;
    line-height: 1.35;
}

.bookly-toast button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
}

.bookly-toast button:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.bookly-toast.success { border-inline-start-color: #16a34a; }
.bookly-toast.success i { color: #16a34a; }
.bookly-toast.error { border-inline-start-color: #dc2626; }
.bookly-toast.error i { color: #dc2626; }
.bookly-toast.warning { border-inline-start-color: #d97706; }
.bookly-toast.warning i { color: #d97706; }
.bookly-toast.info { border-inline-start-color: #2563eb; }
.bookly-toast.info i { color: #2563eb; }

.bookly-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.bookly-modal-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.bookly-success-modal {
    width: min(460px, 100%);
    padding: 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    text-align: center;
    transform: translateY(8px) scale(0.98);
    animation: booklyModalIn 220ms ease forwards;
}

.bookly-success-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.8rem;
}

.bookly-success-modal h2 {
    margin: 0 0 18px;
    font-size: 1.35rem;
    line-height: 1.3;
}

.bookly-success-modal dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.bookly-success-modal dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--surface-soft);
}

.bookly-success-modal dt {
    color: var(--muted);
    font-weight: 700;
}

.bookly-success-modal dd {
    margin: 0;
    font-weight: 800;
}

@keyframes booklyModalIn {
    to {
        transform: translateY(0) scale(1);
    }
}

/* Final UI hardening for image/card layout. These page-scoped rules prevent
   large uploaded images from escaping their cards on older browsers. */
.service-grid,
.service-public-grid {
    align-items: stretch;
}

.service-card-admin,
.service-public-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
}

.service-card-admin,
.service-public-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card-admin:hover,
.service-public-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.12);
}

.service-card-admin > img,
.service-public-card > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 0;
}

.service-card-admin > img {
    margin: 12px 12px 0;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
}

.service-public-card > img {
    margin: 0 0 6px;
}

.service-card-admin:not(:has(> img))::before {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    margin: 12px 12px 0;
    border-radius: 14px;
    border-bottom: 0;
}

.service-card-body {
    min-height: 172px;
    padding: 18px 20px 20px;
}

.service-public-card {
    gap: 14px;
    padding: 14px;
}

.service-public-card > div {
    padding: 0 2px;
}

.service-public-card h3,
.service-card-admin h2 {
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.service-public-card .text-muted,
.service-card-admin .text-muted {
    font-size: 0.94rem;
}

.service-card-body .button-row,
.service-public-card > .btn {
    margin-top: auto;
}

.profile-preview-logo img,
.public-logo {
    width: 132px;
    height: 132px;
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    object-position: center;
}

.profile-logo {
    width: 124px;
    height: 124px;
    max-width: 124px;
    max-height: 124px;
    object-fit: cover;
    object-position: center;
}

.gallery-button img,
.gallery-upload-grid img {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    object-fit: cover;
}

.settings-form .profile-preview-logo {
    display: flex;
    justify-content: center;
}

.settings-form .gallery-upload-grid img {
    width: 150px;
    height: 150px;
    max-width: 150px;
    max-height: 150px;
    min-height: 0;
}

html[dir="rtl"] .sidebar {
    box-shadow: -8px 0 26px rgba(16, 24, 40, 0.08);
}

html[dir="rtl"] body,
html[dir="rtl"] .content,
html[dir="rtl"] .table,
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select {
    text-align: right;
}

html[dir="rtl"] .sidebar a,
html[dir="rtl"] .sidebar-logout button {
    text-align: right;
}

html[dir="rtl"] .profile-identity,
html[dir="rtl"] .profile-actions,
html[dir="rtl"] .card-title-row,
html[dir="rtl"] .button-row,
html[dir="rtl"] .form-actions {
    direction: rtl;
}

.profile-page {
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.14), transparent 34rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: 36px 16px 56px;
}

.profile-container {
    max-width: 1120px;
}

.profile-hero {
    text-align: center;
    padding: 34px clamp(20px, 4vw, 48px) 38px;
    margin-bottom: 28px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
        radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 38%);
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.12);
}

.profile-cover {
    height: 180px;
    margin: -34px calc(clamp(20px, 4vw, 48px) * -1) 0;
    border-radius: 28px 28px 0 0;
}

.profile-cover-image {
    height: 180px;
}

.profile-cover::after {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.18)),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.42), transparent 45%);
}

.profile-identity {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 0;
    margin-top: -68px;
}

.profile-logo {
    width: 132px;
    height: 132px;
    min-width: 132px;
    max-width: 132px;
    max-height: 132px;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.16);
}

.profile-copy {
    padding: 0;
}

.profile-hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.profile-description {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.profile-actions {
    justify-content: center;
    padding: 24px 0 0;
}

.profile-actions .btn {
    min-width: 160px;
    padding: 0.78rem 1.15rem;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.profile-info-grid {
    gap: 18px;
}

.info-card,
.gallery-button img,
.map-container {
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.section-title {
    letter-spacing: -0.02em;
}

@media (max-width: 992px) {
    .profile-cover,
    .profile-cover-image {
        height: 190px;
    }
}

@media (max-width: 576px) {
    .profile-cover,
    .profile-cover-image {
        height: 150px;
    }

    .profile-identity {
        display: grid;
        padding: 0 20px;
        margin-top: -46px;
        text-align: center;
    }

    .profile-logo {
        width: 108px;
        height: 108px;
        min-width: 108px;
        max-width: 108px;
        max-height: 108px;
        margin: 0 auto;
        border-radius: 50%;
    }

    .profile-copy {
        padding-top: 12px;
    }

    .profile-actions {
        padding: 20px;
        justify-content: center;
    }

    .profile-actions .btn {
        width: 100%;
    }

    .gallery-button img,
    .gallery-upload-grid img {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }
}
