@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --bg-light: #f3f4f6;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --blue-stat: #3b82f6;
    --green-stat: #10b981;
    --yellow-tag: #fef3c7;
    --yellow-text: #92400e;
    --grey-tag: #f3f4f6;
    --grey-text: #374151;
    --red-user: #ef4444;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

h1 span { color: #1f2937; }

/* Search Area */
.search-section {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-grid {
    display: flex;
    gap: 15px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
}

.btn-main {
    background: linear-gradient(135deg, #f97316, #22c55e);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    letter-spacing: 0.5px;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    filter: brightness(1.1);
}

.btn-main:active {
    transform: translateY(0);
}

.btn-export {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover {
    background: #2563eb;
    color: white;
}

/* Filters Style */
.filters-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 45px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Specific Active Colors from Image */
#sortFilters .filter-btn.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

#typeFilters .filter-btn.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Stats Row Top */
.stats-summary-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mini-stat {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    flex: 1;
    text-align: center;
    border: 1px solid var(--border-color);
}

.mini-stat label { display: block; font-size: 0.75rem; } header p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    margin-top: 10px;
}

header {
    position: relative;
    padding-top: 20px;
}

.header-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 12px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: white;
}

.login-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.3);
}

.pricing-btn {
    background: linear-gradient(135deg, #475569, #1e293b);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.pricing-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(30, 41, 59, 0.3);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.nav-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.portfolio-header {
    background: white;
    padding: 40px;
    border-radius: 30px;
    margin-bottom: 30px;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.portfolio-avatar {
    width: 80px;
    height: 80px;
    background: var(--blue-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #3b82f6;
}

.portfolio-filter-panel {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    margin: 20px 0 40px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.portfolio-filter-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #22c55e, #1e293b, #f97316);
    background-size: 300% 100%;
    animation: moveGradient 4s linear infinite;
}

@keyframes moveGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

.portfolio-filter-top {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 140px 160px 130px;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.portfolio-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    padding: 0 18px;
    border: 2px solid #eff6ff;
    border-radius: 14px;
    background: #f8fafc;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.portfolio-search-field:focus-within {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.portfolio-search-field input {
    border: 0;
    outline: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-weight: 700;
    color: #1e293b;
    background: transparent;
    font-size: 0.95rem;
}

.portfolio-action {
    height: 50px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.portfolio-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
    color: #1e293b;
}

.portfolio-action.primary, #portfolioSearchBtn {
    color: #ffffff;
    border: 0;
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.portfolio-action.primary:hover, #portfolioSearchBtn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.4);
}

#portfolioViewBtn {
    color: #ffffff;
    border: 0;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

#portfolioViewBtn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 12px 25px rgba(34, 197, 94, 0.3);
}

#portfolioSaveBtn {
    color: #ffffff;
    border: 0;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

#portfolioSaveBtn:hover {
    background: #000000;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.portfolio-action.saved.active {
    color: #ffffff;
    border-color: #000;
    background: #000;
}

.portfolio-action svg {
    transition: transform 0.3s ease;
}

.portfolio-action:hover svg {
    transform: scale(1.1);
}

.portfolio-filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
}

.portfolio-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-select-wrap span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding-left: 4px;
}

.portfolio-select-wrap select {
    height: 46px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 14px;
    color: #1e293b;
    font-weight: 700;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-select-wrap:nth-child(1) select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.portfolio-select-wrap:nth-child(2) select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.portfolio-ai-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-ai-filter > span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

.ai-options-group {
    display: flex;
    background: white;
    padding: 4px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    height: 46px;
    align-items: center;
}

.portfolio-ai-filter label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s ease;
}

.portfolio-ai-filter label:has(input:checked) {
    background: #fdf2f8;
    color: #ec4899;
}

.portfolio-ai-filter input {
    accent-color: #ec4899;
}

.portfolio-recent-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.portfolio-recent-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #1e293b;
    font-size: 0.9rem;
}

.portfolio-recent-title svg {
    color: #64748b;
}

