body {
    background: #f4f7fb;
    color: #1f2933;
}

.dark body {
    background: #070b1a;
    color: #e5edf8;
}

.ct-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 20%, #312e81 0, #0f172a 42%, #020617 100%);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ct-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.ct-loader-ring {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 4px solid rgba(255,255,255,0.18);
    border-top-color: #22d3ee;
    animation: ct-spin 0.8s linear infinite;
}

@keyframes ct-spin {
    to { transform: rotate(360deg); }
}

.ct-nav {
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

.dark .ct-nav {
    background: rgba(7, 11, 26, 0.78);
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

.ct-nav-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ct-brand,
.ct-nav-links,
.ct-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ct-brand {
    color: #111827;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0;
}

.dark .ct-brand {
    color: #fff;
}

.ct-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 52%, #06b6d4);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.ct-nav-links a,
.ct-footer a {
    color: #526174;
    font-weight: 700;
    text-decoration: none;
}

.ct-nav-links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.55rem 0.72rem;
    border-radius: 12px;
    font-size: 0.84rem;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ct-nav-links a i {
    color: #8171df;
    font-size: 0.82rem;
}

.ct-nav-links a:hover,
.ct-nav-links a.active {
    color: #4f46e5;
    background: #f1efff;
    transform: translateY(-1px);
}

.dark .ct-nav-links a:hover,
.dark .ct-nav-links a.active {
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.16);
}

.ct-nav-links a:hover,
.ct-footer a:hover {
    color: #4f46e5;
}

.dark .ct-nav-links a,
.dark .ct-footer a {
    color: #b7c2d3;
}

.ct-btn,
.ct-icon-btn {
    border: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ct-btn:hover,
.ct-icon-btn:hover,
.ct-gradient-button:hover,
.ct-white-button:hover {
    transform: translateY(-2px);
}

.ct-btn {
    padding: 0.55rem 1rem;
}

.ct-btn-ghost,
.ct-icon-btn {
    color: #263449;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.dark .ct-btn-ghost,
.dark .ct-icon-btn {
    color: #e5edf8;
    background: rgba(15, 23, 42, 0.78);
}

.ct-btn-gradient,
.ct-gradient-button {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 58%, #06b6d4);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.28);
}

.ct-icon-btn {
    width: 40px;
}

.ct-user-chip {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    color: #526174;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.55rem 0.8rem;
}

.dark .ct-user-chip {
    color: #cbd5e1;
}

.ct-account-menu {
    position: relative;
}

.ct-account-trigger {
    min-height: 46px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #e5e0f5;
    border-radius: 14px;
    color: #211c33;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.34rem 0.55rem;
    text-align: left;
    box-shadow: 0 8px 24px rgba(76, 55, 126, 0.08);
}

.ct-account-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 58%, #06b6d4);
}

.ct-account-copy {
    min-width: 0;
    display: grid;
}

.ct-account-copy strong,
.ct-account-copy small {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-account-copy strong {
    font-size: 0.78rem;
}

.ct-account-copy small {
    color: #857c99;
    font-size: 0.64rem;
}

.ct-account-trigger > i {
    color: #8b82a1;
    font-size: 0.65rem;
    transition: transform 0.18s ease;
}

.ct-account-menu.is-open .ct-account-trigger > i {
    transform: rotate(180deg);
}

.ct-account-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 1080;
    width: 220px;
    display: none;
    padding: 0.45rem;
    border: 1px solid #e9e4f5;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 55px rgba(42, 30, 72, 0.18);
}

.ct-account-menu.is-open .ct-account-dropdown {
    display: grid;
}

.ct-account-dropdown a,
.ct-account-dropdown button {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 0;
    border-radius: 10px;
    color: #504860;
    background: transparent;
    padding: 0.6rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 750;
    text-align: left;
    text-decoration: none;
}

.ct-account-dropdown a:hover,
.ct-account-dropdown button:hover {
    color: #5b42d6;
    background: #f3f0ff;
}

.ct-account-dropdown .is-danger {
    color: #be123c;
}

.dark .ct-account-trigger,
.dark .ct-account-dropdown {
    border-color: #302b45;
    color: #f8fafc;
    background: rgba(23, 19, 39, 0.98);
}

.dark .ct-account-dropdown a,
.dark .ct-account-dropdown button {
    color: #d8d3e5;
}

.dark .ct-account-dropdown a:hover,
.dark .ct-account-dropdown button:hover {
    color: #ddd6fe;
    background: rgba(124, 58, 237, 0.18);
}

.ct-mobile-menu,
.ct-mobile-menu-backdrop {
    display: none;
}

.ct-about-page,
.ct-profile-page {
    display: grid;
    gap: 1rem;
}

.ct-about-hero,
.ct-about-values,
.ct-profile-hero,
.ct-profile-form-card {
    border: 1px solid #e9e4f5;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 55px rgba(74, 55, 120, 0.09);
}

.ct-about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(1.4rem, 4vw, 3.5rem);
}

.ct-about-hero h1 {
    max-width: 760px;
    margin: 0 0 1rem;
    color: #181329;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 5vw, 4.4rem);
    font-weight: 850;
    line-height: 1.04;
}

.ct-about-hero p,
.ct-about-grid p,
.ct-about-values p,
.ct-profile-form-heading p {
    color: #706781;
    line-height: 1.75;
}

.ct-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.3rem;
}

.ct-about-visual {
    display: grid;
    gap: 0.65rem;
    border: 1px solid #dfd8f5;
    border-radius: 8px;
    background: linear-gradient(145deg, #f8f6ff, #edf9ff);
    padding: 1rem;
}

.ct-about-visual > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #5b4ae8, #08a7c5);
    font-size: 1.3rem;
}

.ct-about-visual > div {
    display: grid;
    border-left: 3px solid #8b7aed;
    background: #fff;
    padding: 0.75rem 0.85rem;
}

.ct-about-visual small {
    color: #7d748c;
}

.ct-about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ct-about-grid article {
    border: 1px solid #e8e3f5;
    border-radius: 8px;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 12px 34px rgba(74, 55, 120, 0.07);
}

.ct-about-grid article > span,
.ct-profile-form-heading > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #5b42d6;
    background: #efecff;
}

.ct-about-grid h2,
.ct-profile-form-heading h2 {
    margin: 0.9rem 0 0.35rem;
    color: #211a34;
    font-size: 1.05rem;
    font-weight: 850;
}

.ct-about-values {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.3rem;
}

.ct-about-values h2 {
    color: #211a34;
    font-size: 1.5rem;
    font-weight: 850;
}

.ct-about-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.ct-about-steps span {
    display: grid;
    gap: 0.45rem;
    border-radius: 8px;
    background: #f6f4ff;
    padding: 0.8rem;
}

.ct-about-steps b {
    color: #684edc;
    font-size: 1.2rem;
}

.ct-profile-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
}

.ct-profile-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4);
    font-size: 1.8rem;
    font-weight: 900;
}

.ct-profile-hero h1 {
    margin: 0;
    color: #211a34;
    font-size: 1.55rem;
    font-weight: 850;
}

.ct-profile-hero p {
    margin: 0.2rem 0 0;
    color: #776e88;
}

.ct-profile-balance {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 0.4rem;
    align-items: center;
    border: 1px solid #e7def8;
    border-radius: 8px;
    background: #faf8ff;
    padding: 0.7rem 0.9rem;
}

.ct-profile-balance i {
    color: #e7a60a;
}

.ct-profile-balance small {
    grid-column: 1 / -1;
    color: #82788f;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.ct-profile-form-card {
    padding: 1.2rem;
}

.ct-profile-form-heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    margin-bottom: 1rem;
}

.ct-profile-form-heading h2,
.ct-profile-form-heading p {
    margin: 0;
}

.ct-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.ct-profile-grid label {
    display: grid;
    gap: 0.35rem;
    color: #5e566d;
    font-size: 0.76rem;
    font-weight: 800;
}

.ct-profile-address {
    grid-column: 1 / -1;
}

.ct-profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1rem;
}

.ct-profile-form-actions a,
.ct-profile-form-actions button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #ded7ef;
    border-radius: 8px;
    color: #5d536d;
    background: #fff;
    padding: 0.6rem 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.ct-profile-form-actions button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 58%, #06b6d4);
}

.ct-developer-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
    gap: 1.2rem;
    align-items: center;
    border: 1px solid #e9e4f5;
    border-radius: 8px;
    background:
        radial-gradient(circle at 8% 10%, rgba(124, 58, 237, 0.12), transparent 34%),
        radial-gradient(circle at 92% 90%, rgba(6, 182, 212, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.94);
    padding: 1.2rem;
    box-shadow: 0 18px 55px rgba(74, 55, 120, 0.09);
}

.ct-developer-photo {
    overflow: hidden;
    border: 1px solid #dcd4f1;
    border-radius: 8px;
    background: #f6f3ff;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.14);
}

.ct-developer-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    object-position: center;
}

.ct-developer-copy h2 {
    margin: 0 0 0.65rem;
    color: #19132b;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    font-weight: 850;
}

.ct-developer-copy p:not(.ct-section-eyebrow) {
    max-width: 760px;
    margin: 0;
    color: #6c627e;
    line-height: 1.75;
}

.ct-developer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.ct-developer-actions a,
.ct-developer-actions span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ded7ef;
    border-radius: 8px;
    color: #514866;
    background: #fff;
    padding: 0.6rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
}

.ct-developer-actions a:first-child {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.ct-developer-actions a:nth-child(2) {
    color: #067a4d;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.dark .ct-about-hero,
.dark .ct-about-grid article,
.dark .ct-about-values,
.dark .ct-profile-hero,
.dark .ct-profile-form-card,
.dark .ct-about-visual > div,
.dark .ct-developer-card {
    border-color: #302a43;
    background: #171425;
}

.dark .ct-about-visual {
    border-color: #393151;
    background: #201b32;
}

.dark .ct-about-hero h1,
.dark .ct-about-grid h2,
.dark .ct-about-values h2,
.dark .ct-profile-hero h1,
.dark .ct-profile-form-heading h2,
.dark .ct-developer-copy h2 {
    color: #fff;
}

.dark .ct-developer-copy p:not(.ct-section-eyebrow) {
    color: #c8c0d7;
}

.dark .ct-developer-actions span,
.dark .ct-developer-actions a {
    border-color: #393151;
    color: #e8e2f4;
    background: #221d34;
}

.dark .ct-developer-actions a:first-child {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.dark .ct-developer-actions a:nth-child(2) {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
}

.dark .ct-about-steps span,
.dark .ct-profile-balance {
    border-color: #3b3253;
    background: #221d34;
}

@media (max-width: 1180px) and (min-width: 769px) {
    .ct-nav-links {
        gap: 0.25rem;
    }

    .ct-nav-links a {
        padding-inline: 0.6rem;
    }

    .ct-nav-links a span {
        display: none;
    }

    .ct-nav-links a i {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    body.ct-menu-open {
        overflow: hidden;
    }

    .ct-mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1085;
        display: block;
        visibility: hidden;
        background: rgba(16, 12, 28, 0.48);
        opacity: 0;
        transition: opacity 0.22s ease, visibility 0.22s ease;
        backdrop-filter: blur(3px);
    }

    .ct-mobile-menu {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 1090;
        width: min(88vw, 380px);
        display: flex;
        flex-direction: column;
        border-left: 1px solid #e8e2f3;
        background: #fbfaff;
        padding: max(0.8rem, env(safe-area-inset-top)) 0.8rem max(0.8rem, env(safe-area-inset-bottom));
        box-shadow: -24px 0 70px rgba(31, 23, 52, 0.24);
        transform: translateX(105%);
        transition: transform 0.25s ease;
    }

    body.ct-menu-open .ct-mobile-menu-backdrop {
        visibility: visible;
        opacity: 1;
    }

    body.ct-menu-open .ct-mobile-menu {
        transform: translateX(0);
    }

    .ct-mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .ct-mobile-account,
    .ct-mobile-welcome {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0.7rem;
        align-items: center;
        border: 1px solid #e5def5;
        border-radius: 8px;
        background: #fff;
        padding: 0.75rem;
    }

    .ct-mobile-account .ct-account-avatar {
        width: 44px;
        height: 44px;
    }

    .ct-mobile-account > span:last-child,
    .ct-mobile-welcome {
        min-width: 0;
    }

    .ct-mobile-account strong,
    .ct-mobile-account small,
    .ct-mobile-welcome strong,
    .ct-mobile-welcome small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ct-mobile-account small,
    .ct-mobile-welcome small {
        color: #82798f;
        font-size: 0.67rem;
    }

    .ct-mobile-welcome {
        grid-template-columns: 1fr;
    }

    .ct-mobile-menu-links {
        display: grid;
        gap: 0.3rem;
        margin-top: 0.8rem;
        overflow-y: auto;
    }

    .ct-mobile-menu-links a {
        min-height: 50px;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.65rem;
        border-radius: 8px;
        color: #544b63;
        padding: 0.45rem 0.55rem;
        font-size: 0.86rem;
        font-weight: 800;
        text-decoration: none;
    }

    .ct-mobile-menu-links a > i:first-child {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        color: #694edb;
        background: #eeeaff;
    }

    .ct-mobile-menu-links a > i:last-child {
        color: #aaa1b7;
        font-size: 0.65rem;
    }

    .ct-mobile-menu-links a.active {
        color: #fff;
        background: linear-gradient(135deg, #5748db, #7c3aed);
    }

    .ct-mobile-menu-links a.active > i:first-child {
        color: #fff;
        background: rgba(255, 255, 255, 0.16);
    }

    .ct-mobile-menu-links a.active > i:last-child {
        color: #fff;
    }

    .ct-mobile-menu-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
        margin-top: auto;
        padding-top: 0.8rem;
    }

    .ct-mobile-logout {
        grid-column: 1 / -1;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        border-radius: 8px;
        color: #be123c;
        background: #fff1f2;
        font-weight: 850;
        text-decoration: none;
    }

    .dark .ct-mobile-menu {
        border-color: #332c47;
        background: #110e1c;
    }

    .dark .ct-mobile-account,
    .dark .ct-mobile-welcome {
        border-color: #342d49;
        background: #1b1729;
    }

    .dark .ct-mobile-menu-links a {
        color: #d9d3e5;
    }

    .dark .ct-mobile-menu-links a > i:first-child {
        color: #c4b5fd;
        background: rgba(124, 58, 237, 0.18);
    }

    .ct-about-hero,
    .ct-about-values,
    .ct-about-grid,
    .ct-about-steps,
    .ct-profile-grid,
    .ct-developer-card {
        grid-template-columns: 1fr;
    }

    .ct-about-hero {
        gap: 1rem;
        padding: 1rem;
    }

    .ct-about-hero h1 {
        font-size: 2rem;
    }

    .ct-about-values {
        padding: 1rem;
    }

    .ct-profile-hero {
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 0.9rem;
    }

    .ct-profile-avatar {
        width: 54px;
        height: 54px;
        font-size: 1.25rem;
    }

    .ct-profile-balance {
        grid-column: 1 / -1;
    }

    .ct-profile-form-card {
        padding: 0.9rem;
    }

    .ct-profile-form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ct-profile-form-actions a,
    .ct-profile-form-actions button {
        justify-content: center;
        min-width: 0;
    }

    .ct-developer-card {
        padding: 0.9rem;
    }

    .ct-developer-photo img {
        aspect-ratio: 1 / 1;
    }

    .ct-developer-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ct-developer-actions a,
    .ct-developer-actions span {
        justify-content: center;
    }
}

.ct-home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 34px 34px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(79, 70, 229, 0.78)),
        url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.ct-hero-search {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 850px;
    border-radius: 26px;
    background: rgba(255,255,255,0.92);
    padding: 0.65rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(18px);
}

.ct-search-mini {
    width: 130px;
    border: 1px solid #d9e4f2;
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    outline: none;
}

.ct-gradient-button,
.ct-white-button {
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    padding: 0.75rem 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ct-glass-stat,
.ct-dashboard-mock,
.ct-feature-card,
.ct-testimonial,
.ct-location-card,
.ct-room-slide {
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.dark .ct-feature-card,
.dark .ct-testimonial,
.dark .ct-location-card,
.dark .ct-room-slide {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.18);
}

.ct-glass-stat {
    background: rgba(255,255,255,0.16);
    color: #fff;
    padding: 1rem;
}

.ct-glass-stat strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 900;
}

.ct-glass-stat span {
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
}

.ct-hero-preview {
    min-height: 420px;
    display: grid;
    place-items: center;
}

.ct-dashboard-mock {
    width: min(100%, 520px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78));
    padding: 1.2rem;
}

.ct-ai-room {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.9rem;
}

.ct-ai-room p {
    margin: 0;
    color: #b8c4d8;
    font-size: 0.86rem;
}

.ct-ai-room > span:last-child {
    color: #a5f3fc;
    font-weight: 900;
}

.ct-ai-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.26);
    color: #ddd6fe;
}

