* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* Left Sidebar */
.sidebar {
    width: 200px;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px;
}

.logo {
    font-size: 16px;
    font-weight: 600;
}

.blog-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.blog-link:hover {
    color: #000;
}

.search-box {
    position: relative;
    padding: 0 20px;
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: #999;
}

.search-icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.nav-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    padding: 0 20px 10px;
}

.nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-item:hover {
    background: #f9f9f9;
}

.nav-item .count {
    color: #999;
    font-size: 13px;
}

.sidebar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 13px;
    color: #666;
}

.footer-icon {
    cursor: pointer;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 40px;
    position: relative;
}

/* Video Container */
.video-container {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform-origin: center center;
}

.video-container.shrink {
    transform: scale(0.9);
    opacity: 0.3;
}

/* Mobile Category Selector */
.mobile-category-selector {
    display: none; /* Hidden by default, shown only on mobile */
}

/* Video Info */
.video-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
    color: #999;
}

.info-value {
    color: #999;
}

.info-separator {
    color: #ccc;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    color: #999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-btn:hover {
    transform: scale(1.1);
}

.like-btn.liked {
    color: #ff4757;
}

.like-btn.liked svg {
    fill: #ff4757;
}

/* Video slide animations */
.video-container.slide-out-up {
    animation: slideOutUp 0.23s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.video-container.slide-out-down {
    animation: slideOutDown 0.23s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.video-container.slide-in-from-bottom {
    animation: slideInFromBottom 0.23s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.video-container.slide-in-from-top {
    animation: slideInFromTop 0.23s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutUp {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-120%) scale(0.8);
        opacity: 0;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(120%) scale(0.8);
        opacity: 0;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(120%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-120%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.video-container video {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1;
}

/* Image Viewer */
.image-viewer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 100%;
    max-height: 80vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.image-viewer.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.image-viewer.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    transform: none;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
}

.image-viewer.fullscreen img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 0;
}

.image-viewer img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Image slide animations */
.image-viewer img.slide-out-left {
    animation: imageSlideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.image-viewer img.slide-out-right {
    animation: imageSlideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.image-viewer img.slide-in-from-right {
    animation: imageSlideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.image-viewer img.slide-in-from-left {
    animation: imageSlideInFromLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes imageSlideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes imageSlideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes imageSlideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes imageSlideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.close-viewer {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s;
    box-shadow: none;
}

.close-viewer:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    background: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.phone-mockup {
    perspective: 1000px;
}

.phone-frame {
    width: 375px;
    height: 812px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1c1c1e;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.status-icons {
    display: flex;
    gap: 4px;
}

.app-content {
    padding: 20px;
}

.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.back-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.reminder-card {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.reminder-card h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
}

.reminder-time {
    color: #999;
    font-size: 13px;
}

.datetime-picker {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.datetime-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #007AFF;
    font-size: 14px;
    margin-bottom: 15px;
}

.close-btn {
    background: none;
    border: none;
    color: #007AFF;
    font-size: 16px;
    cursor: pointer;
}

.time-slots {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.time-slot {
    flex: 1;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.time-options {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.time-opt {
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.confirm-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007AFF;
    border: none;
    color: #fff;
    font-size: 20px;
    margin: 15px auto 0;
    display: block;
    cursor: pointer;
}

/* Keyboard */
.keyboard {
    background: #2c2c2e;
    border-radius: 12px 12px 0 0;
    padding: 10px 5px;
}

.keyboard-row {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    justify-content: center;
}

.key {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    padding: 10px;
    min-width: 28px;
    cursor: pointer;
    transition: background 0.1s;
}

.key:active {
    background: rgba(255,255,255,0.4);
}

.key.shift,
.key.backspace {
    min-width: 40px;
}

.key.wide {
    min-width: 60px;
}

.key.space {
    flex: 1;
}

.key.return {
    min-width: 70px;
}

.keyboard-bottom {
    display: flex;
    justify-content: space-around;
    margin-top: 8px;
}

/* Right Sidebar */
.right-sidebar {
    width: 320px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.clip-info {
    margin-bottom: 30px;
}

.clip-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.action-btn:hover {
    background: #e5e5e5;
}

.clip-details {
    margin-bottom: 20px;
}

.clip-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.clip-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.tags {
    margin-bottom: 20px;
}

.tags h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
}

.save-btn {
    width: 100%;
    padding: 12px;
    background: #007AFF;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.save-btn:hover {
    background: #0051D5;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    opacity: 1;
    border-color: #007AFF;
}

.thumbnail img {
    width: 100%;
    display: block;
}

/* Model Preview Section */
.model-preview-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 20px;
    padding: 0;
    flex-shrink: 0;
}

.model-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    flex: 1;
    max-height: calc(100vh - 80px);
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.model-thumbnails::-webkit-scrollbar {
    display: none;
}

.model-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    flex-shrink: 0;
    filter: grayscale(0.2);
}

.model-thumbnail:hover {
    opacity: 0.6;
    transform: scale(1.02);
    filter: grayscale(0);
}

.model-thumbnail.active {
    opacity: 1;
    transform: scale(1.08);
    filter: grayscale(0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.model-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.model-thumbnail.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
    .right-sidebar {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 180px;
    }

    .phone-frame {
        transform: scale(0.85);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }

    .sidebar,
    .right-sidebar {
        display: none;
    }

    .main-content {
        padding: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .phone-frame {
        transform: scale(0.9);
    }

    .image-viewer {
        max-width: 90% !important;
        max-height: 80vh !important;
    }

    .image-viewer img {
        max-height: 80vh !important;
        max-width: 90vw !important;
    }

    .nav-btn {
        display: none !important;
    }

    /* Mobile Category Selector - Fixed at top */
    .mobile-category-selector {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 20px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        height: 50px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        z-index: 100;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .mobile-category-selector::-webkit-scrollbar {
        display: none;
    }

    .mobile-category-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #999;
        white-space: nowrap;
        cursor: pointer;
        transition: color 0.2s;
        flex-shrink: 0;
    }

    .mobile-category-item:active {
        opacity: 0.6;
    }

    .mobile-category-item.active {
        color: #333;
    }

    .mobile-count {
        font-size: 13px;
        color: #ccc;
    }

    .mobile-category-item.active .mobile-count {
        color: #999;
    }

    #mobileCategoryList {
        display: flex;
        gap: 15px;
    }

    /* Mobile category header (parent categories) */
    .mobile-category-header {
        position: relative;
    }

    /* Mobile subcategory dropdown */
    .mobile-subcategory-dropdown {
        position: fixed;
        top: 50px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.25s ease;
        opacity: 0;
        z-index: 99;
        min-width: 120px;
        border: 1px solid #e5e5e5;
    }

    .mobile-subcategory-dropdown.active {
        max-height: 300px;
        opacity: 1;
        overflow-y: auto;
    }

    .mobile-subcategory-dropdown::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-subcategory-dropdown::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }

    /* Mobile subcategory items */
    .mobile-subcategory-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        font-size: 13px;
        color: #666;
        border-bottom: 1px solid #f5f5f5;
        cursor: pointer;
        transition: background 0.2s;
        white-space: nowrap;
    }

    .mobile-subcategory-item:last-child {
        border-bottom: none;
    }

    .mobile-subcategory-item:active {
        background: #f9f9f9;
    }

    .mobile-subcategory-item.active {
        color: #333;
        background: #f5f5f5;
        font-weight: 500;
    }

    .mobile-subcategory-item .mobile-count {
        margin-left: 12px;
    }

    /* Video container - adjust for fixed header */
    .video-container {
        margin-top: 50px;
    }

    /* Video info - adjust positioning with bottom padding to avoid browser toolbar */
    .video-info {
        position: relative;
        margin-top: 15px;
        margin-bottom: 80px;
        /* Add safe area support for iOS devices */
        margin-bottom: calc(80px + env(safe-area-inset-bottom));
        padding: 0 20px;
    }

    /* Additional safe area support for the entire page */
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Send Button - Similar to Like Button */
.send-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    color: #999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: scale(1.1);
    color: #007AFF;
}

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

/* Email Modal */
.email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.email-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.email-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.email-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.email-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.email-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.email-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.email-modal-body {
    padding: 24px;
}

.email-info {
    margin-bottom: 20px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.email-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
}

.email-info p:last-child {
    margin-bottom: 0;
}

.email-info strong {
    color: #333;
}

#emailProductInfo {
    color: #007AFF;
    font-weight: 500;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-form label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: -8px;
}

.email-form input,
.email-form textarea {
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.email-form input:focus,
.email-form textarea:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.email-form textarea {
    resize: vertical;
    min-height: 80px;
}

.email-modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.email-cancel-btn,
.email-send-btn {
    flex: 1;
    padding: 12px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.email-cancel-btn {
    background: #fff;
    color: #666;
}

.email-cancel-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #999;
}

.email-send-btn {
    background: #000;
    color: #fff;
    border-color: #000;
}

.email-send-btn:hover {
    background: #333;
    border-color: #333;
}

.email-send-btn:active {
    transform: scale(0.98);
}

.email-send-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    margin: 0 0 20px 0;
    padding: 0;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #333;
    background: #f9f9f9;
}

.tab-btn.active {
    color: #000;
    border-bottom-color: #333;
    background: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Manage Samples Styles */
.manage-container {
    padding: 0;
}

.manage-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.manage-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.manage-btn:hover {
    background: #f5f5f5;
    border-color: #999;
    transform: translateY(-1px);
}

.manage-btn:active {
    transform: translateY(0);
}

.manage-btn svg {
    color: #333;
}

.sample-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.sample-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sample-table thead {
    background: #fafafa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sample-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid #e5e5e5;
}

.sample-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.sample-table tbody tr:hover {
    background: #f9f9f9;
}

.sample-row-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 5px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    background: #fff;
}

.action-btn-rename {
    color: #333;
    border-color: #e5e5e5;
}

.action-btn-rename:hover {
    background: #f5f5f5;
    border-color: #999;
}

.action-btn-delete {
    color: #666;
    border-color: #e5e5e5;
}

.action-btn-delete:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Editable cell */
.editable-cell {
    position: relative;
    cursor: pointer;
}

.editable-cell:hover {
    background: #e9ecef;
}

.editable-cell input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #0066cc;
    border-radius: 3px;
    font-size: 13px;
    outline: none;
}

.sample-product-id {
    font-weight: 600;
    color: #333;
}

.sample-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    display: block;
}

.sample-thumbnail-cell {
    padding: 8px !important;
}

.email-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.email-loading p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Inline Animation Hints */
.hint-scroll-icon,
.hint-swipe-icon,
.hint-tap-video,
.hint-image-nav {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 999;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hint-scroll-icon.visible,
.hint-swipe-icon.visible,
.hint-tap-video.visible,
.hint-image-nav.visible {
    opacity: 1;
}

/* Desktop scroll hint */
.hint-scroll-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hint-scroll-icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hint-scroll-wheel {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* Mobile swipe hint */
.hint-swipe-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hint-swipe-icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hint-swipe-finger {
    animation: swipeBounce 2s ease-in-out infinite;
}

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

/* Tap video hint */
.hint-tap-video {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hint-tap-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: tapPulse 2s ease-out infinite;
}

.hint-tap-circle:nth-child(2) {
    animation-delay: 0.6s;
}

.hint-tap-circle:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes tapPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Image navigation hints */
.hint-image-nav {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: row;
    gap: 24px;
}

.hint-arrow {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hint-arrow-left {
    animation: arrowBounceLeft 1.5s ease-in-out infinite;
}

.hint-arrow-right {
    animation: arrowBounceRight 1.5s ease-in-out infinite;
}

@keyframes arrowBounceLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
}

@keyframes arrowBounceRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

/* Hint label */
.hint-label {
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Hide scroll hint on mobile, show swipe hint */
@media (max-width: 768px) {
    .hint-scroll-icon {
        display: none;
    }

    .hint-label {
        font-size: 12px;
    }
}

/* Hide swipe hint on desktop */
@media (min-width: 769px) {
    .hint-swipe-icon {
        display: none;
    }
}

/* ============================================
   搜索功能样式
   ============================================ */

/* 搜索结果信息条 */
.search-result-info {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.3s ease-out;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.search-result-info.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-info span {
    flex: 1;
}

.search-result-info strong {
    font-weight: 700;
    font-size: 16px;
}

.clear-search-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.clear-search-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
    color: #333;
}

.clear-search-btn:active {
    transform: scale(0.95);
}

/* 关键词高亮 */
mark {
    background-color: #ffeb3b;
    color: #000;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

/* 搜索图标可点击提示 */
.search-icon svg {
    transition: all 0.2s;
}

.search-icon:hover svg {
    transform: scale(1.1);
    opacity: 0.7;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-result-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .clear-search-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   水印样式 - Dynamic Watermark Overlay
   ============================================ */

/* 通用水印容器 */
[data-watermark] {
    position: relative;
}

/* 水印文字层 */
[data-watermark]::after {
    content: attr(data-watermark);
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* 轻微阴影 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);

    pointer-events: none;
    z-index: 10;
    line-height: 1;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 视频容器水印 */
.video-container[data-watermark]::after {
    font-size: 13px;
    padding: 3px 7px;
}

/* 图片包装器水印 */
.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    display: block;
}

.image-wrapper[data-watermark]::after {
    font-size: 14px;
    padding: 4px 8px;
}

/* 缩略图水印 */
.model-thumbnail[data-watermark]::after {
    font-size: 9px;
    padding: 2px 4px;
    top: 6px;
    left: 6px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    [data-watermark]::after {
        font-size: 11px;
        padding: 2px 5px;
        top: 8px;
        left: 8px;
    }
}

/* Autoplay Indicator */
.autoplay-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.autoplay-indicator.active {
    opacity: 1;
}

/* Blinking green dot before text */
.autoplay-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: blink-dot 1.5s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .autoplay-indicator {
        top: 60px;  /* 避免与顶部分类选择器（高度50px）重叠 */
        font-size: 12px;
        padding: 6px 16px;
    }
}
