/* TikTok Video Downloader Styles */

/* Preview & Save Badge - Expectation Setting */
.preview-save-badge-container {
    text-align: center;
    margin: 15px 0 10px 0;
}

.preview-save-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.preview-save-badge .badge-icon {
    flex-shrink: 0;
}

.preview-save-badge .badge-text {
    white-space: nowrap;
}

.preview-save-description {
    color: #6b7280;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 0;
    font-style: italic;
}

/* Promo Section */
.tiktok-promo-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin-top: 40px;
    padding: 60px 20px;
}

.tiktok-promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.tiktok-promo-highlight {
    color: #4338ca;
    margin-left: 4px;
}

.tiktok-promo-description {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 30px;
    line-height: 1.6;
}

.tiktok-promo-features {
    margin-top: 30px;
}

.tiktok-promo-feature-item {
    display: inline-block;
    margin-right: 30px;
}

.tiktok-promo-feature-item-inline {
    display: inline-block;
}

.tiktok-profile-images {
    display: flex;
    margin-bottom: 10px;
}

.tiktok-profile-images img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -10px;
}

.tiktok-stars {
    color: #fbbf24;
    font-size: 1.5rem;
}

.tiktok-loved-text {
    color: #374151;
    font-weight: 600;
    margin-left: 8px;
    font-size: 1rem;
}

.tiktok-features-wrapper {
    margin-top: 40px;
}

.tiktok-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.tiktok-feature-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tiktok-feature-icon {
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tiktok-feature-icon i {
    font-size: 24px;
}

.tiktok-feature-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.tiktok-feature-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tiktok-cta-wrapper {
    padding: 40px 20px;
}

.tiktok-cta-button-container {
    text-align: center;
}

.tiktok-cta-button {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.tiktok-cta-trial {
    text-align: center;
}

.tiktok-cta-trial .text {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Download Results */
.tiktok-result-container {
    padding: 20px;
}

.tiktok-result-header {
    text-align: center;
    margin-bottom: 20px;
}

.tiktok-result-header h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.tiktok-result-header p {
    color: #4338ca;
    margin-bottom: 0;
    font-size: 14px;
}

.tiktok-result-header .video-id-text {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.tiktok-result-header a {
    color: #4338ca;
    text-decoration: none;
    cursor: pointer;
}

.tiktok-result-header a:hover {
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}

.tiktok-result-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: center;
}

.tiktok-video-preview-container {
    flex: 0 0 auto;
    max-width: 700px;
    min-width: 400px;
}

.tiktok-video-preview {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tiktok-download-buttons-container {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tiktok-download-option {
    text-align: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
}

.tiktok-download-option-title {
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}

.tiktok-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4338ca 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.tiktok-download-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Error State */
.tiktok-error-container {
    text-align: center;
    padding: 20px;
}

.tiktok-error-container h3 {
    color: #f44336;
    margin-bottom: 15px;
}

.tiktok-error-container p {
    color: #666;
}

/* Loading State */
.tiktok-loading-container {
    text-align: center;
    padding: 40px 20px;
}

.tiktok-processing-text {
    color: #4338ca;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Timer Container */
.tiktok-timer-container {
    font-size: 20px;
    margin: 20px;
    display: none;
}

.tiktok-timer-content {
    font-size: 20px;
    margin: 20px;
}

/* Results Container */
.tiktok-results {
    margin-top: 20px;
}

/* Verified Icon (for testimonials) */
.verified-icon.tiktok {
    flex-shrink: 0;
}

/* SEO Content Section */
.tiktok-seo-content {
    background: #f9fafb;
    padding: 60px 20px;
}

.seo-content-container {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content-container h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #333;
}

.seo-content-container h2:first-child {
    margin-top: 0;
}

.seo-content-container h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #333;
}

.seo-content-container p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-content-container ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.seo-content-container li {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.seo-h2 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.seo-h2:first-child {
    margin-top: 0;
}

.seo-paragraph {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tiktok-promo-title {
        font-size: 2rem;
    }

    .tiktok-promo-description {
        font-size: 1rem;
    }

    .tiktok-features-grid {
        grid-template-columns: 1fr;
    }

    .tiktok-result-layout {
        flex-direction: column;
    }

    .tiktok-video-preview-container,
    .tiktok-download-buttons-container {
        max-width: 100%;
        min-width: 100%;
    }

    .tiktok-promo-feature-item {
        margin-right: 15px;
    }

    .tiktok-profile-images img {
        width: 40px;
        height: 40px;
    }

    .seo-h2 {
        font-size: 20px;
        margin-top: 30px;
    }

    .seo-paragraph {
        font-size: 15px;
    }

    .seo-content-container h2 {
        font-size: 18px;
    }

    .seo-content-container h3 {
        font-size: 16px;
    }

    .seo-content-container p,
    .seo-content-container li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .tiktok-promo-section {
        padding: 40px 15px;
    }

    .tiktok-promo-title {
        font-size: 1.75rem;
    }

    .tiktok-download-option {
        padding: 15px;
    }

    .tiktok-download-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .tiktok-cta-wrapper {
        padding: 30px 15px;
    }
}

.run-website-speed-test {
    min-height: 68px;
    min-width: 150px;
}

/* Use-case selection modal */
#usecase-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

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

.usecase-modal-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.usecase-modal-box h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

#usecase-form label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* Special layout for "Other" option with text input */
#usecase-form label:has(#other-text) {
    flex-wrap: wrap;
    align-items: flex-start;
}

#usecase-form label:hover {
    border-color: #6366f1;
    background: #f9fafb;
}

#usecase-form input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

#usecase-form input[type="radio"]:checked {
    accent-color: #6366f1;
}

#usecase-form label:has(input[type="radio"]:checked) {
    border-color: #6366f1;
    background: #f0f1ff;
}

#usecase-form input[type="radio"]:checked + span {
    font-weight: 600;
    color: #6366f1;
}

#usecase-form label span {
    flex: 1;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
}