.ct-ai-icon.cyan {
    background: rgba(6, 182, 212, 0.22);
    color: #a5f3fc;
}

.ct-ai-icon.green {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.ct-section-eyebrow {
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.dark .ct-section-eyebrow {
    color: #67e8f9;
}

.ct-section-title {
    color: #101827;
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
}

.dark .ct-section-title {
    color: #fff;
}

.ct-link {
    color: #4f46e5;
    font-weight: 900;
    text-decoration: none;
}

.ct-room-slide {
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ct-room-slide:hover,
.ct-location-card:hover,
.ct-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(79, 70, 229, 0.16);
}

.ct-room-image {
    position: relative;
    height: 230px;
    background: linear-gradient(135deg, #c7d2fe, #a5f3fc);
}

.ct-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-room-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 3rem;
}

.ct-floating-badge {
    position: absolute;
    right: 1rem;
    top: 1rem;
    border-radius: 999px;
    background: #facc15;
    color: #713f12;
    font-weight: 900;
    padding: 0.35rem 0.75rem;
}

.ct-soft-pill {
    border: 1px solid #d9e4f2;
    border-radius: 999px;
    color: #41546d;
    background: #f3f7fc;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.4rem 0.7rem;
}

.dark .ct-soft-pill {
    color: #dce7f7;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.22);
}

.ct-location-card,
.ct-feature-card,
.ct-testimonial {
    padding: 1.25rem;
}

.ct-location-card i,
.ct-feature-card span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.22);
}

.ct-location-card h3,
.ct-feature-card h3 {
    color: #101827;
    font-weight: 900;
    margin: 1rem 0 0.35rem;
}

.dark .ct-location-card h3,
.dark .ct-feature-card h3 {
    color: #fff;
}

.ct-location-card p,
.ct-feature-card p,
.ct-testimonial p {
    color: #65758b;
    margin: 0;
}

.dark .ct-location-card p,
.dark .ct-feature-card p,
.dark .ct-testimonial p {
    color: #b7c2d3;
}

.ct-cta-section,
.ct-support-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    border-radius: 30px;
    color: #fff;
    padding: clamp(1.4rem, 4vw, 3rem);
    background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #06b6d4);
    box-shadow: 0 24px 65px rgba(79, 70, 229, 0.25);
}

.ct-cta-section h2,
.ct-support-section h2 {
    max-width: 720px;
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
    font-size: clamp(1.7rem, 3vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
}

.ct-white-button,
.ct-support-actions a {
    color: #4f46e5;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.ct-testimonial strong {
    display: block;
    color: #101827;
    margin-top: 1rem;
}

.dark .ct-testimonial strong {
    color: #fff;
}

.ct-faq .accordion-item {
    overflow: hidden;
    border: 1px solid #d9e4f2;
    border-radius: 18px;
    margin-bottom: 0.8rem;
    background: rgba(255,255,255,0.82);
}

.dark .ct-faq .accordion-item,
.dark .ct-faq .accordion-button,
.dark .ct-faq .accordion-body {
    color: #e5edf8;
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.18);
}

.ct-support-section {
    background: linear-gradient(135deg, #0f172a, #312e81 55%, #155e75);
}

.ct-support-section p {
    margin: 0.5rem 0 0;
    color: #cbd5e1;
}

.ct-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ct-support-actions a {
    border-radius: 999px;
    font-weight: 900;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.ct-footer {
    border-radius: 32px 32px 0 0;
    color: #cbd5e1;
    background: #0f172a;
}

.ct-footer h3,
.ct-footer strong {
    color: #fff;
    font-weight: 900;
}

.ct-footer p {
    color: #94a3b8;
}

.ct-footer a {
    display: block;
    margin-top: 0.55rem;
}

.ct-empty-premium {
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    padding: 2rem;
    color: #64748b;
    background: #fff;
}

.dark .panel,
.dark .metric,
.dark .room-card {
    color: #e5edf8;
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.18);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.metric {
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
}

.room-card,
.panel {
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
}

.map-shell {
    min-height: 420px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #e9eef5;
}

.badge-soft {
    background: #eef2f7;
    color: #27364a;
}

.section-kicker {
    color: #5d6b7a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.segmented .btn {
    min-height: 48px;
}

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.amenity-option {
    border: 1px solid #d9dee7;
    border-radius: 8px;
    padding: 0.7rem 0.75rem 0.7rem 2.25rem;
    background: #fff;
}

.map-placeholder {
    min-height: 220px;
    padding: 1rem;
    text-align: center;
    color: #5d6b7a;
}

.owner-side-panel {
    top: 5.5rem;
}

.owner-room-contact-fields {
    padding: 0.9rem;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    background: #f8f6ff;
}

.dark .owner-room-contact-fields {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(124, 58, 237, 0.08);
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid #e4e8ef;
}

.status-row span,
.checklist {
    color: #5d6b7a;
}

.checklist {
    margin: 0;
    padding-left: 1.2rem;
}

.checklist li + li {
    margin-top: 0.5rem;
}

.compact-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.75rem;
}

.floor-block {
    border-top: 1px solid #e4e8ef;
    padding: 1rem 0;
}

.floor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.room-row {
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fbfcfe;
    padding: 0.85rem;
    margin-top: 0.6rem;
}

.empty-floor,
.empty-state {
    border: 1px dashed #cbd3df;
    border-radius: 8px;
    color: #5d6b7a;
    padding: 1rem;
    background: #fbfcfe;
}

.floor-input-block {
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fbfcfe;
    padding: 1rem;
}

.floor-input-block + .floor-input-block {
    margin-top: 1rem;
}

.room-input-block {
    border-top: 1px solid #e4e8ef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.floor-help {
    color: #5d6b7a;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.building-title-line {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.student-building-summary {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.student-photo-frame {
    position: relative;
    display: block;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(6, 182, 212, 0.12)),
        #eef2f7;
    isolation: isolate;
}

.story-frame {
    border: 3px solid transparent;
    border-radius: 24px;
    background:
        linear-gradient(#eef2f7, #eef2f7) padding-box,
        linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4) border-box;
    box-shadow: 0 18px 42px rgba(79, 70, 229, 0.18);
}

.room-frame {
    border: 2px solid transparent;
    border-radius: 18px;
    background:
        linear-gradient(#f8fbff, #f8fbff) padding-box,
        linear-gradient(135deg, #06b6d4, #60a5fa, #a78bfa) border-box;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.12);
}

.student-building-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.student-room-photo {
    width: 160px;
    aspect-ratio: 16 / 10;
    flex: 0 0 160px;
}

.student-building-photo img,
.student-room-photo img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    background: radial-gradient(circle at center, rgba(255,255,255,0.96), rgba(226,232,240,0.9));
}

.accordion-collapse.show .student-building-photo,
.accordion-collapse.show .student-building-photo img,
.collapse.show .student-room-photo,
.collapse.show .student-room-photo img,
.collapsing .student-building-photo,
.collapsing .student-building-photo img,
.collapsing .student-room-photo,
.collapsing .student-room-photo img {
    display: block;
    visibility: visible;
    opacity: 1;
}

.student-building-photo:hover img,
.student-room-photo:hover img {
    transform: scale(1.04);
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100px;
    padding: 1rem;
    text-align: center;
    color: #5d6b7a;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.10));
}

.small-placeholder {
    min-height: 88px;
    font-size: 0.8rem;
}

.student-floor-block {
    border-top: 1px solid #e4e8ef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.student-room-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fbfcfe;
    padding: 0.85rem;
    margin-top: 0.75rem;
}

.student-room-main {
    flex: 1;
    min-width: 0;
}

.student-room-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
}

.student-help-text {
    color: #5d6b7a;
    font-size: 0.86rem;
}

.student-filter-panel {
    border-color: #cdd9ea;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 40px rgba(39, 54, 74, 0.08);
}

.dark .student-filter-panel,
.dark .student-building-list .accordion-item,
.dark .building-result .accordion-body,
.dark .student-building-summary,
.dark .student-floor-window,
.dark .student-floor-content,
.dark .student-room-row {
    color: #e5edf8;
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.18);
}

.student-building-list {
    display: grid;
    gap: 1rem;
}

.student-building-list .accordion-item,
.student-building-details {
    border: 1px solid #cdd9ea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(39, 54, 74, 0.09);
    background: #ffffff;
}

.student-building-toggle {
    min-height: 76px;
    background: linear-gradient(90deg, #eaf3ff 0%, #f7fbff 52%, #eef8f2 100%);
    border-left: 6px solid #2f80ed;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    list-style: none;
}

.student-building-toggle::-webkit-details-marker,
.student-floor-toggle::-webkit-details-marker {
    display: none;
}

.student-building-details[open] > .student-building-toggle {
    color: #18324d;
    background: linear-gradient(90deg, #ddecff 0%, #f6fbff 48%, #e6f7ee 100%);
    box-shadow: none;
}

.details-chevron {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    color: #35506b;
    transition: transform 0.2s ease;
}

.student-building-details[open] .details-chevron {
    transform: rotate(180deg);
}

.student-building-toggle:focus,
.student-floor-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(47, 128, 237, 0.18);
}

.building-result .accordion-body {
    background: #ffffff;
    padding: 1rem;
}

.student-building-summary {
    border: 1px solid #d9e4f2;
    border-radius: 8px;
    background: #fbfdff;
    padding: 1rem;
}

.student-building-photo {
    height: 230px;
    min-height: 230px;
    aspect-ratio: auto;
}

.student-floor-accordion {
    display: grid;
    gap: 0.9rem;
}

.student-floor-window {
    border: 1px solid #d9e4f2;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.student-floor-toggle {
    width: 100%;
    min-height: 58px;
    border: 0;
    background: linear-gradient(90deg, #fff7e8 0%, #f8fbff 100%);
    color: #213347;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    text-align: left;
    cursor: pointer;
    list-style: none;
}

.student-floor-toggle span {
    display: flex;
    flex-direction: column;
}

.student-floor-toggle > span:first-child span {
    color: #5d6b7a;
    font-size: 0.85rem;
}

.student-floor-window[open] > .student-floor-toggle {
    background: linear-gradient(90deg, #ffeecb 0%, #eff7ff 100%);
}

.floor-toggle-pill {
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d9dee7;
    color: #35506b;
    font-size: 0.78rem;
    font-weight: 700;
    min-width: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
}

.student-floor-content {
    max-height: 520px;
    overflow: auto;
    padding: 0.9rem;
    background: #fbfcfe;
}

.student-room-row {
    min-height: 148px;
    background: #ffffff;
    border-color: #dbe5f1;
    box-shadow: 0 8px 22px rgba(39, 54, 74, 0.06);
}

.student-room-row + .student-room-row {
    margin-top: 0.9rem;
}

.student-room-photo {
    width: 150px;
    height: 104px;
    min-height: 104px;
    aspect-ratio: auto;
    flex: 0 0 150px;
}

.student-room-main {
    padding: 0.15rem 0;
}

.student-room-actions {
    border-left: 1px solid #e4e8ef;
    padding-left: 1rem;
}

.student-room-actions .btn-dark {
    background: #1f7a5b;
    border-color: #1f7a5b;
}

.badge-soft {
    border: 1px solid #d9e4f2;
}

@media (max-width: 768px) {
    .ct-nav-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.8rem 0;
    }

    .ct-nav-links,
    .ct-nav-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .ct-hero-search,
    .ct-cta-section,
    .ct-support-section {
        align-items: stretch;
        flex-direction: column;
    }

    .ct-search-mini {
        width: 100%;
    }

    .student-building-summary {
        grid-template-columns: 1fr;
    }

    .student-room-row {
        flex-direction: column;
    }

    .student-room-photo {
        width: 100%;
        height: 210px;
        flex-basis: auto;
    }

    .student-room-actions {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: 0;
        padding-left: 0;
    }

    .student-floor-content {
        max-height: none;
    }
}

.ct-consent-field {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem;
    border: 1px solid #ddd7f1;
    border-radius: 11px;
    color: #5e566f;
    background: #faf8ff;
    font-size: 0.72rem;
    cursor: pointer;
}

.ct-consent-field input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 0.05rem;
    accent-color: #6d4aff;
}

.student-contact-profile-page {
    max-width: 820px;
    margin: 0 auto;
}

.student-contact-profile-card {
    overflow: hidden;
    border: 1px solid #e0daf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(49, 37, 101, 0.09);
}

.student-contact-profile-heading {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    background: linear-gradient(115deg, #f8f5ff, #ecfeff);
}

.student-contact-profile-heading > span {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #0891b2);
}

.student-contact-profile-heading h1 {
    margin: 0;
    color: #241c3a;
    font-size: 1.25rem;
    font-weight: 900;
}

.student-contact-profile-heading p:last-child {
    margin: 0.25rem 0 0;
    color: #716985;
    font-size: 0.72rem;
}

.student-contact-profile-card > form {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.student-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.student-profile-grid label,
.admin-control-panel label {
    min-width: 0;
    display: grid;
    gap: 0.3rem;
}

.student-profile-grid label > span,
.admin-control-panel label > span {
    color: #655d76;
    font-size: 0.66rem;
    font-weight: 850;
}

.student-consent-card span {
    display: grid;
    gap: 0.12rem;
}

.student-consent-card > i {
    color: #6d4aff;
    margin-top: 0.12rem;
}

.student-consent-card small {
    color: #7c748c;
    font-size: 0.63rem;
}

.student-profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.student-profile-actions a,
.student-profile-actions button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 9px;
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 850;
    text-decoration: none;
}

.student-profile-actions a {
    color: #6653bd;
}

.student-profile-actions button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #0891b2);
}

.admin-commerce-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.admin-control-panel {
    padding: 0.85rem;
}

.admin-panel-heading {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.admin-panel-heading > span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #0891b2);
}

.admin-panel-heading h2 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 900;
}

