/* ==========================================================================
   STONE & COLE — HACKATHON CHALLENGE STYLESHEET
   Aesthetics: Matte-black strategic board, Gold/Champagne accents, Responsive
   ========================================================================== */

:root {
    --color-bg: #07070a;
    --color-surface-dark: #0f0f13;
    --color-surface-card: rgba(18, 18, 24, 0.7);
    --color-gold: #e6c894;
    --color-gold-glow: rgba(230, 200, 148, 0.25);
    --color-gold-dim: rgba(230, 200, 148, 0.12);
    --color-white: #ffffff;
    --color-gray: #a0a0ab;
    --color-danger: #ff5f5f;
    --color-danger-bg: rgba(255, 95, 95, 0.1);
    --color-warning: #ffb84d;
    --color-warning-bg: rgba(255, 184, 77, 0.1);
    --font-cinzel: 'Cinzel', serif;
    --font-outfit: 'Outfit', sans-serif;
    --font-syne: 'Syne', sans-serif;
    --card-width-mobile: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-outfit);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   BACKGROUND SYSTEM: ULTRA-PREMIUM TACTICAL GLOW
   ========================================================================== */

.briefing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0d0d12 0%, var(--color-bg) 100%);
}

/* Golden Tactical Grid */
.golden-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(230, 200, 148, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(230, 200, 148, 0.03) 1px, transparent 1px);
    opacity: 0.85;
}

/* Ambient Glowing Blobs */
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    pointer-events: none;
    mix-blend-mode: screen;
}

.blob-1 {
    width: 320px;
    height: 320px;
    background: var(--color-gold);
    top: -80px;
    left: -50px;
    animation: pulseBlob 12s infinite alternate ease-in-out;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #73593b;
    bottom: -150px;
    right: -80px;
    animation: pulseBlob 18s infinite alternate ease-in-out 2s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #1e3a8a;
    top: 35%;
    right: 15%;
    opacity: 0.1;
}

@keyframes pulseBlob {
    0% { transform: scale(1) translate(0, 0); opacity: 0.14; }
    100% { transform: scale(1.2) translate(30px, 20px); opacity: 0.22; }
}

/* ==========================================================================
   HEADER HUD SYSTEM
   ========================================================================== */

.hud-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gold-dim);
    z-index: 100;
    padding: 14px 20px;
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-cinzel);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.22em;
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.timer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 200, 148, 0.08);
    border: 1px solid var(--color-gold-dim);
    border-radius: 20px;
    padding: 6px 14px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--color-danger);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-danger);
    animation: flashDot 1.4s infinite;
}

@keyframes flashDot {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.timer-label {
    font-family: var(--font-outfit);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-gold);
}

#countdown-timer {
    font-family: var(--font-syne);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-white);
    letter-spacing: 0.02em;
    min-width: 68px;
    text-align: right;
}

/* ==========================================================================
   APP CONTAINER & HERO LAYOUT
   ========================================================================== */

.app-container {
    max-width: 680px; /* Highly optimized single-column layout, flawless on mobile & centered on desktop */
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
    position: relative;
    z-index: 10;
}

.hero-section {
    text-align: center;
    margin-bottom: 35px;
}

.tagline {
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.9;
}

