:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Category Colors - Vibrant gradients */
    --color-fashion: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-fitness: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --color-beauty: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --color-perfumery: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
    --color-food: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --color-media: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
    --color-lifestyle: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --color-tech: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --color-healthcare: linear-gradient(135deg, #96fbc4 0%, #f9f586 100%);
    --color-accessories: linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%);
    --color-default: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 20%;
    right: -80px;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -150px;
    left: 20%;
}

.orb-4 {
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    bottom: 10%;
    right: 15%;
}

/* Floating Shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.15;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 15%;
    left: 10%;
    border-radius: 20% 80% 20% 80%;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 40%;
    right: 20%;
    border-radius: 50%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: 20%;
    left: 15%;
    border-radius: 30%;
    transform: rotate(45deg);
}

.shape-4 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    top: 60%;
    right: 10%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-5 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
    top: 30%;
    left: 50%;
    border-radius: 50% 50% 0 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    height: 30px;
    width: auto;
}

.tagline {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 20px 35px;
}

.hero h2 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

/* Data Source Badge */
.data-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    animation: fadeInUp 1.2s ease-out;
}

.data-source-badge .badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.data-source-badge .badge-icon {
    font-size: 18px;
}

.data-source-badge .badge-separator {
    width: 1px;
    height: 16px;
    background: rgba(99, 102, 241, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0 10px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

.category-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-default);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: var(--primary-color);
}

.category-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

/* Category-specific colors */
.category-card[data-category*='fashion']::before {
    background: var(--color-fashion);
}

.category-card[data-category*='fitness']::before {
    background: var(--color-fitness);
}

.category-card[data-category*='perfumery']::before,
.category-card[data-category*='cosmetic']::before,
.category-card[data-category*='beauty']::before {
    background: var(--color-perfumery);
}

.category-card[data-category*='food']::before,
.category-card[data-category*='drink']::before {
    background: var(--color-food);
}

.category-card[data-category*='media']::before {
    background: var(--color-media);
}

.category-card[data-category*='lifestyle']::before {
    background: var(--color-lifestyle);
}

.category-card[data-category*='healthcare']::before {
    background: var(--color-healthcare);
}

.category-card[data-category*='accessories']::before {
    background: var(--color-accessories);
}

.category-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    align-items: flex-end;
    justify-content: space-between;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

/* SOI Metric - Special styling */
.metric-soi {
    position: relative;
}

.metric-soi .metric-value {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    font-weight: 800;
}

.metric-soi .metric-label {
    color: #f5576c;
    font-weight: 600;
}

.rank-item:hover .metric-soi .metric-value {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Ranking Stats */
.ranking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 0;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}
.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}
.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

/* AI Insights Section */
.ai-insights {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 24px 0;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.1);
}

.ai-insights-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ai-icon {
    font-size: 24px;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

.ai-insights h3 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.ai-insights-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
}

.ai-insights-content p {
    margin-bottom: 12px;
}

.ai-insights-content p:last-child {
    margin-bottom: 0;
}

/* AI Insights - Collapsible Functionality */
.ai-insights-summary {
    display: block;
}

.ai-insights-content.collapsed {
    display: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.ai-insights-content.expanded {
    display: block;
    max-height: 1000px;
    opacity: 1;
    transition: all 0.4s ease-in-out;
}

.ai-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.ai-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.ai-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.toggle-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.ai-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.ai-insight-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ai-insight-point:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
}

.ai-insight-point:last-child {
    margin-bottom: 0;
}

.ai-insight-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-insight-text {
    flex: 1;
}

.ai-insight-text strong {
    color: #8b5cf6;
    font-weight: 600;
}

/* Ranking Table */
.ranking-table {
    padding: 0;
    margin-top: 24px;
}

/* SOI Info Box */
.soi-info-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea30;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInDown 0.6s ease-out;
}

.soi-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.soi-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.soi-content strong {
    color: #667eea;
    font-weight: 600;
}

