.home-page {
    display: flex;
    flex-direction: column;
}

.home-page__diagnostic-row {
    align-items: center;
    gap: 12px;
}

.home-page__diagnostic-content {
    flex: 1;
}

.home-page__diagnostic-link {
    white-space: nowrap;
}

.home-page__navbar {
    margin-top: auto;
}

.home-page__banner-link {
    display: block;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
}

.home-page__banner-image {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Service Announcement Styles --- */

.service-announcement__header {
    margin-top: 0;
}

.service-announcement {
    border-left: 4px solid #03a9e8;
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 48px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.service-announcement__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.service-announcement__item p {
    flex: 1;
    margin: 0;
    color: #222;
    font-size: 16px;
    line-height: 1.6;
}

.service-announcement__bullet {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    margin-top: 9px;
    border-radius: 50%;
    background: #03a9e8;
}

.service-announcement__bullet--urgent {
    background: #ef5350;
}

.service-announcement__bullet--attention {
    background: #ffa726;
}

.service-announcement__divider {
    height: 1px;
    margin: 0;
    background: #eeeeee;
}

/* --- Basic Settings Styles (from prototype HTML style.css) --- */

.settings-group {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.settings-row:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.settings-debug {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed #e4e7eb;
    color: #5f6b7a;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.settings-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.font-size-pills {
    display: flex;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 4px;
}

.font-pill {
    padding: 6px 16px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.font-pill.active {
    background: #fff;
    color: var(--action-blue);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-settings-action {
    background: var(--brand-green-light);
    color: var(--brand-green);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-settings-action:hover {
    background: #C8E6C9;
}

/* --- PWA Install Popover Styles (from demo) --- */

#install-pwa-popover {
    width: 92%;
    max-width: 420px;
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    padding: 0;
    overflow: hidden;
    background: #fff;
    outline: none;
    
    /* Manual positioning */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -45%) scale(0.9) !important;
    display: none; /* Controlled by .popover-show */
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    margin: 0 !important;
    z-index: 100000 !important;
}

#install-pwa-popover.popover-show {
    display: flex !important;
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#install-pwa-popover::backdrop {
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 99998;
}

/* PWA Manual Backdrop */
.pwa-backdrop-manual {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(8px);
    z-index: 99999 !important;
}

.install-pwa-container {
    width: 90vw;
    max-width: 420px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

#pwa-tutorial-view {
    padding: 0;
    width: 100%;
}

/* --- Carousel Styles --- */

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #fdfdfd;
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 450ms cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

.carousel-nav-area {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    border: 0;
    padding: 0;
    width: 12px;
    height: 12px;
    background: #e5e5e5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.current-slide {
    background: #009FE3;
    width: 28px;
    border-radius: 6px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #444;
}

.carousel-btn:active {
    transform: scale(0.95);
    background: #edf2f7;
}

.carousel-btn.is-hidden {
    display: none;
}

.tutorial-text-area {
    padding: 0 24px 32px;
    background: #fff;
}

.tutorial-step-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.install-pwa-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.install-pwa-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.install-pwa-header-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #0288D1 0%, #00ACC1 100%);
    position: relative;
    overflow: hidden;
}

.install-pwa-header-img svg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.install-pwa-content {
    padding: 32px 24px;
}

.install-pwa-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1A1A1A;
    line-height: 1.2;
}

.install-pwa-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #666;
}

.install-pwa-features {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.install-pwa-features li {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 16px;
}

.install-pwa-features li .icon-wrapper {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0F7FB;
    color: #0288D1;
    border-radius: 12px;
}

.install-pwa-features li .icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.install-pwa-features li span b {
    display: block;
    font-size: 16px;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.install-pwa-btn-container {
    width: 100%;
}

.btn-install {
    background: linear-gradient(135deg, #0288D1 0%, #01579B 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 10px 20px rgba(2, 136, 209, 0.3);
}

.btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(2, 136, 209, 0.4);
}

.btn-install:active {
    transform: translateY(0);
}

/* Tutorial Carousel */
.tutorial-carousel {
    position: relative;
    height: 420px;
    width: 100%;
    overflow: hidden;
    background: #F9FAFB;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #E0E0E0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-indicator.current-slide {
    background-color: #0288D1;
    width: 24px;
    border-radius: 4px;
}

.carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #F0F0F0;
}

.carousel-btn:hover {
    background: #eeeeee;
    color: #333;
}

.carousel-btn.is-hidden {
    display: none;
}

.tutorial-footer {
    padding: 24px;
    text-align: center;
    background: #fff;
}

#tutorial-step-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.tutorial-video-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--action-blue);
    font-size: 14px;
    text-decoration: underline;
}