.main-title {
    font-family: var(--font-cinzel);
    font-size: clamp(1.8rem, 6.5vw, 2.7rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-white);
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.highlight-title {
    font-family: var(--font-syne);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.2px var(--color-gold);
    filter: drop-shadow(0 0 8px rgba(230, 200, 148, 0.25));
}

.hero-desc {
    font-family: var(--font-outfit);
    font-weight: 300;
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* ==========================================================================
   TIMELINE STEPS (PORTRAIT & TOUCH SCREEN DESIGN)
   ========================================================================== */

.timeline-steps {
    display: flex;
    justify-content: space-between;
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid var(--color-gold-dim);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.step-btn {
    background: transparent;
    border: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--color-gray);
}

.step-num {
    font-family: var(--font-syne);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    margin-bottom: 4px;
}

.step-lbl {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-btn.active {
    background: rgba(230, 200, 148, 0.12);
    color: var(--color-gold);
    box-shadow: inset 0 0 10px rgba(230, 200, 148, 0.05);
    border: 1px solid rgba(230, 200, 148, 0.18);
}

/* ==========================================================================
   PANELS CONTAINER & TRANSITIONS
   ========================================================================== */

.panels-container {
    position: relative;
    width: 100%;
}

.panel {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.panel-header {
    margin-bottom: 20px;
    text-align: left;
}

.panel-badge {
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 0.72rem;
    color: var(--color-gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.panel h2 {
    font-family: var(--font-cinzel);
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    color: var(--color-white);
}

.panel-desc {
    color: var(--color-gray);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ==========================================================================
   PANEL 1: THE BRIEF & HUD METRICS
   ========================================================================== */

.hud-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

@media screen and (min-width: 480px) {
    .hud-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

.metric-card {
    background: var(--color-surface-card);
    border: 1px solid var(--color-gold-dim);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.metric-card.danger {
    border-left: 3px solid var(--color-danger);
}

.metric-card.warning {
    border-left: 3px solid var(--color-warning);
}

.metric-card.threat {
    border-left: 3px solid #f43f5e;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold);
    background: rgba(230, 200, 148, 0.06);
    flex-shrink: 0;
}

.metric-card.danger .metric-icon {
    color: var(--color-danger);
    background: var(--color-danger-bg);
}

.metric-card.warning .metric-icon {
    color: var(--color-warning);
    background: var(--color-warning-bg);
}

.metric-card.threat .metric-icon {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

.metric-icon svg {
    width: 18px;
    height: 18px;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-gray);
    text-transform: uppercase;
}

.metric-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
}

.runway-battery {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.05);
}

.battery-fill {
    height: 100%;
    background: var(--color-danger);
    box-shadow: 0 0 6px var(--color-danger);
}

/* Detailed Case Study Card */
.case-card {
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid var(--color-gold-dim);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* Beautiful micro gold border corners */
.case-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--color-gold);
    border-left: 2px solid var(--color-gold);
    pointer-events: none;
}

.case-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid var(--color-gold);
    border-right: 2px solid var(--color-gold);
    pointer-events: none;
}

.case-tag {
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 0.68rem;
    color: var(--color-gold);
    letter-spacing: 0.22em;
    margin-bottom: 10px;
}

.case-card h3 {
    font-family: var(--font-cinzel);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-white);
}

.case-intro {
    font-size: 0.92rem;
    color: #ceced6;
    line-height: 1.6;
    font-weight: 300;
}

.case-intro strong {
    color: var(--color-gold);
    font-weight: 500;
}

.case-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gold-dim), transparent);
    margin: 20px 0;
}

.case-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bullet-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bullet-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-gold);
    border-radius: 50%;
    margin-top: 9px;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--color-gold);
}

.bullet-item div {
    font-size: 0.88rem;
    color: var(--color-gray);
    line-height: 1.5;
}

.bullet-item strong {
    color: var(--color-white);
    font-weight: 500;
}

/* Buttons System */
.btn {
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #e6c894 0%, #b29360 100%);
    border: none;
    color: #121216;
    box-shadow: 0 4px 15px rgba(178, 147, 96, 0.35);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(178, 147, 96, 0.2);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-gold-dim);
    color: var(--color-white);
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.97);
}

.button-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

/* ==========================================================================
   PANEL 2: STRATEGY INPUTS & CARD SIMULATOR
   ========================================================================== */

.simulator-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}

.input-row-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media screen and (min-width: 480px) {
    .input-row-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.input-group input {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid var(--color-gold-dim);
    border-radius: 10px;
    padding: 12px 60px 12px 14px;
    color: var(--color-white);
    font-family: var(--font-outfit);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(230, 200, 148, 0.15);
    background: rgba(20, 20, 26, 0.9);
}

.char-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
    pointer-events: none;
}

/* Real-Time Digital Card Graphic (Stunning, high-end board card) */
.card-preview-container {
    margin-bottom: 30px;
}

.card-preview-tag {
    font-family: var(--font-syne);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-gray);
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 12px;
}

