/* ==========================================================================
   IMPORT FONT DARI GOOGLE FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;700&family=League+Spartan:wght@400;600;700;800&display=swap');

/* ==========================================================================
   RESET DASAR & UTILITAS GLOBAL
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #79bce9;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.inapp-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffcf4d;
    color: #3a2a00;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.inapp-banner button {
    border: none;
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    background: #3a2a00;
    color: #ffcf4d;
}

.inapp-banner-close {
    background: transparent !important;
    color: #3a2a00 !important;
    padding: 2px 8px !important;
}

.inapp-room-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 207, 77, 0.2);
    border: 1px solid rgba(255, 207, 77, 0.6);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.inapp-room-block p {
    color: #ffffff;
    font-size: 0.85rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.inapp-room-block-hint {
    font-size: 0.78rem !important;
    opacity: 0.9;
}

.sync-status-text {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffe27a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 6px;
}

.download-fallback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.download-fallback-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    overflow-y: auto;
}

.download-fallback-hint {
    color: #333333;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.download-fallback-img {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.download-fallback-close {
    background: #4a90e2 !important;
    color: #fff !important;
    border: none;
    padding: 10px 26px;
    border-radius: 24px;
    font-weight: bold;
    cursor: pointer;
}

.page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

.session-notice {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 900;
    max-width: min(90vw, 420px);
    margin: 0;
    padding: 10px 16px;
    border-radius: 22px;
    background: rgba(40, 40, 55, 0.92);
    color: #ffffff;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   HALAMAN PENDARATAN (LANDING PAGE)
   ========================================================================== */
.landing-container {
    background: url('Web/Home1.png') no-repeat center center / cover !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    height: 100%;
}

.landing-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    margin: 0;
}

.cta-text-only {
    background: rgba(100, 180, 220, 0.7) !important;
    color: #ffffff;
    border: none !important;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    cursor: pointer;
    padding: 14px 38px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-text-only:hover {
    background: rgba(100, 180, 220, 0.9) !important;
    transform: scale(1.08);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   HALAMAN ROOM (SESI LDR)
   ========================================================================== */
#roomPage {
    background: url('Web/Home1.png') no-repeat center center / cover !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    width: 100vw;
    min-height: 100vh;
    padding: 20px;
}

.room-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    padding: 32px 34px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.room-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.7rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.room-choice-box, .room-waiting-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.room-divider {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
}

.room-divider::before, .room-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.room-join-row, .room-link-row {
    display: flex;
    width: 100%;
    gap: 8px;
}

.room-join-row input, .room-link-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 50px;
    border: none;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.room-join-row button, .room-link-row button {
    white-space: nowrap;
    padding: 10px 20px !important;
    font-size: 0.8rem !important;
}

.room-label {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
}

.room-status-text {
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    margin: 0;
}

.room-preview-link {
    background: none !important;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px;
    margin-top: 2px;
}

.room-preview-link:hover {
    color: #ffffff;
}

.room-spinner {
    width: 34px;
    height: 34px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: room-spin 0.8s linear infinite;
}

@keyframes room-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   HALAMAN PEMILIHAN BINGKAI (FRAME SELECTION)
   ========================================================================== */
.frame-page-container {
    width: 100vw;
    height: 100vh;
    background: url('Web/Home2.png') no-repeat center center / cover !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    overflow: hidden;
}

.frame-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 95%;
}

.frame-page-title {
    position: relative;
    z-index: 2;
    font-family: 'League Spartan', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center;
    margin: 0 auto 26px;
    padding: 12px 24px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.22) !important;
    letter-spacing: 1px !important;
    backdrop-filter: blur(12px) !important;
}

.frame-grid-selection {
    display: flex;
    flex-direction: row;   
    flex-wrap: nowrap !important; 
    gap: 35px; 
    justify-content: flex-start; 
    align-items: center;
    width: 100%;
    padding: 30px 15px;
    overflow-x: auto;      
    overflow-y: hidden;    
    white-space: nowrap;   
    -webkit-overflow-scrolling: touch; 
}

.frame-grid-selection::-webkit-scrollbar {
    height: 10px;
}

.frame-grid-selection::-webkit-scrollbar-track {
    background: transparent !important; 
    border-radius: 10px;
}

.frame-grid-selection::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important; 
    border-radius: 10px;
    border: 2px solid transparent; 
    background-clip: padding-box;
    transition: background-color 0.2s ease;
}

.frame-grid-selection::-webkit-scrollbar-thumb:hover {
    background: rgba(141, 181, 206, 0.6) !important; 
}

