/* ============================================================
 * Phase10-UI-Typography-v1.1 LOCAL MONTSERRAT FONT SYSTEM
 * Purpose: Fully local Montserrat font loading, no CDN
 * ============================================================ */

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/montserrat/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
 * File: /var/www/social/public/assets/css/app.css
 * Purpose: Main responsive UI shell styles
 * Project: Padare Social Platform
 * Version: Phase2-v1.0
 * ============================================================
 */

/* ============================================================
 * Theme Tokens
 * ============================================================
 */
:root {
    --color-main-blue: #0099ff;
    --color-main-blue-dark: #0077cc;
    --color-secondary-red: #ff2f2f;
    --color-accent-yellow: #ffd400;

    --color-text-dark: #111827;
    --color-text-grey: #6b7280;
    --color-white: #ffffff;

    --color-bg: #f3f4f6;
    --color-card: #ffffff;
    --color-border: #e5e7eb;

    --shadow-soft: 0 18px 40px rgba(17, 24, 39, 0.10);
    --radius-card: 18px;
}

/* ============================================================
 * Base
 * ============================================================
 */
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 153, 255, 0.12), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(255, 212, 0, 0.16), transparent 28rem),
        var(--color-bg);
    color: var(--color-text-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* ============================================================
 * Top Bar
 * ============================================================
 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--color-main-blue);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 64px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    background: var(--color-white);
    color: #ffffff;
    border-radius: 12px;
    font-weight: 900;
}

.brand-text {
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: var(--color-white);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

/* ============================================================
 * Page Shell
 * ============================================================
 */
.page-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 18px 90px;
}

/* ============================================================
 * Hero Panel
 * ============================================================
 */
.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.hero-copy,
.foundation-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 34px;
}

.phase-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-main-blue-dark);
    border: 1px solid rgba(0, 153, 255, 0.22);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-copy p {
    margin: 18px 0 0;
    color: var(--color-text-grey);
    font-size: 18px;
    line-height: 1.65;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-main-blue);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-main-blue-dark);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text-dark);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-main-blue);
    color: var(--color-main-blue);
}

/* ============================================================
 * Foundation Card
 * ============================================================
 */
.foundation-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.module-item {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 16px;
    background: #ffffff;
}

.module-item strong {
    display: block;
    margin-bottom: 6px;
}

.module-item span {
    display: inline-flex;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 800;
}

/* ============================================================
 * Mobile Drawer
 * ============================================================
 */
.mobile-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(320px, 86vw);
    background: var(--color-white);
    box-shadow: 20px 0 45px rgba(17, 24, 39, 0.22);
    transform: translateX(-105%);
    transition: transform 180ms ease-in-out;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer-header {
    min-height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-drawer-header button {
    border: 0;
    background: var(--color-bg);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-drawer-nav {
    display: grid;
    gap: 4px;
    padding: 14px;
}

.mobile-drawer-nav a {
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--color-text-dark);
    font-weight: 700;
}

.mobile-drawer-nav a:hover {
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-main-blue);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(17, 24, 39, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease-in-out, visibility 180ms ease-in-out;
}

.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
 * Bottom Navigation
 * ============================================================
 */
.bottom-nav {
    display: none;
}

/* ============================================================
 * Responsive
 * ============================================================
 */
@media (max-width: 860px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .foundation-card {
        padding: 24px;
    }

    .bottom-nav {
        position: fixed;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 45;
        background: var(--color-white);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.08);
    }

    .bottom-nav a {
        min-height: 58px;
        display: grid;
        place-items: center;
        font-size: 12px;
        color: var(--color-text-grey);
        font-weight: 800;
    }

    .bottom-nav a.active {
        color: var(--color-main-blue);
    }
}

@media (max-width: 520px) {
    .topbar-inner {
        min-height: 58px;
        padding: 0 14px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .brand-text {
        font-size: 15px;
    }

    .page-shell {
        padding: 22px 14px 86px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }
}

/* ============================================================
 * Phase 6 Dashboard + Profile Shell
 * Version: Phase6-v1.0
 * ============================================================
 */

/* ============================================================
 * Dashboard Grid
 * ============================================================
 */
.social-dashboard {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.social-sidebar-left,
.social-sidebar-right {
    display: grid;
    gap: 16px;
}

.social-feed {
    display: grid;
    gap: 16px;
}

/* ============================================================
 * Profile Summary
 * ============================================================
 */
.profile-summary-card,
.composer-card,
.feed-card,
.widget-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.profile-summary-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 0 18px 20px;
}

.profile-cover-mini {
    height: 86px;
    margin: 0 -18px;
    background:
        linear-gradient(135deg, rgba(0, 153, 255, 0.95), rgba(255, 212, 0, 0.88)),
        var(--color-main-blue);
}

.profile-avatar-mini {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: -38px auto 12px;
    border: 4px solid var(--color-white);
    border-radius: 50%;
    background: var(--color-main-blue);
    color: var(--color-white);
    font-size: 30px;
    font-weight: 900;
}

.profile-summary-card h2 {
    margin: 0;
    font-size: 20px;
}

.profile-summary-card p {
    margin: 6px 0 16px;
    color: var(--color-text-grey);
    overflow-wrap: anywhere;
}

.profile-action {
    width: 100%;
}

/* ============================================================
 * Dashboard Menu
 * ============================================================
 */
.dashboard-menu {
    display: grid;
    gap: 6px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 12px;
}

.dashboard-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--color-text-dark);
    font-weight: 800;
}

.dashboard-menu a:hover,
.dashboard-menu a.active {
    color: var(--color-main-blue);
    background: rgba(0, 153, 255, 0.10);
}

/* ============================================================
 * Composer
 * ============================================================
 */
.composer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.composer-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--color-main-blue);
    color: var(--color-white);
    border-radius: 50%;
    font-weight: 900;
}

.composer-button {
    width: 100%;
    min-height: 46px;
    text-align: left;
    padding: 0 18px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-grey);
    background: var(--color-bg);
    cursor: pointer;
}

/* ============================================================
 * Feed Card
 * ============================================================
 */
.feed-card {
    overflow: hidden;
}

.feed-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 0;
}

.feed-card-header strong,
.feed-card-header span {
    display: block;
}

.feed-card-header span {
    margin-top: 3px;
    color: var(--color-text-grey);
    font-size: 13px;
}

.feed-card-body {
    padding: 14px 16px;
}

.feed-card-body p {
    margin: 0;
    color: var(--color-text-dark);
    line-height: 1.6;
}

.feed-card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--color-border);
}

.feed-card-actions button {
    min-height: 44px;
    border: 0;
    background: var(--color-white);
    color: var(--color-text-grey);
    font-weight: 800;
    cursor: pointer;
}

.feed-card-actions button:hover {
    color: var(--color-main-blue);
    background: rgba(0, 153, 255, 0.08);
}

/* ============================================================
 * Widgets
 * ============================================================
 */
.widget-card {
    padding: 18px;
}

.widget-card h3 {
    margin: 0 0 10px;
}

.widget-card p {
    margin: 0 0 8px;
    color: var(--color-text-dark);
}

.widget-card span {
    color: var(--color-text-grey);
    overflow-wrap: anywhere;
}

/* ============================================================
 * Auth Form Responsive Refinement
 * ============================================================
 */
.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    font-weight: 800;
    color: var(--color-text-dark);
}

.auth-form input {
    min-height: 44px;
}

/* ============================================================
 * Phase 6 Responsive Dashboard
 * ============================================================
 */
@media (max-width: 1080px) {
    .social-dashboard {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .social-sidebar-right {
        display: none;
    }
}

@media (max-width: 820px) {
    .social-dashboard {
        grid-template-columns: 1fr;
    }

    .social-sidebar-left {
        order: 2;
    }

    .social-feed {
        order: 1;
    }

    .dashboard-menu {
        display: none;
    }

    .profile-summary-card {
        display: none;
    }

    .composer-card,
    .feed-card {
        border-radius: 16px;
    }
}

@media (max-width: 520px) {
    .composer-card {
        padding: 12px;
    }

    .composer-avatar {
        width: 40px;
        height: 40px;
    }

    .composer-button {
        min-height: 42px;
        padding: 0 14px;
        font-size: 14px;
    }

    .feed-card-header {
        padding: 14px 14px 0;
    }

    .feed-card-body {
        padding: 12px 14px;
    }
}

/* ============================================================
 * Phase 6 Logo Patch
 * Version: Phase6-v1.1
 * ============================================================ */
.brand-mark-image {
    overflow: hidden;
    background: var(--color-white);
}

.brand-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 3px;
}

/* ============================================================
 * Phase 6 Analog Clock Widget
 * Version: Phase6-v1.2
 * ============================================================ */
.clock-widget-card {
    background:
        radial-gradient(circle at 30% 15%, rgba(0, 153, 255, 0.13), transparent 12rem),
        radial-gradient(circle at 85% 85%, rgba(255, 212, 0, 0.15), transparent 10rem),
        var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.clock-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.clock-widget-header h3 {
    margin: 0;
    font-size: 20px;
}

.clock-widget-header span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-main-blue-dark);
    font-weight: 900;
    font-size: 13px;
}

.analog-clock {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 4px 0 2px;
}

.clock-face {
    position: relative;
    width: min(210px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #ffffff 0 58%, rgba(0, 153, 255, 0.08) 59% 100%);
    border: 8px solid #ffffff;
    box-shadow:
        inset 0 0 0 2px rgba(0, 153, 255, 0.14),
        inset 0 0 25px rgba(17, 24, 39, 0.06),
        0 14px 30px rgba(17, 24, 39, 0.14);
}

.clock-face::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(0, 153, 255, 0.18);
    border-radius: 50%;
}

.clock-face::after {
    content: "";
    position: absolute;
    inset: 26px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 0 68%, rgba(255, 212, 0, 0.18) 69% 72%, transparent 73% 100%);
    pointer-events: none;
}

.clock-number {
    position: absolute;
    z-index: 2;
    color: var(--color-text-dark);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.clock-number-12 {
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
}

.clock-number-3 {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.clock-number-6 {
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
}

.clock-number-9 {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.clock-tick {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 12px;
    margin-left: -1.5px;
    margin-top: -6px;
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.52);
    transform-origin: center;
}

.tick-1 {
    transform: rotate(30deg) translateY(-82px);
}

.tick-2 {
    transform: rotate(60deg) translateY(-82px);
}

.tick-4 {
    transform: rotate(120deg) translateY(-82px);
}

.tick-5 {
    transform: rotate(150deg) translateY(-82px);
}

.tick-7 {
    transform: rotate(210deg) translateY(-82px);
}

.tick-8 {
    transform: rotate(240deg) translateY(-82px);
}

.tick-10 {
    transform: rotate(300deg) translateY(-82px);
}

.tick-11 {
    transform: rotate(330deg) translateY(-82px);
}

.clock-hand {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 50%;
    border-radius: 999px;
    transform-origin: 50% 100%;
    transform: translateX(-50%) rotate(0deg);
}

.clock-hour-hand {
    width: 7px;
    height: 52px;
    background: var(--color-text-dark);
}

.clock-minute-hand {
    width: 5px;
    height: 70px;
    background: var(--color-main-blue);
}

.clock-second-hand {
    width: 2px;
    height: 78px;
    background: var(--color-secondary-red);
}

.clock-second-hand::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 2px;
    height: 22px;
    background: var(--color-secondary-red);
    transform: translateX(-50%);
    border-radius: 999px;
}

.clock-center-dot {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    background: var(--color-accent-yellow);
    border: 4px solid var(--color-main-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.22);
}

@media (max-width: 1080px) {
    .clock-widget-card {
        display: none;
    }
}

/* ============================================================
 * Phase 6 Global Clock Placement
 * Version: Phase6-v1.3
 * Note: Does not alter analog clock visual design
 * ============================================================ */
.global-clock-sidebar {
    position: fixed;
    top: 100px;
    right: max(18px, calc((100vw - 1180px) / 2 + 18px));
    width: 300px;
    z-index: 20;
}

@media (max-width: 1080px) {
    .global-clock-sidebar {
        display: none;
    }
}

/* ============================================================
 * Phase 6 Right Rail Slider + Ticker
 * Version: Phase6-v1.4
 * ============================================================ */
.right-rail-slider-card {
    position: relative;
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.right-rail-slider-window {
    position: relative;
    height: 210px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(0, 153, 255, 0.18), transparent 12rem),
        radial-gradient(circle at bottom right, rgba(255, 212, 0, 0.18), transparent 10rem),
        #ffffff;
}

.right-rail-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 420ms ease, transform 420ms ease;
    pointer-events: none;
}

.right-rail-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.right-rail-slide a {
    display: block;
    height: 100%;
}

.right-rail-slide-image {
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.90), rgba(255, 212, 0, 0.82));
}

.right-rail-slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-rail-slide-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.right-rail-slide-placeholder span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: var(--color-white);
    color: var(--color-main-blue);
    border-radius: 22px;
    font-size: 42px;
    font-weight: 900;
}

.right-rail-slide-body {
    padding: 12px 16px;
}

.right-rail-slide-body h3 {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 17px;
    line-height: 1.25;
}

.right-rail-ticker {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--color-border);
    background: rgba(0, 153, 255, 0.08);
    color: var(--color-main-blue-dark);
    min-height: 42px;
    display: flex;
    align-items: center;
}

.right-rail-ticker span {
    display: inline-block;
    padding-left: 100%;
    font-size: 14px;
    font-weight: 900;
    animation: rightRailTickerScroll 18s linear infinite;
}

.right-rail-admin-link {
    display: block;
    padding: 10px 14px;
    border-top: 1px solid var(--color-border);
    color: var(--color-main-blue);
    font-weight: 900;
    text-align: center;
}

.right-rail-admin-link:hover {
    background: rgba(0, 153, 255, 0.08);
}

@keyframes rightRailTickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ============================================================
 * Phase 6 Admin Slider CRUD UI
 * Version: Phase6-v1.4
 * ============================================================ */
.admin-panel-shell {
    display: grid;
    gap: 18px;
}

.admin-panel-header,
.admin-table-card,
.admin-form-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-panel-header h1 {
    margin: 0;
    font-size: 32px;
}

.admin-panel-header p {
    margin: 8px 0 0;
    color: var(--color-text-grey);
}

.admin-slider-list {
    display: grid;
    gap: 14px;
}

.admin-slider-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 14px;
}

.admin-slider-thumb {
    height: 84px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-bg);
    display: grid;
    place-items: center;
    color: var(--color-text-grey);
    font-weight: 900;
}

.admin-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-slider-meta h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.admin-slider-meta p {
    margin: 0 0 6px;
    color: var(--color-text-dark);
}

.admin-slider-meta span {
    color: var(--color-text-grey);
    font-size: 13px;
}

.admin-slider-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger {
    background: var(--color-secondary-red);
    color: var(--color-white);
}

.admin-form {
    display: grid;
    gap: 12px;
}

.admin-form label {
    font-weight: 900;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
    background: var(--color-white);
}

.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-checkbox-row input {
    width: auto;
}

.admin-current-image {
    width: 180px;
    height: 110px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--color-border);
}

.admin-current-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 820px) {
    .admin-panel-header {
        display: grid;
    }

    .admin-slider-row {
        grid-template-columns: 1fr;
    }

    .admin-slider-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ============================================================
 * Phase 6.5 Production Slider/Admin Refinement
 * Version: Phase6-v1.5
 * ============================================================ */

/* ------------------------------------------------------------
 * Front Right Rail Ads-Style Slider
 * ------------------------------------------------------------ */
.right-rail-slider-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    padding: 16px;
}

.right-rail-slider-card::before {
    content: "";
    display: block;
    height: 0;
}

.right-rail-slider-card .right-rail-slider-window {
    height: 330px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.88);
}

.right-rail-slider-card::after {
    content: "Ads";
    position: absolute;
    top: 18px;
    left: 18px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    z-index: 4;
}

.right-rail-slider-window::before {
    content: "10";
    position: absolute;
    top: 16px;
    right: 18px;
    min-width: 44px;
    min-height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.88);
    color: #ffffff;
    font-weight: 900;
    z-index: 4;
}

.right-rail-slide {
    top: 86px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    inset: 86px 12px 12px 12px;
}

.right-rail-slide-image {
    height: 210px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.90), rgba(255, 212, 0, 0.82));
}

.right-rail-slide-body {
    padding: 10px 2px 0;
}

.right-rail-slide-body h3 {
    color: #ffffff;
    font-size: 16px;
}

.right-rail-ticker {
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    color: var(--color-main-blue);
    z-index: 5;
}

.right-rail-ticker span {
    font-size: 18px;
    color: var(--color-main-blue);
}

.right-rail-admin-link {
    margin-top: 12px;
    border: 1px solid rgba(0, 153, 255, 0.35);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 153, 255, 0.18);
}

.right-rail-admin-link:hover {
    background: rgba(0, 153, 255, 0.32);
}

/* ------------------------------------------------------------
 * Admin Slider Production Layout
 * ------------------------------------------------------------ */
.slider-admin-shell {
    max-width: 1180px;
    margin: 0 auto;
}

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

.admin-slider-workspace,
.admin-slider-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.admin-slider-management-card {
    min-width: 0;
}

.admin-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-section-title h2 {
    margin: 0;
    font-size: 22px;
}

.admin-section-title span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-main-blue-dark);
    font-weight: 900;
    font-size: 13px;
}

.admin-empty-state {
    display: grid;
    place-items: start;
    gap: 10px;
    border: 1px dashed var(--color-border);
    border-radius: 16px;
    padding: 22px;
    background: rgba(0, 153, 255, 0.04);
}

.admin-empty-state strong {
    font-size: 18px;
}

.admin-empty-state p {
    margin: 0;
    color: var(--color-text-grey);
}

.admin-slider-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-status-pill.is-active {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.admin-status-pill.is-inactive {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.admin-slider-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-slider-record-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text-grey);
    font-size: 12px;
    font-weight: 800;
}

.admin-form-group {
    display: grid;
    gap: 6px;
}

.admin-form-group small {
    color: var(--color-text-grey);
    line-height: 1.4;
}

.admin-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 14px;
    align-items: end;
}

.admin-active-row,
.admin-remove-image-row {
    min-height: 48px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
}

.admin-slider-preview-card,
.admin-slider-live-preview-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.admin-preview-phone {
    background: #0f172a;
    color: #ffffff;
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    overflow: hidden;
}

.admin-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-preview-header strong {
    font-size: 24px;
    font-weight: 900;
}

.admin-preview-header span {
    min-width: 44px;
    min-height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.88);
    font-weight: 900;
}

.admin-preview-ticker {
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    color: var(--color-main-blue);
    background: rgba(15, 23, 42, 0.92);
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 18px;
}

.admin-preview-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.90), rgba(255, 212, 0, 0.82));
}

.admin-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-preview-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--color-main-blue);
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.80), rgba(255, 212, 0, 0.82));
    font-size: 76px;
    font-weight: 900;
}

.admin-preview-title {
    margin-top: 14px;
    font-size: 17px;
    font-weight: 900;
    color: #ffffff;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .admin-slider-workspace,
    .admin-slider-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-slider-preview-card,
    .admin-slider-live-preview-card {
        order: -1;
    }
}

@media (max-width: 620px) {
    .admin-form-row {
        grid-template-columns: 1fr;
    }

    .admin-slider-row {
        gap: 12px;
    }

    .admin-slider-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-header-actions {
        display: grid;
        width: 100%;
    }
}

/* ============================================================
 * Phase 6.7 Front Slider Height + Colour Blend
 * Version: Phase6-v1.7
 * Purpose: Taller vertical image display without changing layout style
 * ============================================================ */
