
/**
 * ===================================================================
 * MARTOO TECH WORKS - PRODUCTION READY RESPONSIVE STYLESHEET
 * Version: 2.0.0
 * Mobile-First Approach | All Device Sizes | Deep Ocean Theme
 * ===================================================================
 */

/* ===================================================================
   📱 BASE MOBILE (DEFAULT) - < 576px
   Mobile First - All styles are mobile by default
   =================================================================== */

/* Container */
.container {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
}

/* Typography */
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    font-size: 15px;
    line-height: 1.6;
}

/* Header */
.header-container {
    height: 70px;
}

.logo-img {
    height: 35px;
}

.logo-text {
    font-size: 1.25rem;
}

/* Navigation - Mobile Menu */
.nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-dark);
    flex-direction: column;
    padding: 30px 20px;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
}

.nav-menu.active {
    left: 0;
}

.nav-list {
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: block;
    padding: 12px 0;
    font-size: 18px;
}

.nav-buttons {
    flex-direction: column;
    width: 100%;
    margin-top: 30px;
    gap: 15px;
}

.nav-buttons .btn {
    width: 100%;
    text-align: center;
}

.mobile-toggle {
    display: flex;
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    min-height: auto;
}

.hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
}

.hero-badge {
    font-size: 12px;
    padding: 6px 12px;
}

.hero-title {
    font-size: 32px;
    line-height: 1.2;
}

.hero-description {
    font-size: 16px;
    max-width: 100%;
}

.hero-actions {
    flex-direction: column;
    gap: 15px;
}

.hero-actions .btn {
    width: 100%;
}

.hero-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.stats-card {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
}

.stat-divider {
    width: 100%;
    height: 1px;
}

.hero-map-preview i {
    font-size: 8rem;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

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

.section-description {
    font-size: 16px;
}

/* Services */
.services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    padding: 30px 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.service-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* Academy */
.academy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
}

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

.academy-cta {
    flex-direction: column;
}

.academy-cta .btn {
    width: 100%;
}

.course-card-preview {
    padding: 20px;
}

.course-card-preview.second {
    margin-left: 0;
}

/* Portfolio */
.portfolio-tabs {
    flex-direction: column;
    width: 100%;
}

.portfolio-tab {
    width: 100%;
    text-align: center;
}

.portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.portfolio-item {
    aspect-ratio: 16/9;
}

/* Testimonials */
.testimonial-card {
    padding: 30px 20px;
}

.testimonial-author {
    flex-direction: column;
    text-align: center;
}

.author-info {
    text-align: center;
}

.slider-controls {
    flex-wrap: wrap;
}

/* Blog */
.blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.blog-card-content {
    padding: 20px;
}

.blog-meta {
    flex-direction: column;
    gap: 8px;
}

/* Contact */
.contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-methods {
    grid-template-columns: 1fr;
}

.contact-method {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.method-details {
    text-align: center;
}

.contact-form-wrapper {
    padding: 30px 20px;
}

/* Footer */
.footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-info {
    max-width: 100%;
    text-align: center;
}

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

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

.footer-links {
    text-align: center;
}

.footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
}

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

.footer-bottom-links {
    justify-content: center;
}

/* Dashboard */
.dashboard-main {
    margin-left: 0;
}

.dashboard-sidebar {
    position: fixed;
    transform: translateX(-100%);
    z-index: 1000;
}

.dashboard-sidebar.active {
    transform: translateX(0);
}

.dashboard-header {
    padding: 0 20px;
}

.header-search {
    max-width: 100%;
}

.header-actions {
    gap: 10px;
}

.header-date span {
    display: none;
}

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

.welcome-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
}

.welcome-stats {
    flex-direction: column;
    gap: 16px;
}

.stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.stat-card {
    padding: 20px;
}

.charts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.chart-card {
    padding: 20px;
}

.chart-container {
    height: 250px;
}

.courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.course-header {
    flex-direction: column;
    text-align: center;
}

.course-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.assignments-list {
    padding: 20px;
}

.assignment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.assignment-meta {
    width: 100%;
    flex-wrap: wrap;
}

.certificates-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.resources-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.quick-actions {
    grid-template-columns: 1fr;
    gap: 16px;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    min-width: 800px;
}

/* Auth Pages */
.auth-section {
    padding: 100px 20px 40px;
}

.auth-card {
    padding: 32px 24px;
}

.auth-header h1 {
    font-size: 28px;
}

.form-row {
    grid-template-columns: 1fr;
    gap: 0;
}

.course-options {
    grid-template-columns: 1fr;
}

