/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00a86b;
    --secondary-color: #0066cc;
    --accent-color: #ff6b35;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-bg: #1a1f36;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e0e6ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: var(--dark-bg);
    color: white;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-header h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.close-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item i {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 20px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
}

/* ===== Main Content ===== */
.main-content {
    margin-left: 240px;
    min-height: 100vh;
    padding: 30px;
    transition: var(--transition);
}

.mobile-header {
    display: none;
    background: var(--card-bg);
    padding: 15px 20px;
    margin: -30px -30px 30px -30px;
    box-shadow: var(--shadow);
    align-items: center;
    gap: 15px;
}

/* ===== Offline Purchase Banner ===== */
.offline-purchase-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    position: relative;
    overflow: hidden;
}

.offline-purchase-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.offline-banner-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

.offline-banner-content {
    flex: 1;
}

.offline-banner-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offline-banner-title i {
    color: #ffd700;
}

.offline-banner-text {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.paybill-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.offline-format {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #ffd700;
}

.format-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.format-code {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

.format-example {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.9;
}

.offline-note {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 0;
}

.offline-note i {
    color: #ffd700;
}

.offline-banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.offline-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.offline-purchase-banner.hidden {
    display: none;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

/* ===== Pages ===== */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.back-btn {
    background: var(--dark-bg);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #2c3e50;
}

/* ===== Grid Layouts ===== */
.categories-grid,
.plans-grid,
.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Cards ===== */
.category-card,
.plan-card,
.network-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.category-card:hover,
.plan-card:hover,
.network-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.card-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 50px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-view {
    background: var(--success-color);
    color: white;
}

.btn-view:hover {
    background: #218838;
    transform: scale(1.05);
}

/* ===== Plan Cards ===== */
.plan-card {
    display: flex;
    flex-direction: column;
}

.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.plan-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.plan-category {
    display: inline-block;
    background: var(--light-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.plan-provider {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.plan-provider i {
    color: var(--success-color);
}

.access-code {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 8px;
    font-style: italic;
    font-weight: 400;
}

.plan-pricing {
    margin: 15px 0;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.btn-buy {
    background: var(--success-color);
    color: white;
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.btn-buy:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ===== Network Cards ===== */
.network-card {
    text-align: center;
}

.network-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.network-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
}

.modal-header h2 .highlight-green {
    color: var(--primary-color);
}

.modal-header h2 .highlight-blue {
    color: var(--secondary-color);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input.valid {
    border-color: #00a86b;
    background: rgba(0, 168, 107, 0.05);
}

.form-group input.invalid {
    border-color: #f5576c;
    background: rgba(245, 87, 108, 0.05);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
}

.validation-message {
    display: none;
    margin-top: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    align-items: center;
    gap: 8px;
}

.validation-message.show {
    display: flex;
}

.validation-message.success {
    background: rgba(0, 168, 107, 0.1);
    color: #00a86b;
    border: 1px solid rgba(0, 168, 107, 0.3);
}

.validation-message.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #f57c00;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.validation-message.error {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.3);
}

.validation-message i {
    font-size: 1.1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    color: var(--secondary-color);
    font-weight: 500;
}

.referral-code {
    margin: 25px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: center;
    color: var(--text-light);
}

.referral-code strong {
    color: var(--secondary-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-cancel {
    background: var(--danger-color);
    color: white;
    flex: 1;
}

.btn-cancel:hover {
    background: #c82333;
}

.btn-purchase {
    background: var(--success-color);
    color: white;
    flex: 1;
}

.btn-purchase:hover {
    background: #218838;
}

/* ===== Overlay ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--dark-bg);
    color: white;
    margin-left: 240px;
    margin-top: 40px;
    transition: var(--transition);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 35px 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 0.85rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 18px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 6px 10px;
    border-radius: 6px;
}

.social-link:hover {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* Social media specific colors on hover */
.social-link:hover .fa-facebook {
    color: #1877f2;
}

.social-link:hover .fa-twitter {
    color: #1da1f2;
}

.social-link:hover .fa-instagram {
    color: #e4405f;
}

.social-link:hover .fa-whatsapp {
    color: #25d366;
}

.social-link:hover .fa-telegram {
    color: #0088cc;
}

.business-hours {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.business-hours p {
    margin-bottom: 6px;
    line-height: 1.4;
}

.business-hours strong {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.footer-credits {
    font-size: 0.75rem;
    margin-top: 3px;
}

.footer-credits strong {
    color: var(--primary-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .close-btn {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-header {
        display: flex;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
        margin-left: 0;
    }
    
    .main-footer {
        margin-left: 0;
        margin-top: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 20px 15px;
    }
    
    .offline-purchase-banner {
        grid-template-columns: 1fr;
        padding: 18px 20px;
        gap: 15px;
    }
    
    .offline-banner-icon {
        font-size: 1.5rem;
    }
    
    .offline-banner-close {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .offline-format {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .format-code {
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .categories-grid,
    .plans-grid,
    .networks-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== PWA-SPECIFIC STYLES ===== */

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    z-index: 10000;
    max-width: 500px;
    width: calc(100% - 40px);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.install-icon {
    font-size: 2rem;
    color: #ffd700;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.install-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 3px 0;
}

.install-text p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.install-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-install {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-install:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-close-banner {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff6b35;
    color: white;
    padding: 12px 20px;
    text-align: center;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offline-indicator i {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Update Notification */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00a86b, #00c97d);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 168, 107, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.update-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.update-content i {
    font-size: 1.3rem;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.update-content button {
    background: white;
    color: #00a86b;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.update-content button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* PWA-specific adjustments for standalone mode */
@media all and (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-header {
        padding-top: calc(15px + env(safe-area-inset-top));
    }
    
    .pwa-install-banner {
        display: none !important;
    }
}

/* iOS-specific PWA adjustments */
@supports (-webkit-touch-callout: none) {
    @media all and (display-mode: standalone) {
        .mobile-header {
            padding-top: calc(15px + 44px); /* iOS status bar */
        }
    }
}

/* Responsive PWA Elements */
@media (max-width: 768px) {
    .pwa-install-banner {
        bottom: 10px;
        width: calc(100% - 20px);
    }
    
    .install-banner-content {
        flex-wrap: wrap;
    }
    
    .install-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
    
    .update-notification {
        top: 10px;
        right: 10px;
        left: 10px;
    }
}

/* Splash screen support for older browsers */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00a86b 0%, #007854 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    color: white;
}

.splash-screen.hidden {
    display: none;
}

.splash-logo {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.splash-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.splash-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 30px;
}