.admin-panel-heading p {
    margin: 0.12rem 0 0;
    color: #766e84;
    font-size: 0.65rem;
}

.admin-control-panel > form {
    display: grid;
    gap: 0.6rem;
}

.admin-form-split {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 0.55rem;
}

.admin-primary-action {
    min-height: 37px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #0891b2);
    font-size: 0.7rem;
    font-weight: 850;
}

.admin-active-grants {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.admin-active-grants form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem;
    border-radius: 8px;
    background: #ecfdf5;
}

.admin-active-grants span {
    display: grid;
    font-size: 0.66rem;
}

.admin-active-grants small {
    color: #047857;
    font-size: 0.58rem;
}

.admin-active-grants button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    color: #be123c;
    background: #fff1f2;
}

.owner-coins-page {
    display: grid;
    gap: 0.8rem;
}

.owner-coins-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e1dbf3;
    border-radius: 17px;
    background: linear-gradient(115deg, #fff, #f6f2ff 62%, #ecfeff);
    box-shadow: 0 16px 42px rgba(62, 45, 126, 0.09);
}

.owner-coins-hero h1 {
    margin: 0;
    color: #271e3e;
    font: 900 1.55rem/1.2 "Plus Jakarta Sans", sans-serif;
}

.owner-coins-hero p {
    max-width: 600px;
    margin: 0.25rem 0 0;
    color: #746c84;
    font-size: 0.72rem;
}

.owner-coin-rate {
    min-width: 92px;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.65rem;
    border: 1px solid #ddd6f2;
    border-radius: 12px;
    color: #5f48bd;
    background: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 900;
}

.owner-coin-rate small {
    grid-column: 1 / -1;
    color: #7f768e;
    font-size: 0.57rem;
    font-weight: 750;
}

.owner-payment-notice {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem;
    border: 1px solid #f7d589;
    border-radius: 11px;
    color: #8a5707;
    background: #fff8e6;
    font-size: 0.66rem;
}

.owner-payment-notice > i {
    font-size: 1rem;
}

.owner-payment-notice span {
    display: grid;
}

.owner-coin-pack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.owner-coin-pack {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid #e1dcf0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(48, 37, 94, 0.06);
}

.owner-coin-pack > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.owner-coin-pack strong {
    color: #302744;
    font-size: 0.82rem;
}

.owner-coin-pack p {
    margin: 0;
    color: #6d4aff;
    font-size: 0.75rem;
    font-weight: 900;
}

.owner-coin-pack button {
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #0891b2);
    font-size: 0.66rem;
    font-weight: 850;
}

.owner-coin-pack button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.6);
    opacity: 0.45;
}

.owner-coin-history {
    overflow: hidden;
    border: 1px solid #e2ddef;
    border-radius: 14px;
    background: #fff;
}

.owner-coin-history-heading,
.owner-coin-history > div:not(.owner-coin-history-heading) {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
}

.owner-coin-history-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    background: #faf8ff;
}

.owner-coin-history-heading h2 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 900;
}

.owner-coin-history-heading a {
    color: #6653bd;
    font-size: 0.65rem;
    font-weight: 850;
    text-decoration: none;
}

.owner-coin-history > div:not(.owner-coin-history-heading) {
    border-top: 1px solid #eeeaf5;
}

.owner-coin-history > div > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

.owner-coin-history .is-credit {
    color: #047857;
    background: #d1fae5;
}

.owner-coin-history .is-debit {
    color: #be123c;
    background: #ffe4e6;
}

.owner-coin-history p {
    display: grid;
    margin: 0;
}

.owner-coin-history strong {
    color: #40374e;
    font-size: 0.68rem;
}

.owner-coin-history small {
    color: #857d91;
    font-size: 0.57rem;
}

.owner-coin-history > div > b {
    color: #5f48bd;
    font-size: 0.74rem;
}

.owner-history-empty {
    padding: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .student-profile-grid,
    .admin-commerce-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .student-profile-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .student-profile-actions a,
    .student-profile-actions button {
        width: 100%;
    }

    .admin-form-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .owner-coins-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .owner-coin-rate {
        align-self: flex-start;
    }

    .owner-coin-pack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Owner property editor: aligned with the student dashboard's light violet theme. */
.owner-editor-page {
    --owner-primary: #6d4aff;
    --owner-primary-dark: #5636dc;
    --owner-soft: #f5f2ff;
    --owner-soft-strong: #ede8ff;
    --owner-line: #e3dcff;
    --owner-ink: #241f3a;
    color: var(--owner-ink);
}

.owner-editor-page .page-title {
    color: var(--owner-ink);
    font-weight: 800;
}

.owner-editor-page .panel,
.owner-editor-page .metric {
    border-color: var(--owner-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(88, 65, 170, 0.07);
}

.owner-editor-page .metric {
    position: relative;
    overflow: hidden;
}

.owner-editor-page .metric::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: linear-gradient(#6d4aff, #38bdf8);
}

.owner-editor-page .section-kicker {
    margin-bottom: 0.25rem;
    color: var(--owner-primary);
}

.owner-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--owner-ink);
    font-weight: 800;
}

.owner-section-title > i {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--owner-primary);
    background: var(--owner-soft);
    font-size: 0.88rem;
    animation: owner-icon-float 3.2s ease-in-out infinite;
}

.owner-field-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4b4561;
    font-size: 0.82rem;
    font-weight: 700;
}

.owner-field-label > i {
    width: 16px;
    color: var(--owner-primary);
    text-align: center;
    transition: transform 180ms ease, color 180ms ease;
}

.owner-editor-page .form-label:hover > i,
.owner-editor-page .form-label:focus-within > i {
    color: #7c3aed;
    transform: translateY(-1px) scale(1.12);
}

.owner-editor-page .form-control,
.owner-editor-page .form-select {
    min-height: 42px;
    border-color: #ddd6f7;
    border-radius: 10px;
    color: var(--owner-ink);
    background-color: #fcfbff;
}

.owner-editor-page textarea.form-control {
    min-height: auto;
}

.owner-editor-page .form-control:focus,
.owner-editor-page .form-select:focus {
    border-color: #927cff;
    box-shadow: 0 0 0 0.2rem rgba(109, 74, 255, 0.13);
    background-color: #fff;
}

.owner-editor-page .segmented .btn {
    border-color: #d8d0fa;
    border-radius: 10px;
    color: #554d70;
    background: #fff;
}

.owner-editor-page .segmented .btn-check:checked + .btn {
    border-color: var(--owner-primary);
    color: #fff;
    background: var(--owner-primary);
    box-shadow: 0 7px 16px rgba(109, 74, 255, 0.2);
}

.owner-editor-page .amenity-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.55rem;
}

.owner-editor-page .amenity-option {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    border-color: var(--owner-line);
    border-radius: 11px;
    background: #fff;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.owner-editor-page .amenity-option:hover {
    border-color: #aa99ff;
    box-shadow: 0 6px 16px rgba(109, 74, 255, 0.1);
    transform: translateY(-1px);
}

.owner-editor-page .amenity-option:hover .form-check-label i {
    animation: owner-icon-wiggle 520ms ease;
}

.owner-editor-page .amenity-option .form-check-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.owner-editor-page .amenity-option .form-check-label {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    color: #514968;
    font-size: 0.78rem;
    font-weight: 700;
}

.owner-editor-page .amenity-option .form-check-label i {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 8px;
    color: var(--owner-primary);
    background: var(--owner-soft);
}

.owner-editor-page .amenity-option .form-check-input:checked + .form-check-label {
    color: var(--owner-primary-dark);
    background: var(--owner-soft);
}

.owner-editor-page .amenity-option .form-check-input:checked + .form-check-label i {
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #8b5cf6);
    animation: owner-icon-pop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.35);
}

.owner-editor-page .amenity-option:has(.form-check-input:checked) {
    border-color: #9b87ff;
    box-shadow: 0 6px 18px rgba(109, 74, 255, 0.12);
}

.owner-editor-page .compact-check-grid {
    gap: 0.5rem;
}

.owner-editor-page .owner-room-contact-fields,
.owner-editor-page .floor-input-block,
.owner-editor-page .room-input-block,
.owner-editor-page .room-row {
    border-color: var(--owner-line);
    border-radius: 12px;
    background: #faf9ff;
}

.owner-editor-page .room-input-block {
    padding: 0.9rem;
}

.owner-editor-page .map-shell {
    border-color: var(--owner-line);
    color: #625a7d;
    background: linear-gradient(135deg, #f5f2ff, #eef9ff);
}

.owner-map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.55rem;
}

.owner-map-toolbar > span {
    color: #706783;
    font-size: 0.72rem;
    font-weight: 650;
    text-align: right;
}

.owner-map-toolbar > span.is-warning {
    color: #b45309;
    font-weight: 800;
}

.owner-location-map {
    width: 100%;
    height: 310px;
    overflow: hidden;
    border: 1px solid #ddd6f7;
    border-radius: 12px;
    background: #f5f2ff;
    z-index: 1;
}

.owner-modal-map {
    height: 245px;
}

.owner-location-map .leaflet-control-zoom a {
    color: #5b3fe0;
}

.owner-location-map .leaflet-marker-icon {
    filter: hue-rotate(28deg) saturate(1.2);
}

.owner-btn-primary,
.owner-btn-secondary,
.owner-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 10px;
    font-weight: 750;
}

.owner-btn-primary i,
.owner-btn-secondary i,
.owner-icon-btn i {
    transition: transform 180ms ease;
}

.owner-btn-primary:hover i,
.owner-btn-secondary:hover i,
.owner-icon-btn:hover i {
    transform: translateY(-1px) scale(1.12);
}

.owner-btn-primary:active i,
.owner-btn-secondary:active i,
.owner-icon-btn:active i {
    transform: scale(0.9);
}

.owner-btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #7c3aed);
    box-shadow: 0 9px 20px rgba(109, 74, 255, 0.2);
}

.owner-btn-primary:hover,
.owner-btn-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, #5d3ee8, #6d28d9);
    transform: translateY(-1px);
}

.owner-btn-primary:disabled {
    color: #fff;
    background: #b7accd;
    box-shadow: none;
}

.owner-btn-secondary,
.owner-icon-btn {
    border: 1px solid #d5ccf7;
    color: var(--owner-primary-dark);
    background: #fff;
}

.owner-btn-secondary:hover,
.owner-icon-btn:hover {
    border-color: #a895ff;
    color: var(--owner-primary-dark);
    background: var(--owner-soft);
}

.owner-icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
}

.owner-side-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #504767;
    font-weight: 800;
    text-transform: none;
}

.owner-side-title i {
    color: var(--owner-primary);
    animation: owner-icon-pulse 2.6s ease-in-out infinite;
}

.owner-editor-page .status-row {
    border-color: #ece7ff;
}

