/* Help Button */
#helpDownloadBtn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #e8f0fe;
    color: #1a73e8;
    border: none;
    font-size: 1.8em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.18s ease;
}

#helpDownloadBtn:hover,
#helpDownloadBtn:focus {
    background-color: #d2e3fc;
    transform: scale(1.1);
    outline: 3px solid #8ab4f8;
}

#helpDownloadBtn:active {
    transform: scale(0.96);
}

/* Popup */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.popup-box {
    background: white;
    border-radius: 14px;
    padding: 22px;
    max-width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    color: #222;
}

.popup-box h3 {
    margin: 0 0 14px;
    font-size: 1.35em;
    color: #1a1a1a;
}

.popup-box ol {
    padding-left: 22px;
    margin: 12px 0;
}

.popup-box ol li {
    margin-bottom: 10px;
}

.popup-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-buttons button {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1.05em;
    cursor: pointer;
}

#gotItBtn {
    background: #1a73e8;
    color: white;
}

#closePopupBtn {
    background: #f1f3f4;
    color: #444;
}

#gotItBtn:active,
#closePopupBtn:active {
    opacity: 0.92;
}


/* ───────────────────────────────────────────────
   Popup overlay (dark background)
─────────────────────────────────────────────── */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ───────────────────────────────────────────────
   Main popup container
─────────────────────────────────────────────── */
.popup-content {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 10px 38px rgba(0, 0, 0, 0.28);
    position: relative;
    padding: 24px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
    line-height: 1.55;
}

/* Close button (×) */
.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.close-btn:hover,
.close-btn:focus {
    color: #374151;
}

/* Header with emoji */
.popup-header {
    text-align: center;
    margin: 0 0 20px;
}

.popup-header .emoji {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 8px;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.38rem;
    font-weight: 600;
    color: #111827;
}

/* Paragraphs */
.popup-content p {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #4b5563;
}

/* Ordered list – steps */
.steps-list {
    padding-left: 0;
    margin: 20px 0 24px;
    counter-reset: step;
    list-style: none;
}

.steps-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: #374151;
}

.steps-list li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Tip box */
.tip {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.96rem;
    color: #1e40af;
}

.tip strong {
    color: #1d4ed8;
}

/* Buttons container */
.popup-content .primary-btn,
.popup-content .secondary-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s;
}

.primary-btn {
    background: #2563eb;
    color: white;
}

.primary-btn:hover,
.primary-btn:focus {
    background: #1d4ed8;
}

.secondary-btn {
    background: #f3f4f6;
    color: #374151;
}

.secondary-btn:hover,
.secondary-btn:focus {
    background: #e5e7eb;
}

/* Spacing after last button */
.popup-content button + button {
    margin-top: 12px;
}

/* Scrollbar styling (optional – nicer on Android Chrome) */
.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

#helpDownloadBtn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #e8f0fe;      /* very light blue – calm & trustworthy */
    color: #1a73e8;                 /* Google blue */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.18s ease;
}

#helpDownloadBtn:hover,
#helpDownloadBtn:focus {
    background-color: #d2e3fc;
    transform: scale(1.1);
    outline: 3px solid #8ab4f8;
}

#helpDownloadBtn:active {
    transform: scale(0.96);
}

/* Style for the "i" inside */
#helpDownloadBtn span,
#helpDownloadBtn div {
    font-style: italic;
    font-weight: bold;
    font-size: 1.6em;   /* adjust if needed */
    line-height: 1;
}