.soi-metric {
    display: inline-block;
    padding: 2px 8px;
    background: white;
    border-radius: 4px;
    font-weight: 500;
    color: #667eea;
    font-size: 13px;
    white-space: nowrap;
}

.table-header {
    background: var(--bg-white);
    border-radius: 12px 12px 0 0;
    padding: 20px 28px;
    border-bottom: 2px solid var(--border-color);
}

.table-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.table-header-text {
    flex: 1;
}

.table-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.table-description {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sort-controls label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.sort-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.sort-dropdown {
    padding: 10px 40px 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #e0e4f5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 240px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.sort-dropdown:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.sort-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12), 0 4px 12px rgba(102, 126, 234, 0.15);
}

.dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #667eea;
    transition: transform 0.3s ease;
}

.sort-dropdown:focus ~ .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.sort-dropdown option {
    padding: 10px;
    background: white;
    color: var(--text-dark);
}

.table-container {
    background: var(--bg-white);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease-out backwards;
    position: relative;
}

.rank-item:nth-child(1) {
    animation-delay: 0.05s;
}
.rank-item:nth-child(2) {
    animation-delay: 0.1s;
}
.rank-item:nth-child(3) {
    animation-delay: 0.15s;
}
.rank-item:nth-child(4) {
    animation-delay: 0.2s;
}
.rank-item:nth-child(5) {
    animation-delay: 0.25s;
}

.rank-item:hover {
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
    transform: translateX(5px);
}

.rank-item:hover .brand-avatar {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    min-width: 50px;
}

.rank-item:nth-child(1) .rank-number {
    color: #fbbf24;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.rank-item:nth-child(2) .rank-number {
    color: #94a3b8;
    font-size: 26px;
    text-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

.rank-item:nth-child(3) .rank-number {
    color: #fb923c;
    font-size: 26px;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
}

/* Faded rank items (10-20) */
.rank-item.faded {
    filter: blur(5px);
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.5s ease;
    user-select: none;
}

.rank-item.faded:hover {
    transform: none;
    background: transparent;
}

.rank-item.faded * {
    user-select: none;
}

/* View More CTA */
.view-more-cta {
    padding: 40px 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgb(99 102 241 / 0.3);
}

.btn-view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(99 102 241 / 0.4);
}

.btn-view-more svg {
    transition: transform 0.3s ease;
}

.btn-view-more:hover svg {
    transform: rotate(90deg);
}

.view-more-text {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.brand-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-light);
    flex-shrink: 0;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.brand-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    background: var(--color-default);
    color: white;
}