.owner-step-card,
.owner-inventory-floor {
    display: block;
    overflow: hidden;
    border: 1px solid var(--owner-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(88, 65, 170, 0.07);
}

.owner-step-summary,
.owner-inventory-summary,
.owner-builder-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.owner-step-summary {
    min-height: 72px;
    padding: 0.75rem 0.9rem;
    background: linear-gradient(105deg, #fff, #faf8ff);
    transition: background 180ms ease;
}

.owner-step-summary::-webkit-details-marker,
.owner-inventory-summary::-webkit-details-marker,
.owner-builder-summary::-webkit-details-marker {
    display: none;
}

.owner-step-summary:hover {
    background: var(--owner-soft);
}

.owner-step-card[open] > .owner-step-summary {
    border-bottom: 1px solid var(--owner-line);
    background: linear-gradient(105deg, #f8f5ff, #fff);
}

.owner-step-number {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #8b5cf6);
    box-shadow: 0 7px 16px rgba(109, 74, 255, 0.2);
    font-size: 0.88rem;
    font-weight: 900;
}

.owner-step-heading {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
    flex: 1;
}

.owner-step-heading strong {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--owner-ink);
    font-size: 0.96rem;
}

.owner-step-heading strong i {
    color: var(--owner-primary);
}

.owner-step-heading small {
    overflow: hidden;
    color: #756d8c;
    font-size: 0.74rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-step-chevron {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border: 1px solid #d9d0fa;
    border-radius: 9px;
    color: var(--owner-primary);
    background: #fff;
    font-size: 0.72rem;
    transition: color 180ms ease, background 180ms ease, transform 220ms ease;
}

.owner-step-card[open] > .owner-step-summary .owner-step-chevron,
.owner-inventory-floor[open] > .owner-inventory-summary .owner-step-chevron,
.owner-builder-disclosure[open] > .owner-builder-summary .owner-step-chevron {
    color: #fff;
    background: var(--owner-primary);
    transform: rotate(180deg);
}

.owner-step-content {
    padding: 1rem;
    animation: owner-content-reveal 220ms ease both;
}

.owner-guidance {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    color: #5a5078;
    background: #f8f6ff;
    font-size: 0.78rem;
    font-weight: 600;
}

.owner-guidance i {
    margin-top: 0.08rem;
    color: var(--owner-primary);
}

.owner-inventory-floor {
    margin-top: 0.65rem;
    border-radius: 11px;
    box-shadow: none;
    background: #fcfbff;
}

.owner-inventory-summary {
    min-height: 58px;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
}

.owner-inventory-content {
    padding: 0 0.7rem 0.7rem;
    border-top: 1px solid var(--owner-line);
}

.owner-builder-disclosure {
    overflow: hidden;
    padding: 0;
}

.owner-builder-summary {
    min-height: 48px;
    justify-content: space-between;
    padding: 0.55rem 0.7rem;
    color: #443b63;
    background: #f4f1ff;
    font-size: 0.84rem;
    font-weight: 800;
}

.owner-builder-summary > span:first-child {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.owner-builder-summary > span:first-child i {
    color: var(--owner-primary);
}

.owner-builder-content {
    padding: 0.8rem;
    border-top: 1px solid var(--owner-line);
}

.owner-room-builder-summary {
    background: #fbfaff;
}

@keyframes owner-content-reveal {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.owner-editor-page .alert-info {
    border-color: #d9d0ff;
    color: #4f4670;
    background: #f5f2ff;
}

.dark .owner-editor-page {
    --owner-ink: #f3efff;
    --owner-line: rgba(167, 139, 250, 0.28);
}

.dark .owner-editor-page .panel,
.dark .owner-editor-page .metric,
.dark .owner-editor-page .amenity-option,
.dark .owner-editor-page .form-control,
.dark .owner-editor-page .form-select,
.dark .owner-editor-page .owner-btn-secondary,
.dark .owner-editor-page .owner-icon-btn {
    color: #eeeaff;
    background-color: #171426;
}

.dark .owner-editor-page .owner-field-label,
.dark .owner-editor-page .owner-side-title {
    color: #d9d1f2;
}

.dark .owner-editor-page .amenity-option .form-check-label {
    color: #d9d1f2;
}

.dark .owner-editor-page .owner-room-contact-fields,
.dark .owner-editor-page .floor-input-block,
.dark .owner-editor-page .room-input-block,
.dark .owner-editor-page .room-row {
    background: #1d1930;
}

.dark .owner-step-card,
.dark .owner-inventory-floor {
    background: #171426;
}

.dark .owner-step-summary,
.dark .owner-step-card[open] > .owner-step-summary,
.dark .owner-builder-summary {
    background: #1d1930;
}

.dark .owner-step-heading small,
.dark .owner-builder-summary {
    color: #c4badf;
}

.dark .owner-step-chevron {
    border-color: rgba(167, 139, 250, 0.35);
    background: #241e38;
}

.dark .owner-guidance {
    border-color: rgba(167, 139, 250, 0.28);
    color: #d8d0ef;
    background: #211b36;
}

@keyframes owner-icon-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes owner-icon-pulse {
    0%,
    100% {
        opacity: 0.78;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes owner-icon-wiggle {
    0%,
    100% {
        transform: rotate(0) scale(1);
    }
    30% {
        transform: rotate(-8deg) scale(1.08);
    }
    65% {
        transform: rotate(7deg) scale(1.12);
    }
}

@keyframes owner-icon-pop {
    0% {
        transform: scale(0.65);
    }
    65% {
        transform: scale(1.18);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .owner-editor-page *,
    .owner-editor-page *::before,
    .owner-editor-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 575px) {
    .owner-editor-page .amenity-grid,
    .owner-editor-page .compact-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .owner-editor-page .amenity-option .form-check-label {
        gap: 0.4rem;
        padding: 0.45rem;
        font-size: 0.7rem;
    }

    .owner-editor-page .panel {
        padding: 0.85rem !important;
    }

    .owner-step-summary {
        min-height: 64px;
        gap: 0.55rem;
        padding: 0.65rem;
    }

    .owner-step-number {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .owner-step-heading strong {
        font-size: 0.84rem;
    }

    .owner-step-heading small {
        max-width: 210px;
        font-size: 0.66rem;
    }

    .owner-step-content {
        padding: 0.75rem;
    }

    .owner-map-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .owner-map-toolbar > span {
        text-align: left;
    }

    .owner-location-map {
        height: 52dvh;
        min-height: 280px;
        max-height: 430px;
    }
}

/* Owner hierarchy workspace */
.owner-property-page {
    --owner-tree-ink: #251f3d;
    --owner-tree-muted: #716986;
    --owner-tree-line: #e3ddf7;
    --owner-tree-soft: #f7f4ff;
    --owner-tree-primary: #6d4aff;
    color: var(--owner-tree-ink);
}

.owner-property-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--owner-tree-line);
    border-radius: 18px;
    background: linear-gradient(110deg, #f7f4ff, #fff 56%, #f1fbff);
    box-shadow: 0 14px 36px rgba(69, 50, 130, 0.08);
}

.owner-property-hero h1 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 850;
}

.owner-property-hero p {
    margin: 0;
    color: var(--owner-tree-muted);
    font-size: 0.85rem;
}

.owner-hero-actions,
.owner-tree-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.owner-status-chip,
.owner-add-building {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.5rem 0.7rem;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    color: #584c77;
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.owner-leads-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dcd5f3;
    border-radius: 10px;
    color: #5b46b2;
    background: #fff;
    font-size: 0.73rem;
    font-weight: 850;
    text-decoration: none;
}

button.owner-add-building {
    border: 0;
}

.owner-building-cost-note {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem;
    border: 1px solid #f5d78d;
    border-radius: 10px;
    color: #855606;
    background: #fff8e6;
    font-size: 0.68rem;
}

.owner-building-cost-note > i {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.owner-building-cost-note span {
    display: grid;
}

.owner-leads-page {
    display: grid;
    gap: 0.8rem;
}

.owner-leads-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e3def4;
    border-radius: 16px;
    background: linear-gradient(115deg, #fff, #f7f4ff 62%, #ecfeff);
    box-shadow: 0 12px 34px rgba(67, 48, 133, 0.08);
}

.owner-leads-hero h1 {
    margin: 0;
    color: #241b3d;
    font: 800 1.45rem/1.2 "Plus Jakarta Sans", sans-serif;
}

.owner-leads-hero p {
    max-width: 650px;
    margin: 0.3rem 0 0;
    color: #716985;
    font-size: 0.78rem;
}

.owner-leads-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.owner-leads-summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ded8f3;
    border-radius: 9px;
    color: #635979;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
}

.owner-leads-summary .is-granted {
    border-color: #a7f3d0;
    color: #047857;
    background: #ecfdf5;
}

.owner-leads-toolbar {
    display: flex;
    justify-content: space-between;
}

.owner-leads-toolbar a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6653bd;
    font-size: 0.72rem;
    font-weight: 850;
    text-decoration: none;
}

.owner-lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.owner-lead-card {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #e5e0f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(42, 32, 84, 0.06);
}

.owner-lead-card > header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.owner-lead-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #0891b2);
    font-weight: 900;
}

.owner-lead-card h2 {
    margin: 0;
    color: #28203d;
    font-size: 0.9rem;
    font-weight: 850;
}

.owner-lead-card header p,
.owner-lead-date {
    margin: 0;
    color: #827994;
    font-size: 0.62rem;
}

.owner-lead-interest-list {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.6rem;
}

.owner-lead-interest-list > span {
    min-width: 0;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    color: #504765;
    background: #f8f6ff;
    font-size: 0.68rem;
    font-weight: 800;
}

.owner-lead-interest-list i {
    color: #6d4aff;
}

.owner-lead-interest-list small {
    color: #837a94;
    font-size: 0.58rem;
}

.owner-lead-preferences {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.owner-lead-preferences span {
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
    color: #635979;
    background: #eef2ff;
    font-size: 0.57rem;
}

.owner-lead-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.6rem;
    padding: 0.5rem;
    border: 1px solid #e6e1f2;
    border-radius: 10px;
    background: #faf9fd;
}

.owner-lead-contact.is-unlocked {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.owner-lead-contact.is-unlocked > a,
.owner-lead-private {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4f465f;
    text-decoration: none;
}

.owner-lead-contact i {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #5b46b2;
    background: #ede9fe;
}

.owner-lead-contact span {
    min-width: 0;
    display: grid;
    font-size: 0.58rem;
}

.owner-lead-contact b {
    overflow: hidden;
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-lead-contact form button {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #0891b2);
    font-size: 0.66rem;
    font-weight: 850;
}

.owner-lead-contact form button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.owner-leads-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    border: 1px dashed #d9d1ee;
    border-radius: 14px;
    text-align: center;
    background: #fff;
}

@media (max-width: 768px) {
    .owner-leads-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .owner-leads-summary {
        justify-content: flex-start;
    }

    .owner-lead-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .owner-lead-contact.is-unlocked {
        grid-template-columns: minmax(0, 1fr);
    }
}

.owner-add-building {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #7c3aed);
    box-shadow: 0 8px 20px rgba(109, 74, 255, 0.2);
}

.owner-add-building:hover {
    color: #fff;
    transform: translateY(-1px);
}

.owner-add-building.disabled {
    pointer-events: none;
    opacity: 0.48;
}

.owner-profile-disclosure,
.owner-building-card,
.owner-floor-node {
    overflow: hidden;
    border: 1px solid var(--owner-tree-line);
    border-radius: 14px;
    background: #fff;
}

.owner-profile-disclosure > summary,
.owner-building-summary,
.owner-floor-summary {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    list-style: none;
}

.owner-profile-disclosure summary::-webkit-details-marker,
.owner-building-summary::-webkit-details-marker,
.owner-floor-summary::-webkit-details-marker {
    display: none;
}

.owner-profile-disclosure > summary {
    min-height: 54px;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
}

.owner-profile-disclosure > summary > span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.owner-profile-disclosure > summary i {
    color: var(--owner-tree-primary);
}

.owner-profile-disclosure > summary small {
    margin-left: 0.35rem;
    color: var(--owner-tree-muted);
}

.owner-profile-compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 1.5fr auto;
    gap: 0.55rem;
    align-items: end;
    padding: 0.75rem;
    border-top: 1px solid var(--owner-tree-line);
    background: var(--owner-tree-soft);
}

.owner-profile-compact label,
.owner-modal-field {
    display: grid;
    gap: 0.28rem;
}

.owner-profile-compact label > span,
.owner-modal-field > span,
.owner-modal-label {
    color: #5e5577;
    font-size: 0.7rem;
    font-weight: 800;
}

.owner-profile-compact .form-control {
    min-height: 38px;
    border-color: #ded7f5;
    border-radius: 9px;
    font-size: 0.8rem;
}

.owner-property-tree {
    display: grid;
    gap: 0.85rem;
}

.owner-building-card {
    box-shadow: 0 10px 28px rgba(59, 42, 113, 0.07);
}

.owner-building-summary {
    min-height: 88px;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(105deg, #fff, #fbfaff);
}

.owner-building-card[open] > .owner-building-summary {
    border-bottom: 1px solid var(--owner-tree-line);
}

.owner-building-thumb {
    width: 170px;
    height: 108px;
    flex: 0 0 170px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #ded7f5;
    border-radius: 11px;
    color: var(--owner-tree-primary);
    background: var(--owner-tree-soft);
}

.owner-building-thumb img,
.owner-room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f3fb;
}

.owner-building-gallery .student-photo-carousel,
.owner-building-gallery .carousel-inner,
.owner-building-gallery .carousel-item {
    width: 100%;
    height: 100%;
}

.owner-building-gallery .student-photo-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f3fb;
    cursor: zoom-in;
}

.owner-building-gallery .photo-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.25rem;
    color: #8a819d;
    font-size: 0.58rem;
    text-align: center;
}

.owner-building-title {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
    flex: 1;
}

.owner-building-title > strong {
    font-size: 1rem;
}

.owner-building-title > span {
    overflow: hidden;
    color: var(--owner-tree-muted);
    font-size: 0.73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-building-title > span i {
    margin-right: 0.3rem;
    color: var(--owner-tree-primary);
}

.owner-building-title > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.owner-building-title small {
    padding: 0.18rem 0.42rem;
    border-radius: 6px;
    color: #625878;
    background: #f0edf8;
    font-size: 0.64rem;
    font-weight: 750;
}

.owner-building-title small.is-verified {
    color: #047857;
    background: #d1fae5;
}

.owner-building-title small.is-pending {
    color: #a16207;
    background: #fef3c7;
}

.owner-tree-action,
.owner-tree-chevron {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #dcd5f3;
    border-radius: 9px;
    color: #655a80;
    background: #fff;
    font-size: 0.72rem;
    transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

button.owner-tree-action:hover {
    color: var(--owner-tree-primary);
    background: var(--owner-tree-soft);
    transform: translateY(-1px);
}

.owner-tree-action.owner-action-add,
.owner-action-save {
    border-color: transparent;
    color: #fff;
    background: var(--owner-tree-primary);
}

.owner-tree-action.owner-action-delete {
    border-color: #fecdd3;
    color: #be123c;
    background: #fff1f2;
}

button.owner-tree-action.owner-action-delete:hover {
    color: #fff;
    background: #e11d48;
}

.owner-room-card-actions {
    display: grid;
    gap: 0.35rem;
}

.owner-building-card[open] > .owner-building-summary .owner-tree-chevron,
.owner-floor-node[open] > .owner-floor-summary .owner-tree-chevron,
.owner-profile-disclosure[open] > summary .owner-tree-chevron {
    color: #fff;
    background: var(--owner-tree-primary);
    transform: rotate(180deg);
}

.owner-building-body {
    padding: 0.65rem;
}

.owner-building-facts {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    color: #6b627f;
    font-size: 0.7rem;
}

.owner-building-facts span {
    min-width: 0;
    overflow: hidden;
    padding: 0.28rem 0.45rem;
    border-radius: 7px;
    background: var(--owner-tree-soft);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-building-facts i {
    margin-right: 0.3rem;
    color: var(--owner-tree-primary);
}

.owner-floor-tree {
    display: grid;
    gap: 0.5rem;
}

.owner-floor-node {
    border-radius: 11px;
    box-shadow: none;
}

.owner-floor-summary {
    min-height: 52px;
    padding: 0.5rem 0.6rem;
    background: #fbfaff;
}

.owner-floor-node[open] > .owner-floor-summary {
    border-bottom: 1px solid var(--owner-tree-line);
    background: #f7f4ff;
}

.owner-tree-level-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--owner-tree-primary);
    background: #eee9ff;
}

.owner-floor-title {
    min-width: 0;
    display: grid;
    flex: 1;
}

.owner-floor-title strong {
    font-size: 0.82rem;
}

.owner-floor-title small {
    color: var(--owner-tree-muted);
    font-size: 0.66rem;
}

.owner-room-tree {
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem;
}

.owner-room-node {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.45rem;
    border: 1px solid #ebe7f6;
    border-radius: 10px;
    background: #fff;
}

.owner-room-gallery {
    width: 170px;
    height: 108px;
    overflow: hidden;
    border-radius: 8px;
    color: #8875d6;
    background: #f5f2ff;
}

.owner-room-gallery .owner-room-carousel,
.owner-room-gallery .carousel-inner,
.owner-room-gallery .carousel-item {
    width: 100%;
    height: 100%;
}

.owner-room-gallery .owner-room-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f3fb;
    cursor: zoom-in;
}

.owner-room-gallery .photo-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.35rem;
    color: #8a819d;
    font-size: 0.66rem;
}

.owner-room-gallery .photo-placeholder i {
    font-size: 1.15rem;
}

.owner-room-info {
    min-width: 0;
}

.owner-room-info > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.owner-room-info strong {
    font-size: 0.78rem;
}

.owner-room-info > div > span {
    padding: 0.15rem 0.35rem;
    border-radius: 5px;
    font-size: 0.58rem;
    font-weight: 800;
}

.owner-room-info .is-vacant {
    color: #047857;
    background: #d1fae5;
}

.owner-room-info .is-occupied {
    color: #9f1239;
    background: #ffe4e6;
}

.owner-room-info p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.2rem 0;
    color: #716986;
    font-size: 0.66rem;
}

.owner-room-info p i {
    margin-right: 0.2rem;
    color: var(--owner-tree-primary);
}

.owner-room-info small {
    display: block;
    overflow: hidden;
    color: #766d89;
    font-size: 0.63rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-empty-add {
    min-height: 42px;
    border: 1px dashed #cfc4f1;
    border-radius: 10px;
    color: var(--owner-tree-primary);
    background: #faf8ff;
    font-size: 0.74rem;
    font-weight: 800;
}

.owner-empty-add i {
    margin-right: 0.4rem;
}

.owner-property-empty {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 1px dashed #cfc4f1;
    border-radius: 16px;
    color: var(--owner-tree-muted);
    text-align: center;
    background: #fff;
}

.owner-property-empty > i {
    color: var(--owner-tree-primary);
    font-size: 2rem;
}

.owner-property-empty p {
    margin: 0;
}

.owner-tree-modal {
    overflow: hidden;
    border: 1px solid #dfd8f5;
    border-radius: 16px;
}

.owner-tree-modal .modal-header,
.owner-tree-modal .modal-footer {
    border-color: #ebe6f8;
    background: #faf8ff;
}

.owner-tree-modal .modal-header small {
    color: var(--owner-tree-primary);
    font-weight: 800;
    text-transform: uppercase;
}

.owner-tree-modal .modal-body {
    display: grid;
    gap: 0.75rem;
}

.owner-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.owner-modal-grid > *,
.owner-modal-field,
.owner-value-stepper {
    min-width: 0;
}

.owner-value-stepper {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    overflow: hidden;
    border: 1px solid #ded7f5;
    border-radius: 10px;
    background: #fff;
}

.owner-value-stepper button {
    display: grid;
    min-width: 0;
    place-items: center;
    border: 0;
    color: #604fc2;
    background: #f4f1ff;
}

.owner-value-stepper button:first-child {
    border-right: 1px solid #ded7f5;
}

.owner-value-stepper button:last-child {
    border-left: 1px solid #ded7f5;
}

.owner-value-stepper .form-control {
    min-width: 0;
    border: 0;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
}

.owner-value-stepper input[type="number"] {
    appearance: textfield;
}

.owner-value-stepper input[type="number"]::-webkit-inner-spin-button,
.owner-value-stepper input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.owner-field-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #766d89;
    font-size: 0.7rem;
}

.owner-field-hint i {
    color: #6d4aff;
}

.owner-modal-amenities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.owner-modal-amenities label input {
    position: absolute;
    opacity: 0;
}

.owner-modal-amenities label span {
    display: block;
    padding: 0.48rem;
    border: 1px solid #ded7f5;
    border-radius: 8px;
    color: #655c79;
    background: #fff;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 750;
    text-align: center;
}

.owner-modal-amenities label input:checked + span {
    border-color: #8d75f4;
    color: #5b3fe0;
    background: #f1edff;
}

.owner-building-photo-editor {
    display: grid;
    gap: 0.65rem;
}

.owner-photo-manager {
    display: grid;
    gap: 0.6rem;
    padding: 0.7rem;
    border: 1px solid #ded7f5;
    border-radius: 11px;
    background: #faf9ff;
}

.owner-photo-manager-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.owner-photo-manager-head > .owner-modal-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.owner-photo-manager-head > strong {
    color: #6c6280;
    font-size: 0.67rem;
}

.owner-photo-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.owner-photo-card,
.owner-photo-add-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #ded7f5;
    border-radius: 9px;
    background: #fff;
}

