html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    position: relative;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Base resets */
h1, h2, h3, h4, h5, h6, p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
}

img {
    max-width: 100%;
    height: auto;
}

/* Responsive decorative circle support: Primary blue for PC, very light for Mobile */
.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1) !important; /* PC base blue */
}

@media (max-width: 991.98px) {
    .bg-primary-soft {
        background-color: rgba(13, 110, 253, 0.03) !important; /* Very light on mobile to avoid text interference */
    }
}

.opacity-5 {
    opacity: 0.05 !important;
}

/* --- Utilities --- */
.transition-hover {
    transition: all 0.3s ease;
}
.hover-primary:hover {
    color: #0d6efd !important; /* Bootstrap primary blue */
}

/* --- Navigation --- */
.navbar .nav-link {
    transition: color 0.2s;
}
.navbar .nav-link:hover {
    color: #0d6efd;
}
.navbar .nav-link.active {
    font-weight: 600;
}

/* Fix navbar overlap by raising its z-index above sticky ads */
.navbar.sticky-top {
    z-index: 1030;
    transition: all 0.3s ease-in-out;
}
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}



/* --- Number Cards --- */
.number-card {
    background-color: #fff;
    border: 1px solid #dee2e6; /* BS5 border color */
    border-radius: 0.75rem; /* BS5 rounded-3 */
    padding: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.number-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08); /* slight shadow elevate */
    border-color: #b6d4fe; /* Light primary border on hover */
}

.card-country-flag {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Refine spacing within the card */
.number-text {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    color: #212529;
    margin: 0;
    margin-bottom: 0.25rem; /* Better alignment with large icons */
    letter-spacing: 0.5px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 50rem;
    background-color: rgba(25, 135, 84, 0.1); /* BS5 success light */
    color: #198754;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #198754;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    50% { opacity: 0.3; box-shadow: 0 0 0 4px rgba(25, 135, 84, 0); }
    100% { opacity: 1; }
}

.number-text {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    color: #212529; /* text-dark */
    margin: 0;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.copy-btn {
    border: 1px solid #dee2e6;
    background: transparent;
    color: #6c757d;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: #0d6efd;
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.copy-btn.copied {
    border-color: #198754;
    color: #198754;
    background-color: rgba(25, 135, 84, 0.05);
}

/* --- AdSense Placeholders --- */
/* Dashed border for dev visuals */
.border-dashed {
    border-style: dashed !important;
}

.ad-placeholder {
    width: 100%;
}

/* Mobile */
@media (max-width: 767px) {
    .ad-placeholder {
        min-height: 100px; 
    }
}

/* PC */
@media (min-width: 768px) {
    .ad-placeholder {
        min-height: 250px;
    }
}

/* Remove background/border frame from ads on mobile portrait for a more natural look */
@media (max-width: 767.98px) {
    .ad-placeholder {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}


/* Sidebar sticky positioning normalization (Best practice for code and browser compatibility) */
.sidebar-sticky {
    position: sticky;
    top: 90px;
    z-index: 10;
}

/* Ensure main tag doesn't interfere with sticky positioning in older browsers */
main {
    display: block;
}

.in-feed-ad {
    background-color: rgba(233, 236, 239, 0.4); /* subtle grey */
    border: 1px dashed #ced4da;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 180px; /* Base height for native in-feed ads to inject into */
    color: #6c757d;
    font-size: 0.85rem;
    padding: 1rem;
    text-align: center;
}

/* --- How it Works Cards --- */
.custom-step-card:hover {
    background-color: rgba(13, 110, 253, 0.02);
    transform: translateY(-2px);
}

/* --- Blog Cards --- */
.custom-blog-card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

.custom-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06) !important;
}

.border-hover-primary:hover {
    border-bottom-color: #0d6efd !important;
}

/* --- New Modern Hero Elements --- */
.hover-lift {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15) !important;
}

.hover-primary-light:hover {
    background-color: rgba(13, 110, 253, 0.04) !important;
}

/* Floating Animations */
@keyframes float1 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float2 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float3 {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(10px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

.custom-float-1 {
    animation: float1 6s ease-in-out infinite;
}

.custom-float-2 {
    animation: float2 5s ease-in-out infinite;
    animation-delay: 1s; /* offset the timing */
}

.custom-float-3 {
    animation: float3 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* --- Custom Blog Carousel Indicators --- */
.custom-blog-indicators {
    position: static;
    margin-top: 1.5rem;
    gap: 8px;
}
.custom-blog-indicators [data-bs-target] {
    width: 25px;
    height: 6px;
    border-radius: 4px;
    background-color: #dee2e6;
    border: none;
    opacity: 1;
    transition: all 0.3s ease;
}
.custom-blog-indicators .active {
    width: 50px;
    background-color: #0d6efd;
}

/* Verification Code Highlighting */
.code-highlight {
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    padding: 0 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.code-highlight:hover {
    background-color: rgba(13, 110, 253, 0.08);
    border-radius: 4px;
    text-decoration-style: solid;
}

/* Helper class for smooth shadow transition */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.1) !important;
}
