/* ========================================================
   INSTAGRAM SAFARI BRIDGE - LUXURY APPLE LIQUID GLASS THEME
   Model Hero Fade + Apple Liquid Glass + Live Urgency Timer
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-base: #050508;
    --bg-rgb: 5, 5, 8;
    --accent-purple: #7c3aed;
    --accent-purple-rgb: 124, 58, 237;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.78);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    --font-model: var(--font-sans);
    
    --timer-green: #00d26a;
    --timer-green-rgb: 0, 210, 106;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Background Ambient Lighting Effect */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Page Frame */
.page-container {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    background-color: var(--bg-base);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Simulator Bar (For Desktop Testing & Preview) */
.simulator-bar {
    background: rgba(15, 17, 26, 0.92);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sim-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.sim-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    outline: none;
    cursor: pointer;
}

/* INSTAGRAM TOP CORNER GUIDE (3-Dots Pointer) */
.insta-dots-guide {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    animation: bounce-up 1.3s ease-in-out infinite;
}

body.has-sim-bar .insta-dots-guide {
    top: 52px;
}

.guide-pill {
    background: linear-gradient(135deg, #ff3b69, #7c3aed);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(255, 59, 105, 0.45);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.guide-arrow-box {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff3b69, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(255, 59, 105, 0.55);
    flex-shrink: 0;
}

.guide-arrow {
    width: 18px;
    height: 18px;
    color: #ffffff;
    flex-shrink: 0;
}

@keyframes bounce-up {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-attention {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 59, 105, 0.6));
    }
    50% {
        transform: scale(1.18);
        filter: drop-shadow(0 0 20px rgba(255, 59, 105, 1)) drop-shadow(0 0 35px rgba(124, 58, 237, 0.9));
    }
}

.insta-dots-guide.highlight {
    animation: bounce-up 1.3s ease-in-out infinite, pulse-attention 0.6s ease-in-out infinite alternate !important;
}

.insta-dots-guide.highlight .guide-pill {
    background: linear-gradient(135deg, #ff0844 0%, #ff4e50 100%) !important;
    box-shadow: 0 0 25px rgba(255, 59, 105, 0.9) !important;
}

.insta-dots-guide.highlight .guide-arrow-box {
    background: linear-gradient(135deg, #ff0844 0%, #ff4e50 100%) !important;
    box-shadow: 0 0 25px rgba(255, 59, 105, 0.9) !important;
}


/* ========================================================
   INSTANT SAFARI PROMPT OVERLAY (Automatic Popup in Instagram)
   ======================================================== */
.safari-prompt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99998;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    animation: fadeInPrompt 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInPrompt {
    from { opacity: 0; }
    to { opacity: 1; }
}

.safari-prompt-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(145deg, rgba(28, 31, 46, 0.96), rgba(14, 16, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 113, 227, 0.35);
    position: relative;
    overflow: hidden;
    animation: slideUpPrompt 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpPrompt {
    from { transform: translateY(40px); }
    to { transform: translateY(0); }
}

.safari-prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3b69, #7c3aed, #0071e3);
}

.prompt-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.safari-compass-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 113, 227, 0.18);
    border: 1px solid rgba(0, 113, 227, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2997ff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.25);
}

.prompt-texts h3 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.prompt-texts p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.35;
}

.prompt-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #f1f5f9;
}

.prompt-step strong {
    color: #38bdf8;
    font-weight: 700;
}

.p-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-prompt-safari {
    background: linear-gradient(135deg, #2997ff 0%, #0071e3 100%);
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

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

.btn-prompt-close {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: none;
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
}

.btn-prompt-close:hover {
    color: #ffffff;
}


/* ========================================================
   MODEL HERO SECTION (Seamless Gradient Transition)
   ======================================================== */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 52vh;
    min-height: 340px;
    max-height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 1;
    transform: scale(1.02);
}

/* Soft transition from model photo into selectable background color */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(var(--bg-rgb), 0) 0%,
        rgba(var(--bg-rgb), 0) 30%,
        rgba(var(--bg-rgb), 0.35) 55%,
        rgba(var(--bg-rgb), 0.75) 75%,
        rgba(var(--bg-rgb), 0.95) 90%,
        var(--bg-base) 100%
    );
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.creator-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.creator-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", -apple-system, sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.3px !important;
    text-transform: none !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75) !important;
}

