/* ==========================================================================
   InstaSaver.website - Premium Design & Interaction Stylesheet
   Soft Lavender Dream Theme: Pastel Lavender, Blush Pink & Deep Navy
   ========================================================================== */

:root {
    /* Soft Lavender Palette */
    --lavender-light: #cdcffc;
    --lavender-mid: #c4b7fa;
    --lavender-blush: #e8dbfc;
    --lavender-pink: #f9d9fc;
    
    --brand-purple: #7c3aed;
    --brand-purple-dark: #6d28d9;
    --brand-magenta: #c026d3;
    --brand-pink: #db2777;
    --brand-navy: #1b2b49;
    --brand-navy-dark: #0f172a;
    
    /* Hero Gradient & Pattern */
    --hero-gradient: radial-gradient(rgba(124, 58, 237, 0.12) 1.5px, transparent 1.5px),
                     linear-gradient(135deg, #cdcffc 0%, #c4b7fa 30%, #e8dbfc 65%, #f9d9fc 100%);
    --hero-bg-size: 24px 24px, 100% 100%;
    
    --paste-gradient: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #db2777 100%);
    --paste-gradient-hover: linear-gradient(135deg, #6d28d9 0%, #a21caf 50%, #be185d 100%);
    
    /* Clean Page Background */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --border-accent: #ddd6fe;

    /* Feature Badge Accents */
    --badge-purple-bg: #f5f3ff;
    --badge-purple-color: #7c3aed;
    --badge-pink-bg: #fdf2f8;
    --badge-pink-color: #db2777;
    --badge-indigo-bg: #eef2ff;
    --badge-indigo-color: #4f46e5;
    --badge-violet-bg: #faf5ff;
    --badge-violet-color: #9333ea;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    --shadow-soft: 0 10px 25px -5px rgba(124, 58, 237, 0.06);
    --shadow-card: 0 20px 35px -10px rgba(124, 58, 237, 0.12);
    --shadow-hero: 0 20px 45px -10px rgba(196, 181, 253, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Site Header */
.header-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, #7c3aed 0%, #c026d3 50%, #db2777 100%);
    box-shadow: 0 0 10px rgba(192, 38, 211, 0.75), 0 0 4px rgba(124, 58, 237, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: width 0.35s ease, opacity 0.25s ease;
    border-radius: 0 2px 2px 0;
}

.header-progress-bar.active {
    opacity: 1;
}

.fixed-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #c026d3, #db2777);
    box-shadow: 0 0 10px rgba(192, 38, 211, 0.8);
    z-index: 99999;
    opacity: 0;
    transition: width 0.35s ease, opacity 0.25s ease;
}

.fixed-top-progress.active {
    opacity: 1;
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.2s ease;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.25rem;
}

.brand-text-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--brand-pink);
}

.logo-badge {
    background: linear-gradient(135deg, #7c3aed, #c026d3);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--brand-purple);
    background: rgba(124, 58, 237, 0.05);
}

.nav-link.active {
    color: var(--brand-purple);
    background: #f5f3ff;
    font-weight: 700;
}

.nav-link-sec {
    color: #94a3b8;
    font-size: 0.88rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 8px;
}

.menu-toggle span {
    width: 22px;
    height: 2.2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.25s ease;
}

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

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

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

/* Main Layout */
.main-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px 50px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 24px;
}

.hero-card {
    background: var(--hero-gradient);
    background-size: var(--hero-bg-size);
    border-radius: var(--radius-lg);
    padding: 30px 22px 26px;
    color: var(--text-main);
    box-shadow: var(--shadow-hero);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

/* 7-Icon Media Nav */
.media-icon-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    padding: 6px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

.media-icon-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(71, 85, 105, 0.85);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 14px;
    position: relative;
}

.media-icon-btn:last-child {
    border-right: none;
}

.media-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.media-btn-label {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.media-icon-btn:hover {
    background: rgba(255, 255, 255, 0.45);
    color: var(--brand-purple);
}

.media-icon-btn.active {
    background: #ffffff;
    color: var(--brand-purple);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.18);
}

.media-icon-btn.active svg {
    transform: scale(1.08);
    stroke: var(--brand-purple);
}

/* Hero Typography */
.hero-header {
    text-align: center;
    margin-bottom: 22px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    color: var(--brand-purple);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.title-purple {
    color: var(--brand-purple);
}

.title-dark {
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Input Form */
.downloader-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-wrapper {
    background: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 16px;
    box-shadow: 0 10px 28px rgba(167, 139, 250, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    transition: all 0.2s ease;
    position: relative;
}

.input-wrapper:focus-within {
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.28);
    border-color: var(--border-accent);
}

.input-icon-link {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.input-icon-link svg {
    width: 100%;
    height: 100%;
}

.url-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    background: transparent;
    padding-right: 8px;
    width: 100%;
}

.url-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.clear-input-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.clear-input-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.paste-btn {
    background: var(--paste-gradient);
    border: none;
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 10px 22px;
    box-shadow: 0 4px 14px rgba(192, 38, 211, 0.35);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.paste-btn:hover {
    background: var(--paste-gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(192, 38, 211, 0.45);
}

.paste-btn.loading-state {
    background: #fdf4ff !important;
    border: 1.5px solid #d946ef !important;
    color: #a73385 !important;
    box-shadow: 0 4px 14px rgba(167, 51, 133, 0.2) !important;
    cursor: wait !important;
    pointer-events: none;
    padding: 9px 18px;
    animation: pulseBorder 1.5s infinite;
}

.spinner-mini {
    width: 16px;
    height: 16px;
    animation: rotate 1s linear infinite;
}

.spinner-mini .path {
    stroke: #a73385;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

/* Primary Download Action Button (Placed directly below input bar) */
.form-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 6px;
    width: 100%;
}

.download-submit-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #db2777 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 13px 44px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(192, 38, 211, 0.38);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.download-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.download-submit-btn:hover::before {
    left: 100%;
}

.download-submit-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #a21caf 50%, #be185d 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(192, 38, 211, 0.5);
}

.download-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(192, 38, 211, 0.35);
}

.download-submit-btn .btn-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.3;
    transition: transform 0.2s ease;
}

.download-submit-btn:hover .btn-icon {
    transform: translateY(2px);
}

.download-submit-btn.loading-state {
    background: #fdf4ff !important;
    border: 1.5px solid #d946ef !important;
    color: #a73385 !important;
    box-shadow: 0 4px 14px rgba(167, 51, 133, 0.2) !important;
    cursor: wait !important;
    pointer-events: none;
    animation: pulseBorder 1.5s infinite;
}

.download-submit-btn.loading-state .spinner-mini .path {
    stroke: #a73385;
}

@media (max-width: 480px) {
    .download-submit-btn {
        width: 100%;
        padding: 13px 20px;
        min-width: 100%;
    }
}

/* Quick Demo Pills */
.sample-pills-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.sample-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.sample-pill {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sample-pill:hover {
    background: #ffffff;
    color: var(--brand-purple);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.fair-use-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Alert Notification */
.alert-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #991b1b;
}

/* Result Section */
.result-section {
    margin-bottom: 28px;
    animation: fadeIn 0.4s ease;
}

.reel-result-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-card);
    border: 1.5px solid var(--border-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-author-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-purple);
}