.brand-details {
    flex: 1;
    min-width: 0;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-username {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.brand-influencers {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.08);
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.brand-metrics {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
}

.metric {
    text-align: center;
    min-width: 90px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.metric:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.metric-label {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.metric-soi {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.metric-soi .metric-value {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
}

.metric-soi:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

/* CTA Section */
.cta {
    padding: 60px 0;
}

.cta-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin: 8px 0;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 16px;
    }

    /* Header */
    header {
        padding: 10px 0;
    }

    header .container {
        gap: 12px;
    }

    .logo img {
        height: 30px;
    }

    .tagline {
        font-size: 12px;
    }

    /* Breadcrumb */
    .breadcrumb {
        padding: 16px 0 8px;
        font-size: 13px;
    }

    /* Hero Section */
    .hero {
        padding: 35px 20px 25px;
    }

    .hero h2 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .subtitle {
        font-size: 16px;
        line-height: 1.6;
        color: var(--text-light);
    }

    /* Data Source Badge */
    .data-source-badge {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
        padding: 10px 16px;
        margin: 16px auto 0;
        max-width: 100%;
        font-size: 13px;
        border-radius: 16px;
    }

    .data-source-badge .badge-item {
        gap: 6px;
        white-space: nowrap;
    }

    .data-source-badge .badge-separator {
        display: none;
    }

    .data-source-badge .badge-icon {
        font-size: 16px;
        display: inline-flex;
        align-items: center;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 30px 0;
    }

    .category-card {
        padding: 20px;
    }

    .category-card h3 {
        font-size: 20px;
    }

    .category-stats {
        gap: 20px;
        margin-top: 14px;
        justify-content: space-around;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
        margin-top: 3px;
    }

    /* Ranking Stats */
    .ranking-stats {
        gap: 12px;
        grid-template-columns: repeat(3, 1fr);
        padding: 24px 0;
    }

    .stat-card {
        padding: 16px 10px;
    }

    .stat-number {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .stat-card .stat-label {
        font-size: 10px;
        line-height: 1.3;
    }

    /* Ranking Table */
    .ranking-table {
        padding: 0;
        margin-top: 20px;
    }

    /* AI Insights - Mobile */
    .ai-insights {
        padding: 16px;
        margin: 20px 0;
    }

    .ai-insights-header {
        gap: 8px;
        margin-bottom: 12px;
    }

    .ai-icon {
        font-size: 22px;
    }

    .ai-insights h3 {
        font-size: 17px;
    }

    .ai-insights-content {
        font-size: 13px;
        line-height: 1.6;
    }

    .ai-insight-point {
        gap: 8px;
        padding: 8px;
        margin-bottom: 8px;
    }

    .ai-insight-icon {
        font-size: 16px;
    }

    /* AI Insights - Collapsible (Mobile) */
    .ai-toggle-btn {
        padding: 8px 16px;
        margin: 10px 0 0 0;
        font-size: 12px;
    }

    .toggle-icon {
        width: 12px;
        height: 12px;
    }

    /* SOI Info Box - Mobile */
    .soi-info-box {
        padding: 14px 16px;
        margin-bottom: 20px;
        gap: 10px;
    }

    .soi-icon {
        font-size: 20px;
    }

    .soi-content {
        font-size: 13px;
        line-height: 1.5;
    }

    .soi-metric {
        padding: 2px 6px;
        font-size: 12px;
    }

    .table-header {
        padding: 16px 16px;
        border-radius: 12px 12px 0 0;
    }

    .table-header-content {
        flex-direction: column;
        gap: 12px;
    }

    .sort-controls {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sort-dropdown-wrapper {
        width: 100%;
    }

    .sort-dropdown {
        width: 100%;
        min-width: unset;
    }

    .table-header h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .table-description {
        font-size: 13px;
        line-height: 1.4;
    }

    .table-container {
        border-radius: 12px;
        background: transparent;
        padding: 8px;
        border: none;
    }

    .table-container::before {
        display: none;
    }

    .rank-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        gap: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        background: var(--bg-white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .rank-item:hover {
        background: var(--bg-white);
        transform: none;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    }

    .rank-item:last-child {
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
    }

    .rank-number {
        font-size: 18px;
        min-width: auto;
        position: absolute;
        top: 18px;
        right: 18px;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
        padding: 6px 12px;
        border-radius: 20px;
        font-weight: 700;
    }

    .rank-item:nth-child(1) .rank-number {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.25) 100%);
        color: #d97706;
        font-size: 20px;
    }

    .rank-item:nth-child(2) .rank-number {
        background: linear-gradient(135deg, rgba(148, 163, 184, 0.15) 0%, rgba(148, 163, 184, 0.25) 100%);
        color: #475569;
        font-size: 19px;
    }

    .rank-item:nth-child(3) .rank-number {
        background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(251, 146, 60, 0.25) 100%);
        color: #c2410c;
        font-size: 19px;
    }

    .brand-info {
        width: 100%;
        padding-right: 60px; /* Space for rank number badge */
        gap: 14px;
        align-items: center;
    }

    .brand-avatar {
        width: 56px;
        height: 56px;
        border-width: 2.5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .brand-details {
        flex: 1;
    }

    .brand-name {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 4px;
        font-weight: 600;
    }

    .brand-username {
        font-size: 13px;
        margin-bottom: 6px;
        opacity: 0.75;
    }

    .brand-influencers {
        font-size: 11px;
        padding: 3px 8px;
        background: rgba(99, 102, 241, 0.1);
        font-weight: 600;
    }

    .brand-metrics {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 14px 0 0;
        margin-left: 0;
        border-top: 1px solid rgba(99, 102, 241, 0.08);
    }

    .metric {
        min-width: 0;
        text-align: center;
        padding: 12px 8px;
        background: rgba(99, 102, 241, 0.04);
        border-radius: 10px;
        border: 1px solid rgba(99, 102, 241, 0.08);
        transition: all 0.2s ease;
    }

    .metric:active {
        transform: scale(0.98);
    }

    .metric-value {
        font-size: 17px;
        margin-bottom: 4px;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1;
    }

    .metric-label {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        color: var(--text-light);
        line-height: 1;
    }

    .metric-soi {
        grid-column: 1 / -1;
        text-align: center;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
        border: 1.5px solid rgba(99, 102, 241, 0.2);
        padding: 14px 12px;
        margin-top: 4px;
    }

    .metric-soi .metric-value {
        font-size: 24px;
        font-weight: 800;
        background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
        margin-bottom: 4px;
    }

    .metric-soi .metric-label {
        font-size: 11px;
        color: var(--primary-color);
        font-weight: 700;
        letter-spacing: 1px;
    }

    /* Faded items on mobile - better styling */
    .rank-item.faded {
        filter: blur(3px);
        opacity: 0.5;
        transform: scale(0.98);
    }

    /* View More CTA on mobile */
    .view-more-cta {
        padding: 32px 18px;
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.08) 100%);
        border-radius: 12px;
        margin: 12px 8px;
        border: 1px solid rgba(99, 102, 241, 0.15);
    }

    .btn-view-more {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .view-more-text {
        font-size: 13px;
        margin-top: 10px;
        line-height: 1.4;
    }

    /* CTA Section */
    .cta {
        padding: 40px 0;
    }

    .cta-content {
        padding: 35px 20px;
        border-radius: 12px;
    }

    .cta-content h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .btn-primary {
        padding: 12px 28px;
        font-size: 15px;
        display: block;
        text-align: center;
    }

    /* Footer */
    footer {
        padding: 32px 0;
    }

    footer p {
        font-size: 14px;
        margin: 6px 0;
    }

    /* Animated Background - reduce on mobile */
    .gradient-orb {
        filter: blur(80px);
        opacity: 0.2;
    }

    .geometric-shape {
        opacity: 0.1;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 15px;
        line-height: 1.6;
    }

    .data-source-badge {
        font-size: 12px;
        padding: 8px 14px;
        gap: 6px 10px;
    }

    .data-source-badge .badge-icon {
        font-size: 15px;
    }

    .ranking-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .category-stats {
        gap: 16px;
        justify-content: space-around;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 10px;
    }

    /* Mobile ranking improvements for very small screens */
    .rank-item {
        padding: 16px;
        gap: 14px;
    }

    .brand-info {
        padding-right: 55px;
        gap: 12px;
    }

    .brand-avatar {
        width: 50px;
        height: 50px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-username {
        font-size: 12px;
    }

    .rank-number {
        padding: 5px 10px;
        font-size: 16px;
        top: 16px;
        right: 16px;
    }

    .rank-item:nth-child(1) .rank-number,
    .rank-item:nth-child(2) .rank-number,
    .rank-item:nth-child(3) .rank-number {
        font-size: 18px;
    }

    .brand-metrics {
        gap: 8px;
        padding-top: 12px;
    }

    .metric {
        padding: 10px 6px;
    }

    .metric-value {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .metric-label {
        font-size: 8px;
        letter-spacing: 0.3px;
    }

    .metric-soi {
        padding: 12px 10px;
    }

    .metric-soi .metric-value {
        font-size: 22px;
    }

    .metric-soi .metric-label {
        font-size: 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Loading shimmer effect for images */
.brand-avatar {
    background: linear-gradient(90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 1000px;
}

.brand-avatar[src] {
    background: none;
}