.right-rail-slider-card {
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 153, 255, 0.20), transparent 12rem),
        radial-gradient(circle at 90% 95%, rgba(255, 212, 0, 0.16), transparent 10rem),
        #111827;
}

.right-rail-slider-card .right-rail-slider-window {
    height: 560px;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.96)),
        rgba(15, 23, 42, 0.94);
}

.right-rail-slide {
    inset: 86px 12px 12px 12px;
}

.right-rail-slide-image {
    height: 410px;
}

.right-rail-slide-body {
    min-height: 54px;
}

.right-rail-ticker {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(0, 153, 255, 0.10)),
        rgba(15, 23, 42, 0.92);
}

@media (max-width: 1180px) {
    .right-rail-slider-card .right-rail-slider-window {
        height: 500px;
    }

    .right-rail-slide-image {
        height: 355px;
    }
}

/* ============================================================
 * Phase 7 Posts + Image Uploads
 * Version: Phase7-v1.0
 * ============================================================ */
.composer-form {
    align-items: flex-start;
}

.composer-fields {
    width: 100%;
    display: grid;
    gap: 10px;
}

.composer-textarea {
    width: 100%;
    min-height: 86px;
    resize: vertical;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-bg);
    color: var(--color-text-dark);
    padding: 14px 16px;
    line-height: 1.5;
}

.composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.composer-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-main-blue);
    font-weight: 900;
    cursor: pointer;
}

.composer-upload input {
    display: none;
}

.composer-visibility {
    min-height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-white);
    padding: 0 12px;
    font-weight: 800;
}

.post-flash {
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 800;
}

.post-flash-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.post-flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.feed-post-image {
    margin-top: 14px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

.feed-post-image img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

@media (max-width: 620px) {
    .composer-card {
        align-items: flex-start;
    }

    .composer-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .composer-upload,
    .composer-visibility,
    .composer-toolbar .btn {
        width: 100%;
    }
}

/* ============================================================
 * Phase 7.1 Local WYSIWYG Post Editor
 * Version: Phase7-v1.1
 * ============================================================ */
.trumbowyg-box,
.trumbowyg-editor {
    border-color: var(--color-border) !important;
    border-radius: 18px !important;
}

.trumbowyg-box {
    margin: 0 !important;
    overflow: hidden;
}

.trumbowyg-button-pane {
    background: var(--color-white) !important;
    border-bottom-color: var(--color-border) !important;
}

.trumbowyg-editor {
    min-height: 130px !important;
    background: var(--color-bg);
    color: var(--color-text-dark);
}

.composer-colour-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-white);
}

.composer-colour-wheel {
    width: 128px;
    height: 128px;
}

.feed-rich-content {
    color: var(--color-text-dark);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.feed-rich-content p {
    margin: 0 0 10px;
}

.feed-rich-content p:last-child {
    margin-bottom: 0;
}

.feed-rich-content a {
    color: var(--color-main-blue);
    font-weight: 800;
}

.feed-rich-content ul,
.feed-rich-content ol {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 22px;
}

@media (max-width: 620px) {
    .composer-colour-panel {
        display: grid;
    }
}

/* ============================================================
 * Phase 7.2 Header + Rich Editor Fix
 * Version: Phase7-v1.2
 * ============================================================ */

/* ------------------------------------------------------------
 * Restore full-width top navigation
 * ------------------------------------------------------------ */
.topbar {
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 0 18px 18px;
}

.topbar-inner {
    max-width: 1180px !important;
    width: 100%;
}

/* ------------------------------------------------------------
 * Local custom rich-text editor
 * ------------------------------------------------------------ */
.rich-post-editor {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-white);
}

.rich-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
}

.rich-editor-toolbar button,
.rich-editor-toolbar select {
    min-height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-text-dark);
    padding: 6px 10px;
    font-weight: 800;
    cursor: pointer;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar select:hover {
    border-color: var(--color-main-blue);
    color: var(--color-main-blue);
}

.rich-editor-surface {
    min-height: 180px;
    padding: 16px;
    background: var(--color-bg);
    color: var(--color-text-dark);
    line-height: 1.65;
    outline: none;
    overflow-wrap: anywhere;
}

.rich-editor-surface:empty::before {
    content: attr(data-placeholder);
    color: var(--color-text-grey);
}

.rich-editor-hidden-input {
    display: none;
}

.rich-editor-surface a {
    color: var(--color-main-blue);
    font-weight: 800;
}

.rich-editor-surface ul,
.rich-editor-surface ol {
    padding-left: 22px;
}

.trumbowyg-box {
    display: none !important;
}

@media (max-width: 620px) {
    .rich-editor-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .rich-editor-toolbar select,
    .rich-editor-toolbar button {
        width: 100%;
    }
}

/* ============================================================
 * Phase 7.3 Editor Dropdown Fix
 * Version: Phase7-v1.3
 * ============================================================ */
.rich-editor-toolbar select {
    min-width: 116px;
}

.rich-editor-toolbar select[data-editor-size] {
    min-width: 128px;
}

.rich-editor-toolbar button {
    min-width: 42px;
}

/* ============================================================
 * Phase 7.4 Inline Images + Tables + Read More
 * Version: Phase7-v1.4
 * ============================================================ */
.rich-editor-inline-image-input {
    display: none;
}

.rich-editor-surface img,
.feed-rich-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.rich-editor-surface table,
.feed-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    overflow: hidden;
    border-radius: 12px;
}

.rich-editor-surface th,
.rich-editor-surface td,
.feed-rich-content th,
.feed-rich-content td {
    border: 1px solid var(--color-border);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.rich-editor-surface th,
.feed-rich-content th {
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-text-dark);
    font-weight: 900;
}

.feed-rich-content.is-collapsed {
    max-height: calc(1.65em * 5);
    overflow: hidden;
    position: relative;
}

.feed-rich-content.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--color-card));
}

.feed-rich-content.is-expanded {
    max-height: none;
}

.read-more-toggle {
    margin: 8px 0 0;
    border: 0;
    background: transparent;
    color: var(--color-main-blue);
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.read-more-toggle:hover {
    color: var(--color-main-blue-dark);
}

/* ============================================================
 * Phase 7.5 Inline Image Alignment
 * Version: Phase7-v1.5
 * ============================================================ */
.rich-editor-surface img[data-editor-selected-image="1"] {
    outline: 3px solid var(--color-main-blue);
    outline-offset: 3px;
}

.rich-editor-surface img.post-image-align-left,
.feed-rich-content img.post-image-align-left {
    margin-left: 0;
    margin-right: auto;
}

.rich-editor-surface img.post-image-align-center,
.feed-rich-content img.post-image-align-center {
    margin-left: auto;
    margin-right: auto;
}

.rich-editor-surface img.post-image-align-right,
.feed-rich-content img.post-image-align-right {
    margin-left: auto;
    margin-right: 0;
}

@media (min-width: 720px) {
    .rich-editor-surface img.post-image-align-left,
    .rich-editor-surface img.post-image-align-right,
    .feed-rich-content img.post-image-align-left,
    .feed-rich-content img.post-image-align-right {
        max-width: 72%;
    }
}

/* ============================================================
 * Phase 7.6 Post Edit/Delete Grace Period
 * Version: Phase7-v1.6
 * ============================================================ */
.feed-card-header-with-actions {
    position: relative;
    padding-right: 150px;
}

.post-management-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-main-blue);
    font-weight: 900;
    cursor: pointer;
}

.post-action-link:hover {
    border-color: var(--color-main-blue);
    background: rgba(0, 153, 255, 0.08);
}

.post-action-danger {
    color: var(--color-secondary-red);
}

.post-edit-shell {
    display: grid;
    gap: 18px;
}

.post-edit-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.post-edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.post-edit-header h1 {
    margin: 0;
    font-size: 34px;
}

.post-edit-header p {
    margin: 8px 0 0;
    color: var(--color-text-grey);
}

.post-edit-form {
    display: grid;
    gap: 14px;
}

.post-edit-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.post-edit-featured-image {
    display: grid;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 14px;
}

.post-edit-featured-image img {
    max-width: 320px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--color-border);
}

@media (max-width: 720px) {
    .feed-card-header-with-actions {
        padding-right: 16px;
        padding-bottom: 56px;
    }

    .post-management-actions {
        top: auto;
        left: 16px;
        right: 16px;
        bottom: 0;
    }

    .post-edit-header,
    .post-edit-controls {
        display: grid;
    }
}

/* ============================================================
 * Phase 7.9 Composer Header + Collapsible Editor Controls
 * Version: Phase7-v1.9
 * ============================================================ */
.composer-header-panel,
.post-edit-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(0, 153, 255, 0.10), rgba(255, 212, 0, 0.10)),
        var(--color-white);
}

.composer-header-panel strong {
    display: block;
    color: var(--color-text-dark);
    font-size: 18px;
    font-weight: 900;
}

.composer-header-panel span {
    display: block;
    margin-top: 3px;
    color: var(--color-text-grey);
    font-size: 13px;
    line-height: 1.35;
}

.editor-controls-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(0, 153, 255, 0.30);
    border-radius: 999px;
    background: var(--color-main-blue);
    color: var(--color-white);
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.editor-controls-toggle:hover {
    background: var(--color-main-blue-dark);
}

.editor-controls-toggle span {
    color: inherit;
    font-size: 18px;
    line-height: 1;
}

.rich-editor-toolbar.is-collapsed {
    display: none;
}

.rich-editor-toolbar.is-open {
    display: flex;
}

@media (max-width: 720px) {
    .composer-header-panel,
    .post-edit-controls-header {
        display: grid;
        gap: 12px;
    }

    .editor-controls-toggle {
        width: 100%;
    }

    .rich-editor-toolbar.is-open {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
    }

    .rich-editor-toolbar.is-open select,
    .rich-editor-toolbar.is-open button {
        width: 100%;
        min-height: 42px;
    }

    .rich-editor-surface {
        min-height: 160px;
    }
}

/* ============================================================
 * Phase 8 Post Engagement
 * Version: Phase8-v1.0
 * ============================================================ */
.feed-card-actions form {
    display: contents;
}

.feed-card-actions button.is-liked {
    color: var(--color-main-blue);
    background: rgba(0, 153, 255, 0.10);
}

.comments-panel {
    border-top: 1px solid var(--color-border);
    padding: 12px 16px 16px;
    display: grid;
    gap: 12px;
}

.comment-list {
    display: grid;
    gap: 10px;
}

.comment-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 153, 255, 0.12);
    color: var(--color-main-blue);
    font-weight: 900;
}

.comment-body {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 10px 12px;
}

.comment-body strong {
    display: block;
    font-size: 14px;
}

.comment-body p {
    margin: 5px 0;
    line-height: 1.45;
}

.comment-body span {
    color: var(--color-text-grey);
    font-size: 12px;
}

.comment-delete-button {
    border: 0;
    background: transparent;
    color: var(--color-secondary-red);
    font-weight: 900;
    cursor: pointer;
    padding: 8px 0;
}

.comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.comment-form input {
    min-height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0 14px;
    background: var(--color-bg);
}

.comment-form button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    background: var(--color-main-blue);
    color: var(--color-white);
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 620px) {
    .comment-item {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .comment-delete-button {
        grid-column: 2;
        justify-self: start;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * Phase 9 User Profiles
 * Version: Phase9-v1.0
 * ============================================================ */
.profile-page-shell {
    display: grid;
    gap: 18px;
}

.profile-hero-card,
.profile-posts-card,
.profile-edit-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.profile-cover-large {
    height: 260px;
    background:
        linear-gradient(135deg, rgba(0, 153, 255, 0.95), rgba(255, 212, 0, 0.78)),
        var(--color-main-blue);
}

.profile-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 0 24px 24px;
}

.profile-avatar-large {
    width: 132px;
    height: 132px;
    margin-top: -66px;
    border: 5px solid var(--color-white);
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-main-blue);
    color: var(--color-white);
    display: grid;
    place-items: center;
    font-size: 54px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity h1 {
    margin: 0;
    font-size: 34px;
}

.profile-identity p {
    margin: 6px 0 0;
    color: var(--color-text-grey);
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 18px;
    padding: 0 24px 24px;
}

.profile-detail-grid h3 {
    margin: 0 0 8px;
}

.profile-detail-grid p {
    margin: 0;
    color: var(--color-text-grey);
    line-height: 1.6;
}

.profile-detail-grid a {
    color: var(--color-main-blue);
    font-weight: 900;
}

.profile-posts-card,
.profile-edit-card {
    padding: 24px;
}

.profile-posts-card h2 {
    margin: 0 0 16px;
}

.profile-muted {
    color: var(--color-text-grey);
}

.profile-post-list {
    display: grid;
    gap: 14px;
}

.profile-post-item {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px;
    background: var(--color-white);
}

.profile-post-item > span {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text-grey);
    font-size: 13px;
}

.profile-post-item img {
    max-width: 100%;
    border-radius: 16px;
    margin-top: 12px;
}

.profile-edit-form {
    display: grid;
    gap: 16px;
}

.profile-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 720px) {
    .profile-cover-large {
        height: 180px;
    }

    .profile-main-row {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center;
    }

    .profile-avatar-large {
        margin-left: auto;
        margin-right: auto;
    }

    .profile-detail-grid,
    .profile-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * Phase 9.1 Profile Page Right Rail Safety
 * Version: Phase9-v1.1
 * Purpose: Prevent global clock/slider overlap on profile pages
 * ============================================================ */
body:has(.profile-page-shell) .global-clock-sidebar,
body:has(.profile-page-shell) .social-sidebar-right {
    display: none !important;
}

body:has(.profile-page-shell) .page-shell {
    max-width: 1180px;
}

body:has(.profile-page-shell) .profile-page-shell {
    max-width: 100%;
}

@media (min-width: 1081px) {
    body:has(.profile-page-shell) .profile-page-shell {
        width: 100%;
    }
}

/* ============================================================
 * Phase 9.2 Dashboard Profile Images
 * Version: Phase9-v1.2
 * ============================================================ */
.profile-cover-mini img,
.profile-avatar-mini img,
.composer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-cover-mini {
    overflow: hidden;
}

.profile-avatar-mini,
.composer-avatar {
    overflow: hidden;
}

/* ============================================================
 * Phase 10 Friends / People Directory
 * Version: Phase10-v1.0
 * ============================================================ */
.network-page-shell {
    display: grid;
    gap: 18px;
}

.network-header-card,
.network-section-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.network-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.network-header-card h1,
.network-section-card h2 {
    margin: 0;
}

.network-header-card p {
    margin: 8px 0 0;
    color: var(--color-text-grey);
}

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

.people-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.person-card {
    position: relative;
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 0 16px 16px;
    text-align: center;
}

.person-cover {
    height: 92px;
    margin: 0 -16px;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.92), rgba(255, 212, 0, 0.78));
}

.person-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-avatar {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: -39px auto 12px;
    border: 4px solid var(--color-white);
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-main-blue);
    color: var(--color-white);
    font-size: 30px;
    font-weight: 900;
}

.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-avatar-small {
    width: 50px;
    height: 50px;
    margin: 0;
    font-size: 20px;
    border-width: 2px;
}

.person-avatar-floating {
    margin-top: 18px;
}

.person-card h2 {
    margin: 0;
    font-size: 20px;
}

.person-card p {
    margin: 7px 0 14px;
    min-height: 22px;
    color: var(--color-text-grey);
}

.person-actions {
    display: grid;
    gap: 8px;
}

.person-actions form {
    display: grid;
}

.network-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-main-blue-dark);
    font-weight: 900;
    padding: 0 14px;
}

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

.request-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 12px;
}

.request-row strong,
.request-row span {
    display: block;
}

.request-row span {
    margin-top: 3px;
    color: var(--color-text-grey);
    font-size: 13px;
}

.profile-friend-actions form {
    display: inline-flex;
}

@media (max-width: 980px) {
    .people-grid,
    .people-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .network-header-card {
        display: grid;
    }
}

@media (max-width: 620px) {
    .people-grid,
    .people-grid-compact {
        grid-template-columns: 1fr;
    }

    .request-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .request-row form {
        grid-column: 1 / -1;
        display: grid;
    }
}

/* ============================================================
 * Phase10 Search + Middle Ticker + Post Title + Media Players
 * Version: Phase10-v1.1
 * ============================================================ */
.dashboard-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 12px;
}

.dashboard-search-card input {
    min-height: 42px;
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0 14px;
    background: var(--color-bg);
}

.dashboard-search-card button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--color-main-blue);
    color: var(--color-white);
    font-weight: 900;
    padding: 0 14px;
    cursor: pointer;
}

.middle-feed-ticker {
    overflow: hidden;
    min-height: 46px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 153, 255, 0.24);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(0, 153, 255, 0.12), rgba(255, 212, 0, 0.10)),
        var(--color-white);
    box-shadow: var(--shadow-soft);
    color: var(--color-main-blue-dark);
    font-weight: 900;
    white-space: nowrap;
}

.middle-feed-ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: middleTickerScroll 26s linear infinite;
}

@keyframes middleTickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.rich-title-editor {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-white);
}

.rich-title-surface {
    min-height: 52px;
    padding: 14px 16px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
}

.post-title-display {
    margin-bottom: 12px;
    color: var(--color-text-dark);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.25;
}

.post-title-display h1,
.post-title-display h2,
.post-title-display h3,
.post-title-display p {
    margin: 0;
}

