/* ═══════════════════════════════════════════════════════════════
   VUZA v4 — Purple Claymorphism Premium UI
   Video Utility for Zero-cost Automation
   Built by Ali R.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #8b5cf6;
    --primary-soft: rgba(139, 92, 246, 0.15);
    --primary-glow: rgba(139, 92, 246, 0.35);
    --secondary: #a78bfa;
    --accent: #c084fc;
    --pink: #ec4899;
    --bg-base: #0c0a14;
    --bg-card: rgba(18, 14, 30, 0.9);
    --bg-input: rgba(255, 255, 255, 0.04);
    --bg-clay: rgba(30, 22, 50, 0.8);
    --border: rgba(139, 92, 246, 0.12);
    --border-hover: rgba(139, 92, 246, 0.3);
    --text: #f0eef5;
    --text-dim: #9896a8;
    --text-muted: #5a5870;
    --radius: 16px;
    --clay-shadow: 6px 6px 14px rgba(0, 0, 0, 0.5), -3px -3px 10px rgba(139, 92, 246, 0.06);
    --clay-inset: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -1px -1px 3px rgba(139, 92, 246, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-base);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 80%, rgba(139, 92, 246, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(236, 72, 153, 0.05), transparent),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(167, 139, 250, 0.03), transparent);
    animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ═══ PAGE LAYOUT: Main + Sidebar ═══ */
.page-layout {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.app-wrapper {
    flex: 1;
    max-width: 860px;
    min-width: 0;
    padding: 30px 0;
}

/* ── Right Sidebar Ad ── */
.sidebar-ad {
    width: 220px;
    min-width: 220px;
    padding-top: 120px;
    align-self: flex-start;
    position: sticky;
    top: 20px;
    order: 2;
}

/* ── Brand Gradient ── */
.brand-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ═══ HERO ═══ */
.hero {
    text-align: center;
    padding: 50px 20px 40px;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-soft);
    border: 1px solid var(--border);
    color: var(--secondary);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 6px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 14px;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.hero-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 14px;
    padding: 16px 20px;
    max-width: 600px;
    margin: 0 auto 28px;
    text-align: left;
    box-shadow: var(--clay-shadow);
}

.hero-highlight i {
    color: #fbbf24;
    font-size: 1.4rem;
    min-width: 24px;
}

.hero-highlight span {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.hero-highlight strong {
    color: var(--pink);
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-clay);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    box-shadow: var(--clay-shadow);
}

.feature-item i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.dev-callout {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.7;
    text-align: left;
    box-shadow: var(--clay-shadow);
}

.dev-callout i {
    color: var(--primary);
    margin-right: 6px;
}

.dev-callout strong {
    color: var(--text);
}

/* ═══ SETTINGS PANEL ═══ */
.settings-panel {
    margin-bottom: 24px;
}

.settings-toggle {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-clay);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: var(--clay-shadow);
}

.settings-toggle:hover {
    border-color: var(--primary);
    color: var(--text);
}

.toggle-hint {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.75rem;
}

.toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.settings-panel.open .toggle-arrow {
    transform: rotate(180deg);
}

.settings-body {
    margin-top: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--clay-shadow);
}

.settings-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 10px;
    background: var(--bg-input);
    border-radius: 10px;
    text-align: center;
}

.settings-row {
    margin-bottom: 20px;
}

.settings-row h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-row h4 i {
    color: var(--primary);
}

.key-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.key-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.key-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.get-key {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.key-field input {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    box-shadow: var(--clay-inset);
}

.key-field input:focus {
    border-color: var(--primary);
}

.save-keys-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.save-keys-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* ═══ MAIN PANEL ═══ */
.main-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(40px);
    box-shadow: var(--clay-shadow);
}

/* ── Tabs ── */
.mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-input);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.mode-tab {
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-tab:hover {
    color: var(--text);
    background: rgba(139, 92, 246, 0.06);
}

.mode-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* ── Inputs ── */
.input-area {
    margin-bottom: 24px;
}

.topic-generator {
    margin-bottom: 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed var(--primary);
    padding: 18px;
    border-radius: 14px;
}

.input-with-button {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.input-with-button input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    outline: none;
}

.secondary-btn {
    padding: 10px 18px;
    background: var(--bg-clay);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondary-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.input-area label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--clay-inset);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.input-area textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.3s;
    box-shadow: var(--clay-inset);
}

.input-area textarea:focus {
    border-color: var(--primary);
}

/* ── Settings Grid ── */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.setting-card {
    background: var(--bg-clay);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--clay-shadow);
    transition: border-color 0.3s;
}

.setting-card:hover {
    border-color: var(--border-hover);
}

.setting-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.setting-label .highlight {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
}

/* ── Pills ── */
.pill-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--clay-inset);
}

.pill-group.tri {
    grid-template-columns: 1fr 1fr 1fr;
}

.pill-group input[type="radio"] {
    display: none;
}

.pill-group label {
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-dim);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-right: 1px solid rgba(139, 92, 246, 0.06);
}

.pill-group label:last-of-type {
    border-right: none;
}

.pill-group label:hover {
    color: var(--text);
    background: rgba(139, 92, 246, 0.06);
}

.pill-group input[type="radio"]:checked+label {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* ── Range ── */
.custom-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    outline: none;
    margin-top: 6px;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* ── Select ── */
.custom-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    box-shadow: var(--clay-inset);
}

.custom-select:focus {
    border-color: var(--primary);
}

