/* ============================================================
   DroidTester — Responsive Styles
   ============================================================ */

/* ── Tablet (≤991px) ── */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1055;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .burger-btn {
        display: block;
    }

    .top-header {
        padding: 0 16px;
    }

    /* Mobile Navbar Dropdown */

    .public-navbar .navbar-collapse {
        background: #fff !important;
        padding: 20px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
        margin-top: 10px !important;
        border: 1px solid var(--card-border) !important;
        position: absolute !important;
        top: 100% !important;
        left: 16px !important;
        right: 16px !important;
        z-index: 1055 !important;
    }

    .public-navbar .navbar-nav {
        margin-bottom: 16px;
    }

    .search-bar {
        max-width: 220px;
    }

    .header-user-info {
        display: none;
    }

    .page-header {
        padding: 8px 16px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .content-wrapper {
        padding: 0 16px 20px;
    }

    .campaign-detail-layout {
        grid-template-columns: 1fr;
    }

    .info-boxes-grid {
        grid-template-columns: 1fr 1fr;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-divider {
        display: none;
    }

    .auth-social-col {
        margin-top: 20px;
    }

    .account-settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .my-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-action-btns {
        margin-left: 0;
        justify-content: center;
    }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
    }

    .auth-title {
        font-size: 30px;
    }

    .section-title {
        font-size: 24px;
    }

    .top-header {
        padding: 0 14px;
    }

    .search-bar {
        max-width: 180px;
        font-size: 13px;
    }

    .stat-card .stat-value {
        font-size: 36px;
    }

    .info-boxes-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 90px 0 0;
    }

    .phone-mockups-svg {
        height: 220px;
    }

    .phone-svg {
        width: 90px;
    }

    .phone-svg:nth-child(2) {
        width: 110px;
    }

    .pricing-card {
        margin-bottom: 16px;
    }

    .campaign-detail-layout {
        grid-template-columns: 1fr;
    }

    .credit-detail-grid {
        grid-template-columns: 1fr;
    }

    .package-features-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .auth-content {
        padding: 24px 16px;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .cta-card h2 {
        font-size: 24px;
    }

    .profile-action-btns {
        flex-direction: column;
        width: 100%;
    }

    .profile-action-btns .btn-primary-custom,
    .profile-action-btns .btn-dark-custom {
        justify-content: center;
        width: 100%;
    }

    .campaigns-scroll {
        gap: 10px;
    }

    .campaign-thumb-card {
        width: 120px;
        padding: 12px;
    }

    .account-settings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ── Mobile Small (≤576px) ── */
@media (max-width: 576px) {
    .page-header-actions {
        flex-wrap: wrap;
    }

    .top-header .search-bar {
        display: none;
    }

    .top-header .search-bar.mobile-show {
        display: flex;
    }

    .campaigns-table thead {
        display: none;
    }

    .campaigns-table tbody tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
    }

    .campaigns-table tbody td {
        padding: 6px 14px;
    }

    .campaigns-table tbody td:first-child {
        border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    }

    .campaigns-table tbody td:last-child {
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .hero-title {
        font-size: 26px;
    }

    .stat-card .stat-value {
        font-size: 28px;
    }

    /* Auth pages mobile fixes */
    .auth-page .public-navbar .container {
        flex-direction: column;
        gap: 16px;
    }

    .auth-nav-btns {
        margin-left: 0 !important;
        justify-content: center;
        width: 100%;
        gap: 10px !important;
    }

    .auth-nav-btns a {
        padding: 10px 16px !important;
        font-size: 13px !important;
        flex: 1;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .auth-mini-footer {
        flex-direction: column;
        padding: 24px 16px !important;
        gap: 12px;
        text-align: center;
        justify-content: center;
    }

    .auth-mini-footer>div {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .auth-mini-footer .separator {
        display: none !important;
    }

    .auth-mini-footer a,
    .auth-mini-footer .copyright {
        font-size: 13px !important;
        line-height: 1.4;
    }
}

/* ── Sidebar Overlay ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1054;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    display: block;
}

/* ── Offcanvas custom (mobile sidebar) ── */
@media (min-width: 992px) {
    .sidebar-overlay {
        display: none !important;
    }

    .sidebar {
        transform: translateX(0) !important;
    }
}