.blue-wave-audio-player {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 153, 255, 0.45), transparent 11rem),
        linear-gradient(135deg, #0f172a, #0b3d66);
    color: var(--color-white);
    border: 1px solid rgba(0, 153, 255, 0.35);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.audio-wave-mark {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
}

.audio-wave-mark span {
    width: 7px;
    border-radius: 999px;
    background: var(--color-main-blue);
    animation: audioWavePulse 1.2s ease-in-out infinite;
}

.audio-wave-mark span:nth-child(1) { height: 24px; animation-delay: 0s; }
.audio-wave-mark span:nth-child(2) { height: 46px; animation-delay: .1s; }
.audio-wave-mark span:nth-child(3) { height: 64px; animation-delay: .2s; }
.audio-wave-mark span:nth-child(4) { height: 38px; animation-delay: .3s; }
.audio-wave-mark span:nth-child(5) { height: 52px; animation-delay: .4s; }

@keyframes audioWavePulse {
    0%, 100% {
        transform: scaleY(.72);
        opacity: .7;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.audio-meta {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.audio-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-meta audio {
    width: 100%;
}

.blue-cinematic-video-player {
    margin-top: 14px;
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
    border: 1px solid rgba(0, 153, 255, 0.32);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.blue-cinematic-video-player video {
    display: block;
    width: 100%;
    max-height: 520px;
    background: #020617;
}

.video-caption {
    padding: 12px 16px;
    color: var(--color-white);
    font-weight: 900;
    background:
        linear-gradient(90deg, rgba(0, 153, 255, 0.24), rgba(255, 212, 0, 0.08)),
        #0f172a;
}

.search-page-shell,
.search-results-grid {
    display: grid;
    gap: 18px;
}

.search-results-grid {
    grid-template-columns: 1fr 1fr;
}

.search-results-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.search-results-card h1,
.search-results-card h2 {
    margin: 0 0 14px;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-page-form input {
    min-height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0 16px;
    background: var(--color-bg);
}

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

.search-result-row,
.search-post-result {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 14px;
    background: var(--color-white);
}

.search-result-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.search-result-row strong,
.search-result-row span,
.search-post-result strong,
.search-post-result span {
    display: block;
}

.search-result-row span,
.search-post-result span {
    color: var(--color-text-grey);
    font-size: 13px;
    margin-top: 3px;
}

.search-post-result p {
    color: var(--color-text-grey);
    line-height: 1.5;
}

.search-post-result a {
    color: var(--color-main-blue);
    font-weight: 900;
}

@media (max-width: 820px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .search-page-form,
    .dashboard-search-card {
        grid-template-columns: 1fr;
    }

    .blue-wave-audio-player {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * Phase10-v1.4 Header Digital Date/Time + Rail Scope Fix
 * ============================================================ */
.topbar-datetime {
    min-width: 178px;
    display: grid;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-white);
    line-height: 1.1;
}

.topbar-datetime span {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.9;
}

.topbar-datetime strong {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

@media (max-width: 860px) {
    .topbar-datetime {
        min-width: auto;
        padding: 7px 10px;
    }

    .topbar-datetime span {
        display: none;
    }

    .topbar-datetime strong {
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .topbar-datetime {
        display: none;
    }
}

/* ============================================================
 * Phase10-v1.1 Extended Profile Fields
 * ============================================================ */
.profile-form-section {
    display: grid;
    gap: 14px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(0, 153, 255, 0.045), rgba(255, 212, 0, 0.04)),
        var(--color-white);
}

.profile-form-section h2 {
    margin: 0;
    font-size: 22px;
}

.profile-form-section select,
.profile-form-section input,
.profile-form-section textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
    background: var(--color-white);
}

.profile-soft-pill {
    display: inline-flex;
    margin-top: 8px;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-main-blue-dark);
    font-weight: 900;
    font-size: 13px;
}

.profile-detail-grid-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-detail-card {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px;
    background: var(--color-white);
}

.profile-detail-card h3 {
    margin: 0 0 10px;
}

.profile-detail-card p {
    margin: 0 0 8px;
}

.profile-detail-card p:last-child {
    margin-bottom: 0;
}

.profile-detail-card-wide {
    grid-column: span 1;
}

@media (max-width: 720px) {
    .profile-detail-grid-expanded {
        grid-template-columns: 1fr;
    }

    .profile-form-section {
        padding: 14px;
    }
}

/* ============================================================
 * Phase11-v1.0 Groups Foundation
 * ============================================================ */
.profile-detail-card-wide {
    min-height: 120px;
}

.person-card .network-pill {
    width: 100%;
}

/* ============================================================
 * Phase 11 Group Members Dropdown Modal
 * Version: Phase11-v1.1
 * Purpose: Responsive group member visibility panel
 * ============================================================ */
.group-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.group-hero-actions form {
    display: inline-flex;
}

.group-members-toggle {
    gap: 8px;
}

.group-members-toggle span {
    display: inline-grid;
    min-width: 28px;
    min-height: 28px;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0, 153, 255, 0.12);
    color: var(--color-main-blue);
    font-size: 13px;
    font-weight: 900;
}

.group-members-panel {
    margin: 0 24px 24px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(0, 153, 255, 0.06), rgba(255, 212, 0, 0.06)),
        var(--color-white);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
}

.group-members-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.group-members-panel-header strong,
.group-members-panel-header span {
    display: block;
}

.group-members-panel-header strong {
    color: var(--color-text-dark);
    font-size: 18px;
    font-weight: 900;
}

.group-members-panel-header span {
    margin-top: 3px;
    color: var(--color-text-grey);
    font-size: 13px;
}

.group-members-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text-dark);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.group-members-close:hover {
    color: var(--color-main-blue);
    border-color: var(--color-main-blue);
    background: rgba(0, 153, 255, 0.08);
}

.group-members-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.group-member-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-card);
}

.group-member-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-main-blue);
    color: var(--color-white);
    font-weight: 900;
}

.group-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-member-meta {
    min-width: 0;
}

.group-member-meta strong,
.group-member-meta span {
    display: block;
}

.group-member-meta strong {
    overflow: hidden;
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-member-meta span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--color-text-grey);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-member-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-main-blue);
    font-weight: 900;
}

.group-member-profile-link:hover {
    border-color: var(--color-main-blue);
    background: rgba(0, 153, 255, 0.08);
}

@media (max-width: 860px) {
    .group-hero-actions {
        justify-content: center;
    }

    .group-hero-actions,
    .group-hero-actions form,
    .group-hero-actions .btn {
        width: 100%;
    }

    .group-members-panel {
        margin: 0 16px 18px;
    }

    .group-members-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .group-members-panel {
        padding: 12px;
    }

    .group-members-panel-header {
        align-items: flex-start;
    }

    .group-member-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .group-member-profile-link {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ============================================================
 * Phase 11 Group Cleanup v1.2
 * Purpose: Group logo, country field, members panel, WYSIWYG group composer
 * ============================================================ */
.group-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.group-hero-actions form {
    display: inline-flex;
}

.group-members-toggle {
    gap: 8px;
}

.group-members-toggle span {
    display: inline-grid;
    min-width: 28px;
    min-height: 28px;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0, 153, 255, 0.12);
    color: var(--color-main-blue);
    font-size: 13px;
    font-weight: 900;
}

.group-members-panel {
    margin: 0 24px 24px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-white);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
}

.group-members-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.group-members-panel-header strong,
.group-members-panel-header span {
    display: block;
}

.group-members-panel-header strong {
    font-size: 18px;
    font-weight: 900;
}

.group-members-panel-header span {
    margin-top: 3px;
    color: var(--color-text-grey);
    font-size: 13px;
}

.group-members-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text-dark);
    font-size: 24px;
    cursor: pointer;
}

.group-members-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.group-member-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-card);
}

.group-member-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-main-blue);
    color: var(--color-white);
    font-weight: 900;
}

.group-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-member-meta strong,
.group-member-meta span {
    display: block;
}

.group-member-meta strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-member-meta span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--color-text-grey);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-member-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-main-blue);
    font-weight: 900;
}

.group-composer-card {
    align-items: flex-start;
}

@media (max-width: 860px) {
    .group-hero-actions,
    .group-hero-actions form,
    .group-hero-actions .btn {
        width: 100%;
    }

    .group-members-panel {
        margin: 0 16px 18px;
    }

    .group-members-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .group-member-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .group-member-profile-link {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ============================================================
 * Phase 10 User Roles Admin UI
 * Version: Phase10-user-roles-v1.0
 * ============================================================ */
.admin-user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-user-management-list {
    display: grid;
    gap: 12px;
}

.admin-user-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.6fr) minmax(120px, 0.6fr) minmax(160px, 0.8fr) auto;
    gap: 12px;
    align-items: end;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 14px;
    background: var(--color-white);
}

.admin-user-identity {
    display: grid;
    gap: 4px;
}

.admin-user-identity strong {
    color: var(--color-text-dark);
    font-size: 16px;
}

.admin-user-identity span,
.admin-user-identity small,
.admin-help-text {
    color: var(--color-text-grey);
    line-height: 1.45;
}

.admin-user-row select,
.admin-user-row input,
.admin-user-form-grid select,
.admin-user-form-grid input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-white);
    padding: 0 12px;
}

.admin-user-row select:disabled {
    background: var(--color-bg);
    color: var(--color-text-grey);
}

@media (max-width: 1080px) {
    .admin-user-row {
        grid-template-columns: 1fr 1fr;
    }

    .admin-user-identity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .admin-user-form-grid,
    .admin-user-row {
        grid-template-columns: 1fr;
    }

    .admin-user-row .btn {
        width: 100%;
    }
}

/* ============================================================
 * Phase 10 Admin User Fields
 * Version: Phase10-admin-user-fields-v1.0
 * ============================================================ */
@media (min-width: 1081px) {
    .admin-user-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
 * Phase 10 Dark Mode + Action Icons + Advertise Link
 * Version: Phase10-darkmode-ads-icons-v1.0
 * ============================================================ */

html[data-theme="dark"] {
    --color-text-dark: #f8fafc;
    --color-text-grey: #cbd5e1;
    --color-white: #0f172a;
    --color-bg: #020617;
    --color-card: #0f172a;
    --color-border: rgba(148, 163, 184, 0.22);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(0, 153, 255, 0.16), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(255, 212, 0, 0.10), transparent 28rem),
        #020617;
}

html[data-theme="dark"] .topbar {
    background: #0284c7;
}

html[data-theme="dark"] .composer-header-panel,
html[data-theme="dark"] .post-edit-controls-header,
html[data-theme="dark"] .profile-form-section,
html[data-theme="dark"] .middle-feed-ticker {
    background:
        linear-gradient(135deg, rgba(0, 153, 255, 0.14), rgba(255, 212, 0, 0.06)),
        #111827;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .rich-editor-surface,
html[data-theme="dark"] .composer-textarea {
    background: #111827;
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] .feed-card-actions button,
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .post-action-link {
    background: #111827;
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.24);
}

.theme-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.theme-toggle-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 900;
}

@property --x {
    syntax: '<angle>';
    inherits: true;
    initial-value: 1deg;
}

@property --c {
    syntax: '<color>';
    inherits: true;
    initial-value: #0000;
}

.neon {
    --x: 1deg;
    --c: #0000;
    --color: #0ff;
    font-size: 0.72rem;
    appearance: none;
    position: relative;
    aspect-ratio: 2;
    border-radius: 100em;
    background:
        linear-gradient(to bottom right, #0001, #0000),
        #444143;
    width: 3em;
    box-shadow:
        inset 0 0 0.25em -0.25em #0008,
        inset 0.05em 0.05em 0.2em #000811,
        inset -0.05em -0.05em 0.15em 0.05em #ccc1,
        0 0 0 0.11em #38bdf8;
    transition: --x 0.5s, --c 0.5s, box-shadow 0.5s;
    filter: drop-shadow(0 0 0.2em var(--c));
    cursor: pointer;
}

.neon::before {
    content: "";
    position: absolute;
    height: 80%;
    aspect-ratio: 1;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(#0000 15%, #343133 16%, #545153 20%),
        radial-gradient(var(--c) 17%, #0000 0),
        #545153;
    box-shadow:
        inset -0.05em -0.05em 0.1em #0008,
        inset 0.05em 0.05em 0.1em #ffffff22,
        inset 0.05em 0em 0.1em -0.065em var(--c),
        0.1em 0.1em 0.15em #000c;
    border-radius: 50%;
    transition: left 0.5s, box-shadow 0.1s;
}

.neon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 0.25em);
    height: calc(100% + 0.25em);
    border: 0.1em solid var(--color);
    border-radius: 100em;
    -webkit-mask: conic-gradient(from calc(270deg - var(--x)), #000 calc(2 * var(--x)), #0001 0);
    box-shadow: 0 0 0 2em #0000;
}

.neon:hover {
    --x: 3deg;
    --c: rgba(0, 255, 255, 0.25);
}

.neon:checked {
    --x: 180deg;
    --c: var(--color);
}

.neon:checked::before {
    left: 75%;
}

.post-action-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.feed-card-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.advertise-page-shell {
    display: grid;
    gap: 18px;
}

.advertise-hero-card {
    min-height: 240px;
}

@media (max-width: 720px) {
    .theme-toggle-label {
        display: none;
    }

    .neon {
        font-size: 0.62rem;
    }

    .post-action-icon {
        width: 18px;
        height: 18px;
        margin-right: 4px;
    }
}

@media (prefers-reduced-motion) {
    .neon,
    .neon::before,
    .neon::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================================
 * Phase10-v1.0 Background Slider + Back-To-Top
 * Purpose: User dashboard backgrounds, admin home slider, and page progress button
 * ============================================================ */
.app-background-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.user-background-layer {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.user-background-layer::after,
.home-background-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 153, 255, 0.18), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(255, 212, 0, 0.18), transparent 28rem),
        rgba(243, 244, 246, 0.72);
    backdrop-filter: blur(1px);
}

[data-theme="dark"] .user-background-layer::after,
[data-theme="dark"] .home-background-slider::after {
    background:
        radial-gradient(circle at top left, rgba(0, 153, 255, 0.18), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(255, 212, 0, 0.10), transparent 28rem),
        rgba(3, 7, 18, 0.78);
}

.home-background-slide,
.home-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 900ms ease, transform 1600ms ease;
}

.home-background-slide {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-background-video {
    object-fit: cover;
}

.home-background-slide.is-active,
.home-background-video.is-active {
    opacity: 1;
    transform: scale(1);
}

.profile-background-preview {
    width: min(420px, 100%);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-bg);
}

.profile-background-preview img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.progress-wrap {
    position: fixed;
    right: 28px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    z-index: 10000;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    background:
        radial-gradient(circle at 35% 30%, rgba(0, 153, 255, 0.98), rgba(0, 119, 204, 0.94)),
        #0099ff;
    box-shadow:
        inset 0 0 0 2px rgba(255, 212, 0, 0.38),
        0 0 20px rgba(0, 153, 255, 0.62),
        0 14px 30px rgba(17, 24, 39, 0.24);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap::before {
    content: "↑";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--color-main-blue);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    z-index: 2;
}

.progress-wrap:hover {
    box-shadow:
        inset 0 0 0 2px rgba(0, 153, 255, 0.26),
        0 0 18px rgba(0, 153, 255, 0.30),
        0 18px 34px rgba(17, 24, 39, 0.22);
}

.progress-wrap svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-wrap svg path {
    fill: none;
    stroke: var(--color-accent-yellow);
    stroke-width: 4;
    box-sizing: border-box;
    transition: stroke-dashoffset 10ms linear;
}

[data-theme="dark"] .progress-wrap {
    background:
        radial-gradient(circle at 35% 30%, rgba(0, 153, 255, 0.98), rgba(0, 119, 204, 0.96)),
        #0099ff;
    box-shadow:
        inset 0 0 0 2px rgba(255, 212, 0, 0.46),
        0 0 24px rgba(0, 153, 255, 0.72),
        0 18px 34px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .progress-wrap::before {
    color: #ffffff;
}

[data-theme="dark"] .progress-wrap svg path {
    stroke: var(--color-accent-yellow);
}

@media (max-width: 720px) {
    .progress-wrap {
        right: 18px;
        bottom: 76px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
 * Phase10-v1.1 Home Slider Upload UI + Stronger Back-To-Top Glow
 * Purpose: Admin local upload controls and clearer scroll progress button
 * ============================================================ */
.admin-home-slider-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.progress-wrap:hover,
.progress-wrap:focus-visible {
    box-shadow:
        inset 0 0 0 2px rgba(255, 212, 0, 0.62),
        0 0 28px rgba(0, 153, 255, 0.82),
        0 0 52px rgba(255, 212, 0, 0.26),
        0 18px 34px rgba(17, 24, 39, 0.24);
}

@media (max-width: 720px) {
    .admin-home-slider-upload-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
 * Phase10-v1.2 Home Gallery Admin Manager
 * Purpose: Professional local image/video gallery review and delete controls
 * ============================================================ */
.home-gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.home-gallery-admin-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.home-gallery-admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-gallery-admin-heading h3 {
    margin: 0;
    font-size: 20px;
}

.home-gallery-admin-heading span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-main-blue-dark);
    font-size: 13px;
    font-weight: 900;
}

.home-gallery-asset-grid {
    display: grid;
    gap: 12px;
}

.home-gallery-asset-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-white);
}

.home-gallery-asset-preview {
    height: 78px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg);
}

.home-gallery-asset-preview img,
.home-gallery-asset-preview video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-gallery-asset-meta {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.home-gallery-asset-meta strong,
.home-gallery-asset-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-gallery-asset-meta strong {
    color: var(--color-text-dark);
    font-size: 15px;
    font-weight: 900;
}

.home-gallery-asset-meta span {
    color: var(--color-text-grey);
    font-size: 12px;
}

.home-gallery-asset-card form {
    display: grid;
}

@media (max-width: 1080px) {
    .home-gallery-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-gallery-asset-card {
        grid-template-columns: 1fr;
    }

    .home-gallery-asset-preview {
        height: 180px;
    }

    .home-gallery-asset-card .btn {
        width: 100%;
    }
}


/* ============================================================
 * Hotfix Phase10-v1.3 Header + Back-To-Top Visibility
 * ============================================================ */
.brand {
    white-space: nowrap;
}

.brand-text {
    font-size: 21px;
    line-height: 1.05;
    font-weight: 750;
}

.desktop-nav a {
    font-size: 16px;
    font-weight: 650;
    padding: 9px 12px;
}

.topbar-inner {
    gap: 14px;
}

.progress-wrap {
    box-shadow:
        inset 0 0 0 2px rgba(255, 212, 0, 0.52),
        0 0 22px rgba(255, 47, 47, 0.78),
        0 0 48px rgba(255, 47, 47, 0.34),
        0 14px 30px rgba(17, 24, 39, 0.24) !important;
}

.progress-wrap::before {
    content: "↑";
    color: #ffd400 !important;
    font-size: 31px;
    font-weight: 1000;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 0 8px rgba(255, 212, 0, 0.72);
}

.progress-wrap:hover,
.progress-wrap:focus-visible {
    box-shadow:
        inset 0 0 0 2px rgba(255, 212, 0, 0.72),
        0 0 30px rgba(255, 47, 47, 0.92),
        0 0 62px rgba(255, 47, 47, 0.48),
        0 18px 34px rgba(17, 24, 39, 0.26) !important;
}

.progress-wrap svg path {
    stroke: var(--color-accent-yellow) !important;
}

@media (max-width: 1080px) {
    .brand-text {
        font-size: 18px;
    }

    .desktop-nav a {
        font-size: 15px;
        padding: 8px 10px;
    }

    .topbar-inner {
        gap: 10px;
    }
}


/* ============================================================
 * Phase10-signup-email-verify-v1.0
 * Public sign up UI + back-to-top glow removal
 * ============================================================ */
.progress-wrap,
.progress-wrap:hover,
.progress-wrap:focus-visible,
[data-theme="dark"] .progress-wrap {
    box-shadow:
        inset 0 0 0 2px rgba(255, 212, 0, 0.58),
        0 14px 30px rgba(17, 24, 39, 0.22) !important;
}

.progress-wrap::before,
[data-theme="dark"] .progress-wrap::before {
    color: #ffd400 !important;
    font-size: 31px;
    font-weight: 1000;
}

.signup-shell {
    max-width: 860px;
    margin: 0 auto;
}

.auth-card.signup-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.signup-card h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.05;
}

.signup-card > p {
    margin: 10px 0 18px;
    color: var(--color-text-grey);
    line-height: 1.6;
}

.signup-form {
    margin-top: 18px;
}

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

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

.auth-switch-link {
    margin-top: 18px;
    color: var(--color-text-grey);
}

.auth-switch-link a {
    color: var(--color-main-blue);
    font-weight: 900;
}

@media (max-width: 720px) {
    .auth-card.signup-card {
        padding: 22px;
    }

    .signup-grid {
        grid-template-columns: 1fr;
    }

    .signup-grid-full {
        grid-column: auto;
    }
}


/* Phase10-v1.2 Categories + Ads Booking */
.composer-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.composer-category-grid select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-white);
    color: var(--color-text-dark);
    padding: 0 12px;
}

.post-category-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-main-blue-dark);
    border: 1px solid rgba(0, 153, 255, 0.20);
    font-size: 12px;
    font-weight: 900;
}

.ads-booking-shell {
    max-width: 980px;
    margin: 0 auto;
}

.ads-hero-card h1 {
    letter-spacing: -0.03em;
}

.ads-booking-card {
    display: grid;
    gap: 18px;
}

.ads-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ads-stepper button {
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text-grey);
    font-weight: 900;
    cursor: pointer;
}

