/* iPhone Container Styles */
.swn-tiktok-container {
    max-width: 375px;
    width: 100%;
    height: 812px;
    margin: 0 auto;
    position: relative;
    background: #000;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* iPhone Notch */
.swn-iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 209px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 1000;
}

/* Top Menu Bar */
.swn-top-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 999;
    color: #fff;
}

.swn-top-menu-left {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.swn-top-menu-right {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.swn-signal-icon, .swn-wifi-icon, .swn-battery-icon {
    width: 16px;
    height: 12px;
}

/* Language Toggle */
.swn-language-toggle {
    position: absolute;
    top: 50px;
    right: 15px;
    z-index: 1002;
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 5px;
}

.swn-lang-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.swn-lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

/* Hamburger Menu Button - ALWAYS VISIBLE */
.swn-hamburger-btn {
    position: fixed !important;
    top: 50px;
    left: 15px;
    z-index: 9999 !important;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 3px solid #000 !important;
    border-radius: 10px;
    cursor: pointer;
    display: block !important;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.swn-hamburger-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.05);
}

.swn-hamburger-btn span {
    display: block;
    width: 100%;
    height: 4px;
    background: #000;
    border-radius: 2px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.swn-hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.swn-hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.swn-hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Category Dropdown Menu */
.swn-category-dropdown {
    position: fixed !important;
    top: 110px;
    left: 15px;
    z-index: 9998 !important;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #000;
    border-radius: 12px;
    padding: 0;
    min-width: 220px;
    max-width: 280px;
    display: none;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.swn-category-dropdown.active {
    display: flex !important;
}

/* Menu Heading */
.swn-menu-heading {
    background: #003366;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 20px;
    text-align: center;
    border-bottom: 2px solid #002244;
    cursor: default;
    user-select: none;
}

.swn-category-btn {
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.swn-category-btn:last-child {
    border-bottom: none;
}

.swn-category-btn:hover {
    background: rgba(0, 51, 102, 0.1);
    padding-left: 25px;
}

.swn-category-btn.active {
    background: rgba(0, 51, 102, 0.15);
    color: #003366;
    font-weight: 700;
    border-left: 4px solid #003366;
    padding-left: 16px;
}

/* Video Player Container */
.swn-video-player {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 44px);
    overflow: hidden;
}

.swn-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.swn-video-wrapper::-webkit-scrollbar {
    display: none;
}

/* Individual Video Slide */
.swn-video-slide {
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.swn-video-slide video {
    width: 95%;
    height: 95%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Video Overlay Info */
.swn-video-info {
    position: absolute;
    bottom: 100px;
    left: 15px;
    right: 80px;
    color: #fff;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding-top: 10px;
}

.swn-video-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.swn-video-description {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Play Button Overlay */
.swn-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 5;
    transition: opacity 0.3s ease;
}

.swn-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #000;
    font-size: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    padding-left: 8px;
}

.swn-play-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.swn-play-btn:active {
    transform: scale(0.95);
}

/* More Solutions Indicator */
.swn-more-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 25px;
    animation: bounce 2s infinite;
}

.swn-more-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.swn-more-arrow {
    font-size: 24px;
    line-height: 1;
    animation: arrowBounce 1.5s infinite;
}

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

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Side Action Buttons */
.swn-video-actions {
    position: absolute;
    right: 15px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.swn-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.swn-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* CRM Form Modal */
.swn-crm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.swn-crm-modal.active {
    display: flex;
}

.swn-crm-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 340px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.swn-crm-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swn-crm-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.swn-crm-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.swn-form-group {
    display: flex;
    flex-direction: column;
}

.swn-form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.swn-form-input,
.swn-form-select,
.swn-form-textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.swn-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.swn-form-submit {
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swn-form-submit:hover {
    background: #333;
}

/* Loading Spinner */
.swn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    z-index: 100;
}

/* Responsive */
@media (max-width: 400px) {
    .swn-tiktok-container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .swn-iphone-notch {
        display: none;
    }
    
    .swn-video-player {
        height: calc(100vh - 44px);
    }
    
    .swn-hamburger-btn {
        position: fixed !important;
    }
    
    .swn-category-dropdown {
        position: fixed !important;
    }
}
