/* ==========================================================================
   ClipOwn - Modern Instagram Downloader Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Color Palette */
    --bg-main: #090a11;
    --bg-secondary: #111320;
    --bg-surface: rgba(23, 26, 42, 0.65);
    --bg-surface-hover: rgba(32, 36, 58, 0.85);
    --bg-surface-glass: rgba(255, 255, 255, 0.03);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-focus: #e1306c;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Instagram Brand Gradients */
    --ig-gradient: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --ig-gradient-glow: 0 0 35px rgba(220, 39, 67, 0.35);
    --ig-gradient-hover: linear-gradient(135deg, #f59f42 0%, #ed754b 25%, #e83753 50%, #d83174 75%, #ca2596 100%);

    /* Utility Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glass: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-subtle);
    --shadow-card: 0 12px 30px -8px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(225, 48, 108, 0.25);

    /* Transitions */
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Ambient Background Lighting & Mesh
   -------------------------------------------------------------------------- */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
}

.orb-1 {
    width: 550px;
    height: 550px;
    top: -100px;
    left: 20%;
    background: radial-gradient(circle, #bc1888, #dc2743);
    animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-2 {
    width: 450px;
    height: 450px;
    top: 30%;
    right: 5%;
    background: radial-gradient(circle, #f09433, #e6683c);
    animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: 10%;
    background: radial-gradient(circle, #7928ca, #3b82f6);
    opacity: 0.15;
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(50px) scale(1.08); }
    100% { transform: translateY(-40px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   Glassmorphism Styles
   -------------------------------------------------------------------------- */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gradient-text {
    background: var(--ig-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(9, 10, 17, 0.75);
    border-bottom: 1px solid var(--border-subtle);
    height: 76px;
    display: flex;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-brand-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25), 0 0 25px rgba(225, 48, 108, 0.2);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}

.logo:hover .logo-brand-wrap {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 25px rgba(0, 210, 255, 0.4), 0 0 30px rgba(225, 48, 108, 0.35);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.logo-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--ig-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ig-gradient-glow);
    color: #fff;
}

.logo-icon {
    width: 22px;
    height: 22px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --------------------------------------------------------------------------
   Hero & Downloader Section
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    z-index: 10;
    padding: 80px 0 60px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(220, 39, 67, 0.12);
    border: 1px solid rgba(220, 39, 67, 0.28);
    color: #ff6b8b;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.15);
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    max-width: 880px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Downloader Input Box
   -------------------------------------------------------------------------- */
.downloader-card {
    width: 100%;
    max-width: 780px;
    padding: 16px;
    border-radius: var(--radius-xl);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 20, 33, 0.78);
}

.download-form {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(10, 11, 18, 0.7);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 6px 14px 6px 18px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrapper:focus-within {
    border-color: rgba(225, 48, 108, 0.6);
    box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.18);
}

.input-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

#videoUrlInput {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.98rem;
    padding: 12px 0;
    min-width: 0;
}

#videoUrlInput::placeholder {
    color: var(--text-muted);
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-secondary svg {
    width: 16px;
    height: 16px;
    color: #e1306c;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    background: var(--ig-gradient);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--ig-gradient-glow);
    transition: all var(--transition-smooth);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: 0 0 35px rgba(220, 39, 67, 0.55);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-icon-right {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-icon-right {
    transform: translateX(3px);
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.input-helpers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 0 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.supported-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tag svg {
    width: 13px;
    height: 13px;
    color: #e1306c;
}

.sample-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e1306c;
    transition: color var(--transition-fast);
}

.sample-link svg {
    width: 14px;
    height: 14px;
}

.sample-link:hover {
    color: #ff6b8b;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Result & Preview Card
   -------------------------------------------------------------------------- */
.result-container {
    width: 100%;
    max-width: 780px;
    margin-top: 32px;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(18, 21, 35, 0.85);
    text-align: left;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.result-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-success);
}

.icon-success {
    width: 18px;
    height: 18px;
}

.btn-close-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.btn-close-card svg {
    width: 16px;
    height: 16px;
}

.btn-close-card:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
}

.result-content-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.media-preview-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.media-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.media-thumbnail-wrapper:hover .preview-img {
    transform: scale(1.04);
}

.media-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
}

.media-badge svg {
    width: 12px;
    height: 12px;
    color: #e1306c;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.play-icon {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

.media-thumbnail-wrapper:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.12);
    background: rgba(225, 48, 108, 0.8);
    border-color: transparent;
}

.duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.media-info-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.creator-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e1306c;
    object-fit: cover;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    aspect-ratio: 1 / 1;
    display: inline-block;
    flex-shrink: 0;
}

.creator-meta {
    display: flex;
    flex-direction: column;
}

.creator-username {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.source-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.source-tag svg {
    width: 12px;
    height: 12px;
    color: #e1306c;
}

.video-caption {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-specs {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.spec-item {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.download-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.btn-download-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.btn-action-text {
    display: flex;
    flex-direction: column;
}

.primary-text {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-text svg {
    width: 18px;
    height: 18px;
}

.secondary-text {
    font-size: 0.78rem;
    opacity: 0.8;
    margin-left: 26px;
}

.btn-hd {
    background: var(--ig-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(220, 39, 67, 0.3);
}

.btn-hd:hover {
    box-shadow: 0 6px 25px rgba(220, 39, 67, 0.5);
    transform: translateY(-2px);
}

.btn-sd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-sd:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-audio {
    background: rgba(121, 40, 202, 0.15);
    border: 1px solid rgba(121, 40, 202, 0.35);
    color: #c084fc;
}

.btn-audio:hover {
    background: rgba(121, 40, 202, 0.25);
    border-color: rgba(121, 40, 202, 0.55);
    transform: translateY(-1px);
}

.btn-image {
    background: var(--ig-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(220, 39, 67, 0.3);
}

.btn-image:hover {
    box-shadow: 0 6px 25px rgba(220, 39, 67, 0.5);
    transform: translateY(-2px);
}

.preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 5;
    border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Interactive Video & Audio Trimmer Tool
   -------------------------------------------------------------------------- */
.trim-tool-section {
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(225, 48, 108, 0.25);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    margin-top: 6px;
    transition: all var(--transition-smooth);
}

.trim-tool-section:hover {
    border-color: rgba(225, 48, 108, 0.45);
}

.trim-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.trim-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trim-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.25), rgba(121, 40, 202, 0.25));
    border: 1px solid rgba(225, 48, 108, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b8b;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.2);
}

.trim-icon-badge svg {
    width: 18px;
    height: 18px;
}

.trim-badge-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.trim-badge-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ff6b8b;
}

.trim-status-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(0, 210, 255, 0.15);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.trim-heading {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-trim-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-trim-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.btn-trim-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.trim-controls-area {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trim-controls-area.collapsed {
    display: none;
}

/* Timestamp Chips */
.trim-time-chips {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.time-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

.time-chip.highlight-chip {
    background: rgba(225, 48, 108, 0.12);
    border-color: rgba(225, 48, 108, 0.4);
}

.time-chip-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.time-chip-val {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.time-chip.highlight-chip .time-chip-val {
    color: #ff6b8b;
}

/* Timeline Track & Overlaid Dual Range Inputs */
.timeline-trimmer-wrap {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    margin: 10px 0 14px;
}

.timeline-track-base {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.timeline-track-selected {
    position: absolute;
    height: 8px;
    border-radius: 4px;
    background: var(--ig-gradient);
    box-shadow: 0 0 10px rgba(225, 48, 108, 0.6);
    pointer-events: none;
    left: 0%;
    width: 100%;
    transition: left 0.05s ease, width 0.05s ease;
}

.range-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 36px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.range-slider::-webkit-slider-runnable-track {
    background: transparent;
    height: 36px;
}

.range-slider::-moz-range-track {
    background: transparent;
    height: 36px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e1306c;
    box-shadow: 0 0 12px rgba(225, 48, 108, 0.85), 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: ew-resize;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    margin-top: 8px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e1306c;
    box-shadow: 0 0 12px rgba(225, 48, 108, 0.85), 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: ew-resize;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.range-slider:active::-webkit-slider-thumb,
.range-slider:hover::-webkit-slider-thumb {
    transform: scale(1.22);
    border-color: #ff3366;
    box-shadow: 0 0 16px rgba(255, 51, 102, 1);
}

/* Quick Toolbar */
.trim-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.preset-chips-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preset-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.preset-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.preset-chip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.preset-chip.active {
    background: rgba(225, 48, 108, 0.2);
    border-color: #e1306c;
    color: #fff;
}

.btn-preview-segment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: #00d2ff;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-preview-segment svg {
    width: 13px;
    height: 13px;
}

.btn-preview-segment:hover {
    background: rgba(0, 210, 255, 0.25);
    border-color: rgba(0, 210, 255, 0.6);
    transform: translateY(-1px);
}

/* Dedicated Trimmed Download Buttons */
.trim-download-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-trim-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    border: 1px solid transparent;
}

.trim-action-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trim-dl-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.trim-dl-text {
    display: flex;
    flex-direction: column;
}

.trim-dl-title {
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.2;
}

.trim-dl-sub {
    font-size: 0.7rem;
    opacity: 0.82;
    margin-top: 2px;
}

.btn-trim-video {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.22), rgba(188, 24, 136, 0.22));
    border-color: rgba(225, 48, 108, 0.45);
    color: #fff;
}

.btn-trim-video:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.38), rgba(188, 24, 136, 0.38));
    border-color: rgba(225, 48, 108, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(225, 48, 108, 0.35);
}

.btn-trim-audio {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.18), rgba(59, 130, 246, 0.18));
    border-color: rgba(121, 40, 202, 0.4);
    color: #c084fc;
}

.btn-trim-audio:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.32), rgba(59, 130, 246, 0.32));
    border-color: rgba(121, 40, 202, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(121, 40, 202, 0.3);
}

.btn-trim-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.trim-loader svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .trim-download-actions {
        grid-template-columns: 1fr;
    }
    .trim-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.result-footer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-ghost svg {
    width: 15px;
    height: 15px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Loading Shimmer State
   -------------------------------------------------------------------------- */
.loading-shimmer {
    padding: 40px 24px;
}

.shimmer-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 20px;
}

.loader-pulse {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.spin-animation {
    width: 32px;
    height: 32px;
    color: #e1306c;
    animation: spin 1s linear infinite;
}

.shimmer-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shimmer-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: 6px;
}

.line-title {
    height: 20px;
    width: 70%;
}

.line-author {
    height: 14px;
    width: 40%;
}

.line-btn {
    height: 44px;
    width: 100%;
    margin-top: 10px;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.section-padding {
    padding: 90px 0;
    position: relative;
    z-index: 10;
}

.bg-subtle {
    background: rgba(12, 14, 23, 0.6);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    margin-bottom: 54px;
}

.text-center {
    text-align: center;
}

.sub-heading {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e1306c;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(225, 48, 108, 0.4);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}

.feature-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.gradient-bg-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.gradient-bg-2 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.gradient-bg-3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.gradient-bg-4 { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.gradient-bg-5 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.gradient-bg-6 { background: linear-gradient(135deg, #f43f5e, #e11d48); }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.step-card {
    flex: 1;
    padding: 36px 28px;
    position: relative;
    text-align: left;
}

.step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(225, 48, 108, 0.12);
    border: 1px solid rgba(225, 48, 108, 0.25);
    color: #e1306c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    color: var(--text-muted);
    opacity: 0.4;
    display: flex;
    align-items: center;
}

.step-arrow svg {
    width: 28px;
    height: 28px;
}

/* --------------------------------------------------------------------------
   FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-container {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #e1306c;
}

.faq-item.active .faq-question {
    color: #ff6b8b;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 22px 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #06070b;
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 35px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1.1fr 1.3fr;
    gap: 32px;
    align-items: start;
}

.footer-brand {
    max-width: 380px;
}

.footer-desc {
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links-list li a svg {
    width: 15px;
    height: 15px;
    color: #e1306c;
}

.footer-links-list li a:hover {
    color: #fff;
    transform: translateX(4px);
}

/* Developer & Contact Card */
.contact-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(18, 21, 35, 0.7);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.contact-link {
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.contact-link:hover {
    transform: translateX(3px);
}

.contact-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}

.contact-icon-wrap svg {
    width: 17px;
    height: 17px;
}

.icon-email {
    background: rgba(225, 48, 108, 0.12);
    border-color: rgba(225, 48, 108, 0.25);
    color: #ff6b8b;
}

.icon-phone {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.icon-location {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.contact-text-group {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.contact-value.highlight {
    color: #ff6b8b;
    font-weight: 700;
}

.contact-link:hover .contact-value {
    color: #00d2ff;
    text-decoration: underline;
}

/* Social Profile Buttons */
.contact-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.btn-social {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-social svg {
    width: 15px;
    height: 15px;
}

.btn-github {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-linkedin {
    background: rgba(10, 102, 194, 0.15);
    border: 1px solid rgba(10, 102, 194, 0.35);
    color: #38bdf8;
}

.btn-linkedin:hover {
    background: rgba(10, 102, 194, 0.28);
    border-color: rgba(10, 102, 194, 0.55);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
}

.footer-disclaimer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.developer-credit {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.developer-credit strong {
    color: #ff6b8b;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10050;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: rgba(22, 26, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
}

.toast.toast-success svg {
    color: var(--color-success);
}

.toast.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
}

.toast.toast-error svg {
    color: var(--color-error);
}

.toast.toast-info {
    border-color: rgba(225, 48, 108, 0.4);
}

.toast.toast-info svg {
    color: #e1306c;
}

.toast.toast-warning {
    border-color: rgba(245, 158, 11, 0.45);
}

.toast.toast-warning svg {
    color: #f59e0b;
}

.toast-hide {
    animation: toastOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .logo {
        gap: 9px;
    }
    .logo-brand-wrap {
        width: 38px;
        height: 38px;
    }
    .steps-grid {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: -10px 0;
    }
    .result-content-grid {
        grid-template-columns: 1fr;
    }
    .media-thumbnail-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .site-header {
        height: 64px;
    }
    .nav-wrapper {
        gap: 8px;
    }
    .logo {
        gap: 8px;
    }
    .logo-brand-wrap {
        width: 36px;
        height: 36px;
        padding: 0;
    }
    .logo-text {
        font-size: 1.25rem;
    }
    .nav-links {
        display: none;
    }
    .nav-actions {
        gap: 6px;
        flex-shrink: 0;
    }
    .btn-settings {
        padding: 5px 10px;
        font-size: 0.78rem;
        gap: 5px;
    }
    .btn-settings svg {
        width: 13px;
        height: 13px;
    }
    .badge-tag {
        padding: 5px 9px;
        font-size: 0.75rem;
        gap: 5px;
    }
    .badge-tag-extra {
        display: none;
    }
    .status-dot {
        width: 6px;
        height: 6px;
    }
    .download-form {
        flex-direction: column;
    }
    .btn-primary {
        width: 100%;
    }
    .input-wrapper {
        width: 100%;
    }
    .input-helpers {
        flex-direction: column;
        align-items: flex-start;
    }
    .media-specs {
        flex-direction: column;
        gap: 8px;
    }
    .hero-section {
        padding: 45px 0 35px;
    }
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Mobile Footer Layout */
    .site-footer {
        padding: 45px 0 25px;
    }
    .footer-content {
        gap: 28px;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand {
        max-width: 100%;
    }
    .footer-desc {
        font-size: 0.88rem;
        margin-top: 10px;
    }
    .footer-pill {
        margin-top: 14px;
        font-size: 0.74rem;
        padding: 5px 12px;
    }
    .footer-col-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    .footer-links-list {
        gap: 10px;
    }
    .footer-links-list li a {
        font-size: 0.88rem;
        padding: 3px 0;
    }
    .contact-card {
        padding: 16px;
        gap: 12px;
    }
    .contact-item {
        gap: 10px;
    }
    .contact-icon-wrap {
        width: 32px;
        height: 32px;
    }
    .contact-icon-wrap svg {
        width: 15px;
        height: 15px;
    }
    .contact-label {
        font-size: 0.68rem;
    }
    .contact-value {
        font-size: 0.85rem;
        word-break: break-word;
    }
    .contact-social-row {
        gap: 8px;
        padding-top: 10px;
    }
    .btn-social {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
    .footer-disclaimer {
        padding-top: 20px;
        font-size: 0.76rem;
        line-height: 1.55;
        gap: 14px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding-top: 8px;
    }
    .copyright {
        font-size: 0.78rem;
        order: 1;
    }
    .footer-legal-links {
        order: 2;
        gap: 8px;
    }
    .developer-credit {
        font-size: 0.78rem;
        order: 3;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }
    .logo-text {
        font-size: 1.15rem;
    }
    .logo-brand-wrap {
        width: 32px;
        height: 32px;
    }
    .nav-actions {
        gap: 4px;
    }
    .btn-settings {
        padding: 4px 7px;
        font-size: 0.74rem;
        gap: 4px;
    }
    .badge-tag {
        padding: 4px 6px;
        font-size: 0.7rem;
        gap: 4px;
    }
}

/* --------------------------------------------------------------------------
   Settings Button, Notice Banner, and Modal Styles
   -------------------------------------------------------------------------- */
.btn-settings {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-settings svg {
    width: 14px;
    height: 14px;
    color: #e1306c;
}

.auth-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.banner-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.banner-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.banner-link:hover {
    color: #ffd166;
}

/* Modal Backdrop & Card */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    width: 100%;
    max-width: 580px;
    background: rgba(18, 21, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(225, 48, 108, 0.15);
    border: 1px solid rgba(225, 48, 108, 0.3);
    color: #e1306c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-close-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.info-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.info-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-textarea {
    width: 100%;
    background: rgba(10, 12, 20, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-textarea:focus {
    border-color: #e1306c;
}

.cookie-guide {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 24px;
}

.cookie-guide h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cookie-guide ol {
    padding-left: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cookie-guide kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.modal-footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: var(--ig-gradient);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
    transition: all var(--transition-fast);
}

.btn-primary-sm:hover {
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.55);
    transform: translateY(-1px);
}

.btn-ghost-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-error);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-ghost-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* --------------------------------------------------------------------------
   Footer Legal Links
   -------------------------------------------------------------------------- */
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.legal-link:hover {
    color: #ff6b8b;
    text-decoration: underline;
}

.legal-sep {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Privacy Policy & Terms Modal
   -------------------------------------------------------------------------- */
.modal-lg {
    max-width: 680px;
}

.icon-privacy-wrap {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.modal-tab-bar {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    gap: 8px;
    margin-bottom: 20px;
}

.modal-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.modal-tab svg {
    width: 16px;
    height: 16px;
}

.modal-tab:hover {
    color: var(--text-primary);
}

.modal-tab.active {
    color: #ff6b8b;
    border-bottom-color: #e1306c;
    background: rgba(225, 48, 108, 0.06);
}

.policy-body {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

.policy-body::-webkit-scrollbar {
    width: 6px;
}

.policy-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.policy-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.policy-highlight-box.terms-highlight {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.28);
}

.policy-highlight-box .highlight-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    flex-shrink: 0;
}

.terms-highlight .highlight-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.highlight-text h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.highlight-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.policy-section {
    margin-bottom: 18px;
}

.policy-section h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.policy-section p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.policy-section code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #ff6b8b;
}

.policy-last-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Download Progress & Status System
   ========================================================================== */
.download-progress-container {
    margin: 0 0 20px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: fadeInSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-card {
    background: rgba(22, 25, 44, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f09433, #e1306c, #8b5cf6, #06b6d4);
    opacity: 0.85;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.progress-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.progress-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(225, 48, 108, 0.15);
    border: 1px solid rgba(225, 48, 108, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5c8a;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.progress-icon-badge i {
    width: 18px;
    height: 18px;
}

.progress-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.progress-label {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-filename {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.progress-meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.progress-percent {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #f09433, #e1306c, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 48px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.btn-progress-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.btn-progress-cancel:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.btn-progress-cancel i {
    width: 14px;
    height: 14px;
}

/* Colorful Animated Progress Bar Track */
.progress-bar-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f09433 0%, #e1306c 32%, #8b5cf6 68%, #06b6d4 100%);
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 16px rgba(225, 48, 108, 0.45);
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(250%);
    }
}

.progress-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 70px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: progressShimmer 1.8s infinite linear;
}

.progress-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    gap: 8px;
}

.progress-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.progress-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e1306c;
    box-shadow: 0 0 8px #e1306c;
    animation: pulseDot 1.5s infinite;
    flex-shrink: 0;
}

.progress-status-message {
    color: var(--text-primary);
    font-size: 0.82rem;
}

.progress-stats-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.stats-divider {
    opacity: 0.4;
}

/* Success State (100% Complete) */
.progress-card.state-complete {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.15);
}

.progress-card.state-complete::before {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

.progress-card.state-complete .progress-icon-badge {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.progress-card.state-complete .progress-bar-fill {
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%) !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.55);
}

.progress-card.state-complete .progress-percent {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-card.state-complete .progress-status-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: none;
}

/* Error State */
.progress-card.state-error {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(239, 68, 68, 0.15);
}

.progress-card.state-error::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.progress-card.state-error .progress-icon-badge {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.progress-card.state-error .progress-bar-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.progress-card.state-error .progress-percent {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-card.state-error .progress-status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: none;
}

.progress-error-view {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(239, 68, 68, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeInSlideDown 0.25s ease;
}

.error-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #fca5a5;
    font-size: 0.82rem;
    line-height: 1.45;
}

.error-inline-icon {
    color: #ef4444;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.btn-progress-retry {
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-progress-retry:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
    transform: translateY(-1px);
}

.btn-progress-retry i {
    width: 14px;
    height: 14px;
}

.btn-progress-dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-progress-dismiss:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Mobile Responsive Optimization for Download Progress */
@media (max-width: 640px) {
    .progress-card {
        padding: 14px 15px;
    }

    .progress-icon-badge {
        width: 32px;
        height: 32px;
    }

    .progress-icon-badge i {
        width: 15px;
        height: 15px;
    }

    .progress-label {
        font-size: 0.86rem;
    }

    .progress-filename {
        max-width: 160px;
        font-size: 0.7rem;
    }

    .progress-percent {
        font-size: 1.1rem;
        min-width: 42px;
    }

    .progress-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .progress-stats-info {
        font-size: 0.74rem;
    }
}

/* --------------------------------------------------------------------------
   Instagram Carousel Multi-Item Gallery & Toolbar
   -------------------------------------------------------------------------- */
.carousel-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
}

.carousel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.carousel-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carousel-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(225, 48, 108, 0.12);
    border: 1px solid rgba(225, 48, 108, 0.35);
    color: #ff6b8b;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    width: fit-content;
}

.carousel-badge-pill svg {
    width: 16px;
    height: 16px;
}

.carousel-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.carousel-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-carousel-util {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-carousel-util:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-carousel-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-carousel-selected {
    background: rgba(121, 40, 202, 0.2);
    border: 1px solid rgba(121, 40, 202, 0.4);
    color: #d8b4fe;
}

.btn-carousel-selected:hover {
    background: rgba(121, 40, 202, 0.35);
    border-color: rgba(121, 40, 202, 0.6);
    color: #fff;
}

.btn-carousel-all {
    background: var(--ig-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.btn-carousel-all:hover {
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
    transform: translateY(-1px);
}

.carousel-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.carousel-item-card {
    position: relative;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
}

.carousel-item-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.carousel-item-card.is-selected {
    border-color: #e1306c;
    box-shadow: 0 0 0 1px #e1306c, 0 8px 20px -4px rgba(225, 48, 108, 0.3);
}

.carousel-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0d0e17;
    overflow: hidden;
    cursor: pointer;
}

.carousel-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.carousel-thumb-wrapper:hover .carousel-thumb-img {
    transform: scale(1.05);
}

.carousel-badge-top-left {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    pointer-events: none;
}

.carousel-badge-top-right {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    pointer-events: none;
}

.carousel-badge-top-right.badge-video {
    color: #60a5fa;
}

.carousel-badge-top-right.badge-image {
    color: #34d399;
}

.carousel-badge-top-right svg {
    width: 12px;
    height: 12px;
}

.carousel-video-play-hint {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    transition: transform var(--transition-fast);
}

.carousel-thumb-wrapper:hover .carousel-video-play-hint {
    transform: scale(1.15);
    background: rgba(225, 48, 108, 0.85);
    border-color: #fff;
}

.carousel-video-play-hint svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.carousel-item-footer {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
}

.carousel-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.carousel-checkbox-label input[type="checkbox"] {
    accent-color: #e1306c;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-carousel-single-dl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-carousel-single-dl:hover {
    background: var(--ig-gradient);
    border-color: transparent;
    color: #fff;
}

.btn-carousel-single-dl svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 640px) {
    .carousel-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .carousel-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .carousel-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .btn-carousel-util, .btn-carousel-action {
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
    }
}

/* ==========================================================================
   Carousel Audio Section & Lightbox Image Viewer
   ========================================================================== */

/* Carousel Background Audio Card */
.carousel-audio-section {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.12), rgba(225, 48, 108, 0.12));
    border: 1px solid rgba(225, 48, 108, 0.28);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.carousel-audio-section:hover {
    border-color: rgba(225, 48, 108, 0.45);
    box-shadow: 0 6px 24px -2px rgba(225, 48, 108, 0.2);
}

.carousel-audio-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.carousel-audio-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ig-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.35);
}

.carousel-audio-badge svg {
    width: 20px;
    height: 20px;
}

.carousel-audio-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.carousel-audio-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f472b6;
    margin-bottom: 2px;
}

.carousel-audio-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-audio-subtitle {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.carousel-audio-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-carousel-audio-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-carousel-audio-preview:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-carousel-audio-preview.is-playing {
    background: rgba(225, 48, 108, 0.25);
    border-color: #e1306c;
    color: #fff;
}

.btn-carousel-audio-preview svg {
    width: 15px;
    height: 15px;
}

.btn-carousel-audio-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7928ca 0%, #e1306c 100%);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.35);
}

.btn-carousel-audio-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
    filter: brightness(1.08);
}

.btn-carousel-audio-download svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 640px) {
    .carousel-audio-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .carousel-audio-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .btn-carousel-audio-preview,
    .btn-carousel-audio-download {
        width: 100%;
        justify-content: center;
    }
}

/* Full-Size Image Viewer Lightbox Modal */
.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: viewerFadeIn 0.2s ease-out forwards;
}

.image-viewer-modal.hidden {
    display: none !important;
}

@keyframes viewerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: zoom-out;
}

.image-viewer-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.image-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    pointer-events: auto;
}

.image-viewer-counter {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.image-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-viewer-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
}

.btn-viewer-action:hover {
    background: var(--ig-gradient);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.4);
}

.btn-viewer-action svg {
    width: 15px;
    height: 15px;
}

.btn-viewer-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-viewer-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: transparent;
}

