/* ============================================
   PikSave - style.css v3.0.0
   Clean Light Theme - Vibrant Gradients
   ============================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    --bg-input: #f4f6f9;
    --accent: #dd2a7b;
    --accent-2: #8134af;
    --accent-3: #515bd4;
    --gradient-hero: linear-gradient(135deg, #f58529 0%, #dd2a7b 35%, #8134af 65%, #515bd4 100%);
    --gradient-main: linear-gradient(135deg, #f58529 0%, #dd2a7b 40%, #8134af 70%, #515bd4 100%);
    --gradient-btn: linear-gradient(135deg, #dd2a7b 0%, #8134af 100%);
    --gradient-btn-hover: linear-gradient(135deg, #c7166b 0%, #6d28a0 100%);
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-hover: #d1d5db;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-input: 0 2px 8px rgba(221, 42, 123, 0.12);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* RTL */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .header-inner { flex-direction: row-reverse; }
html[dir="rtl"] .header-nav { flex-direction: row-reverse; }
html[dir="rtl"] .footer-inner { flex-direction: row-reverse; }
html[dir="rtl"] .faq-question { text-align: right; }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

/* ============ LAYOUT ============ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ============ AMBIENT GLOW (light version) ============ */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(180px);
    pointer-events: none;
    z-index: 0;
}
.glow-1 { top: -300px; left: 10%; width: 600px; height: 600px; background: rgba(245,133,41,0.07); }
.glow-2 { top: 40%; right: -200px; width: 500px; height: 500px; background: rgba(221,42,123,0.05); }
.glow-3 { bottom: -200px; left: 30%; width: 500px; height: 500px; background: rgba(129,52,175,0.04); }

/* ============ HEADER ============ */
header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-btn);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}
.logo-text {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.header-nav {
    display: flex;
    gap: 4px;
}
.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.header-nav a:hover, .header-nav a.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* ============ LANGUAGE SELECTOR ============ */
.lang-selector { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--border-hover); background: var(--bg-secondary); }
.lang-btn svg { color: var(--text-muted); width: 12px; height: 12px; }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 220px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
}
.lang-dropdown.open { display: block; }
.lang-dropdown::-webkit-scrollbar { width: 5px; }
.lang-dropdown::-webkit-scrollbar-track { background: transparent; }
.lang-dropdown::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.15s;
}
.lang-option:hover { background: var(--bg-secondary); color: var(--text-primary); }
.lang-option.active { color: var(--accent); background: rgba(221,42,123,0.06); font-weight: 600; }
.lang-flag { font-size: 18px; }
.lang-name { font-weight: 500; }

/* ============ HERO ============ */
.hero {
    padding: 56px 0 32px;
    text-align: center;
    background: var(--gradient-hero);
    margin: 0 0 0 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-secondary), transparent);
}
.hero .container { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    animation: fadeInDown 0.5s ease;
}
.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
.hero h1 {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 14px;
    color: #fff;
    animation: fadeInUp 0.5s ease;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, #fde68a, #fbbf24, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
    animation: fadeInUp 0.5s ease 0.1s both;
}

/* ============ DOWNLOAD BOX ============ */
.download-box {
    max-width: 640px;
    margin: 0 auto 28px;
    animation: fadeInUp 0.5s ease 0.15s both;
}
.input-wrapper {
    display: flex;
    gap: 0;
    background: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    padding: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.input-wrapper:focus-within {
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15), var(--shadow-input);
}
.input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    padding: 12px 16px;
}
.input-wrapper input::placeholder { color: var(--text-muted); }
.btn-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 8px;
    font-size: 16px;
    display: none;
    align-items: center;
    transition: color 0.2s;
}
.btn-clear.visible { display: flex; }
.btn-clear:hover { color: var(--text-primary); }

.btn-download {
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn-download:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(221,42,123,0.35);
}
.btn-download:active { transform: translateY(0); }
.btn-download.loading { pointer-events: none; opacity: 0.7; }

