:root {
    --rentick-ink: #18212b;
    --rentick-muted: #5f6b76;
    --rentick-line: rgba(24, 33, 43, 0.1);
    --rentick-surface: rgba(255, 255, 255, 0.92);
    --rentick-brand: #0f7a36;
    --rentick-brand-dark: #0a5927;
    --rentick-accent: #f6c445;
    --rentick-slate: #0f1720;
    --rentick-shadow: 0 18px 48px rgba(19, 31, 45, 0.12);
    --rentick-shadow-soft: 0 10px 28px rgba(19, 31, 45, 0.08);
    --rentick-radius: 22px;
}

a {
    color: var(--rentick-brand-dark);
    font-weight: 700;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--rentick-brand);
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-shell main {
    flex: 1;
}

.header-connect {
    background: rgba(255, 255, 255, 0.82) !important;
    border-bottom: 1px solid rgba(24, 33, 43, 0.08);
    backdrop-filter: blur(10px);
}

.header-connect .container,
.site-navbar .container,
.page-head .container,
.footer-area .container {
    width: 100%;
    max-width: 1180px;
    padding-left: clamp(18px, 3vw, 32px);
    padding-right: clamp(18px, 3vw, 32px);
}

.header-half,
.top-custom2,
.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-custom2,
.header-half {
    justify-content: space-between;
}

.header-half {
    min-height: 46px;
}

.top-custom2 {
    flex: 1 1 auto;
}

.top-actions {
    margin-left: auto;
}

.top-span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rentick-muted);
    font-size: 13px;
    font-weight: 700;
}

.site-navbar {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--rentick-shadow-soft);
    backdrop-filter: blur(12px);
}

.site-navbar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

.navbar-toggle {
    margin-right: 0;
}