.author-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.author-badge {
    font-size: 0.72rem;
    color: #10b981;
    font-weight: 600;
}

.media-type-tag {
    background: #f5f3ff;
    color: var(--brand-purple);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-accent);
}

.result-caption {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.45;
}

/* Video Preview Box */
.reel-player-box {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/16;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-bottom: 20px;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Preview Box */
.image-preview-box {
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
    text-align: center;
}

.result-photo-img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.carousel-indicators {
    padding: 8px;
    background: #f8fafc;
    border-top: 1px solid var(--border-soft);
}

.carousel-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-purple);
}

/* Audio Preview Box */
.audio-preview-box {
    width: 100%;
    background: #fafafe;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-accent);
    margin-bottom: 20px;
    text-align: center;
}

.audio-wave-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-bottom: 12px;
}

.wave-bar {
    width: 4px;
    background: var(--paste-gradient);
    border-radius: 4px;
    animation: waveMotion 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 85%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 40%; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 100%; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 70%; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 90%; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 50%; animation-delay: 0.7s; }
.wave-bar:nth-child(9) { height: 75%; animation-delay: 0.8s; }

.audio-info-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.audio-bitrate {
    font-size: 0.78rem;
    font-weight: 700;
    color: #10b981;
}

/* Profile Picture Box */
.dp-preview-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.dp-avatar-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--brand-purple);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25);
    margin-bottom: 12px;
}