.frame-card {
    background: rgba(170, 222, 254, 0.767) !important; 
    backdrop-filter: blur(4px); 
    padding: 18px 22px;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: flex-start;
    gap: 25px; 
    flex-shrink: 0; 
    width: 340px;
    height: 180px;
    box-sizing: border-box;
}

.frame-card:hover {
    border-color: #ffffff; 
    background-color: rgba(94, 184, 241, 0.55) !important; 
    transform: scale(1.04);
}

.frame-thumbnail {
    height: 145px !important;
    width: auto !important;
    max-width: 95px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0 !important; 
    background-color: transparent !important;
}

.frame-card span {
    display: block;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}

.back-button {
    background-color: rgba(170, 222, 254, 0.767) !important;
    color: #ffffff !important;
    padding: 12px 40px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Segoe UI', Roboto, sans-serif;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    margin-top: 25px;
}

.back-button:hover {
    background-color: rgba(119, 198, 247, 0.95) !important;
    border-color: #ffffff;
    transform: scale(1.03);
}

/* ==========================================================================
   LATAR BELAKANG HALAMAN STAN FOTO (#boothPage)
   ========================================================================== */
#boothPage {
    background: url("Web/Home3.png") no-repeat center center / cover !important;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(16px, 2vw, 32px);
    overflow: auto;
}

.main-booth-layout {
    background: transparent !important; 
    width: min(100%, 1280px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
    max-width: 1280px;
    margin: auto;
    padding: 0;
}

.left-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.camera-hardware-box {
    background-color: #8cc4ec;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.combined-video {
    position: relative;
    width: 100%;
    aspect-ratio: 345 / 213.6;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
}

.combined-video video {
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#localVideo.mirrored, #remoteVideo {
    transform: scaleX(-1);
}

.divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255,255,255,.9);
    z-index: 1;
    pointer-events: none;
}

.stream-tag {
    position: absolute;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.75);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    z-index: 2;
}

.left-tag { left: 15px; }
.right-tag { right: 15px; }

.action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.switch-camera-btn {
    background: rgba(74, 144, 226, 0.85) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    display: none;
}

.switch-camera-btn:hover {
    background: #357abd !important;
}

.switch-camera-btn.js-mobile-visible {
    display: inline-block;
}