.owner-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f4f1fa;
    transition: filter 180ms ease, opacity 180ms ease;
}

.owner-photo-card > button {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 8px;
    color: #fff;
    background: rgba(190, 24, 93, 0.9);
    box-shadow: 0 5px 14px rgba(15,23,42,0.22);
}

.owner-photo-card > span {
    position: absolute;
    inset: auto 0 0;
    padding: 0.3rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(15,23,42,0.78));
    font-size: 0.6rem;
    font-weight: 750;
    text-align: center;
}

.owner-photo-card.is-pending-delete img {
    opacity: 0.38;
    filter: grayscale(1);
}

.owner-photo-card.is-pending-delete > button {
    color: #3f2e89;
    background: #fff;
}

.owner-photo-card.is-pending-delete > span {
    background: rgba(190, 24, 93, 0.88);
}

.owner-photo-add-card {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.18rem;
    border-style: dashed;
    color: #6652c5;
    cursor: pointer;
    text-align: center;
}

.owner-photo-add-card:hover {
    border-color: #8d75f4;
    background: #f3efff;
}

.owner-photo-add-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.owner-photo-add-card > i {
    font-size: 1rem;
}

.owner-photo-add-card > span {
    font-size: 0.68rem;
    font-weight: 800;
}

.owner-photo-add-card > small {
    color: #8a819c;
    font-size: 0.57rem;
}

.owner-photo-add-card.is-full {
    display: none;
}

.owner-photo-manager > p {
    margin: 0;
    color: #827990;
    font-size: 0.63rem;
}

.owner-photo-manager.is-replacing .owner-photo-card {
    border-color: #fda4af;
}

.owner-replace-toggle input {
    position: absolute;
    opacity: 0;
}

.owner-replace-toggle span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #ded7f5;
    border-radius: 9px;
    color: #625878;
    background: #fff;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 750;
}

.owner-replace-toggle input:checked + span {
    border-color: #8d75f4;
    color: #5b3fe0;
    background: #f1edff;
}

.owner-photo-limit {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    color: #047857;
    background: #ecfdf5;
    font-size: 0.72rem;
    font-weight: 750;
}

.owner-inherited-amenities {
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem;
    border: 1px solid #d9e8f7;
    border-radius: 10px;
    background: #f4faff;
}

.owner-inherited-amenities > .owner-modal-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #315f86;
}

.owner-inherited-amenities > p {
    margin: 0;
    color: #6f8295;
    font-size: 0.68rem;
}

.owner-inherited-amenities > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.owner-inherited-amenities > div > span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.28rem 0.45rem;
    border-radius: 7px;
    color: #315f86;
    background: #e7f4ff;
    font-size: 0.66rem;
    font-weight: 750;
}

.owner-inherited-amenities > div > span i {
    color: #0891b2;
}

.ct-image-progress {
    display: none;
    margin: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #ddd6fe;
    border-radius: 11px;
    color: #554a73;
    background: #f8f6ff;
}

.ct-image-progress.is-visible {
    display: block;
}

.ct-image-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
}

.ct-image-progress-copy > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ct-image-progress-copy i {
    color: #6d4aff;
}

.ct-image-progress-copy b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-image-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8e2fb;
}

.ct-image-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6d4aff, #8b5cf6, #06b6d4);
    transition: width 180ms ease;
}

.ct-image-progress.is-uploading .ct-image-progress-track > span {
    animation: ct-upload-progress 1.25s ease-in-out infinite;
}

@keyframes ct-upload-progress {
    0%,
    100% {
        opacity: 0.72;
    }
    50% {
        opacity: 1;
    }
}

.dark .ct-image-progress {
    border-color: rgba(167, 139, 250, 0.3);
    color: #ded7f4;
    background: #211b35;
}

.dark .owner-photo-manager,
.dark .owner-photo-card,
.dark .owner-photo-add-card,
.dark .owner-replace-toggle span {
    border-color: rgba(167,139,250,0.28);
    background: #211b35;
}

.dark .owner-property-page {
    --owner-tree-ink: #f4f0ff;
    --owner-tree-muted: #b9b0ce;
    --owner-tree-line: rgba(167, 139, 250, 0.26);
    --owner-tree-soft: #211b35;
}

.dark .owner-property-hero,
.dark .owner-profile-disclosure,
.dark .owner-building-card,
.dark .owner-floor-node,
.dark .owner-room-node,
.dark .owner-property-empty,
.dark .owner-tree-modal,
.dark .owner-modal-amenities label span {
    background: #171426;
}

.dark .owner-building-summary,
.dark .owner-floor-summary,
.dark .owner-tree-modal .modal-header,
.dark .owner-tree-modal .modal-footer {
    background: #1d1930;
}

@media (max-width: 768px) {
    #ownerTreeModal .modal-dialog {
        width: calc(100% - 1rem);
        max-width: none;
        min-height: auto;
        margin: 0.5rem auto;
    }

    #ownerTreeModal .modal-content {
        width: 100%;
        min-width: 0;
        min-height: 0;
        max-height: calc(100dvh - 1rem);
        border-radius: 14px;
    }

    #ownerTreeModal .modal-header,
    #ownerTreeModal .modal-footer {
        flex: 0 0 auto;
        padding: 0.7rem;
    }

    #ownerTreeModal .modal-body {
        min-width: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0.75rem;
    }

    #ownerTreeModal .modal-footer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #ownerTreeModal .modal-footer .btn {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .owner-property-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 0.85rem;
    }

    .owner-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .owner-add-building {
        grid-column: 1 / -1;
    }

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

    .owner-profile-address {
        grid-column: 1 / -1;
    }

    .owner-profile-compact .owner-action-save {
        width: 100%;
        grid-column: 1 / -1;
    }

    .owner-building-summary {
        min-height: 124px;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .owner-building-thumb {
        width: 170px;
        height: 108px;
        flex-basis: 170px;
    }

    .owner-building-title > span {
        max-width: 48vw;
    }

    .owner-building-summary .owner-tree-actions {
        gap: 0.25rem;
    }

    .owner-tree-action,
    .owner-tree-chevron {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .owner-building-facts {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .owner-building-thumb {
        width: 112px;
        height: 82px;
        flex-basis: 112px;
    }

    .owner-building-title > strong {
        font-size: 0.85rem;
    }

    .owner-building-title > div small:nth-child(2) {
        display: none;
    }

    .owner-building-summary .owner-tree-actions {
        flex-wrap: wrap;
        width: 62px;
        justify-content: flex-end;
    }

    .owner-room-node {
        grid-template-columns: 112px minmax(0, 1fr) auto;
    }

    .owner-room-gallery {
        width: 112px;
        height: 82px;
    }

    .owner-modal-grid,
    .owner-modal-amenities {
        grid-template-columns: 1fr;
    }

    .owner-photo-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .owner-value-stepper {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }
}

/* Student listing visual reset: one clean frame system for all uploaded photos. */
.student-building-summary {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: stretch;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.student-room-row {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 140px;
    align-items: stretch;
    gap: 1rem;
    min-height: auto;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.student-photo-frame,
.student-building-photo,
.student-room-photo {
    width: 280px;
    height: 180px;
    min-width: 280px;
    min-height: 180px;
    max-width: 280px;
    max-height: 180px;
    flex: 0 0 280px;
    aspect-ratio: auto;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
}

.story-frame {
    border: 3px solid transparent;
    background:
        linear-gradient(#f8fafc, #f8fafc) padding-box,
        linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4) border-box;
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.16);
}

.room-frame {
    border: 3px solid transparent;
    background:
        linear-gradient(#f8fafc, #f8fafc) padding-box,
        linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6) border-box;
    box-shadow: 0 14px 32px rgba(6, 182, 212, 0.13);
}

.student-photo-frame img,
.student-building-photo img,
.student-room-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #faf9ff, #f1f5ff);
}

.student-photo-carousel,
.student-photo-carousel .carousel-inner,
.student-photo-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.student-photo-carousel .carousel-item {
    background: #f8fafc;
}

.student-photo-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    cursor: zoom-in;
}

.student-dashboard-page .student-building-photo:hover img,
.student-dashboard-page .student-room-photo:hover img {
    transform: none;
}

.student-carousel-control {
    top: 50%;
    bottom: auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    opacity: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.student-carousel-control.carousel-control-prev {
    left: 10px;
}

.student-carousel-control.carousel-control-next {
    right: 10px;
}

.student-carousel-control span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 0.9rem;
}

.student-photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.3rem 0.65rem;
    backdrop-filter: blur(10px);
}

