/* ==========================================================================
   Quikro - Instagram Downloader Stylesheet
   Matches Reference Screenshot: Purple-Pink Gradient Hero & Floating Pill Nav
   ========================================================================== */

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Primary Color Palette */
    --primary-purple: #6a11cb;
    --primary-pink: #f72585;
    --primary-indigo: #560bad;
    --primary-blue: #3a0ca3;
    --accent-orange: #f77f00;
    --accent-cyan: #00b4d8;
    
    /* Hero Gradient matching screenshot */
    --hero-gradient: linear-gradient(135deg, #6c19c5 0%, #9e148f 35%, #e01e7a 70%, #ff4b72 100%);
    --button-gradient: linear-gradient(135deg, #5e35b1 0%, #6200ea 100%);
    
    /* Neutrals & Surfaces */
    --bg-page: #f8f9fa;
    --surface-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-subtle: #e2e8f0;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --pill-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --input-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ==========================================================================
   Header & Floating Pill Navigation
   ========================================================================== */
.site-header {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.pill-navbar {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 6px 10px;
    box-shadow: var(--pill-shadow);
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pill-navbar::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-pill:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.nav-pill.active {
    background: #6a11cb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.35);
}

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

.nav-pill.active .pill-icon {
    color: #ffffff;
}

/* Specific icon tinting when inactive */
.nav-pill:not(.active) .icon-reels { color: #f97316; }
.nav-pill:not(.active) .icon-photo { color: #3b82f6; }
.nav-pill:not(.active) .icon-stories { color: #a855f7; }
.nav-pill:not(.active) .icon-igtv { color: #6366f1; }
.nav-pill:not(.active) .icon-carousel { color: #ec4899; }
.nav-pill:not(.active) .icon-profile { color: #06b6d4; }
.nav-pill:not(.active) .icon-viewer { color: #f43f5e; }

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid #f1f5f9;
}

.dropdown-menu.show {
    display: flex;
    animation: fadeInDropdown 0.2s ease;
}

.dropdown-item {
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--primary-purple);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: var(--hero-gradient);
    padding: 140px 20px 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background glowing orbs */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.25;
}

.hero-section::before {
    width: 400px;
    height: 400px;
    background: #ffffff;
    top: -100px;
    left: 10%;
}

.hero-section::after {
    width: 500px;
    height: 500px;
    background: #ffd166;
    bottom: -150px;
    right: 5%;
}

.hero-container {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
}

/* ==========================================================================
   Pill URL Input Container matching Reference Screenshot
   ========================================================================== */
.search-box-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.input-pill-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 9999px;
    padding: 8px 10px 8px 24px;
    box-shadow: var(--input-shadow);
    transition: var(--transition);
}

.input-pill-container:focus-within {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.url-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
    padding-right: 12px;
}

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

.btn-paste {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 10px;
}

.btn-paste:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.paste-icon {
    width: 17px;
    height: 17px;
    color: #64748b;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 14px 34px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(94, 53, 177, 0.4);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(94, 53, 177, 0.55);
    filter: brightness(1.05);
}

.btn-download:active {
    transform: translateY(1px);
}

/* Sample Links under Search Box */
.sample-links-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    animation: fadeIn 0.4s ease;
}

.sample-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.sample-pill {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 9999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    font-family: inherit;
}

.sample-pill:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* Alert Box */
.alert-box {
    margin-top: 18px;
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    text-align: left;
    animation: fadeInAlert 0.25s ease;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
}

.alert-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

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

/* ==========================================================================
   Media Preview Section (Matching Reference Screenshot)
   ========================================================================== */
.preview-section {
    padding: 36px 20px 20px 20px;
}

.preview-container {
    max-width: 860px;
    margin: 0 auto;
}

.results-title-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.search-results-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.loading-wrap {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f1f5f9;
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    margin: 0 auto 18px auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.loading-sub {
    font-size: 0.95rem;
    color: #64748b;
}

/* Result Card */
.result-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 28px;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.result-card-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .result-card-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Left Column Preview Box */
.preview-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-preview-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    max-height: 440px;
    background: #000000;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.preview-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.play-overlay-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #743cf3;
}

.play-overlay-btn svg {
    width: 26px;
    height: 26px;
    margin-left: 3px;
}

.fullscreen-preview-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fullscreen-preview-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.fullscreen-preview-btn svg {
    width: 18px;
    height: 18px;
}

.video-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #000000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Carousel Nav Row */
.carousel-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 9999px;
}

.btn-carousel-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: var(--transition);
}

.btn-carousel-pill:hover:not(:disabled) {
    background: #f1f5f9;
}

.btn-carousel-pill:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-counter-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
}

/* Right Column Options */
.preview-right-col {
    display: flex;
    flex-direction: column;
}

.options-header {
    margin-bottom: 20px;
}

.options-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

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

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px 6px 22px;
    border: 1.5px solid #743cf3;
    border-radius: 9999px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.option-row:hover {
    border-color: #5e2dd1;
    box-shadow: 0 4px 14px rgba(116, 60, 243, 0.12);
}

.option-label {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.02em;
}

.option-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #743cf3;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 10px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: #5e2dd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116, 60, 243, 0.35);
}

.option-btn.loading {
    background: #9333ea;
    cursor: wait;
}

.option-btn.loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 6px;
}

/* Profile Stats Panel */
.profile-stats-panel {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
}

.stat-badge {
    text-align: center;
}

.stat-badge strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.stat-badge span {
    font-size: 0.85rem;
    color: #64748b;
}

/* Bottom Caption Container */
.caption-container {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.caption-content {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #475569;
    white-space: pre-line;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 8px;
}

.caption-content::-webkit-scrollbar {
    width: 4px;
}

.caption-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
    color: #475569;
}

/* Download Actions */
.download-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(94, 53, 177, 0.35);
    transition: var(--transition);
}

.action-btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 53, 177, 0.45);
}