.site-navbar .container {
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 16px;
    height: auto;
    padding: 0;
    font-weight: 800;
    color: var(--rentick-slate) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-brand img {
    width: 188px;
    max-width: 100%;
}

.site-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.site-brand-copy small {
    color: var(--rentick-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav-list > li > a {
    border-radius: 999px;
    padding: 9px 14px !important;
    color: var(--rentick-ink) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-nav-list > li > a:hover,
.site-nav-list > li > a:focus,
.site-nav-list > li.active > a {
    background: rgba(23, 163, 74, 0.1) !important;
    color: var(--rentick-brand-dark) !important;
}

.site-user-chip {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin: 0 8px 0 0;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(24, 33, 43, 0.05);
    color: var(--rentick-muted);
    line-height: 1.2;
}

.site-user-chip strong {
    color: var(--rentick-slate);
    font-size: 13px;
}

.page-head {
    min-height: 136px !important;
    background:
        linear-gradient(90deg, rgba(12, 20, 28, 0.92), rgba(12, 20, 28, 0.72)),
        url("/assets/img/demo/property-1.jpg") center center / cover no-repeat !important;
    box-shadow: inset 0 -48px 72px rgba(0, 0, 0, 0.28);
}

.page-head-content {
    max-width: 760px;
    padding: 24px 0 18px !important;
}

.page-title {
    margin: 0;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-subtitle {
    max-width: 660px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.6;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(23, 163, 74, 0.18);
    background: #fff;
    color: var(--rentick-brand-dark);
    font-size: 13px;
    font-weight: 800;
    box-shadow: var(--rentick-shadow-soft);
}

.nav-button.nav-button-primary,
.nav-button.login,
.btn-brand {
    background: linear-gradient(135deg, var(--rentick-brand), var(--rentick-brand-dark));
    color: #fff !important;
}

.nav-button.login:hover,
.nav-button.login:focus {
    color: #fff !important;
}

.maintenance-banner {
    padding: 12px 16px;
    background: #f7c948;
    color: #1f2933;
    font-weight: 800;
    text-align: center;
}

.maintenance-banner a {
    margin-left: 8px;
    color: #1f2933;
    text-decoration: underline;
}

.btn.btn-success,
.btn.btn-primary,
.btn-brand {
    border-color: transparent;
    box-shadow: none;
}

.btn.btn-success:hover,
.btn.btn-success:focus,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn-brand:hover,
.btn-brand:focus {
    background: var(--rentick-brand-dark);
    color: #fff !important;
}

.hero-panel,
.auth-card,
.journey-card,
.status-card,
.summary-panel,
.payment-panel,
.footer-card,
.bank-form-card {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--rentick-radius);
    background: var(--rentick-surface);
    box-shadow: var(--rentick-shadow);
    backdrop-filter: blur(10px);
}

.hero-panel,
.auth-card,
.journey-card,
.status-card,
.summary-panel,
.footer-card,
.bank-form-card {
    padding: 20px;
}

.register-area .container,
.content-area .container,
.properties-area .container {
    padding-top: 8px;
    padding-bottom: 4px;
}

.hero-panel {
    background:
        linear-gradient(140deg, rgba(12, 20, 28, 0.96), rgba(12, 20, 28, 0.82)),
        radial-gradient(circle at top right, rgba(246, 196, 69, 0.22), transparent 36%);
    color: #fff;
}

.hero-panel h2,
.hero-panel h3,
.hero-panel p,
.hero-panel li,
.hero-panel strong {
    color: inherit;
}

.hero-panel p,
.hero-panel li {
    color: rgba(255, 255, 255, 0.9);
}

.hero-panel .check-list li,
.hero-panel .summary-list li {
    color: rgba(255, 255, 255, 0.9);
}

.section-meta {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(23, 163, 74, 0.08);
    color: var(--rentick-brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading {
    margin: 12px 0 10px;
    color: var(--rentick-slate);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.section-copy {
    margin: 0;
    color: var(--rentick-muted);
    font-size: 15px;
    line-height: 1.8;
}

.auth-grid,
.payment-grid,
.bank-layout,
.metric-grid,
.payment-choice-grid {
    display: grid;
    gap: 20px;
}

.auth-grid,
.payment-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    align-items: start;
}

.bank-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.payment-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
}

.metric-card {
    padding: 20px 22px;
    border: 1px solid rgba(24, 33, 43, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--rentick-shadow-soft);
}

.metric-card strong {
    display: block;
    color: var(--rentick-slate);
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.metric-card span {
    display: block;
    margin-top: 8px;
    color: var(--rentick-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.check-list,
.summary-list,
.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li,
.summary-list li {
    position: relative;
    padding-left: 24px;
    color: var(--rentick-muted);
    line-height: 1.7;
}

.check-list li + li,
.summary-list li + li,
.footer-menu li + li {
    margin-top: 12px;
}

.check-list li::before,
.summary-list li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--rentick-accent);
    box-shadow: 0 0 0 5px rgba(246, 196, 69, 0.18);
}

.pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(12, 89, 39, 0.08);
    color: var(--rentick-brand-dark) !important;
    font-size: 13px;
    font-weight: 800;
}

.pill-link:hover,
.pill-link:focus {
    background: rgba(12, 89, 39, 0.14);
    color: var(--rentick-brand-dark) !important;
}

.auth-card .text-center {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.application-section + .application-section {
    margin-top: 28px;
}

.application-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.application-section-header h3 {
    margin: 0 0 6px;
    color: var(--rentick-slate);
    font-size: 24px;
    font-weight: 800;
}

.application-section-header p {
    margin: 8px 0 0;
    color: var(--rentick-muted);
}

.empty-state {
    padding: 28px;
    border: 1px dashed rgba(24, 33, 43, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--rentick-muted);
    text-align: center;
}

.wizard-summary {
    margin: 0 auto 18px;
    max-width: 1120px;
    padding: 22px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(23, 163, 74, 0.14), rgba(246, 196, 69, 0.18));
    border: 1px solid rgba(23, 163, 74, 0.14);
    box-shadow: var(--rentick-shadow-soft);
}

.wizard-summary h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--rentick-slate);
}

.wizard-summary p {
    margin: 0;
    color: var(--rentick-muted);
    line-height: 1.7;
}

.wizard-card ul {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.wizard-card ul li {
    float: none;
    width: auto;
    flex: 0 0 auto;
}

.wizard-card ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(24, 33, 43, 0.1);
    background: #eef2f6;
    color: var(--rentick-slate);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.wizard-card .nav-pills > li {
    float: none !important;
    width: auto !important;
    flex: 0 0 auto;
}

.wizard-card .nav-pills > li > a,
.wizard-card .nav-pills > li:first-child > a,
.wizard-card .nav-pills > li:last-child > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px !important;
    border: 1px solid rgba(24, 33, 43, 0.1) !important;
    border-radius: 999px !important;
    background: #eef2f6 !important;
    color: var(--rentick-slate) !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wizard-card ul li.active a,
.wizard-card ul li a:hover,
.wizard-card.ct-wizard-orange .nav-pills > li.active > a,
.wizard-card .nav-pills > li > a:hover,
.wizard-card .nav-pills > li > a:focus {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--rentick-brand), var(--rentick-brand-dark)) !important;
    color: #fff !important;
}

.wizard-card .nav-pills > li:not(.active) > a {
    color: var(--rentick-slate) !important;
}

.payment-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 14px;
    border: 1px solid rgba(24, 33, 43, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.payment-choice img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.payment-choice strong {
    color: var(--rentick-slate);
    font-size: 14px;
    font-weight: 800;
}

.payment-choice input {
    width: auto;
    min-height: 0;
    margin: 0;
}

.bank-account-card {
    padding: 22px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(15, 23, 32, 0.96), rgba(15, 23, 32, 0.78)),
        radial-gradient(circle at top right, rgba(246, 196, 69, 0.22), transparent 34%);
    color: #fff;
    box-shadow: var(--rentick-shadow);
}

.bank-layout {
    gap: 20px;
    margin-bottom: 18px;
}

.bank-form-card,
.summary-panel {
    min-height: 100%;
}

.bank-form-card .btn + .btn,
.bank-form-card button + button {
    margin-left: 10px;
}

.footer-area .container > .row {
    align-items: stretch;
}

.footer-card {
    min-height: 100%;
}

.wizard-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 20px !important;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.wizard-header {
    margin-bottom: 6px;
}

.wizard-card .tab-content {
    padding-top: 6px;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

.wizard-card .info-text {
    margin: 0 0 22px;
    color: var(--rentick-slate);
    font-size: 24px;
    font-weight: 800;
}

.wizard-step-note {
    max-width: 720px;
    margin: -12px auto 20px;
    color: var(--rentick-muted);
    font-size: 14px;
    text-align: center;
}

.wizard-card .d-flex {
    display: flex;
    flex-wrap: wrap;
}

.wizard-card .form-group {
    margin-bottom: 14px;
}

.application-step-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.application-step-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 880px;
    margin: 0 auto;
}

.application-step-card {
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.96));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.application-step-card-header {
    margin-bottom: 18px;
}

.application-step-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 103, 177, 0.1);
    color: var(--rentick-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.application-step-card-header h5 {
    margin: 0 0 6px;
    color: var(--rentick-slate);
    font-size: 22px;
    font-weight: 800;
}

.application-step-card-header p {
    margin: 0;
    color: var(--rentick-muted);
    font-size: 14px;
    line-height: 1.6;
}

.application-step-stack {
    display: grid;
    gap: 2px;
}

.application-tenant-box {
    margin-bottom: 8px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

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

.tenant-detail-field {
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fbfdff;
}

.tenant-detail-field h6 {
    margin: 0 0 4px;
    color: var(--rentick-slate);
    font-size: 16px;
    font-weight: 800;
}

.tenant-detail-field p {
    margin: 0 0 12px;
    color: var(--rentick-muted);
    font-size: 12px;
}

.tenant-detail-field .form-group:last-child {
    margin-bottom: 0;
}

.payment-review-note {
    display: grid;
    gap: 5px;
    margin: 18px 0 4px;
    padding: 16px 18px;
    border: 1px solid rgba(201, 107, 0, 0.22);
    border-radius: 16px;
    background: #fff8ed;
    color: #713f12;
}

.payment-review-note strong {
    color: #7c2d12;
}

.wizard-footer-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 4px 10px 0 !important;
}

.wizard-action-left {
    justify-self: start;
}

.wizard-action-center {
    justify-self: center;
}

.wizard-action-right {
    justify-self: end;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.application-address-grid {
    display: grid;
    grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
    gap: 16px;
}

.application-address-grid--three {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr) minmax(0, 0.75fr);
}

.application-address-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.application-date-box {
    margin-top: 8px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.application-date-box h6 {
    margin: 0 0 14px;
    color: var(--rentick-slate);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wizard-card ul {
    margin-bottom: 18px;
}

.wizard-card ul::-webkit-scrollbar {
    height: 8px;
}

.wizard-card ul::-webkit-scrollbar-thumb {
    background: rgba(24, 33, 43, 0.18);
    border-radius: 999px;
}

.application-section .summary-panel {
    background: rgba(255, 255, 255, 0.98);
}

.bank-account-card h3,
.bank-account-card p,
.bank-account-card h5,
.bank-account-card strong {
    color: inherit;
}

.bank-account-card .form-group {
    margin-bottom: 16px;
}

.page-head .row {
    margin-left: 0;
    margin-right: 0;
}

.page-head-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.footer-area {
    margin-top: 18px;
    background: transparent;
}

.footer {
    padding: 22px 0 0;
    background: transparent;
}

.footer-copy {
    padding: 10px 0 14px;
    border-top: 1px solid rgba(24, 33, 43, 0.08);
    background: rgba(15, 23, 32, 0.08);
}

.content-area {
    padding-bottom: 4px !important;
}

.footer-brand {
    max-width: 132px;
    margin: 2px 0 14px;
}

.footer-copy span,
.footer-copy a {
    color: var(--rentick-muted);
    font-weight: 700;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 22px;
    align-items: stretch;
}

.footer-card.single-footer {
    display: block;
    min-height: 100%;
    padding: 24px;
    border-color: rgba(24, 33, 43, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

.footer-card h4 {
    margin: 0;
    color: var(--rentick-slate);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-title-line {
    width: 100%;
    height: 2px;
    margin: 12px 0 18px;
    background: linear-gradient(90deg, var(--rentick-brand), rgba(24, 33, 43, 0.18));
}

.footer-text {
    max-width: 560px;
    margin: 0 0 16px;
    color: var(--rentick-muted);
    line-height: 1.7;
}

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

.footer-adress li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--rentick-muted);
    line-height: 1.5;
}

.footer-adress i {
    color: var(--rentick-brand-dark);
    font-size: 18px;
}

.footer-menu {
    display: grid;
    gap: 10px;
}

.footer-menu li,
.footer-menu li + li {
    margin: 0;
}

.footer-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(24, 33, 43, 0.08);
    border-radius: 999px;
    background: rgba(15, 122, 54, 0.06);
    color: var(--rentick-brand-dark) !important;
    font-size: 13px;
    font-weight: 800;
}

.footer-menu a:hover,
.footer-menu a:focus {
    background: rgba(15, 122, 54, 0.12);
}

.application-section .btn.btn-sm,
.summary-panel .btn.btn-sm {
    min-width: 74px;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
}

@media (max-width: 991px) {
    .auth-grid,
    .payment-grid,
    .bank-layout,
    .metric-grid,
    .payment-choice-grid,
    .application-step-grid {
        grid-template-columns: 1fr;
    }

    .header-half,
    .top-custom2,
    .top-actions {
        gap: 8px;
    }

    .top-custom2 {
        justify-content: center;
    }

    .site-user-chip {
        align-items: flex-start;
        margin: 12px 0;
    }

    .site-nav-list {
        display: block;
        margin-top: 10px;
    }

    .site-nav-list > li {
        display: block;
        width: 100%;
    }

    .site-nav-list > li > a {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 8px;
        padding: 12px 14px !important;
        font-size: 14px;
    }

    .application-section-header {
        flex-direction: column;
    }

    .application-address-grid,
    .application-address-grid--three,
    .application-address-grid--two,
    .application-tenant-grid {
        grid-template-columns: 1fr;
    }

    .wizard-footer-actions {
        grid-template-columns: 1fr;
    }

    .wizard-action-left,
    .wizard-action-center,
    .wizard-action-right {
        justify-self: stretch;
    }

    .wizard-action-left .btn,
    .wizard-action-center .btn,
    .wizard-action-right .btn,
    .wizard-action-right input {
        width: 100%;
    }

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

@media (max-width: 767px) {
    .wizard-card ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .wizard-card ul li {
        flex: 0 0 auto;
    }

    .wizard-card ul li a {
        min-height: 40px;
        padding: 0 16px;
        font-size: 12px;
    }

    .tenant-dashboard-table,
    .applications-status-stack table {
        display: block;
        width: 100%;
        margin: 0;
    }

    .tenant-dashboard-table thead,
    .applications-status-stack table thead {
        display: none;
    }

    .tenant-dashboard-table tbody,
    .applications-status-stack table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .tenant-dashboard-table tbody tr,
    .applications-status-stack table tbody tr {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid rgba(24, 33, 43, 0.08);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .tenant-dashboard-table tbody td,
    .applications-status-stack table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 0 !important;
        border: 0 !important;
        text-align: right;
        white-space: normal;
    }

    .tenant-dashboard-table tbody td[data-label]::before,
    .applications-status-stack table tbody td[data-label]::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: #52606d;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .tenant-dashboard-table tbody td[data-label="Address"],
    .applications-status-stack table tbody td[data-label="Address"] {
        align-items: flex-start;
    }

    .tenant-dashboard-table tbody td[data-label="Action"] .btn,
    .applications-status-stack table tbody td[data-label="Action"] .btn,
    .tenant-dashboard-table tbody td[data-label="Action"] .tenant-dashboard-badge,
    .applications-status-stack table tbody td[data-label="Action"] .status-action-disabled {
        min-width: 128px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .header-connect {
        display: none;
    }

    .site-navbar .container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-navbar-header {
        justify-content: space-between;
    }

    .site-brand img {
        width: 144px;
    }

    .site-brand-copy {
        display: none;
    }

    .page-head {
        min-height: 138px !important;
    }

    .page-head-content {
        padding: 24px 0 18px !important;
    }

    .page-title {
        font-size: 24px !important;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .hero-panel,
    .auth-card,
    .journey-card,
    .status-card,
    .summary-panel,
    .payment-panel,
    .footer-card,
    .bank-form-card,
    .wizard-card {
        padding: 18px;
    }

    .section-heading {
        font-size: 24px;
    }
}
.wizard-step-error {
    margin: 0 0 18px;
    border: 1px solid rgba(179, 43, 43, 0.18);
    border-radius: 14px;
    background: rgba(255, 245, 245, 0.96);
    color: #8c1d1d;
    font-weight: 700;
}

.wizard-field-error {
    margin-top: 8px;
    color: #b3261e;
    font-size: 13px;
    font-weight: 700;
}

.form-group.has-error .form-control,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #d14343;
    box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.12);
}

.payment-choice-grid.has-error,
.has-error .payment-choice-grid {
    outline: 2px solid rgba(209, 67, 67, 0.28);
    outline-offset: 10px;
    border-radius: 18px;
}

.workflow-badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.workflow-badge[data-state="disputed"] {
    background: #fef2f2;
    color: #991b1b;
}

.workflow-badge[data-state="completed"],
.workflow-badge[data-state="signed"] {
    background: #ecfdf3;
    color: #166534;
}

.workflow-badge[data-state="final_contract_issued"],
.workflow-badge[data-state="fully_approved"] {
    background: #eef2ff;
    color: #1d4ed8;
}

.workflow-badge[data-state="draft"],
.workflow-badge[data-state="paid"],
.workflow-badge[data-state="inspection_in_progress"],
.workflow-badge[data-state="sent_for_review"],
.workflow-badge[data-state="updated"],
.workflow-badge[data-state="re_sent"],
.workflow-badge[data-state="tenant_approved"],
.workflow-badge[data-state="agent_approved"],
.workflow-badge[data-state="waiting_tenant_approval"],
.workflow-badge[data-state="waiting_agent_approval"] {
    background: #fff7ed;
    color: #9a3412;
}

.agency-app-shell {
    background: transparent !important;
    padding-bottom: 28px;
}

.agency-app-intro,
.agency-inspection-summary,
.agency-empty-card,
.agency-inspection-card,
.agency-room-card {
    border: 1px solid rgba(24, 33, 43, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.agency-app-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 26px;
}

.rentick-offline-prep-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 1px solid rgba(154, 52, 18, 0.14);
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #ecfdf3);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.rentick-offline-prep-notice h2 {
    margin: 8px 0;
    color: #18212b;
    font-size: 22px;
    font-weight: 800;
}

.rentick-offline-prep-notice p {
    margin: 0;
    color: #5f6b76;
    line-height: 1.65;
}

.agency-app-count {
    display: grid;
    place-items: center;
    min-width: 120px;
    min-height: 92px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f7a36, #17a34a);
    color: #fff;
}

.agency-app-count strong {
    display: block;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.agency-app-count span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agency-empty-card {
    padding: 30px;
}

.agency-empty-card h2 {
    margin: 0 0 10px;
    color: #18212b;
    font-weight: 800;
}

.agency-empty-card p {
    color: #5f6b76;
    line-height: 1.7;
}

.agency-inspection-list,
.agency-room-stack {
    display: grid;
    gap: 18px;
}

.agency-inspection-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 24px;
}

.agency-card-main h2,
.agency-room-card h2 {
    margin: 5px 0 8px;
    color: #18212b;
    font-size: 24px;
    font-weight: 800;
}

.agency-card-main p,
.agency-room-card-head p {
    margin: 0;
    color: #5f6b76;
    line-height: 1.6;
}

.agency-card-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(23, 163, 74, 0.1);
    color: #0f7a36;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agency-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.agency-card-meta div {
    padding: 13px 14px;
    border-radius: 16px;
    background: #f7faf8;
}

.agency-card-meta dt {
    margin-bottom: 4px;
    color: #6b7c93;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agency-card-meta dd {
    margin: 0;
    color: #18212b;
    font-weight: 700;
}

.agency-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.rentick-offline-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.rentick-offline-status[data-state="ready"] {
    background: #ecfdf3;
    color: #166534;
}

.rentick-offline-status[data-state="syncing"] {
    background: #fff7ed;
    color: #9a3412;
}

.rentick-offline-status[data-state="error"] {
    background: #fef2f2;
    color: #991b1b;
}

.agency-inspection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.agency-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
}

.agency-alert-success {
    border: 1px solid rgba(22, 101, 52, 0.14);
    background: #ecfdf3;
    color: #166534;
}

.agency-alert-error {
    border: 1px solid rgba(153, 27, 27, 0.14);
    background: #fef2f2;
    color: #991b1b;
}

.agency-inspection-form {
    display: grid;
    gap: 18px;
}

.agency-inspection-summary {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 24px;
    padding: 26px;
}

.agency-summary-grid {
    display: grid;
    gap: 14px;
}

.agency-summary-grid label,
.agency-room-note-label,
.agency-media-upload-block label {
    display: grid;
    gap: 8px;
    color: #18212b;
    font-weight: 800;
}

.agency-summary-grid label span,
.agency-room-note-label span,
.agency-media-upload-block label span {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.agency-room-card {
    padding: 22px;
}

.agency-room-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.agency-room-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.agency-media-upload-block {
    margin-top: 16px;
}

.agency-media-queue-panel {
    margin-top: 10px;
    padding: 13px;
    border: 1px dashed rgba(15, 122, 54, 0.32);
    border-radius: 16px;
    background: rgba(236, 253, 243, 0.72);
}

.agency-media-queue-title {
    color: #18212b;
    font-size: 13px;
    font-weight: 800;
}

.agency-media-queue-copy {
    margin-top: 4px;
    color: #5f6b76;
    font-size: 12px;
    line-height: 1.5;
}

.agency-media-queue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.agency-media-queue-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    color: #0f7a36;
    font-size: 12px;
    font-weight: 800;
}

.agency-media-queue-status[data-state="queued"] {
    background: #fff7ed;
    color: #9a3412;
}

.agency-media-queue-status[data-state="warning"] {
    background: #fef2f2;
    color: #991b1b;
}

.agency-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.agency-media-tile {
    overflow: hidden;
    border: 1px solid rgba(24, 33, 43, 0.08);
    border-radius: 16px;
    background: #fff;
    color: #18212b;
    text-decoration: none;
}

.agency-media-tile img,
.agency-media-video {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e8f3ec;
    color: #0f7a36;
    font-weight: 800;
}

.agency-media-tile small {
    display: block;
    padding: 8px 10px;
    overflow: hidden;
    color: #5f6b76;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agency-form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
    padding: 16px;
    border: 1px solid rgba(24, 33, 43, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
    .agency-app-intro,
    .agency-inspection-card,
    .agency-inspection-summary {
        grid-template-columns: 1fr;
    }

    .agency-app-intro,
    .agency-inspection-card {
        align-items: stretch;
    }

    .agency-card-meta {
        grid-template-columns: 1fr;
    }

    .agency-card-action,
    .agency-inspection-toolbar,
    .agency-room-card-head,
    .agency-media-queue-row,
    .rentick-offline-prep-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .agency-card-action .btn,
    .agency-form-actions .btn,
    .rentick-offline-prep-notice .nav-button {
        width: 100%;
    }

    .agency-form-actions {
        flex-direction: column;
    }
}