.image-viewer-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px 20px;
    overflow: hidden;
    pointer-events: auto;
    touch-action: pan-y;
}

.image-viewer-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 84vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-img {
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.image-viewer-img.loading {
    opacity: 0.4;
}

.viewer-loader {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
}

.viewer-loader svg {
    width: 32px;
    height: 32px;
}

.viewer-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
    z-index: 10;
    flex-shrink: 0;
}

.viewer-nav-btn:hover {
    background: var(--ig-gradient);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.5);
}

.viewer-nav-btn svg {
    width: 24px;
    height: 24px;
}

.viewer-nav-btn.hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .image-viewer-header {
        padding: 12px 16px;
    }
    .image-viewer-stage {
        padding: 0 10px 10px 10px;
    }
    .image-viewer-img {
        max-height: 80vh;
    }
    .viewer-nav-btn {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.8);
    }
    .viewer-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}




/* --------------------------------------------------------------------------
   Mobile & Tablet Responsiveness Polish (320px - 1024px)
   -------------------------------------------------------------------------- */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-settings,
    .btn-download-action,
    .btn-trim-download,
    .faq-question,
    .footer-links-list a,
    .legal-link {
        min-height: 44px;
    }

    .modal-card {
        max-height: 90dvh;
        overflow-y: auto;
    }

    .preview-video,
    .preview-img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-title {
        font-size: clamp(1.65rem, 6.5vw, 2.1rem);
    }

    .media-specs {
        gap: 8px;
    }
}