/* ============ TYPE TABS ============ */
.type-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease 0.2s both;
}
.type-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 100px;
    border: none;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
}
.type-tab:hover { background: rgba(255,255,255,0.35); color: #fff; }
.type-tab.active { background: #fff; color: var(--accent); }
.type-tab svg { width: 15px; height: 15px; }

/* ============ LOADING ============ */
.spinner-area { max-width: 640px; margin: 0 auto 40px; display: none; text-align: center; padding: 40px; }
.spinner-area.visible { display: block; }
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 14px;
}
.spinner-area p { color: var(--text-secondary); font-size: 14px; }

/* ============ ERROR ============ */
.error-area {
    max-width: 640px;
    margin: 0 auto 32px;
    display: none;
    text-align: center;
    padding: 18px 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}
.error-area.visible { display: block; }

/* ============ RESULTS ============ */
.results-area { max-width: 700px; margin: 0 auto 48px; display: none; }
.results-area.visible { display: block; }

.result-header {
    margin: 0 auto 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.result-owner { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.result-caption { font-size: 13px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ RESULT CARDS (single post) ============ */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    animation: fadeInUp 0.4s ease;
}
.result-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.result-thumb-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
}
.result-thumb-wrap .result-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.result-info { flex: 1; }
.result-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.result-info h3 small { color: var(--text-muted); font-weight: 400; }
.result-info p { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-result {
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-result.primary { background: var(--gradient-btn); color: #fff; }
.btn-result.primary:hover { background: var(--gradient-btn-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(221,42,123,0.25); }
.btn-result.secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-result.secondary:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.btn-proxy { cursor: pointer; }

/* ============ SECTIONS ============ */
.how-section { padding: 56px 0 64px; background: var(--bg-primary); }
.features-section { padding: 48px 0 64px; background: var(--bg-secondary); }
.why-section { padding: 48px 0 64px; background: var(--bg-primary); }
.faq-section { padding: 48px 0 64px; background: var(--bg-secondary); }

.section-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-title {
    text-align: center;
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 48px;
    color: var(--text-primary);
}

/* ============ STEPS ============ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card:hover::before { opacity: 1; }
.step-number {
    font-family: 'Space Mono', monospace;
    font-size: 44px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.35;
    margin-bottom: 14px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ============ FEATURES ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.fi-video { background: rgba(221,42,123,0.1); }
.fi-photo { background: rgba(81,91,212,0.1); }
.fi-reels { background: rgba(129,52,175,0.1); }
.fi-story { background: rgba(245,133,41,0.1); }
.fi-carousel { background: rgba(252,175,69,0.1); }
.fi-hd { background: rgba(221,42,123,0.1); }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ============ WHY ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { text-align: center; padding: 28px 20px; }
.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px;
    background: rgba(221,42,123,0.08);
    border: 1px solid rgba(221,42,123,0.12);
}
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.why-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ============ FAQ ============ */
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s;
    box-shadow: var(--shadow-sm);
}
.faq-item.open { border-color: var(--accent); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s; color: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 20px 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ============ FOOTER ============ */
footer { padding: 32px 0; border-top: 1px solid var(--border); background: var(--bg-primary); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ============ AD SLOTS ============ */
.ad-slot {
    max-width: 728px;
    margin: 16px auto;
    min-height: 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============ PROFILE CARD ============ */
.profile-card {
    max-width: 700px;
    margin: 0 auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.4s ease;
}
.profile-header { display: flex; gap: 20px; align-items: flex-start; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, var(--gradient-btn) border-box;
    display: block;
}
.avatar-download-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--bg-card);
    transition: transform 0.2s;
    z-index: 2;
}
.avatar-download-btn:hover { transform: scale(1.15); }
.profile-info { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.profile-username { font-size: 18px; font-weight: 700; color: var(--accent); }
.verified-badge {
    background: var(--accent-3);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.profile-link { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.profile-link:hover { color: var(--accent); }
.profile-fullname { font-size: 14px; color: var(--text-primary); font-weight: 600; margin-bottom: 8px; }
.profile-stats { display: flex; gap: 18px; margin-bottom: 8px; font-size: 13px; color: var(--text-secondary); flex-wrap: wrap; }
.profile-stats strong { color: var(--text-primary); font-weight: 700; }
.profile-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 4px; word-break: break-word; }

/* ============ PROFILE TABS ============ */
.profile-tabs {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.profile-tab {
    flex: 1;
    padding: 14px 8px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.profile-tab:hover { color: var(--text-secondary); background: var(--bg-secondary); }
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-icon { font-size: 14px; }

/* ============ PROFILE CONTENT ============ */
.profile-content { max-width: 700px; margin: 0 auto; }

/* ============ TAB STATES ============ */
.tab-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.tab-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.35; }
.tab-empty p { color: var(--text-secondary); font-size: 14px; margin-bottom: 4px; }
.tab-empty .tab-empty-sub { font-size: 12px; color: var(--text-muted); }
.tab-loading { text-align: center; padding: 48px 24px; background: var(--bg-card); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.tab-loading .spinner { margin: 0 auto 12px; }
.tab-loading p { color: var(--text-secondary); font-size: 14px; }

/* ============ PROFILE GRID ============ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    background: var(--border);
}
.profile-grid-item {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}
.profile-grid-item:hover { background: var(--bg-card-hover); }
.grid-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
}
.grid-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.grid-thumb-wrap:hover img { transform: scale(1.06); }
.grid-thumb-wrap .play-badge { top: 10px; right: 10px; left: auto; transform: none; width: 30px; height: 30px; font-size: 12px; }
.grid-expand-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    background: rgba(0,0,0,0.45);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.grid-thumb-wrap:hover .grid-expand-icon { opacity: 1; }
.grid-item-body { padding: 10px 12px; display: flex; flex-direction: column; flex: 1; }
.grid-caption {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    flex: 1;
    min-height: 28px;
}
.grid-btn { display: block; text-align: center; padding: 9px 0; font-size: 13px; border-radius: 8px; font-weight: 600; }
.grid-meta { display: flex; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.grid-meta span { display: flex; align-items: center; gap: 2px; }

/* ============ HIGHLIGHTS GRID ============ */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.highlight-card {
    text-align: center;
    cursor: pointer;
    padding: 14px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.25s;
}
.highlight-card:hover { background: var(--bg-secondary); border-color: var(--border); transform: translateY(-2px); }
.highlight-cover-wrap {
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    padding: 3px;
    background: var(--gradient-btn);
}
.highlight-cover-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--bg-card); }
.highlight-title { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; margin-left: auto; margin-right: auto; }
.highlight-count { font-size: 11px; color: var(--text-muted); }
.highlight-back-btn { margin-bottom: 12px; display: inline-flex; }
.highlight-media-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }

/* ============ LIGHTBOX ============ */
.lightbox-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-overlay.open { opacity: 1; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); }
.lightbox-container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 90vw; max-height: 90vh; width: 100%; }
.lightbox-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; padding: 4px 12px; z-index: 5; opacity: 0.7; transition: opacity 0.2s; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.2s;
    backdrop-filter: blur(6px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }
.lightbox-media { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 70vh; }
.lightbox-img { max-width: 100%; max-height: 70vh; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox-video { max-width: 100%; max-height: 70vh; border-radius: var(--radius-sm); outline: none; }
.lightbox-info { width: 100%; max-width: 600px; margin-top: 16px; }
.lightbox-caption { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 12px; max-height: 60px; overflow-y: auto; word-break: break-word; }
.lightbox-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lightbox-counter { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 600; }
.lightbox-meta { display: flex; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.5); flex: 1; }
.lightbox-dl { font-size: 13px; padding: 10px 20px; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero { padding: 40px 0 28px; }
    .hero h1 { letter-spacing: -1px; font-size: 28px; }
    .hero p { font-size: 14px; margin-bottom: 24px; }
    .steps-grid, .features-grid, .why-grid { grid-template-columns: 1fr; }
    .input-wrapper { flex-direction: column; gap: 0; }
    .btn-download { margin: 0 5px 5px; border-radius: 8px; padding: 12px; }
    .header-nav { display: none; }
    .type-tabs { gap: 4px; }
    .type-tab { padding: 7px 12px; font-size: 12px; }
    .result-card { flex-direction: column; text-align: center; }
    .result-thumb-wrap { width: 100%; height: 220px; }
    .result-actions { justify-content: center; }
    .footer-inner { flex-direction: column; text-align: center; }
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-name-row { justify-content: center; }
    .profile-stats { justify-content: center; }
    .profile-avatar { width: 72px; height: 72px; }
    .profile-tab { font-size: 10px; padding: 12px 4px; letter-spacing: 0.5px; }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
    .lightbox-nav { width: 36px; height: 36px; font-size: 20px; }
    .lightbox-container { max-width: 96vw; }
    .lightbox-actions { justify-content: center; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .section-title { margin-bottom: 32px; }
    .how-section, .features-section, .why-section, .faq-section { padding: 36px 0 44px; }
    .container { padding: 0 16px; }
    .download-box { margin: 0 auto 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-item-body { padding: 8px; }
    .grid-btn { font-size: 12px; padding: 7px 0; }
    .grid-meta { font-size: 10px; }
}

/* ============ PRIVATE DOWNLOADER ============ */
.private-downloader {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.4s ease;
}
.private-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 20px;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
}
.private-warning-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.private-warning strong { font-size: 14px; color: #c2410c; display: block; margin-bottom: 2px; }
.private-warning p { font-size: 13px; color: #9a3412; line-height: 1.5; margin: 0; }
.private-header {
    text-align: center;
    padding: 32px 24px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.private-icon { font-size: 36px; margin-bottom: 10px; }
.private-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.private-header p {
    font-size: 14px;
    color: var(--text-secondary);
}
.private-steps { padding: 24px; }
.private-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.private-step:last-child { margin-bottom: 0; }
.private-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.private-step-content { flex: 1; min-width: 0; }
.private-step-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.private-step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}
.private-url-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
}
.private-url-icon { font-size: 16px; flex-shrink: 0; }
.private-copy-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 4px 4px 4px 12px;
}
.private-copy-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 12px;
    font-family: monospace;
    color: var(--text-secondary);
    min-width: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.private-copy-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: var(--radius-xs) !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.private-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    font-family: monospace;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 12px;
    min-height: 120px;
}
.private-textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-input);
}
.private-textarea::placeholder { color: var(--text-muted); }
.private-submit-btn {
    width: 100%;
    padding: 14px !important;
    font-size: 15px !important;
    border-radius: var(--radius-sm) !important;
    text-align: center;
    justify-content: center;
}
.private-loading {
    text-align: center;
    padding: 24px;
}
.private-loading .spinner { margin: 0 auto 10px; }
.private-loading p { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 768px) {
    .private-header { padding: 24px 16px 20px; }
    .private-header h2 { font-size: 18px; }
    .private-steps { padding: 16px; }
    .private-step { gap: 10px; }
    .private-copy-box { flex-direction: column; padding: 8px; }
    .private-copy-input { width: 100%; font-size: 11px; }
}

/* ============ STATIC PAGES ============ */
.static-page {
    padding: 48px 0 64px;
    background: var(--bg-primary);
    min-height: 60vh;
}
.static-content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 48px;
    box-shadow: var(--shadow-sm);
}
.static-content h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.static-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.static-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 10px;
}
.static-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 8px;
}
.static-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}
.static-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.static-content a:hover {
    text-decoration: underline;
}

/* ============ CONTACT FORM ============ */
.contact-intro {
    margin-bottom: 28px;
}
.contact-intro p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.contact-form-wrap {
    margin-bottom: 40px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-input);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group select {
    cursor: pointer;
    appearance: auto;
}
.contact-submit {
    width: 100%;
    padding: 13px !important;
    font-size: 15px !important;
    border-radius: var(--radius-sm) !important;
    text-align: center;
    justify-content: center;
    cursor: pointer;
}
.contact-success {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-xs);
    color: #166534;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
}

/* ============ CONTACT CARDS ============ */
.contact-alternatives { margin-top: 8px; }
.contact-alternatives h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.contact-card {
    text-align: center;
    padding: 20px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.contact-card-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}
.contact-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    margin-top: 0;
}
.contact-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .static-content { padding: 28px 20px; }
    .static-content h1 { font-size: 22px; }
    .contact-cards { grid-template-columns: 1fr; }
}

/* ============ TOOL PAGES (subpáginas SEO) ============ */
.tool-content {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}
.tool-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
}
.tool-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.tool-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
}
.tool-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.tool-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.tool-feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tool-features-grid { grid-template-columns: 1fr; }
    .tool-content p { font-size: 14px; }
}