.creator-emoji {
    font-size: 22px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.verified-badge {
    width: 20px;
    height: 20px;
    color: #0095f6; /* Verified Blue */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0, 149, 246, 0.5));
}

.creator-tagline {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.2px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    margin-top: 2px;
    margin-bottom: 4px;
}

/* ========================================================
   CONTENT CONTAINER & IN-APP ESCAPE BANNER
   ======================================================== */
.content-body {
    padding: 8px 18px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Sleek In-App Escape Banner (When opened in Instagram) */
.escape-banner {
    background: linear-gradient(135deg, rgba(25, 27, 40, 0.85), rgba(15, 17, 26, 0.95));
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.escape-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff3b69, #7c3aed, #0071e3);
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    flex-shrink: 0;
}

.banner-text-box h3 {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.banner-text-box p {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.35;
}

.btn-safari-primary {
    background: linear-gradient(135deg, #2997ff 0%, #0071e3 100%);
    color: #ffffff;
    border: none;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.35);
    transition: all 0.2s;
}

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

.btn-safari-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 11.5px;
    padding: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
}

/* ========================================================
   APPLE LIQUID GLASS BUTTONS
   ======================================================== */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.btn-liquid-glass {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    overflow: hidden !important;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.25s ease;
    
    /* Apple Frosted Glass Base */
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-liquid-glass,
.btn-liquid-glass * {
    text-decoration: none !important;
}

/* Purple Liquid Glass Tint (Matches reference image) */
.btn-liquid-glass.tint-purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.88) 0%, rgba(109, 40, 217, 0.8) 50%, rgba(91, 33, 182, 0.9) 100%);
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(124, 58, 237, 0.35),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.35);
}

/* Dark Stealth Liquid Glass Tint */
.btn-liquid-glass.tint-dark {
    background: linear-gradient(135deg, rgba(30, 33, 48, 0.82) 0%, rgba(18, 20, 30, 0.85) 100%);
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 255, 255, 0.05),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4);
}

/* Hover & Active States */
.btn-liquid-glass:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 14px 38px -5px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(124, 58, 237, 0.55),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-liquid-glass:active {
    transform: scale(0.985);
}

/* Apple Liquid Specular Light Reflection Streak */
.btn-liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 5;
}

.btn-liquid-glass:hover::before {
    left: 140%;
}

/* URGENCY COUNTDOWN TIMER BANNER (Mint Green top ribbon) */
.timer-header-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--timer-green) !important;
    color: #ffffff !important;
    padding: 7px 18px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

.timer-left {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff !important;
}

.timer-left .bold-discount {
    font-weight: 800;
    color: #ffffff !important;
}

.timer-left .regular-ends {
    font-weight: 600;
    opacity: 0.95;
    color: #ffffff !important;
}

.timer-digits {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff !important;
}

/* Button Inner Body */
.button-inner-body {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
    position: relative;
    z-index: 2;
    color: #ffffff !important;
}

.button-icon-svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    color: #00aff0;
    flex-shrink: 0 !important;
    display: inline-block !important;
    filter: drop-shadow(0 2px 6px rgba(0, 175, 240, 0.4));
}

.button-title-text {
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.button-title-emoji {
    font-size: 17px;
}


/* ========================================================
   ANTI-BAN CLOAKED SAFE PAGE (For Meta Crawlers & Bots)
   ======================================================== */
.cloaked-content {
    display: none;
    padding: 30px 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: #0a0c10;
    color: #e2e8f0;
}

body.bot-mode .normal-content,
body.bot-mode .hero-wrapper {
    display: none !important;
}

body.bot-mode .cloaked-content {
    display: flex !important;
}

.cloaked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cloaked-avatar-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 16px;
}

.cloaked-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cloaked-title {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.cloaked-tagline {
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.cloaked-bio {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 340px;
    margin-bottom: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cloaked-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
}

.cloaked-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #f1f5f9;
    font-size: 13.5px;
    font-weight: 600;
}

/* Toast Message */
.toast-notice {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(15, 17, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999;
}

.toast-notice.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* User chose to stay in Instagram browser - hide initial prompts but allow active re-trigger on link click */
body.user-chose-stay #safari-prompt-overlay:not(.active),
body.user-chose-stay #escape-banner,
body.user-chose-stay #insta-dots-guide:not(.highlight) {
    display: none !important;
}

/* Forced visibility for Safari breakout overlay and guide on link click */
#safari-prompt-overlay.active,
.safari-prompt-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#insta-dots-guide.highlight,
.insta-dots-guide.highlight {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