.dp-large-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Download Stack */
.download-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.dl-primary {
    background: var(--brand-purple);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.dl-primary:hover {
    background: #6d28d9;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.45);
}

.dl-secondary {
    background: #fdf4ff;
    border: 1.5px solid #f0abfc;
    color: #a21caf;
}

.dl-secondary:hover {
    background: #fae8ff;
}

.dl-audio {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #047857;
}

.dl-audio:hover {
    background: #d1fae5;
}

.dl-again {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
}

.dl-again:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.dl-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Features Grid */
.features-grid-section {
    margin-bottom: 32px;
}

.features-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
}

.feature-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
}

.feature-icon-badge svg {
    width: 26px;
    height: 26px;
}

.purple-badge { background: var(--badge-purple-bg); color: var(--badge-purple-color); }
.rose-badge { background: var(--badge-pink-bg); color: var(--badge-pink-color); }
.violet-badge { background: var(--badge-violet-bg); color: var(--badge-violet-color); }
.coral-badge { background: var(--badge-indigo-bg); color: var(--badge-indigo-color); }

.badge-text-tag {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--brand-pink);
    color: #fff;
    padding: 1px 4px;
    border-radius: 4px;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Headings */
.section-heading {
    margin-bottom: 24px;
}

.section-heading.text-center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    background: #f5f3ff;
    color: var(--brand-purple);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    border: 1px solid var(--border-accent);
}

.section-heading h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.section-heading p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Guidance Infographic */
.guide-visual-banner {
    margin: 20px 0 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-soft);
}

.guide-infographic-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #000000;
}

.guide-caption-box {
    padding: 14px 18px;
    background: #ffffff;
    border-top: 1px solid var(--border-soft);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.guide-caption-tag {
    display: inline-block;
    background: #f5f3ff;
    color: var(--brand-purple);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    border: 1px solid var(--border-accent);
}

/* Steps Grid */
.seo-guide-section {
    margin-bottom: 36px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-card {
    background: #fafafe;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-soft);
    position: relative;
    padding-left: 56px;
    transition: border-color 0.2s ease;
}

.step-card:hover {
    border-color: var(--border-accent);
}

.step-number {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 28px;
    height: 28px;
    background: var(--paste-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.step-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Supported Formats */
.supported-formats-section {
    margin-bottom: 36px;
}

.formats-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.format-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.format-card {
    background: #ffffff;
    padding: 18px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.format-card:hover {
    border-color: var(--brand-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
}

.format-emoji {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: inline-block;
}

.format-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.format-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    flex: 1;
}

.format-explore-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-purple);
}

/* SEO Article Section */
.seo-article-section {
    margin-bottom: 36px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--text-main);
}

.article-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.article-body ul, .article-body ol {
    margin: 10px 0 16px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-body li {
    margin-bottom: 6px;
}

.article-callout-box {
    background: #f5f3ff;
    border-left: 4px solid var(--brand-purple);
    padding: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
}

.article-callout-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-purple);
    margin-bottom: 6px;
}

.article-callout-box p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* FAQs */
.faq-section {
    margin-bottom: 40px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: var(--brand-purple);
}

.faq-question {
    padding: 16px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    font-size: 1.2rem;
    color: var(--brand-purple);
    font-weight: 700;
}

.faq-answer {
    padding: 0 18px 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Legal Pages */
.legal-page-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 10px 0;
}

.legal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.legal-card h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 8px 0 6px;
}

