/**
 * ============================================================
 * Project: Wedding Website Fulan & Siti
 * Standard: RAZ Enterprise Standard
 * File: selfie/css/RAZSelfie.css
 * Diperbarui: 2026-10-24 16:44 WIB (Versi 2.3.8)
 * Deskripsi: Stylesheet Kamera Photobooth Native HP:
 *            - Full Bleed Edge-to-Edge Viewfinder (Kamera Layar Penuh Bebas Shape Hitam)
 *            - Floating Transparent Bottom Controls ala Kamera HP / Instagram Story
 *            - Drawer Tray Ganti Bingkai Collapsible (Default Hidden + Animasi Slide Up)
 *            - Dual-Mode Fullscreen (Native documentElement immersion + Virtual CSS 100dvh)
 *            - Transparent Layer Input File: 1-Tap Instan Buka Galeri di Seluruh HP
 * ============================================================
 */

:root {
    --raz-gold: #d6b788;
    --raz-gold-dark: #997949;
    --raz-gold-light: #fae7cb;
    --raz-gold-gradient: linear-gradient(135deg, #d6b788 0%, #b8935c 50%, #997949 100%);
    --raz-bg-dark: #0a0e0b;
    --raz-card-bg: #141b16;
    --raz-border-gold: rgba(214, 183, 136, 0.32);
    --raz-text-light: #f5eedf;
    --raz-green-wa: #25D366;
    --raz-ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--raz-bg-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--raz-text-light);
}

.raz-photobooth-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === APP CONTAINER FULLSCREEN & VIRTUAL DUAL-MODE === */
:fullscreen,
::backdrop,
:-webkit-full-screen {
    background: #000000;
}

:fullscreen .raz-camera-app,
:-webkit-full-screen .raz-camera-app,
.raz-camera-app:fullscreen,
.raz-camera-app:-webkit-full-screen,
.raz-camera-app.raz-app-fullscreen-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    z-index: 999999 !important;
    margin: 0 !important;
}

/* Virtual CSS Fullscreen (Solusi Mutlak iOS Safari, WhatsApp Webview, IG Browser) */
html.raz-virtual-fullscreen,
body.raz-virtual-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000000 !important;
}

body.raz-virtual-fullscreen .raz-camera-app {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    z-index: 1000000 !important;
}

.raz-camera-app {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #000000;
    overflow: hidden;
}

@media (max-width: 500px) {
    .raz-camera-app {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        max-width: 100vw;
        z-index: 100;
    }
}

/* === 1. VIEW KAMERA LIVE === */
.raz-cam-fullscreen-view {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.raz-cam-fullscreen-view.active {
    display: block;
}

/* === HEADER OVERLAY ATAS KAMERA === */
.raz-cam-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0) 100%);
}

.raz-cam-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.raz-brand-title {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.raz-brand-sub {
    font-size: 10.5px;
    color: var(--raz-gold);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.raz-cam-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.raz-cam-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(18, 24, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.raz-cam-icon-btn:active {
    transform: scale(0.92);
}

.raz-cam-icon-btn.active {
    background: var(--raz-gold);
    color: #121814;
    border-color: #ffffff;
    box-shadow: 0 0 14px rgba(214, 183, 136, 0.6);
}

/* === VIEWFINDER KAMERA & FRAME OVERLAY (FULL BLEED NATIVE) === */
.raz-viewfinder-box {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

/* Modus Rasio 4:5 jika pengguna memilih mode Feed */
.raz-viewfinder-box[data-ratio="4:5"] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 24px);
    max-width: 440px;
    aspect-ratio: 4 / 5;
    height: auto;
    max-height: calc(100% - 150px);
    margin: 0;
    border-radius: 18px;
    border: 1px solid rgba(214, 183, 136, 0.35);
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.68), 0 10px 35px rgba(0, 0, 0, 0.85);
}

.raz-video-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raz-video-stream.flipped {
    transform: scaleX(-1); /* Mirror camera depan seperti di kamera HP asli */
}

/* Bingkai Overlay Transparan Langsung di Atas Kamera */
.raz-live-frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.raz-live-frame-overlay img,
.raz-live-frame-overlay svg {
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

/* Efek Layar Flash Putih Depan (Simulasi Ring Light) */
.raz-front-flash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 45;
    transition: opacity 0.15s ease;
}

.raz-front-flash-screen.flash-active {
    opacity: 0.98;
}

/* Ring Light Glow pada Frame jika Flash Depan On */
.raz-viewfinder-box.ring-light-active {
    box-shadow: inset 0 0 0 8px #ffffff, inset 0 0 35px rgba(255, 255, 255, 0.9);
}

/* Hitung Mundur Snapshot */
.raz-countdown-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(0,0,0,0.8), 0 0 45px var(--raz-gold);
    z-index: 40;
    display: none;
    pointer-events: none;
}