.ads-stepper button.is-active {
    background: var(--color-main-blue);
    color: #ffffff;
    border-color: var(--color-main-blue);
}

.ads-step-panel {
    display: none;
    gap: 16px;
}

.ads-step-panel.is-active {
    display: grid;
}

.ads-step-panel h2 {
    margin: 0;
    font-size: 26px;
}

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

.ads-form-grid label {
    display: grid;
    gap: 7px;
    color: var(--color-text-dark);
    font-weight: 900;
}

.ads-form-grid input,
.ads-form-grid select,
.ads-form-grid textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 12px;
    background: var(--color-white);
    color: var(--color-text-dark);
}

.ads-wide {
    grid-column: 1 / -1;
}

.ads-pricing-card,
.ads-review-box {
    border: 1px solid rgba(0, 153, 255, 0.22);
    border-radius: 18px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(0, 153, 255, 0.10), rgba(255, 212, 0, 0.08)),
        var(--color-white);
}

.ads-pricing-card strong {
    display: block;
    font-size: 34px;
    color: var(--color-main-blue);
}

.ads-pricing-card span,
.ads-review-box p {
    color: var(--color-text-grey);
}

.ads-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.ads-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .composer-category-grid,
    .ads-form-grid,
    .ads-stepper {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * Phase10-auth-ui-v1.0 Login / Signup Split Auth UI
 * Named slider: auth_left_panel_slider
 * ============================================================ */
.auth-redesign-shell {
    width: 100%;
    min-height: calc(100vh - 90px);
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
    background: #ffffff;
}

.auth-redesign-left {
    position: relative;
    min-height: calc(100vh - 90px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 28px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.10) 0 18%, transparent 19%),
        linear-gradient(135deg, #0ea5e9 0%, #178ee4 48%, #247ad3 100%);
    color: #ffffff;
}

.auth-radial-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.auth-radial-rings span {
    position: absolute;
    width: 28vw;
    height: 28vw;
    min-width: 280px;
    min-height: 280px;
    border-radius: 999px;
    border: 90px solid rgba(255, 255, 255, 0.07);
    animation: padareAuthRingPulse 7s ease-in-out infinite;
}

.auth-radial-rings span:nth-child(2) {
    width: 42vw;
    height: 42vw;
    animation-delay: 0.8s;
}

.auth-radial-rings span:nth-child(3) {
    width: 58vw;
    height: 58vw;
    animation-delay: 1.6s;
}

.auth-radial-rings span:nth-child(4) {
    width: 74vw;
    height: 74vw;
    animation-delay: 2.4s;
}

@keyframes padareAuthRingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.72;
    }

    50% {
        transform: scale(1.045);
        opacity: 0.36;
    }
}

.auth-left-content {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    text-align: center;
}

.auth-left-image-frame {
    position: relative;
    width: 190px;
    height: 230px;
    margin: 0 auto 34px;
    border-radius: 36% 44% 34% 48%;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.28);
    background: rgba(255, 255, 255, 0.20);
}

.auth-left-slide,
.auth-left-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-left-slide {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 900ms ease, transform 1200ms ease;
}

.auth-left-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.auth-left-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
}

.auth-left-placeholder img {
    position: static;
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.auth-left-content h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
}

.auth-left-content p {
    max-width: 390px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.65;
}

.auth-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.auth-slider-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    transition: width 200ms ease, background 200ms ease;
}

.auth-slider-dots span.is-active {
    width: 26px;
    background: #ffffff;
}

.auth-redesign-right {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(22px, 5vw, 78px);
    background: #ffffff;
}

.auth-home-button {
    width: min(740px, 100%);
    display: block;
    margin: 0 auto 42px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #0ea5e9;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.86rem;
    text-decoration: none;
}

.auth-redesign-card {
    width: min(560px, 100%);
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.auth-brand-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.auth-brand-block img {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.auth-brand-block h1 {
    margin: 0;
    color: #0ea5e9;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.auth-intro-text {
    max-width: 430px;
    margin: 0 auto 36px;
    color: #64748b;
    text-align: center;
    line-height: 1.65;
    font-size: 1.02rem;
}

.auth-redesign-form {
    width: min(520px, 100%);
    margin: 0 auto;
}

.auth-redesign-form label,
.auth-redesign-form .admin-form-group label {
    display: block;
    margin: 0 0 12px;
    color: #020617;
    font-weight: 800;
    font-size: 0.96rem;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    margin-bottom: 22px;
    padding: 0 18px;
    border-radius: 8px;
    background: #f8fafc;
}

.auth-input-wrap span {
    color: #475569;
}

.auth-input-wrap input,
.auth-redesign-form input,
.auth-redesign-form select,
.auth-redesign-form textarea {
    width: 100%;
    border: 0;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
}

.auth-redesign-form .admin-form-group input {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 8px;
    background: #f8fafc;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 26px;
}

.auth-check-label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    font-weight: 700 !important;
}

.auth-check-label input {
    width: auto;
}

.auth-muted-link,
.auth-switch-link a {
    color: #08aebd;
    text-decoration: none;
    font-weight: 700;
}

.auth-submit-button {
    width: 100%;
    min-height: 58px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #12b6c6;
    border-color: #12b6c6;
}

.auth-switch-link {
    margin-top: 34px;
    text-align: center;
    color: #020617;
    font-weight: 700;
}

.signup-shell .auth-redesign-card {
    width: min(720px, 100%);
}

.signup-shell .auth-home-button {
    margin-bottom: 24px;
}

.signup-shell .auth-intro-text {
    margin-bottom: 24px;
}

.signup-shell .signup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.signup-shell .signup-grid-full {
    grid-column: 1 / -1;
}

.admin-auth-slider-title {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.auth-gallery-asset-preview {
    aspect-ratio: 4 / 5;
}

.auth-gallery-asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 980px) {
    .auth-redesign-shell {
        grid-template-columns: 1fr;
    }

    .auth-redesign-left {
        min-height: 440px;
        padding: 42px 20px;
    }

    .auth-redesign-right {
        min-height: auto;
        padding: 34px 18px 80px;
    }

    .auth-radial-rings span {
        border-width: 64px;
    }
}

@media (max-width: 640px) {
    .auth-redesign-left {
        min-height: 390px;
    }

    .auth-left-image-frame {
        width: 150px;
        height: 185px;
        margin-bottom: 24px;
    }

    .auth-home-button {
        margin-bottom: 24px;
    }

    .auth-brand-block {
        flex-direction: column;
        gap: 8px;
    }

    .auth-brand-block img {
        width: 72px;
        height: 72px;
    }

    .auth-form-row,
    .signup-shell .signup-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
 * Phase10-auth-ui-v1.1 Auth Typography Softening
 * Purpose: Reduce overly bold black text on login/signup mobile UI
 * ============================================================ */
.auth-redesign-form label,
.auth-redesign-form .admin-form-group label {
    color: #334155;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.auth-check-label,
.auth-switch-link {
    color: #334155;
    font-weight: 600 !important;
}

.auth-switch-link {
    font-size: 1rem;
}

.auth-muted-link,
.auth-switch-link a {
    font-weight: 600;
}

.auth-submit-button {
    font-weight: 700;
}

@media (max-width: 640px) {
    .auth-redesign-form label,
    .auth-redesign-form .admin-form-group label {
        font-size: 0.94rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .auth-check-label,
    .auth-switch-link {
        font-size: 0.95rem;
        font-weight: 600 !important;
    }
}

/* ============================================================
 * Phase10-UI-Typography-v1.0 GLOBAL FONT SYSTEM
 * Purpose: Replace heavy bold UI with Montserrat system
 * ============================================================ */

/* ---- Import Font (LOCAL-FRIENDLY CDN fallback) ---- */

/* ---- Base Font ---- */
html, body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: #334155; /* softer than black */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
 * GLOBAL TEXT NORMALIZATION
 * ============================================================ */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #0f172a;
}

/* Labels (THIS FIXES YOUR MAIN ISSUE) */
label,
.admin-form-group label,
.auth-redesign-form label {
    font-weight: 500 !important;
    color: #334155 !important;
}

/* Navigation (sidebar + top) */
.sidebar-left a,
.desktop-nav a,
.mobile-drawer-nav a {
    font-weight: 500;
    color: #1e293b;
}

/* Cards / Titles */
.post-card h2,
.post-card h3,
.news-feed-title {
    font-weight: 600;
}

/* Buttons */
.btn,
button {
    font-weight: 600;
}

/* Light text */
small,
.auth-intro-text {
    font-weight: 400;
    color: #64748b;
}

/* Links */
a {
    font-weight: 500;
}

/* ============================================================
 * AUTH SPECIFIC SOFTENING
 * ============================================================ */

.auth-check-label,
.auth-switch-link {
    font-weight: 500 !important;
    color: #334155;
}

.auth-muted-link {
    font-weight: 500;
    color: #0ea5e9;
}

/* ============================================================
 * SIDEBAR FIX (YOUR SCREENSHOT AREA)
 * ============================================================ */

.sidebar-left strong,
.sidebar-left span,
.sidebar-left a {
    font-weight: 500 !important;
}

/* ============================================================
 * FORM INPUT TEXT
 * ============================================================ */

input,
textarea,
select {
    font-weight: 400;
    color: #0f172a;
}

/* ============================================================
 * OPTIONAL: REDUCE OVER-DARK BLACKS
 * ============================================================ */

* {
    text-rendering: optimizeLegibility;
}


/* ============================================================
 * Phase10-auth-ui-v1.2 Signup Input Visibility Fix
 * Purpose: Add clear but soft borders to signup/login inputs
 * ============================================================ */
.auth-redesign-form input,
.auth-redesign-form select,
.auth-redesign-form textarea,
.auth-redesign-form .admin-form-group input {
    border: 1px solid #d7e2ea !important;
    background: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.auth-redesign-form input:focus,
.auth-redesign-form select:focus,
.auth-redesign-form textarea:focus,
.auth-redesign-form .admin-form-group input:focus {
    border-color: #0ea5e9 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
    outline: none;
}

.auth-input-wrap {
    border: 1px solid #d7e2ea !important;
}

.auth-input-wrap:focus-within {
    border-color: #0ea5e9 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
}

/* ============================================================
 * Phase10-user-settings-v1.0 User Settings + Input Visibility
 * ============================================================ */
.auth-redesign-form input,
.auth-redesign-form select,
.auth-redesign-form textarea,
.auth-redesign-form .admin-form-group input {
    border: 1px solid #d7e2ea !important;
    background: #f8fafc !important;
}

.auth-redesign-form input:focus,
.auth-redesign-form select:focus,
.auth-redesign-form textarea:focus,
.auth-redesign-form .admin-form-group input:focus {
    border-color: #0ea5e9 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.12) !important;
    outline: none !important;
}

.user-settings-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.user-settings-card {
    width: 100%;
}

.user-settings-form input[type="file"],
.user-settings-form select {
    border: 1px solid #d7e2ea;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 16px;
}

.user-background-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.user-background-gallery-card {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 20px;
    background: #ffffff;
}

.user-background-gallery-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #f1f5f9;
}

.user-background-gallery-preview img,
.user-settings-current-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-background-gallery-meta {
    display: grid;
    gap: 4px;
    margin: 12px 0;
}

.user-background-gallery-meta strong {
    color: #0f172a;
    font-weight: 600;
}

.user-background-gallery-meta span {
    color: #64748b;
    font-size: 0.86rem;
}

@media (max-width: 720px) {
    .user-background-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * Phase10-speedtest-icons-email-v1.0
 * Health modal + composer media icons
 * ============================================================ */

.composer-upload span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.composer-upload-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
}

.speedtest-modal[hidden] {
    display: none !important;
}

.speedtest-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.speedtest-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(8px);
}

.speedtest-card {
    position: relative;
    z-index: 2;
    width: min(540px, 100%);
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.30);
}

.speedtest-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #eef6ff;
    color: #0f172a;
    font-size: 1.5rem;
    cursor: pointer;
}

.speedtest-header h2 {
    margin: 12px 0 8px;
    color: #0f172a;
    font-weight: 700;
}

.speedtest-header p,
.speedtest-note {
    color: #64748b;
    line-height: 1.55;
}

.speedtest-gauge {
    display: grid;
    place-items: center;
    width: 210px;
    height: 210px;
    margin: 24px auto;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#0ea5e9 var(--speedtest-progress, 0%), #e2e8f0 0);
    border: 1px solid #dbeafe;
}

.speedtest-gauge strong {
    color: #0f172a;
    font-size: 2.4rem;
    font-weight: 700;
}

.speedtest-gauge span {
    color: #64748b;
    font-size: 0.82rem;
    text-align: center;
}

.speedtest-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.speedtest-results-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.speedtest-results-grid strong {
    display: block;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
}

.speedtest-results-grid span {
    color: #64748b;
    font-size: 0.84rem;
}

.speedtest-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
    margin-bottom: 18px;
}

.speedtest-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: #0ea5e9;
    transition: width 220ms ease;
}

.speedtest-run-button {
    width: 100%;
}

@media (max-width: 640px) {
    .speedtest-card {
        padding: 22px;
        border-radius: 22px;
    }

    .speedtest-gauge {
        width: 180px;
        height: 180px;
    }
}

/* ============================================================
 * Phase10-speedtest-v1.1 Health Check Icon + Modal Fix
 * ============================================================ */
.health-check-button {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

.health-check-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.speedtest-modal[hidden] {
    display: none !important;
}

.speedtest-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.speedtest-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
}

.speedtest-card {
    position: relative;
    z-index: 2;
    width: min(540px, 100%);
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.30);
}

.speedtest-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #eef6ff;
    color: #0f172a;
    font-size: 1.5rem;
    cursor: pointer;
}

.speedtest-gauge {
    display: grid;
    place-items: center;
    width: 210px;
    height: 210px;
    margin: 24px auto;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#0ea5e9 var(--speedtest-progress, 0%), #e2e8f0 0);
    border: 1px solid #dbeafe;
}

.speedtest-gauge strong {
    color: #0f172a;
    font-size: 2.4rem;
    font-weight: 700;
}

.speedtest-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.speedtest-results-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.speedtest-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
    margin-bottom: 18px;
}

.speedtest-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: #0ea5e9;
    transition: width 220ms ease;
}

.speedtest-run-button {
    width: 100%;
}

/* ============================================================
 * Phase10-speedtest-v1.2 Frosted Purple Connection Check
 * ============================================================ */
.speedtest-backdrop {
    background:
        radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.42), transparent 34%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.34), transparent 32%),
        linear-gradient(135deg, rgba(49, 24, 96, 0.78), rgba(15, 23, 42, 0.72)) !important;
    backdrop-filter: blur(14px) saturate(145%) !important;
}

.speedtest-card {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        0 30px 90px rgba(49, 24, 96, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

.speedtest-gauge {
    border-color: rgba(168, 85, 247, 0.28) !important;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.92) 0 58%, transparent 59%),
        conic-gradient(#8b5cf6 var(--speedtest-progress, 0%), rgba(226,232,240,0.9) 0) !important;
}

.speedtest-progress span {
    background: linear-gradient(90deg, #8b5cf6, #0ea5e9) !important;
}

.health-check-button {
    white-space: nowrap;
}

/* ============================================================
 * Phase10 UI Patch v1.3
 * Frosted Green Speed Test + Icon Resize
 * ============================================================ */

/* Frosted GREEN modal container */
.speedtest-card {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);

    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);

    box-shadow:
        0 30px 80px rgba(0, 128, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    border-radius: 20px;
}

/* Improve readability on glass */
.speedtest-card h1,
.speedtest-card p,
.speedtest-card span {
    color: #0f172a;
}

/* Connection Check icon */
.connection-check-icon {
    width: 32px;
    height: 32px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ============================================================
 * Phase14-v1.2 Messaging UI
 * ============================================================ */
.messages-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    min-height: 680px;
}

.messages-sidebar,
.messages-main {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 153, 255, 0.16);
    box-shadow: 0 24px 70px rgba(8, 44, 66, 0.14);
    backdrop-filter: blur(20px);
}

.messages-sidebar {
    border-radius: 28px;
    padding: 20px;
    overflow: hidden;
}

.messages-main {
    border-radius: 30px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.messages-sidebar-header,
.messages-main-header,
.messages-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.messages-sidebar-header h1,
.messages-main-header h2,
.messages-chat-header h2 {
    margin: 8px 0 0;
    color: #0b1026;
    letter-spacing: -0.04em;
}

.messages-sidebar-header h1 {
    font-size: 2rem;
}

.messages-main-header h2,
.messages-chat-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.messages-main-header p,
.messages-chat-header span {
    margin: 6px 0 0;
    color: #667085;
    font-size: 1.05rem;
}

.messages-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #0099ff;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(0,153,255,.25);
}

.messages-search {
    margin: 18px 0;
}

.messages-search input,
.messages-compose-form select,
.messages-compose-form textarea,
.messages-chat-input input {
    width: 100%;
    border: 1px solid rgba(0, 153, 255, 0.18);
    border-radius: 18px;
    background: rgba(246, 251, 255, 0.94);
    padding: 14px 16px;
    font: inherit;
    color: #101828;
    outline: none;
}

.messages-search input:focus,
.messages-compose-form select:focus,
.messages-compose-form textarea:focus,
.messages-chat-input input:focus {
    border-color: #0099ff;
    box-shadow: 0 0 0 4px rgba(0,153,255,.13);
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messages-list-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    background: rgba(0, 153, 255, 0.055);
    transition: transform .2s ease, background .2s ease;
}

.messages-list-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 153, 255, 0.12);
}

.messages-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0099ff, #25d7ff);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0,153,255,.22);
}

.messages-avatar-large {
    width: 66px;
    height: 66px;
    font-size: 1.4rem;
}

.messages-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.messages-list-copy {
    min-width: 0;
}

.messages-list-copy strong,
.messages-list-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-list-copy strong {
    color: #0b1026;
}

.messages-list-copy small {
    color: #667085;
    margin-top: 3px;
}

.messages-unread {
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #0099ff;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
}

.messages-empty-mini,
.messages-empty-state {
    border: 1px dashed rgba(0,153,255,.28);
    background: rgba(0,153,255,.055);
    border-radius: 22px;
    padding: 24px;
    color: #667085;
}

.messages-empty-mini strong,
.messages-empty-state h3 {
    color: #0b1026;
    margin-top: 0;
}

.messages-empty-mini span {
    display: block;
    margin-top: 6px;
}

.messages-compose-card {
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(0,153,255,.13), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,251,255,.92));
    border: 1px solid rgba(0,153,255,.14);
    padding: 24px;
}

.messages-compose-form {
    display: grid;
    gap: 18px;
}

.messages-compose-form label {
    display: grid;
    gap: 8px;
    color: #0b1026;
    font-weight: 700;
}

.messages-compose-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.55;
}

.messages-send-wide {
    border: 0;
    border-radius: 999px;
    padding: 15px 24px;
    background: linear-gradient(135deg, #0099ff, #25d7ff);
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(0,153,255,.26);
}

.messages-back-link {
    display: inline-flex;
    margin-top: 20px;
    color: #0099ff;
    font-weight: 800;
    text-decoration: none;
}

.messages-chat-main {
    min-height: 720px;
    padding: 0;
    overflow: hidden;
}

.messages-chat-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0,153,255,.12);
    background: linear-gradient(135deg, rgba(0,153,255,.12), rgba(255,255,255,.75));
}

.messages-thread {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 20% 0%, rgba(0,153,255,.10), transparent 35%),
        radial-gradient(circle at 90% 35%, rgba(37,215,255,.08), transparent 30%);
}

.message-bubble {
    display: flex;
}

