/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --success-color: #2ECC71;
    --error-color: #E74C3C;
    --text-dark: #2C3E50;
    --text-light: #ECF0F1;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #DEE2E6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    height: 100px;
    vertical-align: middle;
    border-radius: 12px;
}

.customer-logo {
    margin-left: auto;
    margin-right: 20px;
}

.customer-logo-img {
    height: 50px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.unread-badge {
    display: inline-block;
    background: #FF6B35;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features */
.features {
    padding: 3rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #E55A2B;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #003D6E;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
    min-height: 44px;
    font-size: 16px;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.dashboard-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscription-info p {
    margin-bottom: 0.5rem;
}

.notifications-list {
    list-style: none;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.notification-item.unread {
    background-color: #FFF9E6;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-content p {
    margin-bottom: 0.25rem;
}

.notification-content small {
    color: #6C757D;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pricing-card.active {
    border-color: var(--primary-color);
}

.price {
    margin: 1.5rem 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: #6C757D;
}

.pricing-card .features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-card .features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.service-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.cart-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#cart-items {
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

#cart-total {
    padding: 1rem;
    text-align: right;
    font-size: 1.2rem;
}

/* Social Media */
.social-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.platform-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-secondary {
    background-color: #6C757D;
    color: white;
}

/* Video Upload */
.upload-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.upload-form-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.upload-info {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.video-preview {
    margin: 1.5rem 0;
}

.video-preview video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.video-editor {
    margin-top: 1rem;
}

.trim-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trim-controls label {
    display: flex;
    flex-direction: column;
}

.upload-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 4px;
    animation: progress 2s infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Launch Ad */
.launch-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
}

.map-preview {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Messages */
.messaging-container {
    max-width: 800px;
    margin: 0 auto;
}

.messages-list {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    max-height: 500px;
    overflow-y: auto;
}

.message-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}

.message-item.user {
    background: #E3F2FD;
    margin-left: 20%;
}

.message-item.admin {
    background: #F5F5F5;
    margin-right: 20%;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-time {
    color: #6C757D;
    font-size: 0.875rem;
}

.message-compose {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    margin-bottom: 1.5rem;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #6C757D;
}

.close:hover {
    color: var(--text-dark);
}

/* Info Box */
.info-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style-position: inside;
}

.info-box ul li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

.empty-cart, .no-messages {
    text-align: center;
    color: #6C757D;
    padding: 2rem;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive - Tablet and Below (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #2d1b4e 0%, #1a0f2e 100%);
        flex-direction: column;
        padding: 80px 20px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 10px;
        color: white;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 107, 53, 0.2);
        padding-left: 20px;
        color: #FF6B35;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .feature-grid,
    .dashboard-grid,
    .pricing-grid,
    .services-grid,
    .social-platforms {
        grid-template-columns: 1fr;
    }

    .upload-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .message-item.user,
    .message-item.admin {
        margin: 0 0 1rem 0;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
        min-height: 44px;
        font-size: 16px;
    }
    
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        min-height: 44px;
        font-size: 16px;
        padding: 10px 12px;
    }
    
    textarea {
        min-height: 100px;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Video Editing Enhancements */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid transparent;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.segments-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.segments-list {
    margin-top: 15px;
}

.segment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 2px solid;
    background-color: var(--bg-white);
}

.segment-item.recommended {
    border-color: var(--success-color);
    background-color: #f0fff4;
}

.segment-item.long {
    border-color: #ffa500;
    background-color: #fff9f0;
}

.segment-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.segment-info span {
    font-size: 0.9rem;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: #ffa500;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.text-muted {
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .segment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Responsive - Small Phones (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .hero h1,
    .page-wrapper h1,
    h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle,
    .page-wrapper > .container > p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .pricing-card,
    .dashboard-card,
    .service-card,
    .platform-card {
        padding: 20px 15px;
    }
    
    .modal-content {
        width: 100%;
        margin: 10px auto;
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}