/* Indikator Perekaman Video */
.raz-record-timer-pill {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 30;
    backdrop-filter: blur(5px);
}

.raz-record-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b30;
    animation: razDotBlink 1s infinite;
}

@keyframes razDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Placeholder Kamera jika Belum Diizinkan */
.raz-camera-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #121814;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    z-index: 25;
}

.raz-placeholder-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(214, 183, 136, 0.15);
    border: 1px solid var(--raz-border-gold);
    color: var(--raz-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.raz-camera-placeholder p {
    font-size: 14px;
    color: rgba(245, 238, 223, 0.8);
    margin-bottom: 18px;
    line-height: 1.5;
}

.raz-btn-allow-cam {
    background: var(--raz-gold-gradient);
    color: #121814;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(214, 183, 136, 0.35);
}

/* === CONTROLS BAWAH KAMERA (FLOATING OVERLAY NATIVE CAMERA HP) === */
.raz-cam-bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* Gradasi transparan lembut: pandangan kamera terlihat penuh di balik kontrol */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0) 100%);
    padding: 12px 16px max(24px, env(safe-area-inset-bottom)) 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
    pointer-events: none; /* Sentuhan di area kosong tembus langsung ke kamera */
}

.raz-cam-bottom-controls > * {
    pointer-events: auto; /* Tombol, mode, dan tray tetap aktif dan responsif */
}

/* === 1. TRAY BINGKAI HORIZONTAL (EXPANDABLE FLOATING SHEET) === */
.raz-frames-tray {
    width: 100%;
    max-height: 160px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(18, 24, 20, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(214, 183, 136, 0.32);
    border-radius: 18px;
    padding: 8px 12px 10px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
    margin-bottom: 2px;
}

.raz-frames-tray.collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    margin: 0;
    padding: 0 12px;
    border-color: transparent;
    box-shadow: none;
    overflow: hidden;
}

.raz-frames-tray-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 6px 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #f5eedf;
    border-bottom: 1px solid rgba(214, 183, 136, 0.18);
    margin-bottom: 6px;
}

.raz-frames-tray-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s;
}

.raz-frames-tray-close:active {
    background: rgba(255, 255, 255, 0.35);
}

.raz-frames-tray-scroll {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.raz-frames-tray-scroll::-webkit-scrollbar {
    display: none;
}

/* Frame Card Bubble */
.raz-frame-bubble-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.raz-frame-bubble-thumb {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1a221c;
    border: 2px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.raz-frame-bubble-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raz-frame-bubble-badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--raz-gold);
    color: #121814;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 6px;
    white-space: nowrap;
}

.raz-frame-bubble-name {
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(245, 238, 223, 0.7);
    max-width: 68px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.raz-frame-bubble-card.selected .raz-frame-bubble-thumb {
    border-color: var(--raz-gold);
    box-shadow: 0 0 0 3px rgba(214, 183, 136, 0.4), 0 0 12px rgba(214, 183, 136, 0.6);
    transform: scale(1.08);
}

.raz-frame-bubble-card.selected .raz-frame-bubble-name {
    color: var(--raz-gold);
    font-weight: 700;
}

/* === 2. MODE SWITCHER: FOTO VS VIDEO === */
.raz-mode-switcher {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.raz-mode-pill {
    background: none;
    border: none;
    color: rgba(245, 238, 223, 0.55);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 4px 10px;
    position: relative;
    transition: all 0.2s;
}

.raz-mode-pill.active {
    color: var(--raz-gold);
}

.raz-mode-pill.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    background: var(--raz-gold);
    border-radius: 2px;
}

/* === 3. ACTION BAR: UPLOAD | SHUTTER | BINGKAI === */
.raz-shutter-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 10px;
}

/* Side Action Button (Upload Galeri & Toggle Frame) */
.raz-side-action-btn {
    background: none;
    border: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

/* Wrapper Tombol Galeri dengan Input File Native Transparan Layer Teratas */
.raz-gallery-upload-btn-wrap {
    position: relative !important;
    overflow: hidden;
    cursor: pointer;
}

.raz-file-input-cover {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 20 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}

.raz-side-action-btn .raz-side-btn-circle,
.raz-side-action-btn .raz-side-btn-label {
    pointer-events: none; /* Memastikan interaksi sentuhan langsung mengalir ke input file cover atau button */
}

.raz-side-action-btn:active {
    transform: scale(0.9);
}

.raz-side-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--raz-gold);
}

.raz-side-btn-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(245, 238, 223, 0.8);
    transition: color 0.2s ease;
}

/* Status Aktif Tombol Ganti Bingkai */
.raz-side-action-btn#btnToggleFramesTray.active .raz-side-btn-circle {
    background: var(--raz-gold-gradient);
    color: #121814;
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(214, 183, 136, 0.7);
    transform: scale(1.05);
}