#other-text {
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-left: 30px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

#other-text:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#other-text:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

#usecase-form button[type="submit"] {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

#usecase-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#usecase-form button[type="submit"]:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#usecase-form button[type="submit"]:not(:disabled):active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .usecase-modal-box {
        padding: 20px;
        max-width: 95%;
    }

    .usecase-modal-box h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    #usecase-form label {
        padding: 10px;
        margin-bottom: 10px;
    }

    #usecase-form button[type="submit"] {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* ===================================================================
   RATE LIMIT ERROR WITH CTA BUTTON
   =================================================================== */

.rate-limit-error {
    text-align: center;
    padding: 30px 20px;
}

.rate-limit-error p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #dc2626;
    font-weight: 500;
}

.rate-limit-cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4338ca 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

.rate-limit-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 56, 202, 0.4);
    color: white !important;
}

.rate-limit-cta-button:active {
    transform: translateY(0);
}

/* ===================================================================
   RATE LIMIT PROMO MODAL - Features & Testimonials
   =================================================================== */

.rate-limit-promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.promo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.promo-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: promoModalSlideIn 0.3s ease-out;
}

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

.promo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 1;
}

.promo-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Timer Section */
.promo-modal-timer-section {
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.promo-timer-label {
    font-size: 13px;
    color: #0369a1;
    font-weight: 500;
    margin-bottom: 4px;
}

.promo-timer-countdown {
    font-size: 36px;
    font-weight: 700;
    color: #0c4a6e;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

/* Header */
.promo-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.promo-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.promo-modal-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Features Grid */
.promo-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.promo-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.promo-feature-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.promo-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    color: white;
}

.promo-feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.promo-feature-content {
    flex: 1;
    min-width: 0;
}

.promo-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.promo-feature-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Testimonials Section */
.promo-testimonials-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.promo-testimonial-item {
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.promo-testimonial-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.promo-testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.promo-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.promo-testimonial-info {
    flex: 1;
    min-width: 0;
}

.promo-testimonial-stars {
    color: #fbbf24;
    font-size: 14px;
    letter-spacing: -1px;
    margin-bottom: 2px;
}

.promo-author-name-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.promo-author-verified {
    width: 16px;
    height: 16px;
    color: #3b82f6;
}

.promo-testimonial-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
}

.promo-author-role {
    display: none;
}

/* CTA Button */
.promo-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: #6366f1 !important;
    background-image: none !important;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none !important;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.promo-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
}

.promo-cta-button span {
    color: white !important;
}

.promo-cta-button svg {
    stroke: white;
}

/* Tablet responsive */
@media (max-width: 768px) {
    .promo-testimonials-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .promo-testimonial-item {
        padding: 16px;
    }
}