.digital-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.58 / 1; /* Standard physical playing/business card ratio */
    background: radial-gradient(circle at 10% 20%, #16161d 0%, #08080b 100%);
    border-radius: 12px;
    padding: 22px 24px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(230, 200, 148, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.digital-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(230, 200, 148, 0.3), transparent 40%, rgba(230, 200, 148, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* Double inner gold luxury frames */
.card-border-inner {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(230, 200, 148, 0.08);
    border-radius: 8px;
    pointer-events: none;
}

.card-logo {
    font-family: var(--font-cinzel);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--color-gold);
    text-align: center;
    line-height: 1;
}

.card-title {
    font-family: var(--font-syne);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--color-gray);
    text-align: center;
    margin-top: 3px;
}

.card-question {
    font-family: var(--font-cinzel);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--color-white);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(230, 200, 148, 0.12);
    padding-bottom: 6px;
}

.card-actions-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.card-action-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.76rem;
    color: #e2e2e9;
    line-height: 1.4;
}

.act-num {
    font-family: var(--font-syne);
    font-weight: 700;
    color: var(--color-gold);
}

.act-text {
    font-family: var(--font-outfit);
    font-weight: 400;
    word-break: break-word;
    font-style: italic;
    opacity: 0.95;
}

.card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid rgba(230, 200, 148, 0.08);
    padding-top: 6px;
    width: 100%;
}

.card-author {
    font-family: var(--font-syne);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--color-gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-hashtag {
    font-family: var(--font-syne);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* ==========================================================================
   PANEL 3: THE SELFIE GUIDE (Immersive framing)
   ========================================================================== */

.selfie-mockup-container {
    margin-bottom: 25px;
}

.selfie-box {
    width: 100%;
    aspect-ratio: 1.3 / 1;
    background-color: #111116;
    border: 1px solid var(--color-gold-dim);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.selfie-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.selfie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    padding: 20px;
}

/* Overlay Viewfinder Brackets */
.overlay-bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gold);
    pointer-events: none;
    opacity: 0.8;
}

.overlay-bracket.tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.overlay-bracket.tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.overlay-bracket.bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.overlay-bracket.br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.selfie-instructions {
    text-align: center;
    color: var(--color-white);
    max-width: 260px;
}

.icon-camera {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(230, 200, 148, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold);
    margin: 0 auto 12px auto;
    border: 1px solid rgba(230, 200, 148, 0.3);
}

.icon-camera svg {
    width: 22px;
    height: 22px;
}

.selfie-instructions span {
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.selfie-instructions small {
    font-size: 0.72rem;
    color: var(--color-gray);
    display: block;
    line-height: 1.4;
}

.mini-card-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(22, 22, 29, 0.9);
    border: 1px solid var(--color-gold);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    animation: floatingMini 3s infinite alternate ease-in-out;
}

@keyframes floatingMini {
    0% { transform: translateY(0) rotate(-3deg); }
    100% { transform: translateY(-4px) rotate(-1deg); }
}

.mini-card-text {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mini-card-overlay svg {
    width: 10px;
    height: 10px;
    color: var(--color-gold);
}

/* Steps list */
.selfie-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.selfie-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 10px 14px;
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: #121216;
    font-family: var(--font-syne);
    font-weight: 700;
    font-size: 0.76rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.84rem;
    color: var(--color-gray);
    font-weight: 300;
}

.step-text strong {
    color: var(--color-white);
    font-weight: 500;
}

/* ==========================================================================
   PANEL 4: POST & WIN & AUTO GENERATOR
   ========================================================================== */

