body {
    background: #f4f6f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.app-shell {
    background: #f4f6f9;
}

/* ===== App sidebar ===== */
.app-sidebar {
    width: 250px;
    min-width: 250px;
    position: sticky;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg, #0a1e42 0%, #0d2c63 100%);
    color: #fff;
    padding: 1.5rem 1.1rem;
}
.app-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 0.4rem;
    margin-bottom: 2rem;
}
.app-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.app-sidebar-brand-name {
    font-weight: 700;
    font-size: 1.02rem;
}
.app-sidebar-brand-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
}
.app-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.app-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.app-nav-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}
.app-nav-link:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}
.app-nav-link.active {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
    border-left-color: #4d9dff;
    font-weight: 600;
}
.app-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.5rem 0.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.app-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}
.app-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.app-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-user-logout {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
}
.app-user-logout:hover {
    color: #fff;
}

.stat-card {
    border-radius: 12px;
    color: #fff;
}
.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
}
.badge-available { background-color: #198754; }
.badge-reserved { background-color: #ffc107; color:#000; }
.badge-sold { background-color: #dc3545; }

/* ===== Global card polish ===== */
.card {
    border: 1px solid rgba(16,24,40,0.06);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid rgba(16,24,40,0.06);
    font-weight: 600;
    color: #1a1a2e;
}

/* ===== Dashboard ===== */
.dash-welcome h3 {
    font-weight: 700;
    color: #1a1a2e;
}
.stat-tile {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,24,40,0.08);
}
.stat-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}
.stat-icon-blue   { background: rgba(42,120,214,0.12); color: #2a78d6; }
.stat-icon-green  { background: rgba(0,131,0,0.12);    color: #008300; }
.stat-icon-aqua   { background: rgba(27,175,122,0.14); color: #1baf7a; }
.stat-icon-violet { background: rgba(74,58,167,0.12);  color: #4a3aa7; }
.stat-tile-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
}
.stat-tile-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}
.stat-tile-sub {
    font-size: 0.78rem;
    color: #898781;
    margin-top: 0.2rem;
}
.dash-table-card .card-header {
    font-weight: 600;
}
.dash-table-card .card-header a {
    color: #0d6efd;
}
.buyer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(13,110,253,0.1);
    color: #0d6efd;
    font-size: 0.7rem;
    font-weight: 700;
}

#designerCanvas, #view3dCanvas {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 8px;
}
/* ===== Auth / Landing Page ===== */
.auth-body {
    background: #fff;
}
.auth-page {
    min-height: 100vh;
    display: flex;
    width: 100%;
    overflow-x: hidden;
}

/* Left branding panel */
.auth-visual {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem 4rem;
    background: linear-gradient(150deg, #0a3d91 0%, #0d6efd 55%, #2f8cff 100%);
    color: #fff;
    overflow: hidden;
}
.auth-visual-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}
.auth-visual-glow.g1 {
    width: 420px;
    height: 420px;
    background: #6f42c1;
    top: -120px;
    right: -120px;
}
.auth-visual-glow.g2 {
    width: 320px;
    height: 320px;
    background: #198754;
    bottom: -100px;
    left: -80px;
}
.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: auto 0;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 3rem;
}
.auth-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    font-size: 1.2rem;
}
.auth-headline {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.1rem;
}
.auth-subhead {
    font-size: 1.02rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.98rem;
    color: rgba(255,255,255,0.95);
}
.auth-feature-list li i {
    color: #7fd8a0;
    font-size: 1.05rem;
}
.auth-visual-footer {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

/* Right form panel */
.auth-form-side {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
}
.auth-form-card {
    width: 100%;
    max-width: 400px;
    min-width: 0;
}
.auth-form-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0a3d91;
    margin-bottom: 2rem;
}
.auth-form-header .auth-brand-icon {
    background: rgba(13,110,253,0.1);
    color: #0d6efd;
}
.auth-form-title {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
    color: #1a1a2e;
}
.auth-form-subtitle {
    color: #6c757d;
    margin-bottom: 1.75rem;
}
.auth-input-group .input-group-text {
    background: #f8f9fb;
    border-right: none;
    color: #6c757d;
}
.auth-input-group .form-control {
    border-left: none;
    padding-left: 0;
}
.auth-input-group .form-control:focus {
    box-shadow: none;
    border-color: #86b7fe;
}
.auth-input-group:focus-within .input-group-text {
    border-color: #86b7fe;
}
.auth-toggle-pass {
    cursor: pointer;
    background: #f8f9fb;
}
.auth-submit-btn {
    background: linear-gradient(135deg, #0d6efd, #0a3d91);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 16px rgba(13,110,253,0.3);
}
.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13,110,253,0.4);
}
.auth-submit-btn:disabled {
    opacity: 0.75;
    transform: none;
}
.auth-hint {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

@media (max-width: 991.98px) {
    .auth-visual { display: none; }
    .auth-form-side { flex: 1 1 100%; }
}