/* ── Studio ── */
.studio-panel {
    margin-top: 6px;
    margin-bottom: 24px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.studio-header {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ═══ ACTION BUTTON ═══ */
.action-btn {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--pink));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 8px 30px -4px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -4px var(--primary-glow);
}

.action-btn:active {
    transform: translateY(1px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══ STATUS ═══ */
.status-card {
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--clay-shadow);
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-text {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
}

.status-percent {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.progress-track {
    height: 6px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.5s;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ═══ GALLERY ═══ */
.gallery-panel {
    margin-top: 28px;
}

.gallery-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gallery-top h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-top h2 i {
    color: var(--primary);
}

.clear-btn {
    background: var(--bg-clay);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--clay-shadow);
}

.clear-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.3;
}

.keyword-block {
    margin-bottom: 28px;
}

.keyword-block h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sentence-text {
    display: block;
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.media-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid var(--border);
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--clay-shadow);
}

.media-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.media-card:hover .media-actions {
    opacity: 1;
}

.media-actions .icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.media-actions .icon-btn:hover {
    background: var(--primary);
}

.media-actions .badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* ═══ PROMO BANNER ═══ */
.promo-banner {
    margin-top: 30px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.08));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--clay-shadow);
}

.promo-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #fff;
}

.promo-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.promo-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 12px;
}

.promo-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.promo-btn {
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.promo-btn.secondary {
    background: var(--bg-clay);
    border: 1px solid var(--border);
    box-shadow: var(--clay-shadow);
}

.promo-btn.secondary:hover {
    border-color: var(--primary);
}

.promo-note {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
}

/* ═══ UPCOMING ═══ */
.upcoming-section {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--clay-shadow);
}

.upcoming-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upcoming-section h3 i {
    color: var(--accent);
}

.upcoming-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.upcoming-item {
    padding: 12px;
    background: var(--bg-clay);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--clay-shadow);
}

.upcoming-item i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

/* ═══ FOOTER ═══ */
.app-footer {
    text-align: center;
    padding: 40px 20px 20px;
    border-top: 1px solid var(--border);
    margin-top: 30px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.footer-credit {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a i {
    margin-right: 4px;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ═══ TOAST ═══ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: toastSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.toast.error {
    border-color: #ef4444;
}

@keyframes toastSlide {
    from {
        transform: translateX(120%);
    }

    to {
        transform: translateX(0);
    }
}

.hidden {
    display: none !important;
}

/* ═══ PINTEREST SHOWCASE ═══ */
.pinterest-showcase {
    margin-top: 28px;
    background: linear-gradient(135deg, rgba(230, 33, 52, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(230, 33, 52, 0.2);
    border-radius: 18px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--clay-shadow);
}

.pinterest-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(230, 33, 52, 0.08), transparent 70%);
}

.showcase-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.pinterest-showcase h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.pinterest-showcase h3 i {
    color: #e62134;
    margin-right: 8px;
}

.pinterest-showcase>p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 8px;
}

.pinterest-showcase>p strong {
    color: var(--text);
}

.showcase-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 16px 0;
}

.showcase-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-dim);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.showcase-features i {
    color: #22c55e;
    font-size: 0.85rem;
}

.showcase-credit {
    margin-top: 14px;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    background: rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(230, 33, 52, 0.1);
}

.showcase-credit i {
    color: #ef4444;
    margin-right: 6px;
}

.showcase-credit a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.showcase-credit a:hover {
    text-decoration: underline;
}

/* ═══ SIDEBAR PROMO AD ═══ */
.promo-sidebar-ad {
    margin-top: 0;
    border: none;
    border-radius: 14px;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, var(--primary), var(--pink), var(--accent)) border-box;
    border: 2px solid transparent;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.ad-label {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    padding: 4px;
}

.ad-content {
    padding: 16px 14px;
    text-align: center;
}

.ad-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.ad-content h3 {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.ad-content>p {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 12px;
}

.ad-content>p strong {
    color: var(--text);
}

.ad-btn {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    margin-bottom: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.ad-btn.secondary {
    background: var(--bg-clay);
    border: 1px solid var(--border);
    box-shadow: var(--clay-shadow);
}

.ad-btn.secondary:hover {
    border-color: var(--primary);
}

.ad-note {
    font-size: 0.65rem !important;
    color: var(--text-muted) !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
    .sidebar-ad {
        width: 190px;
        min-width: 190px;
    }
}

@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
        align-items: center;
    }

    .sidebar-ad {
        width: 100%;
        min-width: unset;
        max-width: 860px;
        position: static;
        padding-top: 0;
        order: 0;
    }

    .promo-sidebar-ad {
        margin-bottom: 20px;
    }

    .ad-content {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: center;
        padding: 16px 20px;
    }

    .ad-icon {
        margin: 0;
        font-size: 1.3rem;
    }

    .ad-content h3 {
        font-size: 0.9rem;
        width: 100%;
    }

    .ad-content>p {
        width: 100%;
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .ad-btn {
        width: auto;
        padding: 10px 20px;
        display: inline-block;
    }
}

@media (max-width: 700px) {

    .settings-grid,
    .studio-grid,
    .hero-features,
    .upcoming-grid,
    .key-grid.two-col,
    .showcase-features {
        grid-template-columns: 1fr;
    }

    .main-panel,
    .settings-body {
        padding: 20px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-highlight {
        flex-direction: column;
        text-align: center;
    }

    .ad-btn {
        width: 100%;
        display: block;
    }
}