.student-image-modal {
    position: relative;
    border: 0;
    background: rgba(2, 6, 23, 0.96);
}

.student-image-modal-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 8vh, 5rem) clamp(0.75rem, 3vw, 2rem) 7rem;
}

.student-fullscreen-carousel {
    width: min(96vw, 1500px);
    height: min(82dvh, 900px);
    max-height: calc(100dvh - 120px);
}

.student-fullscreen-carousel .carousel-inner,
.student-fullscreen-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.student-image-modal-body img,
.student-fullscreen-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: clamp(10px, 2vw, 18px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.student-fullscreen-control-card {
    position: fixed;
    left: 50%;
    bottom: clamp(1rem, 3vh, 1.75rem);
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr);
    align-items: center;
    gap: 0.8rem;
    width: min(94vw, 620px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(99,102,241,0.42), transparent 36%),
        radial-gradient(circle at bottom right, rgba(6,182,212,0.28), transparent 38%),
        rgba(8, 13, 30, 0.86);
    padding: 0.75rem;
    box-shadow: 0 24px 90px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.18);
    transform: translateX(-50%);
    backdrop-filter: blur(22px);
}

.student-gallery-nav {
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 900;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.student-gallery-nav.next {
    border-color: rgba(125, 211, 252, 0.34);
    background: linear-gradient(135deg, rgba(79,70,229,0.95), rgba(124,58,237,0.95) 52%, rgba(6,182,212,0.92));
    box-shadow: 0 16px 38px rgba(79,70,229,0.34);
}

.student-gallery-nav:hover {
    border-color: rgba(255,255,255,0.32);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 14px 30px rgba(255,255,255,0.08);
    transform: translateY(-3px);
}

.student-gallery-nav.next:hover {
    background: linear-gradient(135deg, #4338ca, #7c3aed 52%, #0891b2);
}

.student-gallery-nav:active {
    transform: translateY(0) scale(0.98);
}

.student-gallery-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: rgba(255,255,255,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
    transition: transform 0.22s ease;
}

.student-gallery-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 950;
}

.student-gallery-status {
    min-width: 132px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    background: rgba(255,255,255,0.10);
    padding: 0.75rem 1rem;
    text-align: center;
}

.student-gallery-kicker {
    display: block;
    color: rgba(255,255,255,0.62);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-gallery-status strong {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 950;
    line-height: 1.1;
}

@media (max-width: 640px) {
    .student-fullscreen-carousel {
        width: 100vw;
        height: calc(100dvh - 132px);
    }

    .student-fullscreen-control-card {
        grid-template-columns: 1fr auto 1fr;
        width: min(94vw, 420px);
        gap: 0.45rem;
        padding: 0.5rem;
        border-radius: 24px;
    }

    .student-gallery-nav {
        min-height: 54px;
        border-radius: 18px;
    }

    .student-gallery-label,
    .student-gallery-kicker {
        display: none;
    }

    .student-gallery-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .student-gallery-status {
        min-width: 74px;
        padding: 0.7rem 0.55rem;
        border-radius: 18px;
    }

    .student-gallery-status strong {
        font-size: 0.95rem;
    }
}

.student-image-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
}

.student-image-caption {
    margin-top: 1rem;
    color: rgba(255,255,255,0.78);
    font-weight: 800;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
    color: #64748b;
    font-weight: 800;
}

.student-room-actions {
    min-width: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    padding-left: 1rem;
}

.student-building-details,
.student-floor-window {
    border-radius: 24px;
    border-color: rgba(148, 163, 184, 0.22);
}

.student-building-toggle {
    border-left: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 54%, #ecfeff 100%);
}

.student-building-details[open] > .student-building-toggle {
    background: linear-gradient(135deg, #e0e7ff 0%, #f5f3ff 52%, #cffafe 100%);
}

.student-floor-toggle {
    background: linear-gradient(135deg, #fff7ed, #f8fafc);
}

.student-floor-window[open] > .student-floor-toggle {
    background: linear-gradient(135deg, #ffedd5, #eef2ff);
}

.dark .student-building-summary,
.dark .student-room-row,
.dark .student-building-details,
.dark .student-floor-window {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.20);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.dark .student-building-toggle,
.dark .student-building-details[open] > .student-building-toggle,
.dark .student-floor-toggle,
.dark .student-floor-window[open] > .student-floor-toggle {
    color: #e5edf8;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(49, 46, 129, 0.45));
}

@media (max-width: 992px) {
    .student-building-summary,
    .student-room-row {
        grid-template-columns: 1fr;
    }

    .student-photo-frame,
    .student-building-photo,
    .student-room-photo {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 220px;
        min-height: 220px;
        max-height: 220px;
        flex-basis: auto;
    }

    .student-room-actions {
        border-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        padding-left: 0;
        padding-top: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Final fullscreen gallery dock override. Keep this at the end to avoid Bootstrap/Tailwind collisions. */
#studentImageModal .student-fullscreen-control-card {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    z-index: 1085 !important;
    width: min(96vw, 760px) !important;
    display: grid !important;
    grid-template-columns: 1fr auto auto 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(99, 102, 241, 0.45), transparent 34%),
        radial-gradient(circle at 88% 100%, rgba(6, 182, 212, 0.32), transparent 34%),
        rgba(8, 13, 30, 0.92) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.18) !important;
    transform: translateX(-50%) !important;
    backdrop-filter: blur(24px) !important;
}

#studentImageModal .student-gallery-nav {
    appearance: none !important;
    min-height: 66px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 22px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10) !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease !important;
}

#studentImageModal .student-gallery-nav.next {
    border-color: rgba(125, 211, 252, 0.40) !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #06b6d4 100%) !important;
    box-shadow: 0 16px 38px rgba(79, 70, 229, 0.38) !important;
}

#studentImageModal .student-gallery-nav:hover {
    transform: translateY(-3px) !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

#studentImageModal .student-gallery-nav.next:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 52%, #0891b2 100%) !important;
}

#studentImageModal .student-gallery-icon {
    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

#studentImageModal .student-gallery-label {
    display: inline !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

#studentImageModal .student-gallery-status {
    min-width: 138px !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.10) !important;
    text-align: center !important;
}

#studentImageModal .student-gallery-kicker {
    display: block !important;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

#studentImageModal .student-gallery-status strong {
    display: block !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

#studentImageModal .student-zoom-controls {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.10) !important;
}

#studentImageModal .student-zoom-controls button {
    min-width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    padding: 0 12px !important;
    font-weight: 900 !important;
}

#studentImageModal .student-zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.24) !important;
}

#studentImageModal .student-fullscreen-carousel .carousel-item {
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    touch-action: none !important;
}

#studentImageModal .student-fullscreen-carousel .carousel-item.active {
    display: flex !important;
}

#studentImageModal .student-fullscreen-carousel img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    transition: transform 0.18s ease !important;
    transform-origin: 0 0 !important;
}

#studentImageModal .student-fullscreen-carousel img.is-zoomed {
    cursor: grab !important;
}

#studentImageModal .student-fullscreen-carousel img.is-panning {
    cursor: grabbing !important;
    transition: none !important;
}

@media (max-width: 640px) {
    #studentImageModal .student-fullscreen-control-card {
        width: min(98vw, 560px) !important;
        grid-template-columns: 0.9fr auto auto 0.9fr !important;
        gap: 6px !important;
        padding: 6px !important;
        border-radius: 24px !important;
    }

    #studentImageModal .student-gallery-nav {
        min-height: 50px !important;
        border-radius: 18px !important;
    }

    #studentImageModal .student-gallery-label,
    #studentImageModal .student-gallery-kicker {
        display: none !important;
    }

    #studentImageModal .student-gallery-status {
        min-width: 76px !important;
        padding: 10px 7px !important;
        border-radius: 18px !important;
    }

    #studentImageModal .student-gallery-status strong {
        font-size: 15px !important;
    }

    #studentImageModal .student-gallery-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 14px !important;
    }

    #studentImageModal .student-zoom-controls {
        gap: 4px !important;
        padding: 5px !important;
    }

    #studentImageModal .student-zoom-controls button {
        min-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
    }

    #studentImageModal .student-zoom-reset-text {
        display: none !important;
    }
}

/* Project-wide mobile app shell and responsive override. */
body {
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.ct-mobile-top-actions,
.ct-mobile-bottom-nav {
    display: none;
}

.ct-mobile-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 58%, #06b6d4);
}

@media (max-width: 768px) {
    .ct-nav-inner {
        min-height: 64px !important;
        align-items: center !important;
        flex-direction: row !important;
        padding: max(0.45rem, env(safe-area-inset-top)) 0 0.45rem !important;
    }

    .ct-nav-links,
    .ct-nav-actions {
        display: none !important;
    }

    .ct-mobile-top-actions {
        display: flex;
        align-items: center;
        gap: 0.55rem;
    }

    .ct-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .ct-brand {
        font-size: 0.95rem;
    }

    .ct-app-main {
        padding-top: 1rem !important;
        padding-bottom: calc(6.25rem + env(safe-area-inset-bottom)) !important;
    }

    .ct-app-main > .container {
        width: 100%;
        max-width: none;
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }

    .ct-mobile-bottom-nav {
        position: fixed;
        left: 50%;
        bottom: max(0.65rem, env(safe-area-inset-bottom));
        z-index: 1060;
        width: min(calc(100vw - 1rem), 520px);
        min-height: 68px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        gap: 0.2rem;
        border: 1px solid rgba(255,255,255,0.55);
        border-radius: 24px;
        background: rgba(255,255,255,0.9);
        padding: 0.45rem;
        box-shadow: 0 18px 55px rgba(15,23,42,0.22);
        transform: translateX(-50%);
        backdrop-filter: blur(22px);
    }

    .dark .ct-mobile-bottom-nav {
        border-color: rgba(148,163,184,0.18);
        background: rgba(15,23,42,0.92);
    }

    .ct-mobile-bottom-nav a,
    .ct-mobile-bottom-nav button {
        min-width: 0;
        min-height: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.28rem;
        border: 0;
        border-radius: 18px;
        color: #64748b;
        background: transparent;
        font-size: 0.68rem;
        font-weight: 800;
        text-decoration: none;
    }

    .ct-mobile-bottom-nav i {
        font-size: 1.05rem;
    }

    .ct-mobile-bottom-nav a.active,
    .ct-mobile-bottom-nav a:active,
    .ct-mobile-bottom-nav button:active {
        color: #fff;
        background: linear-gradient(135deg, #4f46e5, #7c3aed 58%, #06b6d4);
        box-shadow: 0 10px 24px rgba(79,70,229,0.25);
        transform: translateY(-2px);
    }

    .page-title {
        font-size: 1.45rem;
    }

    .panel,
    .room-card,
    .metric {
        border-radius: 18px;
    }

    .panel {
        padding: 1rem !important;
    }

    .form-control,
    .form-select {
        min-height: 48px;
        border-radius: 14px;
        font-size: 16px;
    }

    textarea.form-control {
        min-height: 110px;
    }

    .btn,
    .ct-btn {
        min-height: 44px;
        border-radius: 14px;
    }

    .d-flex.justify-content-between {
        flex-wrap: wrap;
        align-items: flex-start !important;
    }

    form.d-flex.justify-content-between,
    .panel > .border-top.d-flex {
        align-items: stretch !important;
        flex-direction: column;
    }

    form.d-flex.justify-content-between > span:last-child,
    .panel > .border-top.d-flex > span:last-child {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    form.d-flex.justify-content-between button,
    .panel > .border-top.d-flex button {
        width: 100%;
    }

    .sticky-lg-top,
    .owner-side-panel {
        position: static !important;
        top: auto !important;
    }

    .modal-dialog {
        margin: 0;
    }

    .modal-content {
        min-height: 100dvh;
    }
}

@media (max-width: 420px) {
    .ct-app-main > .container {
        padding-right: 0.65rem;
        padding-left: 0.65rem;
    }

    .ct-mobile-bottom-nav {
        width: calc(100vw - 0.7rem);
        border-radius: 21px;
    }

    .ct-mobile-bottom-nav a,
    .ct-mobile-bottom-nav button {
        font-size: 0.62rem;
    }
}

/* Student dashboard: focused application UI */
.student-dashboard-page {
    --student-ink: #172033;
    --student-muted: #64748b;
    --student-line: #e5eaf2;
    --student-surface: rgba(255, 255, 255, 0.94);
    --student-soft: #f7f9fc;
    --student-indigo: #4f46e5;
    --student-cyan: #0891b2;
    color: var(--student-ink);
}

.dark .student-dashboard-page {
    --student-ink: #f8fafc;
    --student-muted: #a7b2c4;
    --student-line: #28364a;
    --student-surface: rgba(15, 23, 42, 0.94);
    --student-soft: #111c2f;
}

.student-dashboard-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 0.85rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid var(--student-line);
    border-radius: 24px;
    background:
        linear-gradient(110deg, rgba(79, 70, 229, 0.09), transparent 42%),
        linear-gradient(290deg, rgba(8, 145, 178, 0.1), transparent 38%),
        var(--student-surface);
    box-shadow: 0 20px 55px rgba(29, 42, 73, 0.1);
}

.dark .student-dashboard-hero {
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.student-dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: -1;
    width: 5px;
    background: linear-gradient(180deg, #4f46e5, #7c3aed 48%, #06b6d4);
}

.student-dashboard-intro {
    max-width: 540px;
}

.student-dashboard-eyebrow,
.student-section-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
    color: var(--student-indigo);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dark .student-dashboard-eyebrow,
.dark .student-section-kicker {
    color: #67e8f9;
}

.student-dashboard-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.13);
}