.post-preview-card {
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid var(--color-gold-dim);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.post-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-pic-mock {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6c894 0%, #b29360 100%);
    color: #121216;
    font-family: var(--font-syne);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-name {
    display: flex;
    flex-direction: column;
}

.profile-name strong {
    font-size: 0.84rem;
    color: var(--color-white);
}

.profile-name span {
    font-size: 0.68rem;
    color: var(--color-gray);
}

.post-text-content {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #d1d1db;
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: var(--font-outfit);
    font-weight: 300;
    margin-bottom: 14px;
    max-height: 200px;
    overflow-y: auto;
}

/* Copy Button styles inside preview */
.btn-copy {
    width: 100%;
    background: rgba(230, 200, 148, 0.1);
    border: 1px solid rgba(230, 200, 148, 0.3);
    color: var(--color-gold);
    padding: 12px;
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-copy:active {
    background: rgba(230, 200, 148, 0.18);
    transform: scale(0.98);
}

.btn-copy-icon svg {
    width: 14px;
    height: 14px;
}

/* Post Requirements Checklist */
.checklist-box {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 25px;
}

.checklist-title {
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 0.72rem;
    color: var(--color-gold);
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--color-gray);
}

.check-item:last-child {
    margin-bottom: 0;
}

.check-item svg {
    width: 12px;
    height: 12px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.check-item strong {
    color: var(--color-white);
    font-weight: 500;
}

/* Open Social App buttons */
.social-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    padding: 14px;
    border-radius: 10px;
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.linkedin:active { background: #005a8a; transform: translateY(1px); }

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-btn.instagram:active { opacity: 0.85; transform: translateY(1px); }

.social-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

#btn-restart {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-gray);
}

#btn-restart:active {
    background: rgba(255,255,255,0.05);
}

#btn-restart svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   TOAST SYSTEM
   ========================================================================== */

.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: #121216;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(230, 200, 148, 0.4);
    pointer-events: none;
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    bottom: 24px;
}

/* ==========================================================================
   MOBILE & VIEWPORT RESPONSIVENESS
   ========================================================================== */

@media screen and (max-width: 480px) {
    body, html {
        font-size: 15px;
    }

    .app-container {
        padding: 16px 14px 60px 14px;
    }

    .hud-header {
        padding: 10px 14px;
    }

    .brand-logo {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .timer-badge {
        padding: 4px 10px;
        gap: 6px;
    }

    #countdown-timer {
        font-size: 0.78rem;
    }

    .hero-section {
        margin-bottom: 20px;
    }

    .main-title {
        font-size: 1.65rem;
    }

    .timeline-steps {
        padding: 6px;
        margin-bottom: 20px;
        gap: 4px;
    }

    .step-btn {
        padding: 6px 2px;
        border-radius: 6px;
    }

    .step-num {
        font-size: 0.78rem;
        margin-bottom: 2px;
    }

    .step-lbl {
        font-size: 0.58rem;
        letter-spacing: 0.02em;
    }

    .panel-badge {
        font-size: 0.65rem;
    }

    .panel h2 {
        font-size: 1.3rem;
    }

    .panel-desc {
        font-size: 0.84rem;
        margin-bottom: 16px;
    }

    /* Stack metrics on absolute small screens */
    .hud-metrics {
        gap: 8px;
        margin-bottom: 16px;
    }

    .metric-card {
        padding: 10px 12px;
    }

    .metric-icon {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }

    .metric-icon svg {
        width: 14px;
        height: 14px;
    }

    .metric-value {
        font-size: 0.88rem;
    }

    /* Strategic Card Scaler for mobile aspect-ratio */
    .digital-card {
        padding: 14px 16px;
        border-radius: 8px;
    }

    .digital-card::before {
        border-radius: 8px;
    }

    .card-border-inner {
        top: 4px;
        left: 4px;
        right: 4px;
        bottom: 4px;
        border-radius: 6px;
    }

    .card-logo {
        font-size: 0.65rem;
        letter-spacing: 0.22em;
    }

    .card-title {
        font-size: 0.52rem;
        margin-top: 1px;
    }

    .card-question {
        font-size: 0.6rem;
        margin-top: 6px;
        margin-bottom: 4px;
        padding-bottom: 4px;
    }

    .card-action-item {
        font-size: 0.65rem;
        gap: 6px;
        line-height: 1.3;
    }

    .card-hashtag {
        font-size: 0.58rem;
        margin-top: 6px;
    }

    .selfie-box {
        border-radius: 12px;
    }

    .selfie-overlay {
        padding: 14px;
    }

    .overlay-bracket {
        width: 14px;
        height: 14px;
    }

    .overlay-bracket.tl { top: 10px; left: 10px; }
    .overlay-bracket.tr { top: 10px; right: 10px; }
    .overlay-bracket.bl { bottom: 10px; left: 10px; }
    .overlay-bracket.br { bottom: 10px; right: 10px; }

    .icon-camera {
        width: 38px;
        height: 38px;
        margin-bottom: 8px;
    }

    .icon-camera svg {
        width: 18px;
        height: 18px;
    }

    .selfie-instructions span {
        font-size: 0.72rem;
        margin-bottom: 4px;
    }

    .selfie-instructions small {
        font-size: 0.62rem;
    }

    .mini-card-overlay {
        bottom: 14px;
        right: 14px;
        padding: 4px 8px;
    }

    .mini-card-text {
        font-size: 0.52rem;
    }

    .selfie-steps-list {
        gap: 8px;
    }

    .selfie-step-item {
        padding: 8px 10px;
        border-radius: 8px;
    }

    .step-circle {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .step-text {
        font-size: 0.76rem;
    }

    .post-preview-card {
        padding: 14px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .profile-pic-mock {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .profile-name strong {
        font-size: 0.78rem;
    }

    .profile-name span {
        font-size: 0.62rem;
    }

    .post-text-content {
        padding: 8px 10px;
        font-size: 0.76rem;
        margin-bottom: 10px;
        max-height: 140px;
    }

    .social-share-buttons {
        gap: 8px;
        margin-bottom: 16px;
    }

    .social-btn {
        padding: 10px;
        border-radius: 8px;
        font-size: 0.68rem;
    }

    .btn {
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 0.78rem;
    }

    .button-row {
        grid-template-columns: 60px 1fr;
        gap: 8px;
    }
}

/* ==========================================================================
   NEW FUNCTIONAL CAMERA & WEBCAM OVERLAY STYLES
   ========================================================================== */

#webcam {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#selfie-canvas {
    display: none;
}

#selfie-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

.selfie-box.camera-active #webcam {
    display: block;
}

.selfie-box.camera-active #selfie-image {
    display: none;
}

.camera-controls-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
}