.form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.register-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.benefit-item i {
    margin-bottom: 0;
}

/* Software Downloads */
.downloads-hero h1 {
    font-size: 36px;
}

.downloads-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.download-header {
    padding: 24px 20px;
}

.download-body {
    padding: 24px 20px;
}

.download-footer {
    padding: 20px;
}

.requirements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Legal Pages */
.legal-hero h1 {
    font-size: 36px;
}

.legal-main {
    padding: 32px 24px;
}

.legal-section-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
}

.legal-section-header h2 {
    font-size: 24px;
}

.policy-card {
    padding: 24px;
}

.info-card {
    flex-direction: column;
    align-items: flex-start;
}

.refund-contact,
.terms-contact,
.privacy-contact {
    flex-direction: column;
    text-align: center;
}

.contact-buttons {
    width: 100%;
}

.contact-buttons .btn {
    width: 100%;
}

.eligibility-table {
    display: block;
    overflow-x: auto;
}

/* Payment */
.payment-proof-upload .upload-area {
    padding: 30px 20px;
}

.upload-icon i {
    font-size: 48px;
}

.payment-details {
    padding: 16px;
}

/* Modal */
.modal-content {
    width: 95%;
    padding: 24px 20px;
}

.modal-content.modal-lg {
    max-width: 95%;
}

/* Toast */
#toast-container {
    max-width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    top: 20px;
}

.toast {
    width: 100%;
}

/* ===================================================================
   📱 SMALL MOBILE (LANDSCAPE) - 576px and up
   =================================================================== */

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 26px; }

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

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

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

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

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

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

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