.raz-side-action-btn#btnToggleFramesTray.active .raz-side-btn-label {
    color: var(--raz-gold);
    font-weight: 700;
}

/* Main Native Shutter Button */
.raz-shutter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.raz-native-shutter {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid #ffffff;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.raz-native-shutter:active {
    transform: scale(0.92);
}

.raz-native-shutter-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.2s ease;
}

/* Shutter saat Mode Video */
.raz-native-shutter.video-mode {
    border-color: rgba(255, 255, 255, 0.85);
}

.raz-native-shutter.video-mode .raz-native-shutter-inner {
    background: #ff3b30;
}

/* Shutter saat Sedang Merekam Video */
.raz-native-shutter.recording .raz-native-shutter-inner {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #ff3b30;
}


/* === 2. VIEW PREVIEW HASIL (MODAL SCREEN) === */
.raz-preview-screen {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    background: var(--raz-bg-dark);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: razSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.raz-preview-screen.active {
    display: flex;
}

@keyframes razSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.raz-preview-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(18, 24, 20, 0.95);
    border-bottom: 1px solid var(--raz-border-gold);
    position: sticky;
    top: 0;
    z-index: 20;
}

.raz-preview-back-btn {
    background: none;
    border: none;
    color: var(--raz-gold);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.raz-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.raz-preview-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.raz-preview-media-container {
    position: relative;
    width: auto;
    max-width: 100%;
    height: 56vh;
    aspect-ratio: 9 / 16;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--raz-border-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.25s ease;
}

.raz-preview-media-container[data-ratio="4:5"] {
    aspect-ratio: 4 / 5;
    height: 48vh;
}

.raz-preview-img,
.raz-preview-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.raz-preview-details-card {
    background: var(--raz-card-bg);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--raz-border-gold);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.raz-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.raz-field-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--raz-gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.raz-text-input,
.raz-textarea-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--raz-border-gold);
    border-radius: 8px;
    font-size: 13.5px;
    color: #ffffff;
    font-family: inherit;
}

.raz-text-input:focus,
.raz-textarea-input:focus {
    outline: none;
    border-color: var(--raz-gold);
    background: rgba(255, 255, 255, 0.1);
}

.raz-textarea-input {
    resize: none;
}

/* Action Buttons Stack */
.raz-preview-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.raz-btn-primary-action {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.2s;
}

.raz-btn-primary-action.upload {
    background: var(--raz-gold-gradient);
    color: #121814;
    box-shadow: 0 4px 15px rgba(214, 183, 136, 0.35);
}

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

.raz-btn-secondary-action {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--raz-border-gold);
    background: rgba(255, 255, 255, 0.08);
    color: var(--raz-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.2s;
}

.raz-btn-secondary-action:active {
    background: rgba(255, 255, 255, 0.15);
}

.raz-preview-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.raz-btn-share-wa {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: var(--raz-green-wa);
    padding: 11px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.raz-btn-share-wa:active {
    background: var(--raz-green-wa);
    color: #ffffff;
}

.raz-btn-share-ig {
    background: rgba(225, 48, 108, 0.15);
    border: 1px solid rgba(225, 48, 108, 0.4);
    color: #e1306c;
    padding: 11px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.raz-btn-share-ig:active {
    background: var(--raz-ig-gradient);
    color: #ffffff;
}


/* === TOAST ELEGAN === */
.raz-selfie-toast {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    opacity: 0;
    z-index: 999999;
    background: #18221b;
    border: 1px solid var(--raz-gold);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    text-align: center;
    max-width: 90%;
}

.raz-selfie-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* === MODAL DIALOG STANDAR RAZ === */
.raz-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.raz-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.raz-modal-box {
    background: var(--raz-card-bg);
    border: 1px solid var(--raz-border-gold);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.raz-modal-backdrop.active .raz-modal-box {
    transform: scale(1);
}

.raz-modal-head {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(214, 183, 136, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
}

.raz-modal-head h4 {
    margin: 0;
    color: var(--raz-gold);
    font-size: 14.5px;
    font-weight: 700;
}

.raz-modal-x-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.raz-modal-content {
    padding: 20px 18px;
    font-size: 13.5px;
    color: #f5eedf;
    line-height: 1.55;
    text-align: center;
}

.raz-modal-success-icon {
    margin-bottom: 12px;
}

.raz-modal-actions {
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(214, 183, 136, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.raz-modal-actions .raz-btn-primary-action,
.raz-modal-actions .raz-btn-secondary-action {
    width: 100%;
    margin: 0;
    justify-content: center;
}

.raz-modal-actions #btnTakeAnotherMoment {
    background: linear-gradient(135deg, #d6b788 0%, #b8935c 50%, #997949 100%);
    color: #1a150e;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(214, 183, 136, 0.35);
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.raz-modal-actions #btnTakeAnotherMoment:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.raz-modal-actions #btnTakeAnotherMoment:active {
    transform: scale(0.98);
}
