:root {
    --primary-orange: #FF6B00;
    --secondary-yellow: #FFB800;
    --dark-bg: #000000;
    --light-bg: #FFFFFF;
    --dark-text: #FFFFFF;
    --light-text: #000000;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-light: rgba(0, 0, 0, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    overflow-x: hidden;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.1);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background-color: var(--light-bg);
    color: var(--light-text);
}

/* Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1000;
    transition: all 0.3s;
}

body.light-mode .bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--border-color-light);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

body.light-mode .nav-item {
    color: rgba(0, 0, 0, 0.5);
}

.nav-item.active {
    color: var(--primary-orange);
    transform: scale(1.1);
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.upload-btn {
    width: 56px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-yellow));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.2);
    border: none;
    transition: transform 0.2s;
    cursor: pointer;
}

.upload-btn:active {
    transform: scale(0.9);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-bg);
    font-weight: 900;
    color: white;
}

body.light-mode .notification-badge {
    border: 2px solid var(--light-bg);
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1000;
    transition: all 0.3s;
}

body.light-mode .top-bar {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
}

.logo {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    color: var(--primary-orange);
}

body.light-mode .logo {
    background: var(--primary-orange);
    color: white;
}

.top-actions {
    display: flex;
    gap: 16px;
}

.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #FF4747;
    border-radius: 50%;
    border: 2px solid var(--dark-bg);
}

body.light-mode .notification-dot {
    border: 2px solid var(--light-bg);
}

/* Content Area */
.content {
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Hide navigation on certain pages */
.hide-nav .bottom-nav,
.hide-nav .top-bar {
    display: none !important;
}

/* Pages */
.page {
    display: none;
    width: 100%;
    height: 100%;
}

.page.active {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

.animate-slide-up {
    animation: slideUp 0.4s ease;
}

/* Utility Classes */
.btn-primary {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: bold;
    width: 100%;
    transition: opacity 0.3s;
    cursor: pointer;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary:active {
    opacity: 0.8;
}

.input-field {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 16px;
    padding-left: 48px;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

body.light-mode .input-field {
    background: var(--card-bg-light);
    border-color: var(--border-color-light);
    color: var(--light-text);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

body.light-mode .input-icon {
    color: rgba(0, 0, 0, 0.5);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

body.light-mode .card {
    background: var(--card-bg-light);
    border-color: var(--border-color-light);
}

/* Scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Settings Menu */
.settings-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    min-width: 200px;
    z-index: 1002;
    display: none;
}

body.light-mode .settings-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border-color-light);
}

.settings-menu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    background: none;
    border: none;
    color: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.settings-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

body.light-mode .settings-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-orange);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Video Styles */
.video-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Safe area for iPhone */
@supports (padding: max(0px)) {
    body {
        padding-left: min(0vmin, env(safe-area-inset-left));
        padding-right: min(0vmin, env(safe-area-inset-right));
    }
}

/* Links */
a {
    color: var(--primary-orange);
    text-decoration: none;
}

/* Buttons */
button {
    font-family: inherit;
}

/* Input focus styles */
input:focus, button:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 500px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .country-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-image {
        height: 150px;
    }
}