/* Mobile responsive */
@media (max-width: 560px) {
    .promo-modal-content {
        padding: 24px 20px;
        margin: 10px;
        max-height: 85vh;
    }

    .promo-modal-title {
        font-size: 22px;
    }

    .promo-timer-countdown {
        font-size: 28px;
    }

    .promo-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .promo-feature-item {
        padding: 12px;
    }

    .promo-testimonials-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .promo-testimonial-item {
        padding: 14px;
    }

    .promo-testimonial-avatar {
        width: 40px;
        height: 40px;
    }

    .promo-testimonial-text {
        font-size: 13px;
    }

    .promo-cta-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ===================================================================
   SNAPCHAT GALLERY STYLES - Multi-Image/Video Grid Display
   =================================================================== */

/* Override global .services img margin for Snapchat downloader page */
.snapchatvideodownloader .services img {
    margin: 0 !important;
}

/* Gallery Container */
.snapchat-gallery-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.snapchat-gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.snapchat-gallery-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.snapchat-gallery-count {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Grid Layout - Responsive 4→3→2→1 columns */
.snapchat-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 20px;
    margin-bottom: 40px;
}

/* Large desktop - 4 columns */
@media (min-width: 1200px) {
    .snapchat-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Medium desktop - 3 columns */
@media (max-width: 1199px) and (min-width: 992px) {
    .snapchat-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet - 3 columns */
@media (max-width: 991px) and (min-width: 769px) {
    .snapchat-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Gallery Item Card */
.snapchat-gallery-item {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.snapchat-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Wrapper - 4:5 portrait aspect ratio */
.snapchat-item-thumbnail-wrapper {
    position: relative;
    padding-top: 125%; /* 4:5 portrait ratio (5/4 * 100) */
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
}

.snapchat-item-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.snapchat-item-thumbnail-wrapper:hover .snapchat-item-thumbnail {
    transform: scale(1.05);
}

/* Zoom Overlay Icon */
.snapchat-zoom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.snapchat-item-thumbnail-wrapper:hover .snapchat-zoom-overlay {
    opacity: 1;
}

.snapchat-zoom-overlay svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Duration Badge (for videos only) */
.snapchat-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Item Title */
.snapchat-item-title {
    padding: 14px 14px 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Item Actions */
.snapchat-item-actions {
    padding: 0 14px 14px 14px;
}

/* Download Button */
.snapchat-item-download-btn {
    width: 100%;
    padding: 9px 14px;
    background: linear-gradient(135deg, #4338ca 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.snapchat-item-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

.snapchat-item-download-btn:active {
    transform: translateY(0);
}

.snapchat-item-download-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Download Animation Pulse */
@keyframes download-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 56, 202, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(67, 56, 202, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 56, 202, 0);
    }
}

.snapchat-gallery-item.download-initiated {
    animation: download-pulse 0.6s;
}

/* ===================================================================
   MAGNIFIC POPUP LIGHTBOX CUSTOMIZATIONS
   =================================================================== */

/* Image Counter Badge */
.mfp-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1052;
}

/* Title Container */
.mfp-title {
    text-align: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.mfp-title-content {
    font-size: 14px;
    line-height: 1.6;
}

.mfp-title-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.mfp-title-content span {
    color: #d1d5db;
    font-size: 13px;
}

/* Zoom Animation */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
    opacity: 1;
}

.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 0.9;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
    opacity: 0;
}

/* Video Player in Lightbox */
.mfp-iframe-holder .mfp-content {
    max-width: 900px;
}

.mfp-iframe-scaler iframe {
    background: #000;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Small tablet - 2 columns */
@media (max-width: 768px) and (min-width: 481px) {
    .snapchat-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .snapchat-gallery-header h3 {
        font-size: 24px;
    }

    .snapchat-gallery-container {
        padding: 16px;
    }

    .mfp-counter {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Mobile - 1 column */
@media (max-width: 480px) {
    .snapchat-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .snapchat-gallery-header h3 {
        font-size: 20px;
    }

    .snapchat-gallery-count {
        font-size: 13px;
    }

    .snapchat-item-title {
        font-size: 13px;
        min-height: 38px;
        padding: 12px 12px 8px 12px;
    }

    .snapchat-item-actions {
        padding: 0 12px 12px 12px;
    }

    .snapchat-item-download-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .snapchat-zoom-overlay {
        width: 50px;
        height: 50px;
    }

    .snapchat-zoom-overlay svg {
        width: 24px;
        height: 24px;
    }
}

/* Signup Conversion Button */
.signup-conversion-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-top: 10px;
    background: white;
    border: 2px solid #6366f1;
    border-radius: 8px;
    color: #6366f1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    cursor: pointer;
}

.signup-conversion-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.signup-conversion-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .signup-conversion-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Exit Intent Modal */
.exit-intent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.exit-intent-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.exit-intent-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-intent-modal-close:hover {
    color: #111827;
}

.exit-intent-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.exit-intent-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.exit-intent-modal-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.exit-intent-modal-features {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.exit-intent-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.exit-intent-feature:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.exit-intent-feature svg {
    flex-shrink: 0;
    color: #10b981;
}

.exit-intent-feature span {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.exit-intent-modal-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.exit-intent-cta-button {
    display: inline-block;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.exit-intent-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.exit-intent-dismiss {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.exit-intent-dismiss:hover {
    color: #111827;
}

.exit-intent-modal-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.trust-stars {
    color: #fbbf24;
    font-size: 20px;
    letter-spacing: 2px;
}

.exit-intent-modal-trust span {
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .exit-intent-modal-content {
        padding: 32px 24px;
        max-width: 90%;
    }

    .exit-intent-modal-header h2 {
        font-size: 24px;
    }

    .exit-intent-modal-header p {
        font-size: 14px;
    }

    .exit-intent-feature {
        padding: 10px 12px;
    }

    .exit-intent-feature span {
        font-size: 14px;
    }

    .exit-intent-cta-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ===================================================================
   DOWNLOAD PROMO MODAL - Post-download promotional overlay
   =================================================================== */

.dp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.dp-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: promoModalSlideIn 0.3s ease-out;
}

.dp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 1;
}

.dp-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Header */
.dp-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.dp-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.dp-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Sections */
.dp-modal-section {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
}

.dp-modal-section-db {
    background: #faf5ff;
    border: 1px solid #ede9fe;
}

.dp-modal-section-pn {
    background: #eef2ff;
    border: 1px solid #e0e7ff;
}

/* Section badges */
.dp-modal-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 6px;
}

.dp-modal-badge-db {
    color: #7c3aed;
    background: #ede9fe;
}

.dp-modal-badge-pn {
    color: #4f46e5;
    background: #e0e7ff;
}

.dp-modal-badge-db svg,
.dp-modal-badge-pn svg {
    stroke: currentColor;
}

/* DesignerBox tool cards grid */
.dp-modal-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.dp-modal-tool-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.dp-modal-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    border-color: #c4b5fd;
}

.dp-modal-tool-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.dp-modal-tool-info {
    padding: 10px;
}

.dp-modal-tool-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.dp-modal-tool-desc {
    display: block;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
}

/* PostNext feature list */
.dp-modal-pn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.dp-modal-pn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dp-modal-pn-item:hover {
    border-color: #a5b4fc;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.dp-modal-pn-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px;
    color: white;
}

.dp-modal-pn-icon svg {
    stroke: white;
}

.dp-modal-pn-text {
    flex: 1;
    min-width: 0;
}

.dp-modal-pn-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.dp-modal-pn-desc {
    display: block;
    font-size: 11px;
    color: #6b7280;
}

/* CTA Buttons */
.dp-modal-cta {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dp-modal-cta-db {
    background: #7c3aed;
    color: white;
}

.dp-modal-cta-db:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    color: white;
}

.dp-modal-cta-pn {
    background: #4f46e5;
    color: white;
}

.dp-modal-cta-pn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    color: white;
}

/* Trust */
.dp-modal-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.dp-modal-trust-stars {
    color: #fbbf24;
    font-size: 18px;
    letter-spacing: 2px;
}

.dp-modal-trust span {
    font-size: 12px;
    color: #6b7280;
}

/* Responsive - tablet */
@media (max-width: 768px) {
    .dp-modal-content {
        padding: 24px 20px;
        max-width: 95%;
    }

    .dp-modal-title {
        font-size: 20px;
    }

    .dp-modal-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .dp-modal-tool-img {
        height: 120px;
    }
}

/* Responsive - mobile */
@media (max-width: 480px) {
    .dp-modal-content {
        padding: 20px 16px;
        max-height: 85vh;
    }

    .dp-modal-title {
        font-size: 18px;
    }

    .dp-modal-subtitle {
        font-size: 13px;
    }

    .dp-modal-section {
        padding: 14px;
        margin-bottom: 14px;
    }

    .dp-modal-tools-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dp-modal-tool-card {
        flex-direction: row;
    }

    .dp-modal-tool-img {
        width: 80px;
        height: auto;
        min-height: 70px;
    }

    .dp-modal-tool-info {
        padding: 8px 10px;
    }

    .dp-modal-cta {
        padding: 10px 16px;
        font-size: 13px;
    }

    .dp-modal-pn-icon {
        width: 32px;
        height: 32px;
    }

    .dp-modal-pn-icon svg {
        width: 16px;
        height: 16px;
    }
}
