/* QBill — Landing Page Styles */
/* Rule: No custom CSS media queries. Bootstrap 5 handles all responsive layouts. */

/* Single-Screen Layout (No Scrolling) for Landing and Login Pages Only */
body.landing-page,
body.login-page,
body.login-page-web {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    background-color: var(--qb-cream);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Background Layers (Responsive display handled via Bootstrap d-lg-none and d-none d-lg-block) */
.landing-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: cover;
}
.landing-bg-mobile {
    background-image: url('../images/background/background-mobile.jpeg');
    background-position: center top;
}
.landing-bg-web {
    background-image: url('../images/background/background-web.jpeg');
    background-position: center center;
}

/* Landing Header */
.landing-header {
    background-color: rgba(255, 247, 239, 0.92);
    border-bottom: 1px solid var(--qb-border-light);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

/* Landing Logo (Responsive display handled via Bootstrap d-md-none and d-none d-md-block) */
.landing-logo-mobile {
    height: clamp(32px, 4.2vh, 42px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.landing-logo-desktop {
    height: 65px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.landing-logo {
    height: clamp(32px, 4.2vh, 42px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.landing-nav .nav-link {
    color: var(--qb-espresso-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    transition: color 0.2s ease;
    position: relative;
}
.landing-nav .nav-link:hover {
    color: var(--qb-terracotta);
}
.landing-nav .nav-link.active {
    color: var(--qb-espresso);
}
.landing-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background-color: var(--qb-terracotta);
    border-radius: 2px;
}

/* Hero Section Base */
.landing-hero {
    background-color: transparent;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: clamp(0.1rem, 0.8vh, 0.5rem);
    padding-bottom: clamp(0.2rem, 1vh, 0.5rem);
}

.hero-heading .brand-highlight {
    color: var(--qb-terracotta);
}

/* Base Feature Item Styles (also used by login pages) */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    max-width: 76px;
}
.feature-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background-color: var(--qb-peach-light);
    border: 1px solid var(--qb-border);
    color: var(--qb-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    transition: all 0.2s ease;
}
.feature-item:hover .feature-icon-box {
    background-color: var(--qb-peach);
    transform: translateY(-2px);
    border-color: var(--qb-terracotta);
}
.feature-label {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--qb-espresso);
    line-height: 1.15;
}

/* Base CTA Buttons */
.btn-hero-primary {
    background-color: var(--qb-terracotta);
    color: var(--qb-white);
    border: 1px solid var(--qb-terracotta);
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(185, 83, 50, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-hero-primary:hover {
    background-color: var(--qb-terracotta-hover);
    color: var(--qb-white);
    transform: translateY(-1px);
}

.btn-hero-secondary {
    background-color: var(--qb-white);
    color: var(--qb-espresso);
    border: 1px solid var(--qb-border);
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-hero-secondary:hover {
    background-color: var(--qb-peach-light);
    border-color: var(--qb-terracotta);
    color: var(--qb-terracotta);
}
.btn-hero-secondary .play-icon {
    color: var(--qb-terracotta);
}

/* Base Statistics Styles */
.landing-stats-card {
    background-color: var(--qb-white);
    border: 1px solid var(--qb-border);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(50, 28, 23, 0.08);
    padding: 0.75rem 1.75rem;
    width: 100%;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.25rem 0.5rem;
}
.stat-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--qb-peach-light);
    border: 1px solid var(--qb-border-light);
    color: var(--qb-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-number {
    font-family: var(--qb-font-sans);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--qb-terracotta);
    line-height: 1.1;
}
.stat-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--qb-espresso);
    line-height: 1.15;
}
.stat-desc {
    font-size: 0.72rem;
    color: var(--qb-espresso-muted);
    line-height: 1.1;
}

/* ==========================================================================
   Mobile Responsive Variant (Applied via Bootstrap 'd-md-none' container)
   ========================================================================== */
.landing-hero-mobile {
    max-width: 480px;
}
.landing-hero-mobile .badge-smart {
    font-size: clamp(0.66rem, 1.3vh, 0.78rem);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.landing-hero-mobile .hero-heading {
    font-size: clamp(1.15rem, min(4.8vw, 2.8vh), 1.55rem);
    line-height: 1.12;
    font-weight: 700;
    color: var(--qb-espresso);
    letter-spacing: -0.02em;
    margin-bottom: clamp(0.25rem, 0.9vh, 0.5rem);
}
.landing-hero-mobile .hero-subtitle {
    font-size: clamp(0.68rem, 2.6vw, 0.82rem);
    line-height: clamp(1.28, 1.8vh, 1.45);
    color: var(--qb-espresso-muted);
    max-width: 480px;
    margin-bottom: clamp(0.35rem, 1vh, 0.65rem);
}
.landing-hero-mobile .landing-features-row {
    max-width: 380px;
    gap: clamp(0.2rem, 1vw, 0.5rem);
}
.landing-hero-mobile .feature-item {
    max-width: 76px;
}
.landing-hero-mobile .feature-icon-box {
    width: clamp(26px, 3.5vh, 32px);
    height: clamp(26px, 3.5vh, 32px);
    border-radius: clamp(7px, 1vh, 9px);
    font-size: clamp(0.78rem, 1.2vh, 0.95rem);
    margin-bottom: clamp(0.12rem, 0.4vh, 0.22rem);
}
.landing-hero-mobile .feature-label {
    font-size: clamp(0.54rem, 1.6vw, 0.64rem);
    font-weight: 700;
    color: var(--qb-espresso);
    line-height: 1.1;
}
.landing-hero-mobile .btn-hero-primary,
.landing-hero-mobile .btn-hero-secondary {
    border-radius: clamp(6px, 1vh, 8px);
    padding: clamp(0.32rem, 0.85vh, 0.45rem) clamp(0.65rem, 2.2vw, 0.95rem);
    font-size: clamp(0.72rem, 1.1vh, 0.82rem);
    gap: clamp(0.25rem, 0.8vw, 0.4rem);
}
.landing-stats-mobile {
    margin-bottom: clamp(0.4rem, 2.2vh, 2rem);
}
.landing-stats-card-mobile {
    border-radius: clamp(10px, 1.5vh, 14px);
    padding: clamp(0.25rem, 0.7vh, 0.45rem) clamp(0.35rem, 1.2vw, 0.6rem);
}
.landing-stats-mobile .stat-item {
    gap: clamp(0.25rem, 0.8vw, 0.5rem);
    padding: 0.1rem 0.2rem;
}
.landing-stats-mobile .stat-icon-wrapper {
    width: clamp(22px, 3vh, 28px);
    height: clamp(22px, 3vh, 28px);
    font-size: clamp(0.72rem, 1vh, 0.85rem);
}
.landing-stats-mobile .stat-number {
    font-size: clamp(0.75rem, 1.1vh, 0.88rem);
}
.landing-stats-mobile .stat-title {
    font-size: clamp(0.55rem, 0.85vh, 0.65rem);
}
.landing-stats-mobile .stat-desc {
    font-size: clamp(0.46rem, 0.7vh, 0.56rem);
}

/* ==========================================================================
   Tablet Responsive Variant (Applied via Bootstrap 'd-none d-md-block d-lg-none' container)
   ========================================================================== */
.landing-hero-tablet {
    max-width: 680px;
}
.landing-hero-tablet .landing-features-row {
    max-width: 580px;
    gap: 1rem !important;
    margin-bottom: 1.25rem !important;
}
.landing-hero-tablet .badge-smart {
    font-size: 0.84rem;
    padding: 0.35rem 0.85rem !important;
    margin-bottom: 0.85rem !important;
}
.landing-hero-tablet .hero-heading {
    font-size: clamp(1.85rem, 3.4vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.landing-hero-tablet .hero-subtitle {
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    line-height: 1.5;
    max-width: 620px;
    margin-bottom: 1.25rem;
}
.landing-hero-tablet .feature-item {
    max-width: 96px;
}
.landing-hero-tablet .feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}
.landing-hero-tablet .feature-label {
    font-size: 0.74rem;
    line-height: 1.2;
}
.landing-hero-tablet .btn-hero-primary,
.landing-hero-tablet .btn-hero-secondary {
    padding: 0.55rem 1.4rem;
    font-size: 0.92rem;
    border-radius: 9px;
    gap: 0.5rem;
}
.landing-stats-tablet {
    margin-bottom: clamp(0.75rem, 2.2vh, 2.25rem);
}
.landing-stats-card-tablet {
    padding: 0.65rem 1.25rem;
    border-radius: 16px;
}
.landing-stats-tablet .stat-item {
    gap: 0.65rem;
    padding: 0.2rem 0.35rem;
}
.landing-stats-tablet .stat-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}
.landing-stats-tablet .stat-number {
    font-size: 1.12rem;
}
.landing-stats-tablet .stat-title {
    font-size: 0.78rem;
}
.landing-stats-tablet .stat-desc {
    font-size: 0.66rem;
}

/* ==========================================================================
   Desktop Responsive Variant (Applied via Bootstrap 'd-none d-lg-block' container)
   ========================================================================== */
.landing-hero-desktop {
    max-width: 480px;
}
.landing-hero-desktop .landing-features-row {
    max-width: 370px;
    gap: 0.4rem !important;
    margin-bottom: 1.5rem !important;
}
.landing-hero-desktop .badge-smart {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem !important;
    margin-bottom: 1rem !important;
}
.landing-hero-desktop .hero-heading {
    font-size: clamp(1.4rem, 2.8vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.landing-hero-desktop .hero-subtitle {
    font-size: clamp(0.78rem, 1.1vw, 0.95rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.landing-hero-desktop .feature-item {
    max-width: 70px;
}
.landing-hero-desktop .feature-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.landing-hero-desktop .feature-label {
    font-size: 0.64rem;
    line-height: 1.15;
}
.landing-hero-desktop .btn-hero-primary,
.landing-hero-desktop .btn-hero-secondary {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}
.landing-stats-desktop {
    margin-bottom: 0;
}
.landing-stats-card-desktop {
    padding: 0.75rem 1.75rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(50, 28, 23, 0.08);
}
.landing-stats-desktop .stat-item {
    gap: 0.85rem;
    padding: 0.25rem 0.5rem;
}
.landing-stats-desktop .stat-icon-wrapper {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}
.landing-stats-desktop .stat-number {
    font-size: 1.2rem;
}
.landing-stats-desktop .stat-title {
    font-size: 0.85rem;
}
.landing-stats-desktop .stat-desc {
    font-size: 0.72rem;
}

/* ==========================================================================
   Login Pages Dedicated Styling (Web & Mobile)
   ========================================================================== */
body.login-page-web {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    background-color: var(--qb-cream);
    background-image: url('../images/background/bg-login-web.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

body.login-page-mobile {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto;
    background-color: var(--qb-cream);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 100vw;
    touch-action: manipulation;
}

.login-web-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: url('../images/background/bg-login-web.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.login-mobile-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: url('../images/background/bg-login-mobile.jpeg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.login-card {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(45, 25, 20, 0.08);
    border: 1px solid rgba(233, 215, 201, 0.6);
}

.login-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    max-width: 76px;
}

.login-feature-icon-box {
    width: clamp(32px, 4vw, 42px);
    height: clamp(32px, 4vw, 42px);
    border-radius: 11px;
    background-color: #ffffff;
    color: var(--qb-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    margin-bottom: 0.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: all 0.2s ease;
}

.login-feature-item:hover .login-feature-icon-box {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.login-feature-label {
    font-size: clamp(0.54rem, 1.3vw, 0.64rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.12;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Web Login Left Highlights (Positioned above QR Stand - Moderately Increased Scale ~70/100) */
.web-login-left-content {
    max-width: 480px;
}
.web-login-heading {
    font-size: clamp(1.65rem, 2.6vw, 2.45rem);
    line-height: 1.12;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: clamp(0.4rem, 0.9vh, 0.65rem);
}
.web-login-subtitle {
    font-size: clamp(0.82rem, 1.05vw, 0.95rem);
    line-height: 1.42;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    margin-bottom: clamp(0.5rem, 1.2vh, 0.85rem);
}
.web-login-features {
    max-width: 375px;
    gap: clamp(0.3rem, 1vw, 0.6rem);
}
.web-login-features .login-feature-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}
.web-login-features .login-feature-label {
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.15;
}

/* Mobile Login Page (Comfortable Touch Targets & Balanced Proportions) */
.mobile-login-card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(45, 25, 20, 0.08);
    border: 1px solid rgba(233, 215, 201, 0.75);
    padding: clamp(0.55rem, 1.2vh, 0.95rem) clamp(0.85rem, 2.8vw, 1.25rem);
}

.mobile-login-spacer {
    flex-grow: 1;
    flex-shrink: 0;
    min-height: clamp(240px, calc(82vw - 30px), 820px);
}

.login-page-mobile a[href*="preview.php"] {
    margin: clamp(0.45rem, 1.2vh, 1rem) !important;
    font-size: clamp(0.7rem, 0.95vh, 0.775rem) !important;
    padding: clamp(0.22rem, 0.5vh, 0.35rem) clamp(0.6rem, 1.5vw, 0.85rem) !important;
}

.mobile-login-feature-icon-box {
    width: clamp(24px, 3.2vh, 28px);
    height: clamp(24px, 3.2vh, 28px);
    border-radius: 7px;
    background-color: #ffffff;
    color: var(--qb-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.72rem, 1.1vh, 0.85rem);
    margin-bottom: 0.1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.mobile-login-feature-label {
    font-size: clamp(0.46rem, 1.2vw, 0.52rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.05;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.login-input-group .input-group-text {
    background-color: #FAFAFA;
    border-color: #E9D7C9;
    color: var(--qb-espresso-muted);
}

.login-input-group .form-control {
    border-color: #E9D7C9;
    background-color: #FAFAFA;
    color: var(--qb-espresso);
    font-size: 0.88rem;
}

.login-input-group .form-control:focus {
    border-color: var(--qb-terracotta);
    box-shadow: 0 0 0 3px rgba(185, 83, 50, 0.15);
    background-color: #ffffff;
}

.login-input-group .form-control::placeholder {
    color: #9E9490;
    font-size: 0.85rem;
}