.message-bubble.is-mine {
    justify-content: flex-end;
}

.message-bubble.is-theirs {
    justify-content: flex-start;
}

.message-bubble-inner {
    max-width: min(680px, 82%);
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(0,153,255,.12);
    box-shadow: 0 14px 28px rgba(8,44,66,.08);
}

.message-bubble.is-mine .message-bubble-inner {
    background: linear-gradient(135deg, #0099ff, #25d7ff);
    color: #fff;
    border-bottom-right-radius: 8px;
}

.message-bubble.is-theirs .message-bubble-inner {
    background: rgba(255,255,255,.94);
    color: #172033;
    border-bottom-left-radius: 8px;
}

.message-bubble-inner strong,
.message-bubble-inner p,
.message-bubble-inner time {
    display: block;
}

.message-bubble-inner p {
    margin: 8px 0;
    line-height: 1.55;
}

.message-bubble-inner time {
    font-size: .78rem;
    opacity: .72;
    text-align: right;
}

.messages-chat-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 12px;
    padding: 18px;
    border-top: 1px solid rgba(0,153,255,.12);
    background: rgba(255,255,255,.92);
}

.messages-chat-input button {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0099ff, #25d7ff);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0,153,255,.25);
}

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

    .messages-sidebar-compact {
        display: none;
    }

    .messages-main-header,
    .messages-chat-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Phase14E - Messages container borders */
.messages-sidebar,
.messages-main {
    border: 1.5px solid #0099ff !important;
}


/* ============================================================
 * Phase15-preflight: Analog clock dark-mode hand contrast fix
 * Purpose: Make hour hand visible in dark mode without breaking light mode
 * ============================================================ */

.clock-hour-hand {
    background: #111827;
    box-shadow: 0 0 3px rgba(17, 24, 39, 0.35);
}

html[data-theme="dark"] .clock-hour-hand {
    background: #f8fafc !important;
    box-shadow: 0 0 7px rgba(248, 250, 252, 0.65);
}

html[data-theme="dark"] .clock-minute-hand {
    background: #0099ff;
    box-shadow: 0 0 7px rgba(0, 153, 255, 0.55);
}

html[data-theme="dark"] .clock-second-hand {
    background: #ff3b3b;
    box-shadow: 0 0 6px rgba(255, 59, 59, 0.5);
}


/* ============================================================
 * Clock hour-hand final contrast fix
 * The clock face is light in both modes, so hour hand must stay dark.
 * ============================================================ */

.clock-hour-hand,
html[data-theme="dark"] .clock-hour-hand {
    background: #0f172a !important;
    width: 6px !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75),
        0 0 8px rgba(0, 153, 255, 0.55) !important;
    z-index: 8 !important;
}

.clock-minute-hand,
html[data-theme="dark"] .clock-minute-hand {
    z-index: 9 !important;
}

.clock-second-hand,
html[data-theme="dark"] .clock-second-hand {
    z-index: 10 !important;
}


/* ============================================================
 * Feed image aspect-ratio fix
 * Purpose: Prevent uploaded horizontal photos from being cropped.
 * ============================================================ */

.feed-post-image {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.04);
}

.feed-post-image img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 18px;
}

html[data-theme="dark"] .feed-post-image {
    background: rgba(255, 255, 255, 0.04);
}



/* ============================================================
 * Feed image selectable display modes
 * Original preserves uploaded aspect ratio.
 * Square/portrait/landscape/wide intentionally crop for style.
 * ============================================================ */

.image-display-mode-select {
    min-width: 150px;
}

.feed-post-image--original {
    aspect-ratio: auto !important;
}

.feed-post-image--original img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

.feed-post-image--square {
    aspect-ratio: 1 / 1;
}

.feed-post-image--portrait {
    aspect-ratio: 4 / 5;
}

.feed-post-image--landscape {
    aspect-ratio: 4 / 3;
}

.feed-post-image--wide {
    aspect-ratio: 16 / 9;
}

.feed-post-image--square img,
.feed-post-image--portrait img,
.feed-post-image--landscape img,
.feed-post-image--wide img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}



/* ============================================================
 * Phase15 Notifications
 * ============================================================ */

.notification-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notification-badge,
.bottom-nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #0099ff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 153, 255, 0.28);
}

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

.notification-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--color-text-dark);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 153, 255, 0.16);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.notification-row.is-unread {
    border-color: rgba(0, 153, 255, 0.48);
    background: rgba(235, 248, 255, 0.96);
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.65);
}

.notification-row.is-unread .notification-dot {
    background: #0099ff;
    box-shadow: 0 0 0 5px rgba(0, 153, 255, 0.12);
}

.notification-row strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.notification-row small {
    color: #64748b;
}

html[data-theme="dark"] .notification-row {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(0, 153, 255, 0.28);
}

html[data-theme="dark"] .notification-row.is-unread {
    background: rgba(8, 47, 73, 0.88);
    border-color: rgba(56, 189, 248, 0.6);
}

html[data-theme="dark"] .notification-row small {
    color: #bae6fd;
}


/* ============================================================
 * Landing page info-card placement fix
 * Moves Why Join / Safety information card to right column.
 * ============================================================ */
@media (min-width: 901px) {
    .hero-panel > .landing-info-card {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }
}

/* ============================================================
 * Phase15-admin-landing-wysiwyg-v2.0
 * Landing Page Information Text editor visibility
 * ============================================================ */
.admin-landing-info-editor-group .trumbowyg-box,
.admin-landing-info-editor-group .trumbowyg-editor {
    min-height: 460px;
}

.admin-landing-info-wysiwyg {
    display: block;
    width: 100%;
    min-height: 460px;
}

.landing-info-content h1,
.landing-info-content h2,
.landing-info-content h3,
.landing-info-content p,
.landing-info-content ul,
.landing-info-content ol {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
 * Phase15-admin-landing-editor-v3.0
 * Visible local WYSIWYG editor for landing information text
 * ============================================================ */
.admin-landing-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.admin-landing-editor-toolbar button {
    border: 1px solid rgba(0, 153, 255, 0.28);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-text-dark);
    padding: 8px 13px;
    font-weight: 800;
    cursor: pointer;
}

.admin-landing-editor-toolbar button:hover {
    border-color: var(--color-main-blue);
    color: var(--color-main-blue);
}

.admin-landing-rich-editor {
    min-height: 520px;
    max-height: 720px;
    overflow-y: auto;
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(0, 153, 255, 0.25);
    border-radius: 18px;
    background: #ffffff;
    color: var(--color-text-dark);
    line-height: 1.7;
    outline: none;
}

.admin-landing-rich-editor:focus {
    border-color: var(--color-main-blue);
    box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.12);
}

.admin-landing-rich-editor h1,
.admin-landing-rich-editor h2,
.admin-landing-rich-editor h3,
.admin-landing-rich-editor p,
.admin-landing-rich-editor ul,
.admin-landing-rich-editor ol {
    margin-top: 0;
    margin-bottom: 14px;
}

html[data-theme="dark"] .admin-landing-editor-toolbar button,
html[data-theme="dark"] .admin-landing-rich-editor {
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    border-color: rgba(0, 153, 255, 0.35);
}

/* ============================================================
 * Phase15-admin-landing-editor-v4.0
 * Colour wheel + Spectrum input for landing WYSIWYG editor
 * ============================================================ */
.admin-landing-colour-wheel-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid rgba(0, 153, 255, 0.18);
    border-radius: 18px;
    background: rgba(234, 247, 255, 0.55);
}

.admin-landing-colour-wheel {
    width: 160px;
    min-height: 160px;
}

.admin-landing-colour-input {
    max-width: 110px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0, 153, 255, 0.28);
    padding: 8px 12px;
    font-weight: 800;
}

html[data-theme="dark"] .admin-landing-colour-wheel-wrap {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(0, 153, 255, 0.35);
}


/* ============================================================
 * Phase15-admin-landing-editor-media-v1.0
 * Landing information editor media controls and frontend media
 * ============================================================ */
.admin-landing-media-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid rgba(0, 153, 255, 0.18);
    border-radius: 18px;
    background: rgba(234, 247, 255, 0.52);
}

.admin-landing-media-panel .admin-form-group {
    margin: 0;
}

.admin-landing-info-wysiwyg {
    display: none !important;
}

.admin-landing-rich-editor img,
.landing-info-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.admin-landing-rich-editor .landing-inline-image-left,
.landing-info-content .landing-inline-image-left {
    float: left;
    max-width: min(45%, 360px);
    margin: 8px 22px 14px 0;
}

.admin-landing-rich-editor .landing-inline-image-center,
.landing-info-content .landing-inline-image-center {
    display: block;
    margin: 16px auto;
}

.admin-landing-rich-editor .landing-inline-image-right,
.landing-info-content .landing-inline-image-right {
    float: right;
    max-width: min(45%, 360px);
    margin: 8px 0 14px 22px;
}

.admin-landing-rich-editor .landing-inline-audio,
.landing-info-content .landing-inline-audio {
    clear: both;
    margin: 18px auto;
    padding: 14px;
    border: 1px solid rgba(0, 153, 255, 0.18);
    border-radius: 18px;
    background: rgba(234, 247, 255, 0.52);
}

.admin-landing-rich-editor .landing-inline-audio audio,
.landing-info-content .landing-inline-audio audio {
    display: block;
    width: 100%;
    margin-top: 8px;
}

.admin-landing-rich-editor .landing-inline-video,
.landing-info-content .landing-inline-video {
    clear: both;
    margin: 18px auto;
    max-width: 920px;
}

.admin-landing-rich-editor .landing-inline-video video,
.landing-info-content .landing-inline-video video {
    width: 100%;
    max-height: 520px;
    border-radius: 18px;
    background: #000;
}

.admin-landing-rich-editor .landing-inline-video figcaption,
.landing-info-content .landing-inline-video figcaption {
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

html[data-theme="dark"] .admin-landing-media-panel,
html[data-theme="dark"] .admin-landing-rich-editor .landing-inline-audio,
html[data-theme="dark"] .landing-info-content .landing-inline-audio {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(0, 153, 255, 0.35);
}

@media (max-width: 760px) {
    .admin-landing-media-panel {
        grid-template-columns: 1fr;
    }

    .admin-landing-rich-editor .landing-inline-image-left,
    .admin-landing-rich-editor .landing-inline-image-right,
    .landing-info-content .landing-inline-image-left,
    .landing-info-content .landing-inline-image-right {
        float: none;
        display: block;
        max-width: 100%;
        margin: 16px auto;
    }
}

/* ============================================================
 * Landing Frosted Blue Cards
 * Version: landing-frosted-blue-cards-v1.0
 * Purpose: Public landing page hero/foundation/info cards frosted blue
 * ============================================================ */

body:not(.is-authenticated) .hero-copy,
body:not(.is-authenticated) .foundation-card {
    background: linear-gradient(
        135deg,
        rgba(226, 245, 255, 0.78),
        rgba(186, 229, 255, 0.58)
    ) !important;
    border: 1px solid rgba(0, 153, 255, 0.22) !important;
    box-shadow: 0 24px 70px rgba(0, 80, 150, 0.16) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
}

/* Keep text readable on frosted blue */
body:not(.is-authenticated) .hero-copy h1,
body:not(.is-authenticated) .foundation-card h2,
body:not(.is-authenticated) .foundation-card h3 {
    color: #0f172a !important;
}

body:not(.is-authenticated) .hero-copy p,
body:not(.is-authenticated) .foundation-card p {
    color: #334155 !important;
}

/* Dark theme variant */
html[data-theme="dark"] body:not(.is-authenticated) .hero-copy,
html[data-theme="dark"] body:not(.is-authenticated) .foundation-card {
    background: linear-gradient(
        135deg,
        rgba(10, 45, 78, 0.78),
        rgba(0, 153, 255, 0.22)
    ) !important;
    border-color: rgba(0, 153, 255, 0.32) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] body:not(.is-authenticated) .hero-copy h1,
html[data-theme="dark"] body:not(.is-authenticated) .foundation-card h2,
html[data-theme="dark"] body:not(.is-authenticated) .foundation-card h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] body:not(.is-authenticated) .hero-copy p,
html[data-theme="dark"] body:not(.is-authenticated) .foundation-card p {
    color: #dbeafe !important;
}


/* ============================================================
 * Phase15-notifications-v1.0
 * Notification inbox and header badge styling
 * ============================================================ */
.notification-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-main-blue);
    font-size: 0.75rem;
    font-weight: 900;
}

.notification-page {
    width: min(1180px, calc(100% - 30px));
    margin: 42px auto;
}

.notification-hero,
.notification-list-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 153, 255, 0.12);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
}

.notification-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 28px;
    margin-bottom: 22px;
}

.notification-hero h1 {
    margin: 12px 0 6px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

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

.notification-list-card {
    padding: 18px;
}

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

.notification-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(0, 153, 255, 0.14);
    background: rgba(255, 255, 255, 0.72);
}

.notification-item.is-unread {
    background: rgba(224, 245, 255, 0.92);
}

.notification-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--color-main-blue);
    color: #ffffff;
    font-weight: 900;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-body strong,
.notification-body p,
.notification-body span {
    display: block;
}

.notification-body p {
    margin: 4px 0;
    color: var(--color-muted);
}

.notification-body span {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.notification-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

html[data-theme="dark"] .notification-hero,
html[data-theme="dark"] .notification-list-card,
html[data-theme="dark"] .notification-item {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(0, 153, 255, 0.28);
}

html[data-theme="dark"] .notification-item.is-unread {
    background: rgba(0, 153, 255, 0.16);
}

@media (max-width: 760px) {
    .notification-hero,
    .notification-item {
        grid-template-columns: 1fr;
    }

    .notification-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-actions {
        flex-wrap: wrap;
    }
}

/* ============================================================
 * Phase15-v1.1 Friends page card visual refresh
 * Purpose: Restyle /friends "My Friends" cards to match the
 *          rounded gradient profile-card look while preserving
 *          existing actions and mobile responsiveness.
 * ============================================================ */

.network-card .people-grid .person-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 92px 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    text-align: center;
}

.network-card .people-grid .person-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 86px;
    background:
        linear-gradient(110deg, rgba(0, 153, 255, 0.86), rgba(111, 191, 146, 0.72), rgba(255, 223, 54, 0.88));
    z-index: 0;
}

.network-card .people-grid .person-card .person-avatar,
.network-card .people-grid .person-card .person-avatar-floating {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    margin: -42px auto 18px;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 24px rgba(0, 153, 255, 0.24);
}

.network-card .people-grid .person-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--color-text-dark);
}

.network-card .people-grid .person-card p {
    min-height: 26px;
    margin: 0 0 18px;
    color: var(--color-muted);
}

.network-card .people-grid .person-card .profile-friend-actions {
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.network-card .people-grid .person-card .profile-friend-actions .btn,
.network-card .people-grid .person-card .profile-friend-actions button {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    font-weight: 900;
    justify-content: center;
}

.network-card .people-grid .person-card .profile-friend-actions a.btn {
    border-color: rgba(15, 23, 42, 0.10);
    background: #ffffff;
    color: var(--color-text-dark);
}

.network-card .people-grid .person-card .profile-friend-actions form button {
    border-color: rgba(0, 153, 255, 0.10);
    background: rgba(220, 241, 255, 0.92);
    color: var(--color-main-blue-dark);
}

.network-card .people-grid .person-card .profile-friend-actions a.btn:hover,
.network-card .people-grid .person-card .profile-friend-actions form button:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 153, 255, 0.35);
    box-shadow: 0 12px 24px rgba(0, 153, 255, 0.16);
}

html[data-theme="dark"] .network-card .people-grid .person-card {
    border-color: rgba(0, 153, 255, 0.20);
    background: rgba(15, 23, 42, 0.92);
}

html[data-theme="dark"] .network-card .people-grid .person-card h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .network-card .people-grid .person-card .profile-friend-actions a.btn {
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    border-color: rgba(0, 153, 255, 0.22);
}

@media (max-width: 720px) {
    .network-card .people-grid .person-card {
        min-height: 280px;
        padding: 88px 18px 20px;
    }
}

/* ============================================================
 * Phase15-v1.2 Friends page card visual refresh
 * Purpose: Force /friends "My Friends" cards to match the
 *          coloured-header profile-card style.
 * ============================================================ */

.network-card .people-grid > article {
    position: relative !important;
    overflow: hidden !important;
    min-height: 318px !important;
    padding: 102px 22px 24px !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10) !important;
    text-align: center !important;
}

.network-card .people-grid > article::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 86px !important;
    background: linear-gradient(110deg, #26aeea 0%, #83bf9a 55%, #ffe236 100%) !important;
    z-index: 0 !important;
}

.network-card .people-grid > article .person-avatar,
.network-card .people-grid > article .person-avatar-floating {
    position: relative !important;
    z-index: 1 !important;
    width: 82px !important;
    height: 82px !important;
    margin: -48px auto 18px !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 153, 255, 0.24) !important;
}

.network-card .people-grid > article h3 {
    position: relative !important;
    z-index: 1 !important;
    margin: 0 0 10px !important;
    font-weight: 900 !important;
    color: #071124 !important;
}

.network-card .people-grid > article p {
    min-height: 28px !important;
    margin: 0 0 18px !important;
}

.network-card .people-grid > article .profile-friend-actions {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    gap: 10px !important;
}

.network-card .people-grid > article .profile-friend-actions .btn,
.network-card .people-grid > article .profile-friend-actions button {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    justify-content: center !important;
}

.network-card .people-grid > article .profile-friend-actions form button {
    background: #e5f5ff !important;
    color: #0077cc !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .network-card .people-grid > article {
    background: rgba(15, 23, 42, 0.94) !important;
    border-color: rgba(0, 153, 255, 0.25) !important;
}

html[data-theme="dark"] .network-card .people-grid > article h3 {
    color: #f8fafc !important;
}

/* ============================================================
 * Phase15-v1.3 Friends page card visual refresh
 * Purpose: Correct selector targeting for /friends My Friends cards.
 * Markup uses:
 *  - .network-section-card
 *  - .people-grid.people-grid-compact
 *  - article.person-card
 *  - .person-actions
 * ============================================================ */

.network-section-card .people-grid.people-grid-compact > article.person-card {
    position: relative !important;
    overflow: hidden !important;
    min-height: 320px !important;
    padding: 102px 22px 24px !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10) !important;
    text-align: center !important;
}

.network-section-card .people-grid.people-grid-compact > article.person-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 86px !important;
    background: linear-gradient(110deg, #26aeea 0%, #83bf9a 55%, #ffe236 100%) !important;
    z-index: 0 !important;
}

.network-section-card .people-grid.people-grid-compact > article.person-card .person-avatar,
.network-section-card .people-grid.people-grid-compact > article.person-card .person-avatar-floating {
    position: relative !important;
    z-index: 1 !important;
    width: 82px !important;
    height: 82px !important;
    margin: -48px auto 18px !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 153, 255, 0.24) !important;
}

.network-section-card .people-grid.people-grid-compact > article.person-card h2 {
    position: relative !important;
    z-index: 1 !important;
    margin: 0 0 10px !important;
    font-size: 1.08rem !important;
    font-weight: 900 !important;
    color: #071124 !important;
}

.network-section-card .people-grid.people-grid-compact > article.person-card p {
    position: relative !important;
    z-index: 1 !important;
    min-height: 28px !important;
    margin: 0 0 18px !important;
    color: var(--color-muted) !important;
}

.network-section-card .people-grid.people-grid-compact > article.person-card .person-actions {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    gap: 10px !important;
}

