/* Mobile Large (480px - 575px) */
@media (max-width: 575px) {

    .header-container,
    .footer-container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1rem;
    }

    nav ul {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.75rem;
    }

    .content {
        padding: 15px !important;
    }

    h1 {
        font-size: 2em;
    }

    .demo-slider {
        min-height: 200px;
        min-width: 200px;
    }

    table {
        font-size: 0.7em;
    }

    th,
    td {
        padding: 8px 4px;
    }

    .contact-form {
        padding: 1.2em;
    }

    /* Index page mobile styles */
    body.index-page .hero-overlay .hero-title {
        font-size: 2.2em;
    }

    body.index-page .hero-overlay .hero-subtitle {
        font-size: 1em;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .feature {
        background: rgba(255, 255, 255, 0.95);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }

    .feature-icon {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 1.2em;
        margin-bottom: 8px;
    }

    .feature-desc {
        font-size: 0.95em;
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {

    .header-container,
    .footer-container {
        padding: 0 8px;
    }

    .logo {
        font-size: 0.9rem;
    }

    nav ul {
        gap: 0.5rem;
    }

    nav a {
        font-size: 0.7rem;
    }

    .content {
        padding: 12px !important;
    }

    h1 {
        font-size: 1.8em;
    }

    .demo-slider {
        min-height: 180px;
        min-width: 180px;
    }

    table {
        font-size: 0.65em;
    }

    th,
    td {
        padding: 6px 3px;
    }

    /* Index page extra small mobile */
    body.index-page .hero-overlay .hero-title {
        font-size: 1.8em;
    }

    body.index-page .hero-overlay .hero-subtitle {
        font-size: 0.9em;
    }

    .hero-button {
        padding: 12px 20px;
        font-size: 1em;
        width: 180px;
    }

    .content-grid {
        gap: 12px;
        padding: 12px;
    }

    .feature {
        padding: 15px;
    }

    .feature-icon {
        font-size: 2.2em;
        margin-bottom: 12px;
    }

    .feature-title {
        font-size: 1.1em;
        margin-bottom: 6px;
    }

    .feature-desc {
        font-size: 0.9em;
    }
}

/* Navigation responsive improvements */
@media (max-width: 991px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block !important;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        transition: color 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        color: #E94560;
    }

    .header-container {
        position: relative;
    }

    nav {
        display: block;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1A1A2E;
        padding: 15px 0;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 12px 20px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background-color 0.3s ease;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background-color: rgba(233, 69, 96, 0.1);
        color: #E94560;
    }

    /* Mobile-only menu items */
    nav ul li.mobile-only:first-of-type {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 15px;
        padding-top: 10px;
    }

    nav ul li.mobile-only:first-of-type a {
        border-top: none;
    }
}

/* Hide mobile-only items on desktop */
@media (min-width: 768px) {
    nav ul li.mobile-only {
        display: none;
    }
}

/* Footer responsive */
@media (max-width: 767px) {
    .footer-links {
        display: none;
    }

    .footer-container {
        justify-content: center;
    }

    .copyright {
        font-size: 0.7rem;
    }
}

/* Ensure images and media are responsive */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal overflow */
* {
    max-width: 100%;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Fix code blocks on mobile */
@media (max-width: 767px) {
    .content pre {
        font-size: 0.75em;
        padding: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content code {
        font-size: 0.8em;
        word-break: break-all;
    }

    /* Fix wide tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Fix long URLs and text */
    .content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Responsive typography */
@media (max-width: 767px) {
    .content h2 {
        font-size: 1.6em;
    }

    .content h3 {
        font-size: 1.2em;
    }

    .content {
        font-size: 1em;
    }
}

@media (max-width: 479px) {
    .content h2 {
        font-size: 1.4em;
    }

    .content h3 {
        font-size: 1.1em;
    }

    .content {
        font-size: 0.95em;
    }
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.security-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.security-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.security-badge-green {
    border-color: #28a745;
    color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.security-badge-blue {
    border-color: #007bff;
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.security-badge-gray {
    border-color: #6c757d;
    color: #495057;
    background: rgba(108, 117, 125, 0.05);
}

@media (max-width: 767px) {
    .security-badges {
        gap: 10px;
    }

    .security-badge {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* Currency Toggle Switch */
.currency-selector-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 1em 0;
    text-align: center;
}

.currency-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.currency-label {
    font-weight: 500;
    font-size: 1.1em;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* faq */

.faq-item {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 20px;
    display: none;
    border-top: 1px solid #ddd;
}

.faq-answer.active {
    display: block;
}

.status-indicator {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.status-working {
    background: #d4edda;
    color: #155724;
}

.status-issue {
    background: #f8d7da;
    color: #721c24;
}

.status-resolved {
    background: #d1ecf1;
    color: #0c5460;
}

.code-block {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #007cba;
    margin: 10px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

/* === 404 Page Specific Styles === */
.note-item .get-plan-btn {
    margin-top: auto !important;
}