.countdown-clock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    min-width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.countdown-clock:not(:empty) {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.filter-control-panel h3 {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-flex {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.right-panel {
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(170,222,254,.75);
    border-radius: 20px;
    padding: 14px;
    border: 2px solid rgba(255,255,255,.4);
    backdrop-filter: blur(8px);
}

.right-panel h3 { 
    margin-bottom: 14px; 
    color: #ffffff !important;
    font-weight: 800;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.vertical-strip-container {
    position: relative;
    width: min(100%, 200px);
    aspect-ratio: 500 / 1200;
    margin-bottom: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.preview-slot {
    position: absolute;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#slot0 { left: 15.8%; top: 6.5%; width: 68.6%; height: 17.75%; }
#slot1 { left: 15.8%; top: 25.42%; width: 68.6%; height: 17.75%; }
#slot2 { left: 15.8%; top: 44.33%; width: 68.6%; height: 17.75%; }
#slot3 { left: 15.8%; top: 63.25%; width: 68.6%; height: 17.75%; }

.preview-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.cta-btn, .filter-btn, .back-btn, .download-action-btn, #shutterBtn, #startBoothBtn {
    background: #4a90e2 !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

#shutterBtn:disabled, #retakeBtn:disabled {
    background: rgba(120, 120, 120, 0.5) !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.back-btn {
    margin-top: 12px;
    padding: 8px 18px;
    font-size: 0.9rem;
}

.filter-btn {
    background: rgba(47, 53, 66, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 18px;
    color: #ffffff !important;
    font-size: 0.85rem;
}

.filter-btn.active {
    background: #4a90e2 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.cta-btn:hover, #shutterBtn:hover, .download-action-btn:hover, .back-btn:hover, .filter-btn:hover {
    background: #357abd !important;
    transform: translateY(-2px);
    border-color: #ffffff;
}

.action-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 25px;
}

.action-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.action-btn:active {
    transform: scale(0.98);         
}

#retakeBtn {
    background-color: #4a90e2 !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#retakeBtn:hover {
    background-color: #357abd !important;
}

#downloadBtn {
    background-color: #4a90e2 !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    margin-top: 15px;
}

#downloadBtn:hover {
    background-color: #357abd !important;
}

/* ==========================================================================
   HALAMAN DEKORASI STIKER (#home4)
   ========================================================================== */
#home4 {
    background: url("Web/Home3.png") no-repeat center center / cover !important;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.sticker-selection-layout {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sticker-selection-layout h2 {
    color: #ffffff;
    font-size: 19px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.sticker-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#stickerCanvasContainer {
    width: 225px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    overflow: hidden;
}

#stickerCanvas {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    touch-action: none;
}

.sticker-panel {
    width: 225px;
    background-color: #8cc4ec;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sticker-panel h3 {
    color: white;
    font-size: 16px;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 12px;
}

.sticker-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.sticker-item:hover {
    transform: scale(1.1);
}

.sticker-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 900px) {
    #boothPage {
        align-items: flex-start;
    }

    .main-booth-layout {
        grid-template-columns: 1fr;
        width: min(100%, 700px);
    }

    .right-panel {
        max-width: 300px;
        justify-self: center;
    }

    .sticker-content-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .camera-hardware-box {
        padding: 12px;
        max-width: min(90vw, 380px);
        margin: 0 auto;
    }

    .filter-flex {
        justify-content: center;
    }

    .landing-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    .room-content-wrapper {
        padding: 24px 20px;
    }

    .room-join-row, .room-link-row {
        flex-direction: column;
    }

    .room-join-row button, .room-link-row button {
        width: 100%;
    }

    .cta-text-only,
    .back-button,
    .action-btn,
    #shutterBtn,
    .switch-camera-btn {
        min-height: 44px;
    }

    .filter-btn {
        min-height: 40px;
    }

    .frame-page-container {
        padding: 0 16px;
    }

    .frame-page-title {
        font-size: 1.15rem !important;
        padding: 10px 18px !important;
    }

    .frame-grid-selection {
        gap: 18px;
        padding: 20px 8px;
    }

    .frame-card {
        width: 260px;
        height: 140px;
        padding: 12px 16px;
        gap: 16px;
    }

    .frame-thumbnail {
        height: 108px !important;
        max-width: 72px;
    }

    .frame-card span {
        font-size: 0.95rem;
    }

    .action-bar {
        flex-direction: column;
        align-items: center;
    }

    .action-bar #shutterBtn,
    .action-bar .switch-camera-btn {
        width: 100%;
    }

    #shutterBtn {
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    .main-booth-layout {
        gap: 16px;
    }

    .right-panel {
        max-width: 100%;
        width: 100%;
    }
}

/* ==========================================================================
   REDESIGN KHUSUS HP KECIL (≤480px) — halaman Take Foto & Pilih Stiker
   ========================================================================== */
@media (max-width: 480px) {
    #boothPage {
        padding: 6px;
    }

    .main-booth-layout {
        gap: 10px !important;
    }

    .camera-hardware-box {
        padding: 6px;
        border-radius: 12px;
        margin: 0 auto;
        max-width: min(82vw, 300px);
    }

    .filter-control-panel {
        margin-top: 4px;
    }

    .action-bar {
        gap: 8px;
        margin-top: 8px;
        margin-bottom: 8px;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .action-bar #shutterBtn {
        flex: 1;
        min-width: 0;
    }

    .action-bar .switch-camera-btn {
        flex-shrink: 0;
        width: auto;
    }

    .countdown-clock {
        font-size: 1.8rem;
        min-width: 52px;
        height: 52px;
    }

    #shutterBtn {
        font-size: 0.78rem;
        padding: 10px 12px;
    }

    .switch-camera-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .filter-control-panel h3 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .action-buttons-container {
        margin-top: 14px;
    }

    .action-btn {
        padding: 8px 14px;
        font-size: 14px;
    }

    .right-panel {
        padding: 10px;
        border-radius: 14px;
    }

    .right-panel h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .vertical-strip-container {
        width: min(65vw, 180px);
    }

    /* -------- Halaman Pilih & Dekor Stiker -------- */
    #home4 {
        padding: 10px;
        align-items: flex-start;
    }

    .sticker-selection-layout {
        padding: 12px;
        gap: 10px;
        border-radius: 16px;
    }

    .sticker-selection-layout h2 {
        font-size: 16px;
    }

    .sticker-content-wrapper {
        gap: 14px;
    }

    #stickerCanvasContainer {
        width: min(78vw, 260px);
    }

    .sticker-panel {
        width: min(78vw, 260px);
        padding: 12px;
        gap: 8px;
    }

    .sticker-panel h3 {
        font-size: 14px;
    }

    .sticker-grid {
        grid-template-columns: repeat(4, 1fr);
        max-height: 220px;
        gap: 6px;
        padding: 8px;
    }

    .sticker-actions .action-btn {
        padding: 10px;
        font-size: 13px;
    }

    .sticker-panel .back-btn {
        margin-top: 4px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}