.network-section-card .people-grid.people-grid-compact > article.person-card .person-actions .btn,
.network-section-card .people-grid.people-grid-compact > article.person-card .person-actions button {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    justify-content: center !important;
}

.network-section-card .people-grid.people-grid-compact > article.person-card .person-actions form button {
    background: #e5f5ff !important;
    color: #0077cc !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .network-section-card .people-grid.people-grid-compact > article.person-card {
    background: rgba(15, 23, 42, 0.94) !important;
    border-color: rgba(0, 153, 255, 0.25) !important;
}

html[data-theme="dark"] .network-section-card .people-grid.people-grid-compact > article.person-card h2 {
    color: #f8fafc !important;
}

@media (max-width: 720px) {
    .network-section-card .people-grid.people-grid-compact > article.person-card {
        min-height: 300px !important;
        padding: 96px 18px 22px !important;
    }
}

/* ============================================================
 * Phase15-v1.4 Typography Softening
 * Purpose: Replace harsh black text with softer slate tones
 * ============================================================ */

/* Global text */
body {
    color: #1e293b !important;
}

/* Headings */
h1, h2, h3, h4, h5 {
    color: #0f172a !important;
}

/* Paragraphs & secondary text */
p, span {
    color: #334155;
}

/* Muted text (already used in system) */
.profile-muted,
.network-pill,
.notification-body span {
    color: #64748b !important;
}

/* Buttons (secondary) */
.btn-secondary {
    color: #1e293b !important;
}

/* Friend card titles specifically */
.person-card h2 {
    color: #0f172a !important;
}

/* Improve readability on gradient cards */
.person-card p {
    color: #475569 !important;
}

/* Dark mode adjustment (keep contrast but not harsh) */
html[data-theme="dark"] body {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
    color: #f1f5f9 !important;
}


/* ============================================================
 * Phase17-pages-events-v1.0
 * Pages and events card refinements
 * ============================================================ */
.padare-directory-card .person-cover img,
.profile-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.padare-directory-card .person-actions {
    position: relative;
    z-index: 1;
}

@media (max-width: 720px) {
    .padare-directory-card {
        min-height: 280px;
    }
}

/* ============================================================
 * Phase17-nav-linebreak-fix-v1.0
 * Compact top navigation dropdown + post paragraph readability
 * ============================================================ */
.topbar-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.topbar-dropdown-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 999px;
}

.topbar-dropdown:hover .topbar-dropdown-toggle,
.topbar-dropdown:focus-within .topbar-dropdown-toggle {
    background: rgba(255, 255, 255, 0.16);
}

.topbar-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.08);
    z-index: 1000;
}

.topbar-dropdown:hover .topbar-dropdown-menu,
.topbar-dropdown:focus-within .topbar-dropdown-menu {
    display: grid;
    gap: 6px;
}

.topbar-dropdown-menu a {
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--color-text-dark);
    text-decoration: none;
    white-space: nowrap;
}

.topbar-dropdown-menu a:hover {
    background: rgba(0, 153, 255, 0.10);
    color: var(--color-main-blue-dark);
}

.feed-rich-content p,
.rich-editor-surface p {
    margin: 0 0 1rem;
}

.feed-rich-content p:last-child,
.rich-editor-surface p:last-child {
    margin-bottom: 0;
}

html[data-theme="dark"] .topbar-dropdown-menu {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(0, 153, 255, 0.25);
}

html[data-theme="dark"] .topbar-dropdown-menu a {
    color: #f8fafc;
}

@media (max-width: 980px) {
    .topbar-dropdown {
        display: none;
    }
}

/* ============================================================
 * Phase18-pages-events-complete-v1.0
 * Pages follow system + Events RSVP UI refinements
 * ============================================================ */
.phase18-directory-card {
    display: flex;
    flex-direction: column;
}

.phase18-directory-card .person-actions {
    margin-top: auto;
}

.phase18-page-cover {
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 153, 255, 0.38), transparent 34%),
        linear-gradient(110deg, rgba(0, 153, 255, 0.82), rgba(111, 191, 146, 0.72), rgba(255, 223, 54, 0.84));
}

.phase18-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.phase18-action-row form {
    margin: 0;
}

.phase18-action-row .btn,
.phase18-action-row button {
    min-height: 42px;
    border-radius: 999px;
    font-weight: 800;
}