.portfolio-recent-title span {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.portfolio-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-recent-chip {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.portfolio-recent-chip:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.portfolio-recent-chip span {
    font-weight: 800;
    color: #1e293b;
    font-size: 0.85rem;
}

.portfolio-recent-chip small {
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.7rem;
}

.portfolio-clear-recent {
    border: 0;
    background: #fff1f2;
    color: #e11d48;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.portfolio-clear-recent:hover {
    background: #ffe4e6;
    transform: scale(1.05);
}

@media (max-width: 1100px) {
    .portfolio-filter-top,
    .portfolio-filter-controls,
    .portfolio-recent-row {
        grid-template-columns: 1fr;
    }

    .portfolio-filter-controls,
    .portfolio-ai-filter {
        align-items: flex-start;
    }

    .portfolio-ai-filter {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .portfolio-filter-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .portfolio-select-wrap {
        grid-template-columns: 1fr;
    }

    .portfolio-action,
    .portfolio-search-field {
        height: 44px;
    }
}
.mini-stat span { font-size: 1.2rem; font-weight: 800; }

/* Asset Grid */
#results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    transition: opacity 0.3s ease-in-out;
}

/* Card Design - Matching Image */
.asset-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    padding: 12px;
}

.card-image-box {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    border: 2px solid white;
}

.select-box {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    cursor: pointer;
}

.card-body {
    padding: 16px 8px 8px 8px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.asset-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    flex: 1;
    margin-right: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.copy-icon {
    cursor: pointer;
    opacity: 0.4;
    font-size: 1.2rem;
    transition: opacity 0.2s;
}

.copy-icon:hover { opacity: 1; }

/* New Summary Bar Design */
.summary-card-new {
    background: white;
    padding: 30px;
    border-radius: 30px;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.summary-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
}

.summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.summary-main-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.count-big {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
}

.count-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.query-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #3b82f6;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-top: 10px;
}

.summary-stats-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-pill {
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 160px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.stat-pill:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.photo-bg { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.illust-bg { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.vector-bg { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-lab {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.stats-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.stat-box {
    flex: 1;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 14px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-box.kathali { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}
.stat-box.tiya { 
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}




.stat-box .val { 
    font-size: 0.85rem; 
    font-weight: 800; 
    line-height: 1.1;
    white-space: nowrap;
}
.stat-box .lab { 
    font-size: 0.52rem; 
    font-weight: 700; 
    opacity: 0.85; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

/* Status Indicator */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.status-high { background: #10b981; box-shadow: 0 0 8px #10b981; }
.status-mid { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.status-low { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* Asset ID Style */
.asset-id-box {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Updated View Count */
.view-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Competition Tag Redesign */
.comp-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.comp-high { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.comp-low { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.author-row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 12px;
    background: #fffafa;
    border-radius: 12px;
    border: 1px solid #ffebeb;
}

.author-info-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.user-icon-bg {
    width: 24px;
    height: 24px;
    background: #ffeded;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-name-v2 {
    font-weight: 700;
    color: #4b5563;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-btn-link {
    background: white;
    border: 1px solid #fecdd3;
    color: #e11d48;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.2s;
}

.portfolio-btn-link:hover {
    background: #fff1f2;
    transform: scale(1.05);
}



.tags-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-pill {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-pill svg {
    opacity: 0.7;
}

.tag-pill.yellow { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }
.tag-pill.grey { background: #f8fafc; color: #475569; border: 1px solid #f1f5f9; }

.keywords-section {
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}

.kw-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 10px;
    font-weight: 600;
}

.copy-all { color: #9ca3af; cursor: pointer; }
.copy-all:hover { color: #4b5563; }

.kw-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kw-tag {
    background: white;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.more-text {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 600;
    align-self: center;
}

/* Loader Overlay */
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader-box {
    text-align: center;
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-box p {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin: 0;
}

.custom-loader {
    width: 60px;
    height: 60px;
    border: 5px solid #f1f5f9;
    border-top: 5px solid #f97316;
    border-right: 5px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

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

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.pag-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}

.pag-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pag-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    font-weight: 700;
    color: var(--text-dark);
}
/* Competition Badge */
.competition-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

.competition-badge.high {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.competition-badge.medium {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.competition-badge.low {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

/* Recent Keywords Style */
.recent-keywords {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.recent-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.kw-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.kw-chip:hover {
    background: white;
    border-color: #f97316;
    color: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.1);
}

.clear-recent-kw {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ef4444;
    cursor: pointer;
    margin-left: 5px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.clear-recent-kw:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Footer Style */
.main-footer {
    background: #ffffff;
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid #f1f5f9;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #f97316;
}

.footer-desc {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon.fb { 
    background: #eff6ff; 
    color: #1d4ed8; 
}
.social-icon.wa { 
    background: #f0fdf4; 
    color: #15803d; 
}
.social-icon.yt { 
    background: #fef2f2; 
    color: #b91c1c; 
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: #f97316;
}

.footer-social-row {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Maintenance Styles */
.maintenance-container {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.5s ease-out;
}

.maintenance-content {
    max-width: 500px;
    margin: 0 auto;
}

.maintenance-content svg {
    margin-bottom: 20px;
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }
}

/* Login Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.login-modal {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #64748b;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
}

.login-form input:focus {
    border-color: #f97316;
    outline: none;
    background: #fffaf7;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.submit-btn {
    background: #22c55e;
    color: white;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #94a3b8;
    font-size: 0.85rem;
}

.google-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #1e293b;
    position: relative; /* Added for badge positioning */
}

.google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Changed to blue */
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* User Profile Button Styles */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.logged-in.header-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #1e293b;
    padding: 6px 16px;
}

.logged-in.header-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #64748b;
}

.login-footer a {
    color: #f97316;
    text-decoration: none;
    font-weight: 700;
}

/* Landing Page Styles */
.landing-page {
    background-color: #ffffff;
    color: #1e293b;
}

.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.lp-nav {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

.lp-nav .lp-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f97316;
}
.logo span { color: #1e293b; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover { color: #f97316; }

.nav-btn-secondary {
    padding: 10px 20px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #1e293b !important;
}

.nav-btn-primary {
    padding: 10px 24px;
    border-radius: 50px;
    background: #22d3ee; /* Teal */
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn-primary:hover {
    background: #0891b2;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

/* Hero Section */
.lp-hero {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, #fff7ed 0%, #ffffff 50%);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #fff7ed;
    color: #f97316;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid #ffedd5;
}

.lp-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, #f97316, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lp-hero p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-btn-main {
    padding: 16px 32px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.hero-btn-main:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-btn-alt {
    padding: 16px 32px;
    background: white;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-preview {
    margin-top: 40px;
    position: relative;
}

.dashboard-img {
    width: 100%;
    max-width: 1000px;
    border-radius: 24px;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.15);
    border: 8px solid white;
}

/* Features */
.lp-features {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px;
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.f-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Pricing */
.lp-pricing {
    padding: 100px 0;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    padding: 40px;
    background: white;
    border-radius: 24px;
    border: 2px solid #f1f5f9;
    position: relative;
    text-align: center;
}

.price-card.popular {
    border-color: #f97316;
    background: #fffcf9;
    transform: scale(1.05);
}

.p-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.popular .p-badge {
    background: #f97316;
    color: white;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: #64748b;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin: 30px 0;
}

.price-card li {
    margin-bottom: 12px;
    color: #475569;
}

.p-btn {
    display: block;
    padding: 14px;
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.p-btn.featured {
    background: #1e293b;
    color: white;
}

/* Footer LP */
.lp-footer {
    padding: 80px 0 40px;
    background: #0f172a;
    color: white;
}

.social-links-lp {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links-lp a {
    width: 36px;
    height: 36px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
}

.footer-links h4 {
    margin-bottom: 24px;
    color: #f97316;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.feature-card.premium {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.f-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.portfolio-gradient {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.keyword-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.trend-gradient {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
}

.feature-card.premium h3 {
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Footer V2 Styles (Matching Screenshot) */
.lp-footer-v2 {
    background: #ffffff;
    padding: 80px 0 40px;
    border-top: 1px solid #f1f5f9;
}

.footer-main {
    display: flex;
    justify-content: flex-start;
    gap: 100px;
    margin-bottom: 60px;
}

.footer-brand-info {
    max-width: 350px;
}

.footer-desc {
    margin-top: 20px;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-link-columns {
    display: flex;
    gap: 60px;
}

.f-col h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.f-col a {
    display: block;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 12px;
    font-weight: 500;
    transition: color 0.2s;
}

.f-col a:hover {
    color: #f97316;
}

.footer-social-section {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    border-top: 1px solid #f8fafc;
}

.social-icons-v2 {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.fb { background: #eff6ff; color: #1d4ed8; }
.social-icon.wa { background: #f0fdf4; color: #15803d; }
.social-icon.yt { background: #fef2f2; color: #b91c1c; }

.footer-bottom-v2 {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom-v2 p {
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }
    .footer-link-columns {
        gap: 40px;
        flex-wrap: wrap;
    }
}

@media (max-width: 968px) {
    .feature-grid, .price-grid {
        grid-template-columns: 1fr;
    }
    .lp-hero h1 { font-size: 2.5rem; }
    .nav-links a:not(.nav-btn-primary) { display: none; }
}