.student-dashboard-intro h1 {
    max-width: 570px;
    margin: 0;
    color: var(--student-ink);
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
}

.student-dashboard-intro > p {
    max-width: 590px;
    margin: 0.55rem 0 0;
    color: var(--student-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.student-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.student-primary-action,
.student-secondary-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 9px;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.student-primary-action {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #6d4ee8 58%, #0891b2);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.25);
}

.student-secondary-action {
    border: 1px solid var(--student-line);
    color: var(--student-ink);
    background: var(--student-surface);
}

.student-primary-action:hover,
.student-secondary-action:hover {
    color: inherit;
    transform: translateY(-2px);
}

.student-primary-action:hover {
    color: #fff;
    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.32);
}

.student-dashboard-stats {
    width: min(100%, 520px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.student-stat-card {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem;
    border: 1px solid var(--student-line);
    border-radius: 16px;
    background: var(--student-surface);
    box-shadow: 0 10px 24px rgba(29, 42, 73, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.student-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.28);
}

.student-stat-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.stat-indigo .student-stat-icon { color: #4f46e5; background: #eeecff; }
.stat-cyan .student-stat-icon { color: #0891b2; background: #e4f8fb; }
.stat-emerald .student-stat-icon { color: #059669; background: #e7f8f1; }
.stat-amber .student-stat-icon { color: #d97706; background: #fff4da; }
.dark .stat-indigo .student-stat-icon { background: rgba(79, 70, 229, 0.2); }
.dark .stat-cyan .student-stat-icon { background: rgba(8, 145, 178, 0.2); }
.dark .stat-emerald .student-stat-icon { background: rgba(5, 150, 105, 0.2); }
.dark .stat-amber .student-stat-icon { background: rgba(217, 119, 6, 0.2); }

.student-stat-card strong,
.student-stat-card span {
    display: block;
}

.student-stat-card strong {
    color: var(--student-ink);
    font-size: 1.2rem;
    line-height: 1;
}

.student-stat-card div > span {
    margin-top: 0.18rem;
    color: var(--student-muted);
    font-size: 0.66rem;
    font-weight: 700;
}

.student-dashboard-insight {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.8rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--student-line);
}

.student-dashboard-insight > span {
    flex: 0 0 auto;
    color: var(--student-indigo);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-dashboard-insight p {
    margin: 0;
    color: var(--student-muted);
    font-size: 0.74rem;
}

@media (min-width: 1100px) {
    .student-dashboard-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .student-stat-card {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.student-room-filter {
    margin-bottom: 1rem;
    padding: clamp(1rem, 2.5vw, 1.4rem);
    border: 1px solid var(--student-line);
    border-radius: 20px;
    background: var(--student-surface);
    box-shadow: 0 14px 36px rgba(29, 42, 73, 0.08);
}

.student-dashboard-page input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.student-dashboard-page select,
.student-dashboard-page textarea {
    min-height: 38px !important;
    border-radius: 9px !important;
    padding: 0.42rem 0.65rem !important;
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
}

.student-dashboard-page label {
    margin-bottom: 0.3rem !important;
    font-size: 0.72rem !important;
    font-weight: 750 !important;
}

.student-dashboard-page .student-room-filter {
    padding: 0.85rem !important;
}

.student-dashboard-page .student-room-filter .grid {
    gap: 0.6rem !important;
}

.student-section-title {
    margin: 0;
    color: var(--student-ink);
    font-size: 1.25rem;
    font-weight: 850;
}

.student-section-copy {
    margin-top: 0.3rem;
    color: var(--student-muted);
    font-size: 0.86rem;
}

.student-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--student-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.student-clear-filters:hover {
    color: var(--student-indigo);
}

.student-search-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #6d4ee8 58%, #0891b2);
    padding: 0 1rem;
    font-size: 0.75rem;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.3);
}

.student-dashboard-page .student-service-tabs {
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(29, 42, 73, 0.08);
}

.student-dashboard-page .student-building-details {
    overflow: hidden;
    border: 1px solid var(--student-line);
    border-radius: 20px;
    background: var(--student-surface);
    box-shadow: 0 12px 32px rgba(29, 42, 73, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.student-dashboard-page .student-building-details:hover {
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: 0 18px 42px rgba(29, 42, 73, 0.11);
}

.student-dashboard-page .student-building-toggle {
    min-height: 62px;
    padding: 0.75rem 1rem;
    background: var(--student-surface);
}

.student-dashboard-page .student-building-details[open] > .student-building-toggle {
    border-bottom: 1px solid var(--student-line);
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.07), rgba(8, 145, 178, 0.04));
}

.student-dashboard-page .student-building-summary {
    width: 100%;
    min-width: 0;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    align-items: center;
    gap: 0.85rem !important;
    padding: 0.7rem !important;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: var(--student-soft);
    box-shadow: none;
    overflow: hidden;
    box-sizing: border-box;
}

.student-dashboard-page .student-building-summary > * {
    min-width: 0;
    max-width: 100%;
}

.student-dashboard-page .student-building-summary > div:last-child {
    overflow: hidden;
}

.student-dashboard-page .accordion-body {
    min-width: 0;
    overflow: hidden;
    padding: 0.65rem !important;
}

.student-dashboard-page .student-building-photo {
    width: 230px !important;
    height: 140px !important;
    min-height: 140px !important;
    border-width: 2px !important;
    border-radius: 12px !important;
}

.student-building-address,
.student-building-features {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.45rem 0 0;
    color: var(--student-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.student-dashboard-page .student-building-summary .d-flex {
    min-width: 0;
}

.student-dashboard-page .student-info-chip {
    max-width: 100%;
    white-space: normal;
}

.student-building-address i,
.student-building-features i {
    width: 14px;
    flex: 0 0 14px;
    margin-top: 0.18rem;
    color: var(--student-indigo);
    text-align: center;
}

.student-dashboard-page .student-floor-window {
    border: 1px solid var(--student-line);
    border-radius: 12px !important;
    background: var(--student-surface);
    box-shadow: none;
}

.student-dashboard-page .student-floor-toggle {
    min-height: 48px;
    padding: 0.55rem 0.75rem;
    background: var(--student-soft);
}

.student-dashboard-page .student-floor-toggle > span:first-child {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.student-dashboard-page .student-floor-toggle > span:first-child span {
    margin: 0;
    font-size: 0.74rem;
}

.student-dashboard-page .student-disclosure-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-grid;
    place-items: center;
    padding: 0 !important;
    border-radius: 9px;
    font-size: 0.68rem !important;
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
    border: 1px solid var(--student-line);
    color: var(--student-indigo);
    background: var(--student-surface);
    box-shadow: 0 4px 10px rgba(29, 42, 73, 0.08);
}

.student-dashboard-page .student-building-details[open] > .student-building-toggle .student-disclosure-icon,
.student-dashboard-page .student-floor-window[open] > .student-floor-toggle .student-disclosure-icon {
    color: #fff;
    background: #6d4aff;
    transform: rotate(180deg);
}

.student-dashboard-page .details-chevron,
.student-dashboard-page .floor-toggle-pill {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 9px;
}

.student-dashboard-page .student-building-details[open] .details-chevron {
    transform: rotate(180deg);
}

.student-dashboard-page .student-floor-window[open] > .student-floor-toggle {
    background: rgba(79, 70, 229, 0.07);
}

.student-dashboard-page .student-floor-content {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 0.55rem !important;
    background: var(--student-soft);
    box-sizing: border-box;
    container-type: inline-size;
}

.student-dashboard-page .student-room-row {
    position: relative;
    width: 100%;
    min-width: 0;
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    align-items: start;
    gap: 0.7rem !important;
    padding: 0.6rem !important;
    border-radius: 14px;
    border: 1px solid var(--student-line);
    background: var(--student-surface);
    box-shadow: 0 8px 22px rgba(29, 42, 73, 0.07);
    box-sizing: border-box;
}

.student-dashboard-page .student-room-row > * {
    min-width: 0;
    max-width: 100%;
}

.student-dashboard-page .student-room-row:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 14px 30px rgba(29, 42, 73, 0.1);
}

.student-dashboard-page .student-room-photo {
    width: 220px !important;
    height: 145px !important;
    min-height: 145px !important;
    border-width: 2px !important;
    border-radius: 11px !important;
}

.student-dashboard-page .student-room-main {
    padding: 0 !important;
}

.student-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.3rem 0.52rem;
    border: 1px solid var(--student-line);
    border-radius: 999px;
    color: var(--student-muted);
    background: var(--student-surface);
    font-size: 0.67rem;
    font-weight: 800;
}

.student-info-chip i {
    color: var(--student-indigo);
}

.student-info-chip.chip-gold {
    border-color: #f4d58d;
    color: #9a5b00;
    background: #fff8e6;
}

.dark .student-info-chip.chip-gold {
    border-color: rgba(245, 158, 11, 0.32);
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.1);
}

.student-room-name {
    color: var(--student-ink);
    font-size: 1.05rem;
}

.student-room-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.student-room-facts span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.45rem;
    border-radius: 7px;
    color: var(--student-muted);
    background: var(--student-soft);
    font-size: 0.68rem;
    font-weight: 750;
}

.student-room-facts i {
    color: var(--student-indigo);
}

.student-room-features {
    overflow: hidden;
    margin-top: 0.4rem;
    color: var(--student-muted);
    font-size: 0.72rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-dashboard-page .student-room-actions {
    width: auto;
    min-width: 0;
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    justify-self: end;
    align-content: start;
    gap: 0.4rem;
}

.student-dashboard-page .student-room-actions [data-visit-controls] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.student-dashboard-page .student-room-actions > button,
.student-dashboard-page .student-room-actions [data-visit-controls] > button {
    width: auto;
    min-width: 38px;
}

.student-dashboard-page .student-room-actions .student-visit-date {
    width: 185px;
}

.student-room-activity {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    align-items: stretch;
    margin-top: 0.5rem;
}

.student-room-activity > .student-visit-status,
.student-room-activity > .student-contact-panel {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin-top: 0;
}

.student-contact-panel.is-unlocked .student-contact-copy {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1.8fr);
    gap: 0.65rem;
    align-items: center;
}

.student-owner-heading,
.student-owner-detail,
.student-owner-detail > span {
    min-width: 0;
}

.student-owner-heading {
    display: grid;
    gap: 0.08rem;
}

.student-owner-heading small {
    color: #059669;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.student-owner-heading strong {
    overflow: hidden;
    color: var(--student-ink);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-owner-details {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(130px, 0.85fr) minmax(180px, 1.15fr);
    grid-template-rows: repeat(3, minmax(38px, auto));
    gap: 0.4rem;
}

.student-owner-details > .student-owner-detail:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.student-owner-details > .student-owner-detail:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.student-owner-details > .student-owner-detail:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
}

.student-owner-details > .student-owner-address {
    grid-column: 2;
    grid-row: 1 / 4;
    align-items: flex-start;
}

.student-owner-details > .student-owner-address > i {
    margin-top: 0.1rem;
}

.student-owner-details > .student-owner-address b {
    white-space: normal;
    overflow-wrap: anywhere;
}

.student-owner-detail {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.34rem 0.42rem;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.student-owner-detail:hover,
a.student-owner-detail:focus-visible {
    border-color: rgba(79, 70, 229, 0.34);
    color: inherit;
    background: #fff;
    box-shadow: 0 7px 18px rgba(29, 42, 73, 0.1);
    transform: translateY(-1px);
}

.student-owner-detail.is-unavailable {
    cursor: not-allowed;
    opacity: 0.56;
}

.student-owner-detail > i {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #047857;
    background: #d1fae5;
    font-size: 0.62rem;
}

.student-owner-detail > span {
    display: grid;
}

.student-owner-detail small {
    color: var(--student-muted);
    font-size: 0.54rem;
    font-weight: 750;
    text-transform: uppercase;
}

.student-owner-detail b {
    overflow: hidden;
    color: var(--student-ink);
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-owner-detail.contact-call > i {
    color: #1d4ed8;
    background: #dbeafe;
}

.student-owner-detail.contact-whatsapp > i {
    color: #15803d;
    background: #dcfce7;
}

.student-owner-detail.contact-email > i {
    color: #6d28d9;
    background: #ede9fe;
}

.student-owner-detail.contact-directions > i {
    color: #c2410c;
    background: #ffedd5;
}

.student-contact-panel.is-unlocked .student-contact-actions {
    width: auto !important;
    margin-top: 0 !important;
}

.student-wishlist-button,
.student-visit-button,
.student-unlock-button {
    width: 100%;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 9px;
    padding: 0.42rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 850;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.student-wishlist-button i,
.student-visit-button i,
.student-unlock-button i {
    font-size: 0.82rem;
}

.student-wishlist-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 9px;
    border: 1px solid var(--student-line);
    color: var(--student-indigo);
    background: var(--student-surface);
}

.student-wishlist-button i {
    font-size: 0.9rem;
}

.student-wishlist-button.is-wished {
    border-color: #fecdd3;
    color: #e11d48;
    background: #fff1f2;
}

.dark .student-wishlist-button.is-wished {
    border-color: rgba(244, 63, 94, 0.35);
    color: #fda4af;
    background: rgba(244, 63, 94, 0.1);
}

.student-visit-button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #0891b2);
    box-shadow: 0 9px 20px rgba(79, 70, 229, 0.2);
}

.student-unlock-button {
    border: 1px solid #ddd6fe;
    color: #6d4aff;
    background: #f4f1ff;
}

.student-unlock-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.student-wishlist-button:hover,
.student-visit-button:hover,
.student-unlock-button:not(:disabled):hover {
    transform: translateY(-1px);
}

.student-visit-date-label {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
    color: var(--student-muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.student-visit-date {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--student-line);
    border-radius: 11px;
    color: var(--student-ink);
    background: var(--student-surface);
    padding: 0.42rem 0.5rem;
    font-size: 0.68rem;
    outline: none;
}

.student-visit-date:focus {
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.student-request-active {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    gap: 0.35rem;
    border: 1px dashed #c4b5fd;
    border-radius: 8px;
    color: #6d28d9;
    background: rgba(245, 243, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.student-visit-status .student-request-active {
    margin-left: auto;
    padding: 0.28rem 0.5rem;
}

.student-visit-status,
.student-contact-panel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--student-line);
    border-radius: 12px;
    background: var(--student-soft);
}

.student-visit-status-icon,
.student-contact-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.student-visit-status span:last-child,
.student-contact-copy {
    min-width: 0;
}

.student-visit-status-copy {
    min-width: 0;
}

.student-visit-status strong,
.student-visit-status small,
.student-contact-copy > small,
.student-contact-copy > strong,
.student-contact-copy > span {
    display: block;
}

.student-contact-actions {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.28rem !important;
    margin-top: 0.35rem !important;
}

.student-contact-actions a,
.student-contact-actions > span {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    min-height: 29px !important;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 0.72rem !important;
    text-decoration: none !important;
    box-shadow: 0 5px 12px rgba(30, 41, 59, 0.12) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.student-contact-actions .contact-call {
    background: #2563eb !important;
}

.student-contact-actions .contact-whatsapp {
    background: #16a34a !important;
}

.student-contact-actions .contact-email {
    background: #7c3aed !important;
}

.student-contact-actions .contact-directions {
    background: #e85d3f !important;
}

.student-contact-actions .is-unavailable {
    cursor: not-allowed !important;
    color: #94a3b8 !important;
    background: #e2e8f0 !important;
    box-shadow: none !important;
}

.student-contact-actions a:hover {
    color: #fff !important;
    filter: brightness(1.06);
    transform: translateY(-2px) !important;
    box-shadow: 0 11px 23px rgba(30, 41, 59, 0.2) !important;
}

@media (max-width: 430px) {
    .student-contact-actions {
        gap: 0.45rem !important;
    }

    .student-contact-actions a,
    .student-contact-actions > span {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        font-size: 0.8rem !important;
    }
}

.student-action-notice {
    position: fixed;
    top: 86px;
    right: 20px;
    z-index: 1200;
    max-width: min(360px, calc(100vw - 24px));
    padding: 0.85rem 1rem;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    color: #312e81;
    background: #eef2ff;
    box-shadow: 0 18px 45px rgba(30, 41, 59, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.student-action-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.student-action-notice.notice-warning {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.student-action-notice.notice-info {
    border-color: #bae6fd;
    color: #075985;
    background: #f0f9ff;
}

@media (max-width: 768px) {
    .student-action-notice {
        top: 70px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

.student-visit-status strong,
.student-contact-copy strong {
    color: var(--student-ink);
    font-size: 0.72rem;
}

.student-visit-status small,
.student-contact-copy small,
.student-contact-copy span {
    color: var(--student-muted);
    font-size: 0.63rem;
}

.student-contact-copy > a {
    overflow: hidden;
    margin-top: 0.12rem;
    color: var(--student-indigo);
    font-size: 0.72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visit-requested .student-visit-status-icon {
    color: #7c3aed;
    background: #ede9fe;
}

.visit-confirmed .student-visit-status-icon {
    color: #047857;
    background: #d1fae5;
}

.visit-completed .student-visit-status-icon {
    color: #0369a1;
    background: #e0f2fe;
}

.student-contact-panel.is-unlocked {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.student-contact-panel.is-unlocked .student-contact-icon {
    color: #047857;
    background: #d1fae5;
}

.student-contact-panel:not(.is-unlocked) .student-contact-icon {
    color: #7c3aed;
    background: #ede9fe;
}

.dark .student-unlock-button,
.dark .student-request-active {
    border-color: rgba(139, 92, 246, 0.34);
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.12);
}

.dark .student-contact-panel.is-unlocked {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.09);
}

.dark .student-contact-copy > a {
    color: #67e8f9;
}

.student-dashboard-page .student-service-list {
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(29, 42, 73, 0.08);
}

@media (max-width: 991px) {
    .student-dashboard-stats {
        width: 100%;
    }

    .student-dashboard-page .student-room-row {
        grid-template-columns: 210px minmax(0, 1fr) !important;
    }

    .student-dashboard-page .student-room-photo {
        width: 210px !important;
    }

    .student-dashboard-page .student-room-actions {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.4rem;
    }

    .student-room-activity {
        grid-template-columns: minmax(0, 1fr);
    }

    .student-room-activity > .student-contact-panel,
    .student-room-activity > .student-visit-status {
        grid-column: 1;
    }

    .student-contact-panel.is-unlocked {
        align-items: flex-start;
    }

    .student-contact-panel.is-unlocked .student-contact-copy {
        width: calc(100% - 38px);
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.45rem;
    }

    .student-owner-heading,
    .student-owner-details {
        grid-column: 1 / -1;
    }

    .student-owner-details {
        width: 100%;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-rows: repeat(3, minmax(38px, auto));
    }

    .student-owner-address {
        grid-column: 2;
        grid-row: 1 / 4;
    }

    .student-contact-panel.is-unlocked .student-contact-actions {
        width: 100% !important;
        grid-column: 1 / -1;
        margin-top: 0.3rem !important;
    }
}

@media (max-width: 768px) {
    body.student-dashboard-screen .ct-mobile-bottom-nav {
        display: none !important;
    }

    body.student-dashboard-screen .ct-app-main {
        padding-bottom: calc(0.8rem + env(safe-area-inset-bottom)) !important;
    }

    .student-dashboard-hero {
        border-radius: 15px;
        padding: 0.85rem;
    }

    .student-dashboard-intro h1 {
        font-size: 1.55rem;
        line-height: 1.12;
    }

    .student-dashboard-intro > p {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .student-dashboard-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        margin-top: 0.65rem;
    }

    .student-dashboard-actions > a {
        min-height: 36px;
        padding: 0.45rem;
    }

    .student-dashboard-insight {
        display: none;
    }

    .student-room-filter {
        border-radius: 16px;
    }

    .student-search-button {
        width: 100%;
    }

    .student-dashboard-page .student-building-details {
        border-radius: 16px;
    }

    .student-dashboard-page .student-building-toggle {
        min-height: 58px;
        padding: 0.7rem 0.8rem;
    }

    .student-dashboard-page .accordion-body {
        padding: 0.55rem;
    }

    .student-dashboard-page .student-building-summary {
        grid-template-columns: 1fr !important;
        gap: 0.65rem;
        padding: 0.55rem;
    }

    .student-dashboard-page .student-building-photo {
        width: 100% !important;
        height: 155px !important;
        min-height: 155px !important;
    }

    .student-dashboard-page .student-building-summary > div:last-child {
        width: 100%;
    }

    .student-building-address,
    .student-building-features {
        font-size: 0.7rem;
    }

    .student-dashboard-page .student-room-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
        padding: 0.45rem !important;
        border-radius: 12px;
    }

    .student-dashboard-page .student-room-photo {
        width: 100% !important;
        height: clamp(150px, 46vw, 180px) !important;
        min-height: 150px !important;
    }

    .student-dashboard-page .student-room-actions {
        width: 100%;
        grid-column: 1;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.4rem;
        justify-self: stretch;
    }

    .student-dashboard-page .student-room-actions [data-visit-controls] {
        display: contents;
    }

    .student-dashboard-page .student-room-actions .student-visit-date {
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .student-dashboard-page .student-room-actions .student-unlock-button {
        width: 100%;
        grid-column: 1;
        grid-row: 2;
    }

    .student-dashboard-page .student-room-actions .student-visit-button {
        width: 100%;
        grid-column: 2;
        grid-row: 2;
    }

    .student-dashboard-page .student-room-actions:not(:has(.student-unlock-button)) .student-visit-button {
        grid-column: 1 / -1;
    }

    .student-visit-date-label {
        display: none;
    }

    .student-contact-panel,
    .student-visit-status {
        min-width: 0;
        align-items: flex-start;
        padding: 0.45rem;
        border-radius: 10px;
    }

    .student-visit-status {
        flex-wrap: wrap;
    }

    .student-visit-status .student-request-active {
        margin-left: 0;
    }

    .student-room-features {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.35;
    }

    .student-room-activity {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.4rem;
        margin-top: 0.4rem;
    }

    .student-room-activity > .student-contact-panel,
    .student-room-activity > .student-visit-status {
        grid-column: 1;
    }

    .student-contact-panel.is-unlocked .student-contact-copy {
        width: calc(100% - 38px);
        min-width: 0;
        display: grid;
        align-items: center;
        gap: 0.4rem;
    }

    .student-owner-details {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-rows: repeat(3, minmax(38px, auto));
    }

    .student-owner-address {
        grid-column: 2;
        grid-row: 1 / 4;
    }

    .student-contact-panel.is-unlocked .student-contact-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(4, 36px);
        justify-content: start;
        gap: 0.4rem !important;
        margin-top: 0.3rem !important;
    }

    .student-contact-actions a,
    .student-contact-actions > span {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .student-room-name {
        font-size: 0.95rem;
    }

    .student-room-facts {
        gap: 0.28rem;
        margin-top: 0.28rem;
    }

    .student-room-facts span {
        padding: 0.22rem 0.38rem;
        font-size: 0.64rem;
    }
}

@container (max-width: 820px) {
    .student-dashboard-page .student-room-row {
        grid-template-columns: 1fr !important;
    }

    .student-dashboard-page .student-room-photo {
        width: 100% !important;
        height: clamp(150px, 42cqi, 190px) !important;
        min-height: 150px !important;
    }

    .student-dashboard-page .student-room-actions {
        width: 100%;
        grid-column: 1;
        justify-self: stretch;
    }

    .student-room-activity {
        grid-template-columns: minmax(0, 1fr);
    }

    .student-room-activity > .student-contact-panel,
    .student-room-activity > .student-visit-status {
        grid-column: 1;
    }

    .student-contact-panel.is-unlocked .student-contact-copy {
        width: calc(100% - 38px);
        min-width: 0;
        display: grid;
        align-items: center;
    }

    .student-owner-details {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-rows: repeat(3, minmax(38px, auto));
    }

    .student-owner-address {
        grid-column: 2;
        grid-row: 1 / 4;
    }

    .student-contact-panel.is-unlocked .student-contact-actions {
        width: 100% !important;
        grid-column: auto;
        grid-row: auto;
        margin-top: 0.3rem !important;
    }
}

@media (min-width: 992px) {
    .student-dashboard-page .student-room-actions button span {
        display: none;
    }

    .student-dashboard-page .student-room-actions button {
        min-width: 0;
        padding-right: 0.35rem;
        padding-left: 0.35rem;
        font-size: 0;
    }

    .student-dashboard-page .student-room-actions button i {
        font-size: 0.9rem;
    }
}

@media (max-width: 430px) {
    .student-contact-panel {
        flex-wrap: wrap;
    }

    .student-contact-panel.is-unlocked .student-contact-copy {
        width: 100%;
    }

    .student-owner-details {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-rows: repeat(3, minmax(42px, auto));
        gap: 0.3rem;
    }

    .student-owner-address {
        grid-column: 2;
        grid-row: 1 / 4;
    }

    .student-owner-detail b {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .student-dashboard-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .student-stat-card {
        min-width: 0;
        min-height: 64px;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.4rem 0.2rem;
        text-align: center;
    }

    .student-stat-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        border-radius: 8px;
        font-size: 0.7rem;
    }

    .student-stat-card strong {
        font-size: 0.95rem;
    }

    .student-stat-card div > span {
        overflow: hidden;
        font-size: 0.55rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .student-dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ct-auth-shell {
    min-height: calc(100dvh - 170px);
    display: grid;
    place-items: center;
    padding: 1.5rem 0;
}

.ct-auth-card {
    position: relative;
    width: min(100%, 480px);
}

.ct-auth-card .panel {
    border-radius: 26px;
    border-color: rgba(148,163,184,0.24);
    background: rgba(255,255,255,0.86);
    box-shadow: 0 24px 70px rgba(15,23,42,0.13);
    backdrop-filter: blur(20px);
}

.dark .ct-auth-card .panel {
    background: rgba(15,23,42,0.86);
}

.ct-auth-icon {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto -18px;
    border: 5px solid #f4f7fb;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 58%, #06b6d4);
    box-shadow: 0 14px 32px rgba(79,70,229,0.3);
}

.dark .ct-auth-icon {
    border-color: #070b1a;
}

.ct-auth-submit {
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 58%, #06b6d4);
    box-shadow: 0 14px 30px rgba(79,70,229,0.25);
}

@media (max-width: 768px) {
    .ct-auth-shell {
        min-height: calc(100dvh - 160px);
        padding: 0.75rem 0 1.5rem;
    }

    .ct-auth-card .panel {
        border-radius: 22px;
        padding: 1.25rem !important;
    }

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

    .compact-check-grid {
        grid-template-columns: 1fr;
    }

    .segmented {
        gap: 0.35rem;
    }

    .segmented .btn {
        min-width: 0;
        padding-right: 0.35rem;
        padding-left: 0.35rem;
        font-size: 0.78rem;
    }

    .floor-input-block,
    .room-input-block {
        padding: 0.85rem;
    }

    .ct-page-heading {
        gap: 0.75rem;
    }

    .ct-page-heading > div:first-child {
        min-width: 0;
        flex: 1;
    }

    .ct-page-heading > a,
    .ct-page-heading > .btn {
        flex: 0 0 auto;
    }

    .ct-mobile-action-row {
        border: 1px solid rgba(148,163,184,0.22) !important;
        border-radius: 16px;
        background: rgba(248,250,252,0.74);
        padding: 0.85rem !important;
        margin-top: 0.7rem;
    }

    .dark .ct-mobile-action-row {
        background: rgba(30,41,59,0.7);
    }

    .ct-mobile-action-row > span:first-of-type {
        display: grid;
        gap: 0.15rem;
        overflow-wrap: anywhere;
    }

    .map-shell {
        min-height: 62dvh;
        border-radius: 18px;
    }
}