.legal-date {
    font-size: 0.84rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

.legal-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--text-main);
}

.legal-article p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.legal-article ol, .legal-article ul {
    margin: 12px 0 18px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.dmca-contact-box {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    padding: 18px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

/* Contact Form Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group .req {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-main);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.contact-submit-btn {
    background: var(--paste-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 13px 24px;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(192, 38, 211, 0.35);
    transition: all 0.2s ease;
}

.contact-submit-btn svg {
    width: 18px;
    height: 18px;
}

.contact-submit-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(192, 38, 211, 0.45);
}

.contact-feedback-box {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.feedback-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.feedback-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.contact-info-panel {
    background: #fafafe;
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid var(--border-accent);
}

.contact-info-panel h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.info-icon {
    font-size: 1.3rem;
}

.info-item h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.info-item p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.quick-faq-box {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.quick-faq-box h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.quick-faq-box p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Floating Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-accent);
    color: var(--brand-purple);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s ease;
    z-index: 999;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--brand-purple);
    color: #ffffff;
    transform: translateY(-2px);
}

.back-to-top-btn svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.site-footer {
    background: var(--brand-navy);
    color: #94a3b8;
    padding: 50px 20px 26px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.footer-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trust-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links-group h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-group a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

.footer-links-group a:hover {
    color: #ffffff;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-bottom: 24px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #94a3b8;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    color: #94a3b8;
}

.footer-badges {
    display: flex;
    gap: 12px;
}

.trust-badge {
    font-size: 0.78rem;
    color: #e2e8f0;
}

/* Animations */
@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(192, 38, 211, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(192, 38, 211, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 38, 211, 0); }
}

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

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

@keyframes waveMotion {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1); }
}

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

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

/* Mobile Responsiveness */
@media (max-width: 868px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border-soft);
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .header-install-btn {
        display: none !important;
    }

    .header-install-btn-mobile {
        display: inline-flex !important;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-badges {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .features-cards-grid,
    .formats-pills-grid {
        grid-template-columns: 1fr;
    }

    .media-btn-label {
        display: none;
    }

    .media-icon-btn {
        padding: 10px 4px;
    }

    .paste-btn {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    .legal-card {
        padding: 24px 16px;
    }

    .pwa-install-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
}

/* ==========================================================================
   PWA (Progressive Web App) UI Components & Modals
   ========================================================================== */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-install-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.28);
    transition: all 0.2s ease;
    margin-left: 6px;
}

.header-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.header-install-btn svg {
    width: 14px;
    height: 14px;
}

.header-install-btn-mobile {
    display: none;
    background: #f5f3ff;
    border: 1px solid var(--border-accent);
    color: var(--brand-purple);
    border-radius: 50px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 4px;
}

.header-install-btn-mobile svg {
    width: 13px;
    height: 13px;
}

/* Floating Bottom Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--border-accent);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.22);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-install-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.pwa-banner-icon img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: block;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-app-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    line-height: 1.2;
}

.pwa-app-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: var(--paste-gradient);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(192, 38, 211, 0.35);
    transition: all 0.2s ease;
}

.pwa-btn-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 38, 211, 0.45);
}

.pwa-btn-dismiss {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.pwa-btn-dismiss:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* iOS Safari Modal */
.ios-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ios-install-modal.open {
    opacity: 1;
}

.ios-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.ios-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-install-modal.open .ios-modal-card {
    transform: translateY(0);
}

.ios-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    position: relative;
}

.ios-app-icon img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    display: block;
}

.ios-app-info h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.ios-app-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ios-modal-close {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
}

.ios-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-purple);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ios-step p {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

.ios-modal-done-btn {
    width: 100%;
    background: var(--paste-gradient);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(192, 38, 211, 0.35);
}
