/* Login premium */
.auth-layout {
    min-height: 100vh;
    background: #001A5C;
}

.login-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-brand-panel {
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #002D94 0%, #001A5C 55%, #000d2e 100%);
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 45%),
                      radial-gradient(circle at 80% 70%, rgba(79,115,217,0.25) 0%, transparent 40%);
    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.login-brand-logo {
    height: 72px;
    width: auto;
    margin-bottom: 32px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
    animation: loginLogoIn 0.8s ease-out;
}

.login-brand-title {
    color: #fff !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
}

.login-brand-tagline {
    color: rgba(255,255,255,0.85) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

.login-brand-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #f0f4fc 0%, #e8eef8 100%);
}

.login-glass-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 48px rgba(0, 45, 148, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06) !important;
    animation: loginCardIn 0.6s ease-out 0.1s both;
}

.login-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-mobile-logo img {
    height: 56px;
}

.login-submit-btn {
    height: 52px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    border-radius: 12px !important;
}

@keyframes loginLogoIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes loginCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
    .login-brand-panel {
        display: flex;
    }
    .login-mobile-logo {
        display: none;
    }
}

/* Request service */
.request-hero {
    margin-bottom: 8px;
}

.request-stepper-paper {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid #e8ecf4;
}

.request-step-content {
    min-height: 280px;
    padding: 8px 4px 24px;
}

.conditional-slide {
    animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.recent-requests-paper {
    border-radius: 16px !important;
    background: #fafbfc;
    border: 1px solid #e8ecf4;
}

/* Ecommerce showcase */
.ecommerce-hero {
    background: linear-gradient(135deg, #002D94 0%, #4F73D9 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: white;
    margin-bottom: 24px;
}

.ecommerce-filters {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e8ecf4;
    margin-bottom: 24px;
}

.product-card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #e8ecf4 !important;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 45, 148, 0.12) !important;
}

.product-image-wrap {
    position: relative;
    height: 200px;
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f9 100%);
    overflow: hidden;
}

.product-image-wrap img,
.product-image-wrap .mud-card-media {
    height: 200px !important;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 45, 148, 0.9);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.product-price {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #002D94 !important;
}

.product-price-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-skeleton-card {
    border-radius: 16px;
    border: 1px solid #e8ecf4;
    padding: 16px;
}

.ecommerce-empty {
    text-align: center;
    padding: 64px 24px;
    background: #fafbfc;
    border-radius: 16px;
    border: 2px dashed #d0d8e8;
}

/* App shell premium */
.portal-appbar {
    background: linear-gradient(90deg, #002D94 0%, #001A5C 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-drawer {
    border-right: 1px solid #e8ecf4 !important;
    background: #fff !important;
}

.portal-drawer .mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portal-drawer-header {
    padding: 0 !important;
}

.drawer-subtitle {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.75rem !important;
}

.portal-nav-menu {
    padding: 12px 8px;
}

.portal-nav-menu .mud-nav-link {
    border-radius: 10px;
    margin: 2px 8px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.portal-nav-menu .mud-nav-link-active {
    background: linear-gradient(90deg, rgba(0, 45, 148, 0.12) 0%, rgba(79, 115, 217, 0.08) 100%) !important;
    color: #002D94 !important;
    font-weight: 600 !important;
}

.portal-drawer-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid #eef2f8;
}

.portal-main {
    background: transparent !important;
}

.portal-avatar {
    background: linear-gradient(135deg, #4F73D9, #002D94) !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.85rem;
}

.portal-user-btn {
    text-transform: none !important;
    padding: 4px 8px !important;
}

.portal-user-name {
    color: white !important;
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-menu-profile {
    padding: 4px 0;
    min-width: 180px;
}

/* Onboarding */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 26, 92, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.onboarding-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px !important;
    border-radius: 20px !important;
    animation: loginCardIn 0.4s ease-out;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d8e8;
    transition: all 0.25s ease;
}

.onboarding-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #002D94;
}

.onboarding-dot.done {
    background: #4F73D9;
}

.onboarding-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8eef8, #f0f4fc);
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-text {
    text-align: center;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dashboard hub */
.hub-container {
    padding: 0 !important;
}

.hub-hero {
    background: linear-gradient(135deg, #002D94 0%, #4F73D9 100%);
    border-radius: 20px;
    padding: 28px 32px;
    color: white;
}

.hub-greeting {
    color: white !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

.hub-date {
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: capitalize;
}

.hub-tagline {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 8px;
}

.hub-kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    backdrop-filter: blur(8px);
}

.hub-kpi-warning {
    background: rgba(255, 193, 7, 0.15);
}

.hub-kpi-accent {
    background: rgba(255, 255, 255, 0.18);
}

.hub-kpi-label {
    color: rgba(255, 255, 255, 0.75) !important;
    display: block;
}

.hub-kpi-value {
    color: white !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.hub-section-title {
    font-weight: 600 !important;
    color: #002D94;
}

.hub-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.bento-tile {
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8ecf4;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.bento-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 45, 148, 0.12);
}

.bento-large {
    grid-column: span 12;
    min-height: 140px;
    background: linear-gradient(145deg, #f0f4fc 0%, #fff 60%);
    border-color: #c5d4f0;
}

.bento-medium {
    grid-column: span 6;
    min-height: 120px;
}

.bento-small {
    grid-column: span 6;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .bento-large {
        grid-column: span 6;
    }
    .bento-medium {
        grid-column: span 3;
    }
    .bento-small {
        grid-column: span 3;
    }
}

.bento-icon {
    color: #002D94;
    font-size: 2rem !important;
    margin-bottom: 8px;
}

.bento-icon-sm {
    color: #002D94;
}

.bento-title {
    font-weight: 600 !important;
}

.bento-desc {
    color: #666 !important;
    margin-top: 4px;
}

.bento-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: #002D94;
}

.hub-recent-paper {
    border-radius: 16px !important;
    border: 1px solid #e8ecf4;
    background: #fff !important;
}

.hub-invoice-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #eef2f8;
    cursor: pointer;
    transition: background 0.15s ease;
}

.hub-invoice-row:hover {
    background: #f5f8fc;
}

.hub-invoice-main {
    flex: 1;
    min-width: 0;
}

.hub-invoice-amount {
    font-weight: 700 !important;
    color: #002D94 !important;
    white-space: nowrap;
}

.hub-invoice-skeleton {
    border-radius: 12px !important;
}

.hub-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Team sub-users */
.team-header {
    margin-bottom: 8px;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    border-radius: 16px !important;
    border: 1px solid #e8ecf4 !important;
    transition: box-shadow 0.2s ease;
}

.team-card:hover {
    box-shadow: 0 8px 24px rgba(0, 45, 148, 0.1) !important;
}

.team-card-inactive {
    opacity: 0.75;
}

.team-avatar {
    background: linear-gradient(135deg, #4F73D9, #002D94) !important;
    color: white !important;
    font-weight: 700;
}

.team-module-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.team-perm-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-perm-chip {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.team-perm-chip-off {
    opacity: 0.45;
}

.team-empty {
    text-align: center;
    padding: 48px 24px;
    border-radius: 16px;
    border: 2px dashed #d0d8e8;
    background: #fafbfc;
}