@media (max-width: 720px) {
    .phase18-action-row {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .phase18-action-row .btn,
    .phase18-action-row button,
    .phase18-action-row form {
        width: 100%;
    }
}

/* ============================================================
 * MT-09A-v1.0 Landlord Dashboard Redesign
 * Purpose: Modern SaaS landlord dashboard UI
 * ============================================================ */

.landlord-dashboard-shell {
    width: min(1520px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.landlord-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.landlord-dashboard-hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.05em;
}

.landlord-dashboard-hero p {
    max-width: 760px;
    font-size: 1.05rem;
    color: #52657a;
}

.landlord-dashboard-actions,
.landlord-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.landlord-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.landlord-stat-card {
    min-height: 120px;
    padding: 22px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    position: relative;
}

.landlord-stat-card::after {
    content: "";
    position: absolute;
    inset: auto -28px -42px auto;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

.landlord-stat-card span,
.landlord-stat-card small,
.landlord-stat-card strong {
    position: relative;
    z-index: 1;
    color: #fff !important;
}

.landlord-stat-card span {
    display: block;
    font-weight: 800;
    opacity: .92;
}

.landlord-stat-card strong {
    display: block;
    margin: 10px 0 4px;
    font-size: 2.45rem;
    line-height: 1;
}

.landlord-stat-card small {
    opacity: .88;
    font-weight: 700;
}

.landlord-stat-blue { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.landlord-stat-green { background: linear-gradient(135deg, #10b981, #047857); }
.landlord-stat-yellow { background: linear-gradient(135deg, #f59e0b, #eab308); }
.landlord-stat-red { background: linear-gradient(135deg, #ef4444, #e11d48); }

.landlord-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.landlord-panel {
    min-height: 260px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.landlord-panel-wide {
    grid-column: span 2;
}

.landlord-map-panel {
    grid-column: span 2;
}

.landlord-panel-header {
    margin-bottom: 16px;
}

.landlord-panel-header h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.landlord-panel-header p {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
}

.landlord-live-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0,153,255,.12);
    color: #0077cc !important;
    font-size: .78rem;
    font-weight: 900;
}

.landlord-live-pill.is-green {
    background: rgba(16,185,129,.14);
    color: #047857 !important;
}

.landlord-line-chart {
    height: 220px;
}

.landlord-line-chart svg {
    width: 100%;
    height: 100%;
}

.landlord-line-chart .chart-area {
    fill: url(#tenantChartFill);
}

.landlord-line-chart .chart-line {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}

.landlord-line-chart .chart-line-primary {
    stroke: #0ea5e9;
}

.landlord-line-chart .chart-line-secondary {
    stroke: #10b981;
    opacity: .9;
}

.landlord-line-chart .chart-grid line {
    stroke: rgba(15, 23, 42, .08);
    stroke-width: 1;
}

.landlord-world-map {
    position: relative;
    min-height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 55%, rgba(0,153,255,.28), transparent 50%),
        linear-gradient(135deg, #2563eb, #0ea5e9);
}

.landlord-world-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.landlord-world-map svg path {
    fill: rgba(255,255,255,.45);
    stroke: rgba(255,255,255,.65);
    stroke-width: 2;
}

.map-glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.24), transparent 65%);
    animation: landlordPulse 4s ease-in-out infinite;
}

.map-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 0 8px rgba(250,204,21,.18), 0 0 22px rgba(250,204,21,.75);
    animation: landlordDot 2.8s ease-in-out infinite;
    z-index: 2;
}

.dot-1 { left: 20%; top: 36%; animation-delay: .1s; }
.dot-2 { left: 33%; top: 48%; animation-delay: .5s; }
.dot-3 { left: 49%; top: 38%; animation-delay: .9s; }
.dot-4 { left: 58%; top: 60%; animation-delay: 1.2s; }
.dot-5 { left: 73%; top: 42%; animation-delay: 1.6s; }
.dot-6 { left: 82%; top: 68%; animation-delay: 2s; }
.dot-7 { left: 44%; top: 66%; animation-delay: 2.3s; }

@keyframes landlordPulse {
    0%, 100% { transform: scale(.95); opacity: .75; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes landlordDot {
    0%, 100% { transform: scale(.92); }
    50% { transform: scale(1.45); }
}

.landlord-gauge-wrap {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.landlord-gauge {
    width: 142px;
    height: 142px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle closest-side, #fff 68%, transparent 70%),
        conic-gradient(#3b82f6 calc(var(--value) * 1%), #e2e8f0 0);
}

.landlord-gauge-green {
    background:
        radial-gradient(circle closest-side, #fff 68%, transparent 70%),
        conic-gradient(#10b981 calc(var(--value) * 1%), #e2e8f0 0);
}

.landlord-gauge span {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a !important;
    text-align: center;
}

.landlord-gauge small {
    display: block;
    margin-top: 26px;
    font-size: .75rem;
    font-weight: 800;
    color: #64748b !important;
    text-align: center;
}

.landlord-metric-pair,
.landlord-health-list {
    display: grid;
    width: 100%;
    gap: 9px;
}

.landlord-metric-pair span,
.landlord-health-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    color: #64748b !important;
    font-weight: 800;
}

.landlord-metric-pair strong,
.landlord-health-list strong {
    color: #0f172a !important;
}

.landlord-bar-stack {
    display: grid;
    gap: 16px;
    padding-top: 8px;
}

.landlord-bar-row {
    display: grid;
    grid-template-columns: 78px 1fr 54px;
    gap: 12px;
    align-items: center;
}

.landlord-bar-row span,
.landlord-bar-row strong {
    font-weight: 900;
    color: #0f172a !important;
}

.landlord-bar-row i {
    display: block;
    height: 13px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9 calc(var(--bar) * 1%), #e2e8f0 0);
}

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

.landlord-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.landlord-table th,
.landlord-table td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.landlord-table th {
    color: #0f172a !important;
    font-weight: 900;
    font-size: .9rem;
}

.landlord-table td {
    color: #334155 !important;
    font-weight: 700;
}

.landlord-status-badge {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .8rem;
    background: rgba(100,116,139,.14);
    color: #334155 !important;
}

.landlord-status-badge.status-active {
    background: rgba(16,185,129,.15);
    color: #047857 !important;
}

.landlord-status-badge.status-suspended,
.landlord-status-badge.status-archived {
    background: rgba(239,68,68,.13);
    color: #b91c1c !important;
}

html[data-theme="dark"] .landlord-panel {
    background: rgba(15,23,42,.92);
    border-color: rgba(0,153,255,.22);
}

html[data-theme="dark"] .landlord-panel-header h2,
html[data-theme="dark"] .landlord-table th,
html[data-theme="dark"] .landlord-table td,
html[data-theme="dark"] .landlord-bar-row span,
html[data-theme="dark"] .landlord-bar-row strong,
html[data-theme="dark"] .landlord-gauge span,
html[data-theme="dark"] .landlord-health-list strong,
html[data-theme="dark"] .landlord-metric-pair strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .landlord-gauge {
    background:
        radial-gradient(circle closest-side, #0f172a 68%, transparent 70%),
        conic-gradient(#3b82f6 calc(var(--value) * 1%), rgba(148,163,184,.28) 0);
}

html[data-theme="dark"] .landlord-gauge-green {
    background:
        radial-gradient(circle closest-side, #0f172a 68%, transparent 70%),
        conic-gradient(#10b981 calc(var(--value) * 1%), rgba(148,163,184,.28) 0);
}

@media (max-width: 1180px) {
    .landlord-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landlord-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landlord-panel-wide,
    .landlord-map-panel {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .landlord-dashboard-shell {
        width: min(100% - 22px, 100%);
        padding-bottom: 90px;
    }

    .landlord-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .landlord-dashboard-actions {
        width: 100%;
    }

    .landlord-dashboard-actions .btn {
        width: 100%;
    }

    .landlord-stat-row,
    .landlord-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .landlord-panel-wide,
    .landlord-map-panel {
        grid-column: span 1;
    }

    .landlord-panel {
        padding: 16px;
    }

    .landlord-world-map {
        min-height: 210px;
    }
}

/* ============================================================
 * MT-09A-v1.1 Full Landlord Admin Shell Redesign
 * ============================================================ */

.landlord-admin-shell {
    width: min(1600px, calc(100vw - 28px));
    margin: 0 auto;
    padding: 22px 0 70px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
}

.landlord-admin-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    min-height: calc(100vh - 130px);
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #101827, #172033);
    color: #fff;
    box-shadow: 0 22px 48px rgba(15,23,42,.22);
}

.landlord-admin-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.landlord-admin-brand img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
}

.landlord-admin-brand strong,
.landlord-admin-brand span {
    display: block;
    color: #fff !important;
}

.landlord-admin-brand span {
    opacity: .72;
    font-size: .84rem;
}

.landlord-admin-nav {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.landlord-admin-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255,255,255,.78) !important;
    text-decoration: none;
    font-weight: 800;
}

.landlord-admin-nav a:hover,
.landlord-admin-nav a.is-active {
    background: rgba(14,165,233,.22);
    color: #fff !important;
}

.landlord-admin-sidebar-footer {
    margin-top: 28px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.24);
}

.landlord-admin-sidebar-footer span,
.landlord-admin-sidebar-footer strong {
    display: block;
    color: #fff !important;
}

.landlord-admin-main {
    min-width: 0;
}

.landlord-admin-page-header {
    margin: 0 0 18px;
    padding: 12px 0 8px;
}

.landlord-admin-page-header h1 {
    margin: 18px 0 8px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -0.055em;
}

.landlord-admin-page-header p {
    max-width: 850px;
    color: #52657a !important;
    font-weight: 650;
}

.landlord-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.landlord-kpi-card {
    min-height: 120px;
    padding: 20px;
    border-radius: 14px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15,23,42,.16);
}

.landlord-kpi-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

.landlord-kpi-card span,
.landlord-kpi-card strong,
.landlord-kpi-card small {
    position: relative;
    z-index: 1;
    color: #fff !important;
}

.landlord-kpi-card span {
    font-weight: 900;
}

.landlord-kpi-card strong {
    display: block;
    margin: 10px 0 4px;
    font-size: 2.3rem;
    line-height: 1;
}

.landlord-kpi-card small {
    font-weight: 750;
    opacity: .88;
}

.kpi-blue { background: linear-gradient(135deg, #0284c7, #2563eb); }
.kpi-green { background: linear-gradient(135deg, #059669, #10b981); }
.kpi-yellow { background: linear-gradient(135deg, #f59e0b, #eab308); }
.kpi-red { background: linear-gradient(135deg, #ef4444, #e11d48); }

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

.landlord-admin-card {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 42px rgba(15,23,42,.10);
}

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

.landlord-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.landlord-card-header h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.landlord-card-header p {
    margin: 0;
    color: #64748b !important;
    font-weight: 650;
}

.landlord-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(14,165,233,.12);
    color: #0369a1 !important;
    font-size: .78rem;
    font-weight: 900;
}

.landlord-chart-box {
    height: 285px;
}

.landlord-chart-box svg {
    width: 100%;
    height: 100%;
}

.admin-chart-grid line {
    stroke: rgba(15,23,42,.08);
}

.admin-chart-fill {
    fill: url(#adminTrendFill);
}

.admin-chart-line {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}

.admin-chart-line.primary {
    stroke: #2563eb;
}

.admin-chart-line.secondary {
    stroke: #10b981;
    opacity: .9;
}

.landlord-digital-map {
    position: relative;
    min-height: 285px;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,.24), transparent 48%),
        linear-gradient(135deg, #1d4ed8, #0ea5e9);
}

.landlord-digital-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.landlord-digital-map svg path {
    fill: rgba(255,255,255,.42);
    stroke: rgba(255,255,255,.64);
    stroke-width: 2;
}

.map-dot {
    position: absolute;
    z-index: 2;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fde047;
    box-shadow: 0 0 0 8px rgba(253,224,71,.18), 0 0 28px rgba(253,224,71,.85);
    animation: landlordAdminDot 2.6s infinite ease-in-out;
}

.dot-a { left: 19%; top: 38%; animation-delay: .1s; }
.dot-b { left: 32%; top: 52%; animation-delay: .4s; }
.dot-c { left: 49%; top: 40%; animation-delay: .9s; }
.dot-d { left: 59%; top: 63%; animation-delay: 1.3s; }
.dot-e { left: 75%; top: 43%; animation-delay: 1.7s; }
.dot-f { left: 82%; top: 68%; animation-delay: 2.2s; }

@keyframes landlordAdminDot {
    0%, 100% { transform: scale(.9); opacity: .86; }
    50% { transform: scale(1.55); opacity: 1; }
}

.admin-gauge-grid {
    display: grid;
    grid-template-columns: 145px 1fr;
    align-items: center;
    gap: 18px;
}

.admin-ring {
    width: 134px;
    height: 134px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle closest-side, #fff 68%, transparent 70%),
        conic-gradient(#2563eb calc(var(--ring) * 1%), #e2e8f0 0);
}

.ring-green {
    background:
        radial-gradient(circle closest-side, #fff 68%, transparent 70%),
        conic-gradient(#10b981 calc(var(--ring) * 1%), #e2e8f0 0);
}

.admin-ring strong,
.admin-ring span {
    grid-area: 1/1;
    color: #0f172a !important;
}

.admin-ring strong {
    margin-top: -16px;
    font-size: 1.35rem;
    font-weight: 950;
}

.admin-ring span {
    margin-top: 34px;
    color: #64748b !important;
    font-size: .75rem;
    font-weight: 900;
}

.admin-mini-metrics,
.admin-health-list {
    display: grid;
    gap: 8px;
}

.admin-mini-metrics p,
.admin-health-list p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.admin-mini-metrics span,
.admin-health-list span {
    color: #64748b !important;
    font-weight: 800;
}

.admin-mini-metrics strong,
.admin-health-list strong {
    color: #0f172a !important;
    font-weight: 950;
}

.admin-bar-list {
    display: grid;
    gap: 14px;
}

.admin-bar-list p {
    display: grid;
    grid-template-columns: 78px 1fr 58px;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.admin-bar-list span,
.admin-bar-list strong {
    color: #0f172a !important;
    font-weight: 900;
}

.admin-bar-list i {
    height: 13px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9 calc(var(--bar) * 1%), #e2e8f0 0);
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
}

.landlord-admin-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

.landlord-admin-table th,
.landlord-admin-table td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(15,23,42,.08);
    vertical-align: middle;
}

.landlord-admin-table th {
    color: #0f172a !important;
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 950;
}

.landlord-admin-table td {
    color: #334155 !important;
    font-weight: 750;
}

.admin-status {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(100,116,139,.14);
    color: #334155 !important;
    font-size: .8rem;
    font-weight: 950;
}

.admin-status.status-active {
    background: rgba(16,185,129,.14);
    color: #047857 !important;
}

.admin-status.status-archived,
.admin-status.status-suspended,
.admin-status.status-rejected {
    background: rgba(239,68,68,.13);
    color: #b91c1c !important;
}

.admin-status.status-pending_payment,
.admin-status.status-pending_provisioning {
    background: rgba(245,158,11,.15);
    color: #92400e !important;
}

html[data-theme="dark"] .landlord-admin-card {
    background: rgba(15,23,42,.92);
    border-color: rgba(14,165,233,.22);
}

html[data-theme="dark"] .landlord-card-header h2,
html[data-theme="dark"] .landlord-admin-table th,
html[data-theme="dark"] .landlord-admin-table td,
html[data-theme="dark"] .admin-mini-metrics strong,
html[data-theme="dark"] .admin-health-list strong,
html[data-theme="dark"] .admin-bar-list span,
html[data-theme="dark"] .admin-bar-list strong,
html[data-theme="dark"] .admin-ring strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .admin-ring {
    background:
        radial-gradient(circle closest-side, #0f172a 68%, transparent 70%),
        conic-gradient(#2563eb calc(var(--ring) * 1%), rgba(148,163,184,.25) 0);
}

html[data-theme="dark"] .ring-green {
    background:
        radial-gradient(circle closest-side, #0f172a 68%, transparent 70%),
        conic-gradient(#10b981 calc(var(--ring) * 1%), rgba(148,163,184,.25) 0);
}

@media (max-width: 1250px) {
    .landlord-admin-shell {
        grid-template-columns: 1fr;
    }

    .landlord-admin-sidebar {
        position: static;
        min-height: auto;
    }

    .landlord-admin-nav {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }

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

    .landlord-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-span-2,
    .card-span-1 {
        grid-column: span 1;
    }
}

@media (max-width: 760px) {
    .landlord-admin-shell {
        width: min(100% - 18px, 100%);
        padding-bottom: 90px;
    }

    .landlord-admin-nav {
        grid-template-columns: 1fr;
    }

    .landlord-kpi-grid,
    .landlord-admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-gauge-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .landlord-admin-card {
        padding: 15px;
    }

    .landlord-card-header {
        align-items: stretch;
    }

    .landlord-card-header .btn {
        width: 100%;
    }
}

/* ============================================================
 * MT-09A-v1.2 Full-width Landlord Admin Layout Fix
 * Purpose:
 *  - Remove constrained centred landlord layout
 *  - Stop horizontal page overflow
 *  - Make admin console use full browser width
 *  - Keep tables scrollable inside cards only
 * ============================================================ */

/* ------------------------------------------------------------
 * Landlord pages must use full viewport width, not normal app shell
 * ------------------------------------------------------------ */
body:has(.landlord-admin-shell) .page-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body:has(.landlord-admin-shell) {
    overflow-x: hidden !important;
}

/* ------------------------------------------------------------
 * Full-width landlord console shell
 * ------------------------------------------------------------ */
.landlord-admin-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 26px 26px 80px !important;
    display: grid !important;
    grid-template-columns: 290px minmax(0, 1fr) !important;
    gap: 26px !important;
    box-sizing: border-box !important;
}

/* ------------------------------------------------------------
 * Sidebar should stay fixed-width without forcing page overflow
 * ------------------------------------------------------------ */
.landlord-admin-sidebar {
    width: 100% !important;
    max-width: 290px !important;
    box-sizing: border-box !important;
}

/* ------------------------------------------------------------
 * Main content must be allowed to shrink inside CSS grid
 * ------------------------------------------------------------ */
.landlord-admin-main {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* ------------------------------------------------------------
 * Header should align like a real admin dashboard
 * ------------------------------------------------------------ */
.landlord-admin-page-header {
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
}

.landlord-admin-page-header h1 {
    margin-top: 16px !important;
    font-size: clamp(2.4rem, 4vw, 4rem) !important;
}

/* ------------------------------------------------------------
 * Full-width admin cards
 * ------------------------------------------------------------ */
.landlord-admin-card,
.card-full {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* ------------------------------------------------------------
 * Tables scroll inside their card, not across the full page
 * ------------------------------------------------------------ */
.admin-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.landlord-admin-table {
    width: 100% !important;
    min-width: 980px !important;
    table-layout: auto !important;
}

/* Prevent long tenant/domain/db/email text breaking the whole page */
.landlord-admin-table td,
.landlord-admin-table th {
    white-space: nowrap !important;
}

.landlord-admin-table td:nth-child(2),
.landlord-admin-table td:nth-child(4),
.landlord-admin-table td:nth-child(8) {
    max-width: 260px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ------------------------------------------------------------
 * Dashboard grid should fill available width like the reference
 * ------------------------------------------------------------ */
.landlord-kpi-grid {
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.landlord-admin-grid {
    width: 100% !important;
    grid-template-columns: 2fr 1fr 1fr !important;
}

.card-span-2 {
    grid-column: span 2 !important;
}

.card-span-1 {
    grid-column: span 1 !important;
}

/* ------------------------------------------------------------
 * Make the top app bar not cause landlord content misalignment
 * ------------------------------------------------------------ */
body:has(.landlord-admin-shell) .topbar {
    width: 100% !important;
}

body:has(.landlord-admin-shell) .topbar-inner {
    width: 100% !important;
    max-width: none !important;
    padding-left: 26px !important;
    padding-right: 26px !important;
    box-sizing: border-box !important;
}

/* ------------------------------------------------------------
 * Medium screens
 * ------------------------------------------------------------ */
@media (max-width: 1250px) {
    .landlord-admin-shell {
        grid-template-columns: 1fr !important;
        padding: 18px 18px 90px !important;
    }

    .landlord-admin-sidebar {
        max-width: none !important;
        position: static !important;
    }

    .landlord-admin-nav {
        grid-template-columns: repeat(5, minmax(120px, 1fr)) !important;
    }

    .landlord-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .landlord-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .card-span-2,
    .card-span-1 {
        grid-column: span 1 !important;
    }
}

/* ------------------------------------------------------------
 * Mobile screens
 * ------------------------------------------------------------ */
@media (max-width: 760px) {
    .landlord-admin-shell {
        padding: 12px 12px 96px !important;
    }

    .landlord-admin-nav,
    .landlord-kpi-grid,
    .landlord-admin-grid {
        grid-template-columns: 1fr !important;
    }

    .landlord-admin-table {
        min-width: 860px !important;
    }

    body:has(.landlord-admin-shell) .topbar-inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ============================================================
 * MT-09C-v1.0 Dedicated Landlord Layout Isolation
 * Purpose: Fully detach landlord backend from tenant app layout
 * ============================================================ */

.landlord-layout-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden !important;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 34%),
        linear-gradient(135deg, #edf7ff 0%, #f8fafc 48%, #eef2f7 100%);
}

.landlord-layout-body .landlord-admin-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

.landlord-layout-body .landlord-admin-sidebar {
    top: 24px !important;
}

.landlord-layout-body .progress-wrap {
    z-index: 9999;
}

@media (max-width: 760px) {
    .landlord-layout-body .landlord-admin-shell {
        padding: 12px 12px 96px !important;
    }
}

html[data-theme="dark"] .landlord-layout-body {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
        linear-gradient(135deg, #020617 0%, #0f172a 55%, #111827 100%);
}

/* ============================================================
 * MT-09B-v1.0 Real Metrics + Map + Sidebar Fixes
 * ============================================================ */

/* Sidebar stretches to full content height instead of stopping mid-page */
.landlord-layout-body .landlord-admin-shell {
    align-items: stretch !important;
}

.landlord-layout-body .landlord-admin-sidebar,
.landlord-admin-sidebar {
    position: relative !important;
    top: auto !important;
    align-self: stretch !important;
    min-height: calc(100vh - 48px) !important;
    height: auto !important;
}

/* Realistic world-map shape */
.landlord-real-world-map {
    background:
        radial-gradient(circle at 52% 50%, rgba(255,255,255,.20), transparent 52%),
        linear-gradient(135deg, #0f4fd6, #11a8f5) !important;
}

.landlord-real-world-map svg {
    z-index: 1;
}

.landlord-real-world-map .continent {
    fill: rgba(224, 242, 254, .68) !important;
    stroke: rgba(255,255,255,.88) !important;
    stroke-width: 2.4 !important;
    filter: drop-shadow(0 10px 16px rgba(15,23,42,.18));
}

.landlord-real-world-map .map-dot {
    z-index: 2;
}

.dot-g { left: 52%; top: 36%; animation-delay: 1.9s; }
.dot-h { left: 56%; top: 61%; animation-delay: 2.4s; }

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

.admin-process-grid pre,
.admin-small-pre {
    min-height: 160px;
    max-height: 280px;
    overflow: auto;
    padding: 14px;
    border-radius: 14px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: .82rem;
    line-height: 1.55;
    white-space: pre;
}

.compact-server-table {
    min-width: 920px !important;
}

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

/* ============================================================
 * MT-09B-v1.1 Recognisable World Map Replacement
 * ============================================================ */

.landlord-real-world-map {
    position: relative;
    min-height: 320px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 50% 48%, rgba(255,255,255,.20), transparent 46%),
        linear-gradient(135deg, #0b4cc9 0%, #0ea5e9 100%) !important;
}

.landlord-real-world-map .world-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .28;
    z-index: 0;
}

.landlord-real-world-map .recognisable-world-map {
    position: absolute;
    inset: 5% 4%;
    width: 92%;
    height: 90%;
    z-index: 1;
}

.landlord-real-world-map .world-map-land path {
    fill: rgba(226, 246, 255, .82) !important;
    stroke: rgba(255, 255, 255, .96) !important;
    stroke-width: 2.2 !important;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, .18));
}

.landlord-real-world-map .world-map-lines path {
    fill: none !important;
    stroke: rgba(255,255,255,.32) !important;
    stroke-width: 1.4 !important;
    stroke-dasharray: 7 8;
}

.landlord-real-world-map .map-dot {
    position: absolute;
    z-index: 3;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fde047;
    box-shadow:
        0 0 0 8px rgba(253, 224, 71, .20),
        0 0 28px rgba(253, 224, 71, .88);
    animation: landlordAdminDot 2.8s infinite ease-in-out;
}

/* Dot placement on recognisable map */
.landlord-real-world-map .dot-na { left: 22%; top: 36%; animation-delay: .1s; }
.landlord-real-world-map .dot-sa { left: 31%; top: 72%; animation-delay: .5s; }
.landlord-real-world-map .dot-eu { left: 52%; top: 35%; animation-delay: .9s; }
.landlord-real-world-map .dot-af { left: 54%; top: 58%; animation-delay: 1.3s; }
.landlord-real-world-map .dot-me { left: 61%; top: 47%; animation-delay: 1.7s; }
.landlord-real-world-map .dot-as { left: 75%; top: 42%; animation-delay: 2.1s; }
.landlord-real-world-map .dot-au { left: 80%; top: 77%; animation-delay: 2.5s; }

/* Neutralise old abstract blob rules inside this panel */
.landlord-real-world-map svg path:not(.world-map-lines path) {
    transform-origin: center;
}

@media (max-width: 760px) {
    .landlord-real-world-map {
        min-height: 250px !important;
    }

    .landlord-real-world-map .map-dot {
        width: 8px;
        height: 8px;
    }
}

/* ============================================================
 * MT-09B-v1.2 Dedicated Recognisable World Map Asset
 * ============================================================ */

.landlord-world-card {
    grid-column: span 2 !important;
}

.landlord-real-world-map {
    position: relative !important;
    min-height: 360px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #0f8de8 !important;
}

.landlord-real-world-map > img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* disable older inline-svg map styling where old map remains cached */
.landlord-real-world-map > svg,
.landlord-real-world-map .world-grid,
.landlord-real-world-map .recognisable-world-map {
    display: none !important;
}

.landlord-real-world-map .map-dot {
    position: absolute !important;
    z-index: 3 !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 999px !important;
    background: #fde047 !important;
    box-shadow:
        0 0 0 9px rgba(253,224,71,.22),
        0 0 30px rgba(253,224,71,.92) !important;
    animation: landlordAdminDot 2.8s infinite ease-in-out !important;
}

/* positions based on the dedicated SVG asset */
.landlord-real-world-map .dot-na { left: 24%; top: 34%; animation-delay: .1s !important; }
.landlord-real-world-map .dot-sa { left: 31%; top: 76%; animation-delay: .5s !important; }
.landlord-real-world-map .dot-eu { left: 55%; top: 33%; animation-delay: .9s !important; }
.landlord-real-world-map .dot-af { left: 56%; top: 62%; animation-delay: 1.3s !important; }
.landlord-real-world-map .dot-me { left: 63%; top: 47%; animation-delay: 1.7s !important; }
.landlord-real-world-map .dot-as { left: 78%; top: 42%; animation-delay: 2.1s !important; }
.landlord-real-world-map .dot-au { left: 84%; top: 78%; animation-delay: 2.5s !important; }

@media (max-width: 1250px) {
    .landlord-world-card {
        grid-column: span 1 !important;
    }

    .landlord-real-world-map {
        min-height: 300px !important;
    }
}

@media (max-width: 760px) {
    .landlord-real-world-map {
        min-height: 240px !important;
    }

    .landlord-real-world-map .map-dot {
        width: 9px !important;
        height: 9px !important;
    }
}

/* Real world map asset override */
.real-map-asset {
    background: #0f8de8 !important;
    min-height: 420px !important;
}

.real-map-asset img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 24px;
    box-sizing: border-box;
    z-index: 1;
}

.real-map-asset .map-dot {
    z-index: 3 !important;
}

/* approximate real-world dot placement */
.real-map-asset .dot-na { left: 23%; top: 39%; }
.real-map-asset .dot-sa { left: 33%; top: 72%; }
.real-map-asset .dot-eu { left: 52%; top: 36%; }
.real-map-asset .dot-af { left: 54%; top: 58%; }
.real-map-asset .dot-me { left: 60%; top: 48%; }
.real-map-asset .dot-as { left: 75%; top: 43%; }
.real-map-asset .dot-au { left: 82%; top: 75%; }

/* ============================================================
 * MT-09B Dashboard Reset v1.0
 * Hard override: clean grid, full-height sidebar, no giant maps
 * ============================================================ */

.landlord-layout-body .landlord-admin-shell {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

.landlord-layout-body .landlord-admin-sidebar {
    position: sticky !important;
    top: 24px !important;
    min-height: calc(100vh - 48px) !important;
    height: auto !important;
    align-self: stretch !important;
}

.landlord-dashboard-reset-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.landlord-dashboard-reset-grid > .landlord-admin-card {
    grid-column: span 1 !important;
    min-height: auto !important;
}

.landlord-dashboard-reset-grid > .reset-chart-card {
    grid-column: span 2 !important;
}

.landlord-dashboard-reset-grid > .reset-map-card {
    grid-column: span 1 !important;
}

.landlord-dashboard-reset-grid > .reset-wide-card {
    grid-column: span 2 !important;
}

.reset-clean-world-map,
.clean-world-map-panel.reset-clean-world-map {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.reset-clean-world-map img {
    inset: 16px !important;
    width: calc(100% - 32px) !important;
    height: calc(100% - 32px) !important;
    object-fit: contain !important;
}

/* Kill old oversized/duplicate map behaviour */
.landlord-world-card,
.landlord-world-card-clean,
.landlord-real-world-map,
.real-map-asset {
    grid-column: auto !important;
    max-height: 300px !important;
}

.landlord-real-world-map > svg,
.landlord-real-world-map .world-grid,
.landlord-real-world-map .recognisable-world-map {
    display: none !important;
}

@media (max-width: 1250px) {
    .landlord-layout-body .landlord-admin-shell {
        grid-template-columns: 1fr !important;
    }

    .landlord-dashboard-reset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .landlord-dashboard-reset-grid > .reset-chart-card,
    .landlord-dashboard-reset-grid > .reset-wide-card {
        grid-column: span 2 !important;
    }
}

@media (max-width: 760px) {
    .landlord-dashboard-reset-grid,
    .landlord-kpi-grid {
        grid-template-columns: 1fr !important;
    }

    .landlord-dashboard-reset-grid > .reset-chart-card,
    .landlord-dashboard-reset-grid > .reset-wide-card,
    .landlord-dashboard-reset-grid > .reset-map-card {
        grid-column: span 1 !important;
    }

    .landlord-layout-body .landlord-admin-shell {
        padding: 12px !important;
    }
}

/* ============================================================
 * Static World Map (clean + professional)
 * ============================================================ */

.static-world-map-panel {
    position: relative !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    padding: 18px !important;
    background: linear-gradient(135deg, #eef7ff, #dbeafe) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.admin-world-map-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    opacity: 0.9 !important;
    display: block !important;
}

/* Activity dots */

.clean-map-dot {
    position: absolute !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    background: #ffd54a !important;
    box-shadow: 0 0 12px rgba(255, 213, 74, 0.9);
    animation: mapPulse 2.5s infinite;
}

/* Approximate geo positions */
.dot-na { top: 38%; left: 22%; }
.dot-eu { top: 30%; left: 52%; }
.dot-af { top: 55%; left: 52%; }
.dot-as { top: 38%; left: 72%; }

@keyframes mapPulse {
    0% { transform: scale(1); opacity: 1; }
    60% { transform: scale(1.6); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* MT-10B stat-card readability refinements */
.admin-health-list p strong {
    text-align: right;
    max-width: 58%;
    overflow-wrap: anywhere;
}


/* ============================================================
 * MT-10C-v1.0 Landlord Sidebar Menu Expansion
 * Purpose: Section labels + responsive support for expanded menu
 * ============================================================ */

.landlord-admin-nav-section {
    display: block;
    margin: 16px 10px 4px;
    color: rgba(255, 255, 255, 0.44) !important;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landlord-admin-nav a {
    line-height: 1.25;
}

@media (max-width: 1250px) {
    .landlord-admin-nav-section {
        grid-column: 1 / -1;
        margin-top: 12px;
    }
}

@media (max-width: 760px) {
    .landlord-admin-nav-section {
        margin: 14px 8px 2px;
    }
}

/* ============================================================
 * MT-12-v1.0 Tenant Disk Quota Foundation
 * ============================================================ */

.tenant-quota-table {
    min-width: 1180px;
}

.quota-meter {
    width: 140px;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.10);
}

.quota-meter span {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
}

.tenant-quota-table small {
    display: inline-block;
    margin-top: 6px;
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 760px) {
    .quota-meter {
        width: 110px;
    }
}

/* ============================================================
 * MT-12B-v1.0 Tenant Quota Visual Dashboard
 * ============================================================ */

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

.quota-overview-panel {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.quota-overview-ring,
.tenant-quota-ring {
    --quota-ring: 0;
    --tenant-quota-ring: 0;
    display: grid;
    place-items: center;
    align-content: center;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #fff 0 56%, transparent 57%),
        conic-gradient(#0ea5e9 calc(var(--quota-ring) * 1%), rgba(15, 23, 42, 0.10) 0);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
}

.tenant-quota-ring {
    width: 128px;
    height: 128px;
    background:
        radial-gradient(circle at center, #fff 0 56%, transparent 57%),
        conic-gradient(#10b981 calc(var(--tenant-quota-ring) * 1%), rgba(15, 23, 42, 0.10) 0);
}

.quota-state-warning .tenant-quota-ring {
    background:
        radial-gradient(circle at center, #fff 0 56%, transparent 57%),
        conic-gradient(#f59e0b calc(var(--tenant-quota-ring) * 1%), rgba(15, 23, 42, 0.10) 0);
}

.quota-state-danger .tenant-quota-ring {
    background:
        radial-gradient(circle at center, #fff 0 56%, transparent 57%),
        conic-gradient(#ef4444 calc(var(--tenant-quota-ring) * 1%), rgba(15, 23, 42, 0.10) 0);
}

.quota-overview-ring strong,
.tenant-quota-ring strong {
    font-size: 1.5rem;
    font-weight: 950;
    color: #0f172a;
}

.quota-overview-ring span,
.tenant-quota-ring span {
    font-size: .75rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.quota-overview-copy h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.quota-overview-copy p {
    margin: 8px 0;
    color: #475569;
}

.tenant-quota-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.tenant-quota-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.tenant-quota-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #0ea5e9);
}

.tenant-quota-card.quota-state-warning::before {
    background: linear-gradient(90deg, #f59e0b, #facc15);
}

.tenant-quota-card.quota-state-danger::before {
    background: linear-gradient(90deg, #ef4444, #fb7185);
}

.tenant-quota-card-head,
.tenant-quota-footer,
.quota-breakdown-label {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.tenant-quota-card-head h3 {
    margin: 0;
    font-size: 1.12rem;
}

.tenant-quota-card-head p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: .88rem;
    word-break: break-word;
}

.tenant-quota-visual-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 22px 0;
}

.tenant-quota-metrics {
    display: grid;
    gap: 10px;
}

.tenant-quota-metrics p,
.quota-breakdown-label {
    margin: 0;
}

.tenant-quota-metrics p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.tenant-quota-metrics span,
.quota-breakdown-label span {
    color: #64748b;
    font-weight: 800;
}

.tenant-quota-metrics strong,
.quota-breakdown-label strong {
    color: #0f172a;
    font-weight: 950;
}

.tenant-quota-breakdown {
    display: grid;
    gap: 14px;
}

.quota-mini-bar {
    height: 9px;
    overflow: hidden;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.quota-mini-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #0ea5e9);
}

.quota-mini-bar.uploads span {
    background: linear-gradient(90deg, #22c55e, #84cc16);
}

.tenant-quota-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tenant-quota-footer > span {
    color: #64748b;
    font-weight: 900;
}

@media (max-width: 1400px) {
    .tenant-quota-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quota-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .tenant-quota-card-grid,
    .quota-summary-grid,
    .quota-overview-panel {
        grid-template-columns: 1fr;
    }

    .quota-overview-ring {
        margin: 0 auto;
    }

    .tenant-quota-visual-row {
        grid-template-columns: 1fr;
    }

    .tenant-quota-ring {
        margin: 0 auto;
    }
}

/* ============================================================
 * MT-12C-v1.0 Tenant Quota Pagination
 * ============================================================ */

.quota-pagination-toolbar {
    margin: 20px 0;
}

.quota-per-page-form {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.quota-per-page-form > div {
    display: grid;
    gap: 4px;
}

.quota-per-page-form > div strong {
    color: #0f172a;
    font-size: 1rem;
}

.quota-per-page-form > div span {
    color: #64748b;
    font-weight: 800;
}

.quota-per-page-form label {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #334155;
    font-weight: 900;
}

.quota-per-page-form select {
    min-width: 96px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-weight: 900;
}

.quota-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 22px 0;
}

.quota-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.quota-page-links a,
.quota-page-links span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(15, 23, 42, .10);
    color: #334155;
    font-weight: 950;
    text-decoration: none;
}

.quota-page-links a.is-active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

.btn.is-disabled {
    opacity: .45;
    pointer-events: none;
}

@media (max-width: 760px) {
    .quota-per-page-form {
        align-items: stretch;
        flex-direction: column;
    }

    .quota-per-page-form label {
        justify-content: space-between;
    }

    .quota-per-page-form select {
        flex: 0 0 110px;
    }
}

/* ============================================================
 * MT-12D-v1.0 Landlord quota management + shell enhancements
 * ============================================================ */

.landlord-brand-rotator {
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.20);
}

.landlord-brand-rotator img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .22s ease, transform .22s ease;
}

.landlord-brand-rotator img.is-switching {
    opacity: 0;
    transform: scale(.92) rotate(-4deg);
}

.landlord-theme-switch-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 16px 0 18px;
    padding: 14px 10px;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.landlord-theme-switch-wrap > span {
    color: rgba(255,255,255,.72);
    font-weight: 900;
}

.landlord-theme-switch {
    display: block;
    width: 80px;
    height: 40px;
    border-radius: 40px;
    background: linear-gradient(to bottom, #9e9e9e 30%, #f4f4f4);
    box-shadow: 0 2px 0 0 rgba(255,255,255,.65), 0 -2px 0 0 #969494;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255,255,255,0);
}

.landlord-theme-switch input {
    display: none;
}

.landlord-theme-switch div {
    display: block;
    width: 60px;
    height: 25px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, #8b8c8e 20%, #f4f4f4);
    border-radius: 25px;
}

.landlord-theme-switch div::after {
    content: "";
    position: absolute;
    display: block;
    height: 23px;
    width: 58px;
    left: 1px;
    top: 1px;
    border-radius: 23px;
    background: #828080;
    box-shadow: inset 0 0 15px 0 rgba(0,0,0,0.8);
    transition: .20s;
}

.landlord-theme-switch i {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    background: linear-gradient(to top, #9e9e9e 20%, #f4f4f4);
    border-radius: 50%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.45);
    top: 5px;
    left: 8px;
    transition: .25s;
}

.landlord-theme-switch i::after {
    content: "";
    position: absolute;
    display: block;
    width: 26px;
    height: 26px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #d5d4d4;
    z-index: 1;
}

.landlord-theme-switch input:checked ~ i {
    left: 43px;
}

.landlord-theme-switch input:checked + div::after {
    background: #f7931e;
    box-shadow: inset 0 0 15px 0 rgba(0,0,0,0.6);
}

.landlord-theme-switch .on,
.landlord-theme-switch .off {
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: .58rem;
    font-weight: 950;
    z-index: 2;
    user-select: none;
    letter-spacing: .04em;
    transition: .25s;
}

.landlord-theme-switch .on {
    left: 8px;
    color: transparent;
}

.landlord-theme-switch .off {
    right: 8px;
    color: #444;
}

.landlord-theme-switch input:checked + div > .off {
    color: transparent;
}

.landlord-theme-switch input:checked + div > .on {
    color: #8a3f0a;
}

.tenant-quota-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin: 18px 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.16);
}

.tenant-quota-edit-form label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-weight: 900;
}

.tenant-quota-edit-form input,
.quota-inline-form input {
    min-height: 42px;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 999px;
    padding: 0 14px;
    color: #0f172a;
    background: #fff;
    font-weight: 900;
}

.quota-inline-form {
    display: grid;
    grid-template-columns: 110px auto;
    gap: 8px;
    align-items: center;
    min-width: 220px;
}

.quota-pagination-summary {
    color: #64748b;
    font-weight: 950;
}

html[data-landlord-theme="dark"] body.landlord-layout-body,
html[data-landlord-theme="dark"] .landlord-admin-main {
    background: #020617 !important;
    color: #e2e8f0 !important;
}

html[data-landlord-theme="dark"] .landlord-admin-card,
html[data-landlord-theme="dark"] .tenant-quota-card,
html[data-landlord-theme="dark"] .quota-page-links a,
html[data-landlord-theme="dark"] .quota-page-links span {
    background: rgba(15, 23, 42, 0.96) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #e2e8f0 !important;
}

html[data-landlord-theme="dark"] .landlord-admin-page-header h1,
html[data-landlord-theme="dark"] .landlord-admin-card h2,
html[data-landlord-theme="dark"] .tenant-quota-card h3,
html[data-landlord-theme="dark"] .quota-overview-copy h3,
html[data-landlord-theme="dark"] .tenant-quota-metrics strong,
html[data-landlord-theme="dark"] .quota-breakdown-label strong,
html[data-landlord-theme="dark"] .quota-overview-ring strong,
html[data-landlord-theme="dark"] .tenant-quota-ring strong {
    color: #f8fafc !important;
}

html[data-landlord-theme="dark"] .landlord-admin-page-header p,
html[data-landlord-theme="dark"] .landlord-admin-card p,
html[data-landlord-theme="dark"] .tenant-quota-card-head p,
html[data-landlord-theme="dark"] .quota-overview-copy p,
html[data-landlord-theme="dark"] .tenant-quota-metrics span,
html[data-landlord-theme="dark"] .quota-breakdown-label span,
html[data-landlord-theme="dark"] .tenant-quota-footer > span {
    color: #cbd5e1 !important;
}

html[data-landlord-theme="dark"] .quota-overview-ring,
html[data-landlord-theme="dark"] .tenant-quota-ring {
    background:
        radial-gradient(circle at center, #0f172a 0 56%, transparent 57%),
        conic-gradient(#38bdf8 calc(var(--quota-ring) * 1%), rgba(148, 163, 184, 0.22) 0);
}

html[data-landlord-theme="dark"] .tenant-quota-ring {
    background:
        radial-gradient(circle at center, #0f172a 0 56%, transparent 57%),
        conic-gradient(#22c55e calc(var(--tenant-quota-ring) * 1%), rgba(148, 163, 184, 0.22) 0);
}

@media (max-width: 760px) {
    .tenant-quota-edit-form,
    .quota-inline-form {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * MT-13A-v1.0 Billing / Subscription Foundation
 * ============================================================ */

.billing-summary-grid {
    margin-bottom: 20px;
}

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

.billing-plan-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.billing-plan-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.billing-plan-card.is-inactive::before {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.billing-plan-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.billing-plan-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.billing-plan-card p {
    color: #64748b;
    font-weight: 700;
}

.billing-price {
    display: block;
    margin: 18px 0 12px;
    font-size: 2rem;
    color: #0f172a;
}

.billing-price span {
    font-size: .9rem;
    color: #64748b;
}

.billing-table {
    min-width: 1180px;
}

@media (max-width: 1200px) {
    .billing-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .billing-plan-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * MT-13B-v1.0 Billing Intro Offer
 * ============================================================ */

.billing-intro-offer-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,.32), transparent 24%),
        linear-gradient(135deg, #f97316, #f59e0b, #facc15);
    box-shadow: 0 24px 54px rgba(249, 115, 22, .25);
    color: #431407;
}

.billing-intro-copy h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #431407 !important;
}

.billing-intro-copy p {
    margin: 0;
    color: #7c2d12 !important;
    font-weight: 900;
}

.billing-fire {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    color: #7c2d12;
    font-weight: 950;
}

.billing-intro-price {
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 0 0 8px rgba(255,255,255,.25);
}

.billing-intro-price strong {
    color: #7c2d12;
    font-size: 2rem;
    font-weight: 950;
}

.billing-intro-price span {
    color: #9a3412;
    font-weight: 900;
}

@media (max-width: 860px) {
    .billing-intro-offer-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .billing-intro-price {
        margin: 0 auto;
    }
}

/* ============================================================
 * MT-13C-v1.0 Packages Page + Public Login Sliders
 * ============================================================ */

.auth-redesign-shell {
    min-height: 100vh;
    align-items: stretch;
}

.auth-redesign-left {
    min-height: 100vh;
}

.landlord-login-slider {
    overflow: hidden;
}

.landlord-login-slider img,
[data-public-image-slider-img] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .22s ease, transform .22s ease;
}

[data-public-image-slider-img].is-switching {
    opacity: 0;
    transform: scale(.94);
}

.packages-public-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.packages-public-hero {
    position: relative;
    overflow: hidden;
    padding: 42px;
    margin-bottom: 22px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,.32), transparent 28%),
        linear-gradient(135deg, #0ea5e9, #2563eb, #0f172a);
    color: #fff;
    box-shadow: 0 24px 54px rgba(37, 99, 235, .22);
}

.packages-public-hero h1 {
    max-width: 780px;
    margin: 14px 0 12px;
    color: #fff !important;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
}

.packages-public-hero p {
    max-width: 720px;
    color: rgba(255,255,255,.86) !important;
    font-size: 1.1rem;
    font-weight: 800;
}

.packages-public-hero .auth-home-button {
    display: inline-flex;
    margin: 0 8px 8px 0;
    background: rgba(255,255,255,.18);
    color: #fff;
    border-color: rgba(255,255,255,.24);
}

.packages-intro-panel {
    margin-bottom: 22px;
}

.packages-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.packages-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 20px 44px rgba(15, 23, 42, .09);
}

.packages-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.packages-card.is-featured::before {
    background: linear-gradient(90deg, #f97316, #facc15);
}

.packages-featured-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(249, 115, 22, .12);
    color: #9a3412;
    font-weight: 950;
}

.packages-card h2 {
    margin: 16px 0 8px;
    font-size: 1.8rem;
}

.packages-price {
    display: block;
    margin: 12px 0;
    color: #0f172a;
    font-size: 2.6rem;
    font-weight: 950;
}

.packages-card ul {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.packages-card li {
    color: #334155;
    font-weight: 850;
}

.packages-card li::before {
    content: "✓";
    margin-right: 8px;
    color: #22c55e;
    font-weight: 950;
}

@media (max-width: 760px) {
    .packages-card-grid {
        grid-template-columns: 1fr;
    }

    .packages-public-hero {
        padding: 28px;
    }
}

/* ============================================================
 * MT-13D-v1.0 Payment Gateway Buttons
 * ============================================================ */

.gateway-button-stack {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.gateway-button-stack form {
    margin: 0;
}

.gateway-button-stack button {
    width: 100%;
    justify-content: center;
}

/* ============================================================
 * MT-13F-v1.0 Start Tenant Full-Width Layout Fix
 * Purpose:
 * - Make /start onboarding page fill full browser width
 * - Blue left panel = 50%
 * - White form panel = 50%
 * - Remove unused side whitespace
 * Scope:
 * - Only .auth-redesign-shell.signup-shell
 * ============================================================ */

.auth-redesign-shell.signup-shell {
    width: 100vw !important;
    max-width: none !important;
    min-height: calc(100vh - 76px) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 0 !important;
}

.auth-redesign-shell.signup-shell .auth-redesign-left,
.auth-redesign-shell.signup-shell .auth-redesign-right {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 76px) !important;
    margin: 0 !important;
}

.auth-redesign-shell.signup-shell .auth-redesign-left {
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.auth-redesign-shell.signup-shell .auth-redesign-right {
    border-radius: 0 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(24px, 4vw, 56px) !important;
}

.auth-redesign-shell.signup-shell .auth-redesign-card.signup-card {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
}

.auth-redesign-shell.signup-shell .auth-left-content {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    padding: clamp(24px, 4vw, 56px) !important;
}

@media (max-width: 900px) {
    .auth-redesign-shell.signup-shell {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .auth-redesign-shell.signup-shell .auth-redesign-left,
    .auth-redesign-shell.signup-shell .auth-redesign-right {
        min-height: auto !important;
    }

    .auth-redesign-shell.signup-shell .auth-redesign-left {
        min-height: 420px !important;
    }
}

/* ============================================================
 * MT-13F-v1.1 Start Tenant TRUE Full-Bleed Fix
 * Scope: /start page only via .signup-shell
 * Fixes:
 * - Removes left/right whitespace
 * - Removes top whitespace under header
 * - Removes horizontal page slider
 * - Forces blue panel 50% and white form panel 50%
 * ============================================================ */

html:has(.auth-redesign-shell.signup-shell),
body:has(.auth-redesign-shell.signup-shell) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body:has(.auth-redesign-shell.signup-shell) .page-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body:has(.auth-redesign-shell.signup-shell) main.page-shell {
    display: block !important;
}

.auth-redesign-shell.signup-shell {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 64px) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 50% 50% !important;
    gap: 0 !important;
    align-items: stretch !important;
    overflow: hidden !important;
}

.auth-redesign-shell.signup-shell .auth-redesign-left,
.auth-redesign-shell.signup-shell .auth-redesign-right {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: calc(100vh - 64px) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.auth-redesign-shell.signup-shell .auth-redesign-left {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.auth-redesign-shell.signup-shell .auth-redesign-right {
    grid-column: 2 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(24px, 4vw, 56px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.auth-redesign-shell.signup-shell .auth-left-content {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    padding: clamp(22px, 4vw, 56px) !important;
    box-sizing: border-box !important;
}

.auth-redesign-shell.signup-shell .auth-redesign-card.signup-card {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .auth-redesign-shell.signup-shell {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .auth-redesign-shell.signup-shell .auth-redesign-left,
    .auth-redesign-shell.signup-shell .auth-redesign-right {
        grid-column: auto !important;
        min-height: auto !important;
    }

    .auth-redesign-shell.signup-shell .auth-redesign-left {
        min-height: 420px !important;
    }
}

/* ============================================================
 * MT-13F-v1.2 Auth Full-Bleed Layout Override
 * Scope:
 * - Tenant login page
 * - Tenant onboarding/start page
 * - Landlord login page where auth-redesign-shell is used
 *
 * Purpose:
 * - Remove parent max-width containers
 * - Remove top/side whitespace
 * - Remove horizontal page scroll
 * - Force left blue panel 50%, right white panel 50%
 * ============================================================ */

html:has(.auth-redesign-shell),
body:has(.auth-redesign-shell) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body:has(.auth-redesign-shell) main,
body:has(.auth-redesign-shell) .page-shell,
body:has(.auth-redesign-shell) .app-shell,
body:has(.auth-redesign-shell) .site-shell,
body:has(.auth-redesign-shell) .content-shell,
body:has(.auth-redesign-shell) .main-content,
body:has(.auth-redesign-shell) .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

.auth-redesign-shell {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 64px) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 50% 50% !important;
    gap: 0 !important;
    align-items: stretch !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.auth-redesign-shell .auth-redesign-left,
.auth-redesign-shell .auth-redesign-right {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: calc(100vh - 64px) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.auth-redesign-shell .auth-redesign-left {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.auth-redesign-shell .auth-redesign-right {
    grid-column: 2 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(24px, 4vw, 56px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.auth-redesign-shell .auth-left-content {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    padding: clamp(22px, 4vw, 56px) !important;
    box-sizing: border-box !important;
}

.auth-redesign-shell .auth-redesign-card {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Prevent wide buttons from causing horizontal scroll */
.auth-redesign-shell .auth-home-button,
.auth-redesign-shell .btn,
.auth-redesign-shell button,
.auth-redesign-shell input {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .auth-redesign-shell {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .auth-redesign-shell .auth-redesign-left,
    .auth-redesign-shell .auth-redesign-right {
        grid-column: auto !important;
        min-height: auto !important;
    }

    .auth-redesign-shell .auth-redesign-left {
        min-height: 420px !important;
    }
}

/* ============================================================
 * MT-14A-v1.0 Statistics / Analytics Dashboard
 * ============================================================ */

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

.stats-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
}

.stats-mini-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-mini-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.stats-mini-card span,
.stats-mini-card small {
    display: block;
    color: #64748b !important;
    font-weight: 850;
}

.stats-mini-card strong {
    display: block;
    margin: 6px 0;
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 950;
}

.stats-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.stats-dashboard-grid .landlord-admin-card {
    min-width: 0;
}

.stats-wide {
    grid-column: 1 / -1;
}

.stats-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.stats-list {
    display: grid;
    gap: 8px;
}

.stats-list p {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.stats-list span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #334155 !important;
    font-weight: 850;
}

.stats-list strong {
    white-space: nowrap;
    color: #0f172a;
    font-weight: 950;
}

.stats-empty {
    padding: 12px;
    border-radius: 14px;
    background: rgba(14,165,233,.08);
    color: #0369a1 !important;
    font-weight: 850;
}

html[data-theme="dark"] .stats-mini-card {
    background: rgba(33,33,33,.96);
    border-color: rgba(255,255,255,.08);
}

html[data-theme="dark"] .stats-mini-card strong,
html[data-theme="dark"] .stats-list strong {
    color: #f8fafc;
}

html[data-theme="dark"] .stats-list span {
    color: #cbd5e1 !important;
}

@media (max-width: 1180px) {
    .stats-top-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .stats-dashboard-grid,
    .stats-two-col {
        grid-template-columns: 1fr;
    }

    .stats-top-grid,
    .stats-mini-grid,
    .stats-mini-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .stats-top-grid,
    .stats-mini-grid,
    .stats-mini-grid.compact {
        grid-template-columns: 1fr;
    }
}