/* ===================================================================
   📱 TABLETS - 768px and up
   =================================================================== */

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 28px; }

    /* Header */
    .header-container {
        height: 80px;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    /* Navigation - Desktop */
    .mobile-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        transition: none;
        overflow-y: visible;
    }

    .nav-list {
        flex-direction: row;
        width: auto;
        gap: 20px;
    }

    .nav-item {
        width: auto;
    }

    .nav-link {
        display: inline-block;
        padding: 8px 0;
        font-size: 15px;
    }

    .nav-buttons {
        flex-direction: row;
        width: auto;
        margin-top: 0;
        margin-left: 20px;
        gap: 12px;
    }

    .nav-buttons .btn {
        width: auto;
    }

    /* Hero */
    .hero {
        padding: 80px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-actions {
        flex-direction: row;
    }

    .hero-actions .btn {
        width: auto;
    }

    .hero-social {
        flex-direction: row;
        align-items: center;
    }

    .stats-card {
        flex-direction: row;
    }

    .stat-divider {
        width: 1px;
        height: 40px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-footer {
        flex-direction: row;
        align-items: center;
    }

    /* Academy */
    .academy-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

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

    .academy-cta {
        flex-direction: row;
    }

    .academy-cta .btn {
        width: auto;
    }

    .course-card-preview.second {
        margin-left: 30px;
    }

    /* Portfolio */
    .portfolio-tabs {
        flex-direction: row;
    }

    .portfolio-tab {
        width: auto;
    }

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

    /* Testimonials */
    .testimonial-author {
        flex-direction: row;
        text-align: left;
    }

    .author-info {
        text-align: left;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-meta {
        flex-direction: row;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-method {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .method-details {
        text-align: left;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-info {
        text-align: left;
    }

    .footer-logo {
        justify-content: flex-start;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-links {
        text-align: left;
    }

    .footer-links h4::after {
        left: 0;
        transform: none;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Dashboard */
    .dashboard-sidebar {
        position: sticky;
        transform: none;
        width: 280px;
    }

    .dashboard-main {
        margin-left: 280px;
    }

    .dashboard-header {
        padding: 0 32px;
    }

    .header-search {
        max-width: 400px;
    }

    .header-date span {
        display: inline;
    }

    .welcome-banner {
        flex-direction: row;
        text-align: left;
    }

    .welcome-stats {
        flex-direction: row;
    }

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

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

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

    .course-header {
        flex-direction: row;
        text-align: left;
    }

    .course-footer {
        flex-direction: row;
    }

    .assignment-item {
        flex-direction: row;
        align-items: center;
    }

    .assignment-meta {
        width: auto;
    }

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

    .certificate-card {
        flex-direction: row;
        text-align: left;
    }

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

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

    /* Auth Pages */
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

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

    .form-options {
        flex-direction: row;
        align-items: center;
    }

    .register-benefits {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    /* Software Downloads */
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .trust-badges {
        flex-direction: row;
    }

    /* Legal Pages */
    .legal-main {
        padding: 48px;
    }

    .legal-section-header {
        flex-direction: row;
        text-align: left;
    }

    .refund-contact,
    .terms-contact,
    .privacy-contact {
        flex-direction: row;
        text-align: left;
    }

    .contact-buttons {
        width: auto;
    }

    .contact-buttons .btn {
        width: auto;
    }

    /* Payment */
    .payment-proof-upload .upload-area {
        padding: 40px;
    }

    .upload-icon i {
        font-size: 64px;
    }

    /* Modal */
    .modal-content {
        width: 80%;
    }

    #toast-container {
        max-width: 350px;
        left: auto;
        right: 20px;
    }
}

/* ===================================================================
   💻 DESKTOP - 992px and up
   =================================================================== */

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    h1 { font-size: 44px; }
    h2 { font-size: 36px; }
    h3 { font-size: 30px; }

    /* Navigation */
    .nav-list {
        gap: 30px;
    }

    .nav-link {
        font-size: 16px;
    }

    /* Hero */
    .hero {
        padding: 100px 0 80px;
    }

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

    /* Services */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Dashboard */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Software Downloads */
    .downloads-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .requirements-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Legal */
    .legal-container {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }
}

/* ===================================================================
   🖥️ LARGE DESKTOP - 1200px and up
   =================================================================== */

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    h1 { font-size: 48px; }
    h2 { font-size: 40px; }
    h3 { font-size: 32px; }

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

    .dashboard-content {
        padding: 32px;
    }
}

/* ===================================================================
   🖥️ EXTRA LARGE DESKTOP - 1400px and up
   =================================================================== */

@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }

    h1 { font-size: 52px; }
    h2 { font-size: 44px; }
    h3 { font-size: 36px; }
}

/* ===================================================================
   📱 LANDSCAPE ORIENTATION
   =================================================================== */

@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .dashboard-sidebar {
        overflow-y: auto;
    }

    .nav-menu {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* ===================================================================
   🖨️ PRINT STYLES
   =================================================================== */

@media print {
    /* Hide navigation, footer, and interactive elements */
    .header,
    .footer,
    .nav-menu,
    .mobile-toggle,
    .btn,
    .hero-actions,
    .contact-form,
    .newsletter-form,
    .dashboard-sidebar,
    .dashboard-header,
    .quick-actions,
    .action-btn {
        display: none !important;
    }

    /* Show main content */
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Reset dark theme for printing */
    .hero,
    .services,
    .academy-promo,
    .portfolio-preview,
    .testimonials,
    .blog-preview,
    .contact-section,
    .dashboard-main {
        background: white !important;
        color: black !important;
    }

    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6,
    p, span, a {
        color: black !important;
    }

    /* Show URLs after links */
    a[href]:after {
        content: " (" attr(href) ")";
    }

    /* Avoid page breaks inside elements */
    .service-card,
    .course-card,
    .blog-card,
    .testimonial-card,
    .stat-card {
        page-break-inside: avoid;
    }
}

/* ===================================================================
   🌗 DARK MODE SUPPORT
   =================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --primary-dark: #0A1128;
        --primary-deep: #0F1A2F;
        --primary-navy: #1A2A4A;
        --primary-midnight: #0B1B3A;
        --primary-deeper: #050A14;
    }
}

@media (prefers-color-scheme: light) {
    :root[data-theme="dark"] {
        --primary-dark: #0A1128;
        --primary-deep: #0F1A2F;
        --primary-navy: #1A2A4A;
        --primary-midnight: #0B1B3A;
        --primary-deeper: #050A14;
    }
}

/* ===================================================================
   🎯 UTILITY CLASSES - RESPONSIVE
   =================================================================== */

/* Hide/Show based on breakpoints */
.hidden-mobile {
    display: none !important;
}

.hidden-desktop {
    display: block !important;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block !important;
    }
    
    .hidden-desktop {
        display: none !important;
    }
}

/* Responsive spacing */
@media (max-width: 767px) {
    .mt-mobile-0 { margin-top: 0 !important; }
    .mt-mobile-1 { margin-top: 0.5rem !important; }
    .mt-mobile-2 { margin-top: 1rem !important; }
    .mt-mobile-3 { margin-top: 2rem !important; }
    .mt-mobile-4 { margin-top: 3rem !important; }
    
    .mb-mobile-0 { margin-bottom: 0 !important; }
    .mb-mobile-1 { margin-bottom: 0.5rem !important; }
    .mb-mobile-2 { margin-bottom: 1rem !important; }
    .mb-mobile-3 { margin-bottom: 2rem !important; }
    .mb-mobile-4 { margin-bottom: 3rem !important; }
    
    .pt-mobile-0 { padding-top: 0 !important; }
    .pt-mobile-1 { padding-top: 0.5rem !important; }
    .pt-mobile-2 { padding-top: 1rem !important; }
    .pt-mobile-3 { padding-top: 2rem !important; }
    .pt-mobile-4 { padding-top: 3rem !important; }
    
    .pb-mobile-0 { padding-bottom: 0 !important; }
    .pb-mobile-1 { padding-bottom: 0.5rem !important; }
    .pb-mobile-2 { padding-bottom: 1rem !important; }
    .pb-mobile-3 { padding-bottom: 2rem !important; }
    .pb-mobile-4 { padding-bottom: 3rem !important; }
}

/* Responsive text alignment */
@media (max-width: 767px) {
    .text-center-mobile {
        text-align: center !important;
    }
    
    .text-left-mobile {
        text-align: left !important;
    }
    
    .text-right-mobile {
        text-align: right !important;
    }
}

/* Responsive width */
@media (max-width: 767px) {
    .w-100-mobile {
        width: 100% !important;
    }
}

/* ===================================================================
   🎨 ANIMATIONS FOR MOBILE
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================================================
   🛡️ SAFE AREA SUPPORT (Notch Devices)
   =================================================================== */

@supports (padding: max(0px)) {
    .header {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .footer {
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .dashboard-sidebar {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===================================================================
   📱 TOUCH DEVICE OPTIMIZATIONS
   =================================================================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-link,
    .btn,
    .service-card,
    .course-card,
    .portfolio-item,
    .quick-action-card,
    .resource-card {
        cursor: default;
    }
    
    /* Remove hover effects */
    .service-card:hover,
    .course-card:hover,
    .portfolio-item:hover,
    .quick-action-card:hover,
    .resource-card:hover {
        transform: none;
    }
    
    /* Add active states for touch */
    .service-card:active,
    .course-card:active,
    .portfolio-item:active,
    .quick-action-card:active,
    .resource-card:active {
        transform: scale(0.98);
    }
}

/* ===================================================================
   📊 DASHBOARD MOBILE OPTIMIZATIONS
   =================================================================== */

@media (max-width: 767px) {
    .dashboard-sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.collapsed.active {
        transform: translateX(0);
    }
    
    .dashboard-main.expanded {
        margin-left: 0;
    }
    
    .chart-card {
        min-height: 300px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .table-responsive {
        margin: 0 -16px;
        padding: 0 16px;
        width: calc(100% + 32px);
    }
    
    .stat-trend {
        font-size: 12px;
    }
    
    .welcome-stat .stat-value {
        font-size: 28px;
    }
}

/* ===================================================================
   📱 AUTH PAGES MOBILE OPTIMIZATIONS
   =================================================================== */

@media (max-width: 767px) {
    .auth-card {
        border-radius: var(--radius-lg);
    }
    
    .registration-progress {
        margin-bottom: 30px;
    }
    
    .progress-step .step-label {
        font-size: 11px;
    }
    
    .password-strength {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .strength-bar {
        width: 100%;
    }
}

/* ===================================================================
   📱 SOFTWARE DOWNLOADS MOBILE OPTIMIZATIONS
   =================================================================== */

@media (max-width: 767px) {
    .download-card::after {
        font-size: 20px;
        top: 16px;
        right: 16px;
    }
    
    .download-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .download-header h2 {
        font-size: 24px;
    }
    
    .password-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .password-value {
        font-size: 14px;
        word-break: break-all;
        text-align: center;
    }
}

/* ===================================================================
   📱 LEGAL PAGES MOBILE OPTIMIZATIONS
   =================================================================== */

@media (max-width: 767px) {
    .toc-sidebar {
        display: none;
    }
    
    .legal-main {
        border-radius: var(--radius-lg);
    }
    
    .legal-section {
        margin-bottom: 40px;
    }
    
    .policy-card {
        padding: 20px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
}

/* ===================================================================
   📱 PAYMENT MOBILE OPTIMIZATIONS
   =================================================================== */

@media (max-width: 767px) {
    .payment-proof-upload .upload-area {
        padding: 24px 16px;
    }
    
    .upload-icon i {
        font-size: 40px;
    }
    
    .file-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .file-info {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-details {
        margin-top: 16px;
    }
}

/* ===================================================================
   🎯 FINAL OVERRIDES
   =================================================================== */

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure videos are responsive */
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent overflow */
body {
    overflow-x: hidden;
}

/* Fix iOS tap highlight */
* {
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.1);
}

/* Improve font rendering on mobile */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