@media screen and (min-width: 480px) {
    .camera-controls-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.btn-camera-act {
    background: rgba(230, 200, 148, 0.08);
    border: 1px solid var(--color-gold-dim);
    color: var(--color-gold);
    padding: 12px;
    font-size: 0.75rem;
    font-family: var(--font-syne);
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s ease;
    text-transform: uppercase;
}

.btn-camera-act:active {
    background: rgba(230, 200, 148, 0.16);
    transform: scale(0.97);
}

.btn-danger-camera {
    background: rgba(255, 95, 95, 0.08);
    border-color: rgba(255, 95, 95, 0.25);
    color: #ff8585;
}

.btn-danger-camera:active {
    background: rgba(255, 95, 95, 0.16);
}

.btn-download-camera {
    background: linear-gradient(135deg, #e6c894 0%, #b29360 100%);
    border: none;
    color: #121216;
}

/* ==========================================================================
   SECURE DATABASE SUBMISSION DESK & STYLES
   ========================================================================== */

.database-submission-zone {
    margin: 25px 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.65rem;
    color: var(--color-gray);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.secure-badge svg {
    width: 12px;
    height: 12px;
    color: var(--color-gold);
    flex-shrink: 0;
}

/* ==========================================================================
   TRANSMISSION DIALOG MODALS
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 4, 6, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

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

.modal-content {
    background: radial-gradient(circle at 50% 0%, #16161f 0%, #0d0d12 100%);
    border: 1px solid rgba(230, 200, 148, 0.2);
    border-radius: 20px;
    padding: 35px 25px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8),
                0 0 50px rgba(230, 200, 148, 0.03);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: var(--color-gold);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
}

.modal-icon-success {
    width: 60px;
    height: 60px;
    background: rgba(230, 200, 148, 0.1);
    border: 1px solid rgba(230, 200, 148, 0.3);
    border-radius: 50%;
    color: var(--color-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 20px rgba(230, 200, 148, 0.15);
}

.modal-icon-success svg {
    width: 26px;
    height: 26px;
}

.modal-content h3 {
    font-family: var(--font-cinzel);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: var(--color-white);
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 0.88rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 300;
}

.modal-content p strong {
    color: var(--color-gold);
    font-weight: 500;
}

.modal-data-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
}

.m-lbl {
    font-family: var(--font-syne);
    font-weight: 800;
    color: var(--color-gray);
    letter-spacing: 0.05em;
}

.m-val {
    font-weight: 600;
    color: var(--color-white);
}

.m-val.val-green {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}
