/* ============================================
   MOBILE PREVIEW & RESPONSIVE STYLES
   Mobile Device Preview System
   ============================================ */

/* ============================================
   MOBILE PREVIEW PAGE STYLES
   ============================================ */
.mobile-preview-section {
    min-height: 100vh;
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--darker-blue) 100%);
}

.mobile-preview-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.mobile-preview-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.mobile-preview-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-preview-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Mobile Device Frame */
.mobile-device-frame {
    max-width: 400px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

.device-screen {
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    height: 750px;
}

.device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 1000;
}

.device-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-primary);
}

.device-content::-webkit-scrollbar {
    width: 5px;
}

.device-content::-webkit-scrollbar-track {
    background: var(--darker-blue);
}

.device-content::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 10px;
}

/* ============================================
   MOBILE SPLASH SCREEN
   ============================================ */
.mobile-splash {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--darker-blue) 100%);
    position: relative;
    overflow: hidden;
}

.splash-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.splash-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-yellow), transparent);
    animation: pulse 3s ease-in-out infinite;
}

.splash-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 20%;
    left: -100px;
    animation-delay: 0s;
}

.splash-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 30%;
    right: -50px;
    animation-delay: 1s;
}

.splash-logo {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.splash-logo-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-blue));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--bg-primary);
    box-shadow: 0 20px 40px rgba(250, 204, 21, 0.4);
    animation: logoFloat 3s ease-in-out infinite;
}

.splash-logo-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-logo-text p {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.splash-loader {
    margin-top: 3rem;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(250, 204, 21, 0.2);
    border-top: 4px solid var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   MOBILE DASHBOARD
   ============================================ */
.mobile-dashboard {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Mobile Header */
.mobile-header {
    background: var(--dark-blue);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(250, 204, 21, 0.2);
    transform: scale(1.05);
}

.mobile-header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-header-logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.2rem;
}

.mobile-header-logo-text h2 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.mobile-header-logo-text span {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-notification-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    font-size: 1.1rem;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

/* Mobile Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-blue);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-header {
    padding: 1.5rem;
    background: var(--darker-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-border);
}

.mobile-drawer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-drawer-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.5rem;
}

.mobile-drawer-close {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    font-size: 1.2rem;
}

.mobile-drawer-nav {
    padding: 1rem 0;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
    background: rgba(250, 204, 21, 0.1);
    border-left-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.mobile-drawer-link i {
    font-size: 1.2rem;
    width: 30px;
}

.mobile-drawer-link span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Mobile Content */
.mobile-content {
    padding: 1rem;
}

/* Mobile Stats Grid */
.mobile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-stat-card {
    background: var(--dark-blue);
    padding: 1.25rem;
    border-radius: 15px;
    border: 1px solid var(--card-border);
}

.mobile-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.mobile-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mobile-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(250, 204, 21, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

.mobile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-stat-change {
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 0.25rem;
}

.mobile-stat-change i {
    font-size: 0.7rem;
}

/* Mobile Section */
.mobile-section {
    margin-bottom: 1.5rem;
}

.mobile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mobile-section-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-section-link {
    color: var(--primary-yellow);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Mobile Cards */
.mobile-card {
    background: var(--dark-blue);
    border-radius: 15px;
    padding: 1.25rem;
    border: 1px solid var(--card-border);
    margin-bottom: 1rem;
}

.mobile-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.5rem;
}

.mobile-card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.mobile-card-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mobile-card-content {
    margin-bottom: 1rem;
}

.mobile-card-footer {
    display: flex;
    gap: 0.75rem;
}

.mobile-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.mobile-btn-primary {
    background: var(--primary-yellow);
    color: var(--bg-primary);
}

.mobile-btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

/* Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    z-index: 100;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.mobile-nav-item.active {
    color: var(--primary-yellow);
    background: rgba(250, 204, 21, 0.1);
}

.mobile-nav-item i {
    font-size: 1.3rem;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* ============================================
   MOBILE PAGE STYLES
   ============================================ */
.mobile-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-bottom: 80px;
}

.mobile-page-header {
    background: var(--dark-blue);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

.mobile-page-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-page-content {
    padding: 1rem;
}

/* Mobile Plans Grid */
.mobile-plans-grid {
    display: grid;
    gap: 1rem;
}

.mobile-plan-card {
    background: var(--dark-blue);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
}

.mobile-plan-card.featured {
    border-color: var(--primary-yellow);
    position: relative;
    overflow: hidden;
}

.mobile-plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-yellow);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mobile-plan-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-blue));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-primary);
}

.mobile-plan-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.mobile-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 1.5rem 0;
}

.mobile-plan-price .currency {
    font-size: 1.5rem;
    color: var(--primary-yellow);
}

.mobile-plan-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0.25rem;
}

.mobile-plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.mobile-plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-plan-features li:last-child {
    border-bottom: none;
}

.mobile-plan-features i {
    color: var(--success);
}

/* Mobile Form */
.mobile-form-group {
    margin-bottom: 1.25rem;
}

.mobile-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.mobile-form-input,
.mobile-form-textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--dark-blue);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.mobile-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.mobile-form-input:focus,
.mobile-form-textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .mobile-preview-container {
        padding: 0 var(--spacing-sm);
    }
    
    .mobile-device-frame {
        max-width: 100%;
        border-radius: 0;
        padding: 0;
    }
    
    .device-screen {
        border-radius: 0;
        height: 100vh;
    }
    
    .device-notch {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-bottom-nav {
        padding: 0.5rem 0;
    }
    
    .mobile-nav-item {
        padding: 0.5rem 0.5rem;
    }
    
    .mobile-nav-item span {
        display: none;
    }
}
