:root {
    --primary: #007AFF;
    --primary-hover: #005bb5;
    --danger: #FF3B30;
    --text-main: #1c1c1e;
    --text-muted: #8e8e93;
    --bg-body: #f2f2f7;
    --bg-container: rgba(255, 255, 255, 0.85);
    --border-color: rgba(255, 255, 255, 0.4);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.app-wrapper {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Bubble Background */
.bubble-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.08);
    animation: float 15s infinite ease-in-out alternate;
    filter: blur(40px);
}
.bubble-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.bubble-2 { width: 500px; height: 500px; bottom: -150px; right: -100px; animation-delay: -2s; background: rgba(52, 199, 89, 0.08); }
.bubble-3 { width: 300px; height: 300px; bottom: 20%; left: 20%; animation-delay: -5s; background: rgba(255, 59, 48, 0.05); }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

.container {
    background: var(--bg-container);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    width: 98%;
    max-width: 600px;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
}

h1 {
    margin-top: 0;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}
p.subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 15px;
}

.duration-group {
    margin-bottom: 25px;
    text-align: left;
}
.duration-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 14px;
}
.duration-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d1d6;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background: rgba(255,255,255,0.8);
    color: var(--text-main);
}
.duration-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.os-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #d1d1d6;
    background: rgba(255,255,255,0.8);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
}
.os-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.2);
}
.os-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Simulator Screens - MUST BE FIXED OVER EVERYTHING */
.sim-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2147483647; /* Maximum z-index to cover header/footer */
    user-select: none;
    cursor: none; /* Hide cursor for realism */
    color: #f8fafc;
}
.sim-screen.active {
    display: flex;
}

/* Windows Common Spinner */
.win-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
}
.win-spinner .dot {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: win-spin 2s infinite ease-in-out;
}
.win-spinner .dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 27px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}
.win-spinner .dot:nth-child(1) { animation-delay: -0.0s; }
.win-spinner .dot:nth-child(2) { animation-delay: -0.15s; }
.win-spinner .dot:nth-child(3) { animation-delay: -0.3s; }
.win-spinner .dot:nth-child(4) { animation-delay: -0.45s; }
.win-spinner .dot:nth-child(5) { animation-delay: -0.6s; }

@keyframes win-spin {
    0% { transform: rotate(-90deg); opacity: 1; }
    80% { transform: rotate(270deg); opacity: 0; }
    100% { transform: rotate(270deg); opacity: 0; }
}

/* Windows 10 Simulator */
#sim-win10 { background-color: #006DAE; }
.win-text {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.5px;
}
.win-subtext { font-size: 18px; margin-top: 5px; }

/* Windows 11 Simulator */
#sim-win11 { background-color: #000000; }
#sim-win11 .win-text { font-size: 20px; font-weight: 400; }
#sim-win11 .win-subtext { color: #d1d5db; font-size: 15px; }

/* macOS Simulator */
#sim-mac { background-color: #000000; }
.mac-logo { margin-bottom: 60px; }
.mac-track {
    width: 280px; height: 6px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.mac-fill {
    position: absolute;
    top: 0; left: 0; height: 100%; width: 0%;
    background-color: #ffffff;
    border-radius: 4px;
    transition: width 0.4s ease-out;
}
.mac-text {
    margin-top: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Tooltip */
.escape-tip {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: #94a3b8;
    opacity: 1;
    transition: opacity 1s;
    pointer-events: none;
    z-index: 2147483647;
}
.escape-tip.fade-out { opacity: 0; }

/* Info Section */
.info-container {
    background: var(--bg-container); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 30px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color);
    width: 98%; max-width: 1200px; box-sizing: border-box; z-index: 1; margin-top: 30px;
}
.info-container h2 { color: var(--text-main); margin-top: 0; margin-bottom: 15px; font-size: 22px; }
.info-container p, .info-container li { color: var(--text-main); line-height: 1.6; margin-bottom: 10px; font-size: 15px; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); margin-bottom: 10px; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%; max-width: none; margin: 0; background: none; border: none; text-align: left;
    padding: 15px 0; font-size: 16px; font-weight: 600; color: var(--text-main); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; font-family: inherit;
    box-shadow: none !important; border-radius: 0;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding-bottom: 15px; color: var(--text-muted); margin: 0; }
.arrow { transition: transform 0.3s; font-size: 12px; }
.faq-item.active .arrow { transform: rotate(180deg); }

@media (min-width: 769px) {
    .container { width: 80%; }
    .info-container { width: 80%; }
}