.action-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    color: #334155;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.action-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   Supported Instagram Resource Types (8-Card Grid)
   ========================================================================== */
.resource-types-section {
    padding: 80px 20px 40px 20px;
}

.resource-container {
    max-width: 1140px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    padding: 60px 40px;
    box-shadow: var(--card-shadow);
}

.section-header {
    margin-bottom: 48px;
}

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

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.resource-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-card-icon svg {
    width: 24px;
    height: 24px;
}

/* Icon Background Badges matching screenshot */
.icon-bg-purple { background: #f3e8ff; color: #9333ea; }
.icon-bg-orange { background: #ffedd5; color: #ea580c; }
.icon-bg-blue   { background: #dbeafe; color: #2563eb; }
.icon-bg-violet { background: #ede9fe; color: #7c3aed; }
.icon-bg-indigo { background: #e0e7ff; color: #4f46e5; }
.icon-bg-pink   { background: #fce7f3; color: #db2777; }
.icon-bg-teal   { background: #ccfbf1; color: #0d9488; }
.icon-bg-rose   { background: #ffe4e6; color: #e11d48; }

.resource-card-content {
    flex: 1;
}

.resource-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.resource-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.resource-arrow {
    color: #94a3b8;
    font-size: 1.15rem;
    transition: var(--transition);
}

.resource-card:hover .resource-arrow {
    color: var(--primary-purple);
    transform: translateX(4px);
}

.resource-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

/* ==========================================================================
   Steps Section (How to Download in 3 Steps)
   ========================================================================== */
.steps-section {
    padding: 60px 20px;
}

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

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.8rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
}

.step-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f3e8ff;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.55;
}

/* Device Guides (iPhone, Android, PC) */
.device-guides-container {
    margin-top: 48px;
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
}

.device-guides-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 24px;
}

.device-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.device-guide-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.device-guide-col p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 40px 20px 60px 20px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-3px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
}

.icon-grad-purple { background: linear-gradient(135deg, #7b2cbf, #9d4edd); }
.icon-grad-blue   { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.icon-grad-green  { background: linear-gradient(135deg, #10b981, #34d399); }
.icon-grad-orange { background: linear-gradient(135deg, #f97316, #fb923c); }

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: 40px 20px 80px 20px;
}

.faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.faq-accordion {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    font-family: inherit;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-purple);
}

.faq-answer {
    padding: 0 24px 22px 24px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* ==========================================================================
   Static Pages (Terms / Privacy)
   ========================================================================== */
.page-hero-small {
    background: var(--hero-gradient);
    padding: 130px 20px 50px 20px;
    text-align: center;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
}

.page-content-section {
    padding: 50px 20px 80px 20px;
}

.card-surface {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
    max-width: 900px;
    margin: 0 auto;
}

.card-surface h2 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-top: 28px;
    margin-bottom: 12px;
}

.card-surface h2:first-of-type {
    margin-top: 0;
}

.card-surface p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-surface ul {
    margin-left: 20px;
    margin-bottom: 16px;
    color: #475569;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 70px 20px 30px 20px;
}

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

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

.footer-logo {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 14px;
}

.logo-gradient {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 380px;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-list a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-disclaimer {
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    padding: 24px 0;
    margin-bottom: 24px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #64748b;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 16px;
}

.security-badges {
    display: flex;
    gap: 16px;
}

.badge-item {
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* ==========================================================================
   Floating Chat / Feedback Widget
   ========================================================================== */
.floating-widget-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.floating-widget-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #7b2cbf;
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(123, 44, 191, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.floating-widget-btn:hover {
    transform: scale(1.08);
    background: #6a11cb;
}

.floating-widget-btn svg {
    width: 24px;
    height: 24px;
}

.widget-popup {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    padding: 20px;
    display: none;
    animation: popupIn 0.25s ease;
    border: 1px solid var(--border-subtle);
}

.widget-popup.show {
    display: block;
}

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

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.widget-header h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.close-popup-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
}

.widget-body p {
    font-size: 0.86rem;
    color: #64748b;
    margin-bottom: 12px;
}

.widget-body textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    margin-bottom: 12px;
    outline: none;
    resize: none;
}

.btn-submit-feedback {
    width: 100%;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-header {
        top: 14px;
        padding: 0 10px;
    }

    .pill-navbar {
        padding: 4px 6px;
    }

    .nav-pill {
        padding: 6px 12px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .hero-section {
        padding: 120px 16px 60px 16px;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .input-pill-container {
        padding: 6px 8px 6px 16px;
    }

    .url-input {
        font-size: 0.95rem;
    }

    .btn-paste {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-right: 6px;
    }

    .btn-download {
        padding: 12px 22px;
        font-size: 0.95rem;
    }

    .resource-container {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .card-surface {
        padding: 24px;
    }

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

@media (max-width: 480px) {
    .input-pill-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 14px;
        gap: 10px;
    }

    .url-input {
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    .btn-paste, .btn-download {
        width: 100%;
        margin-right: 0;
        justify-content: center;
    }
}


/* ==========================================================================
   Google #1 SEO Enhancements: Breadcrumbs, Trust Badges, Editorial & Guides
   ========================================================================== */

/* Breadcrumbs Bar */
.breadcrumb-container {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 24px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-link {
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.breadcrumb-link:hover {
    color: #2575fc;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #94a3b8;
    user-select: none;
}

.breadcrumb-current {
    color: #334155;
    font-weight: 600;
}

/* Trust Badges & Social Proof */
.trust-badge-section {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 24px;
}

.trust-badge-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.trust-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #334155;
    text-align: center;
}

.trust-rating-stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 1.05rem;
}

.trust-rating-score {
    font-weight: 700;
    color: #0f172a;
}

.trust-divider {
    color: #cbd5e1;
}

.trust-highlight {
    background: linear-gradient(135deg, #fdf2f8, #f5f3ff);
    color: #743cf3;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(116, 60, 243, 0.15);
}

.trust-perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.trust-perk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.trust-perk-item svg {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
}

/* Editorial Content & Guides Section */
.seo-editorial-section {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.seo-content-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.seo-article-intro {
    max-width: 960px;
    margin: 0 auto 40px;
    text-align: center;
}

.seo-article-heading {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.seo-article-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 16px;
    text-align: left;
}

/* Specific Editorial Feature Grid */
.editorial-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.editorial-feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editorial-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(106, 17, 203, 0.08);
    border-color: #cbd5e1;
}

.feat-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #743cf3, #9b51e0);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feat-icon-bubble svg {
    width: 24px;
    height: 24px;
}

.feat-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.feat-card-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Device Guides Section */
.device-guides-section {
    margin: 50px 0;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.device-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.device-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease;
}

.device-card:hover {
    border-color: #743cf3;
}

.device-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.device-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
}

.device-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.device-step-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #475569;
}

.step-bullet {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef2ff;
    color: #6a11cb;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Competitor Comparison Table */
.comparison-section {
    margin: 50px 0;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.table-responsive-wrapper {
    overflow-x: auto;
    margin-top: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
}

.comparison-table .highlight-col {
    background: #faf5ff;
}

.comparison-table th.th-quikro {
    color: #743cf3;
    font-size: 0.96rem;
    border-bottom: 2px solid #743cf3;
}

.comparison-table td.td-quikro {
    font-weight: 600;
    color: #6a11cb;
}

.badge-best {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Technical Specifications */
.specs-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.spec-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

@media (max-width: 768px) {
    .seo-content-container {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .seo-article-heading {
        font-size: 1.6rem;
    }

    .trust-pill {
        flex-direction: column;
        gap: 6px;
    }

    .trust-divider {
        display: none;
    }
}
