:root {
    --primary-color: #FF0000;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1f1f1f;
    --text-main: #ffffff;
    --text-muted: #a1a1a1;
    --border-color: #2a2a2a;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    width: 95%;
    margin: 0 auto;
    padding: 60px 0 80px;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
}

#profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator::after {
    content: '';
    width: 14px;
    height: 14px;
    background-color: #10B981;
    border-radius: 50%;
    display: block;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.verified-badge {
    color: #3B82F6;
    font-size: 1.5rem;
}

.profile-bio {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.profile-bio-arabic {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-family: 'Cairo', sans-serif;
    opacity: 0.9;
}

/* Social Pills */
.social-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 100px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-pill:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #3366FF;
    color: white;
    padding: 12px 36px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(51, 102, 255, 0.2);
    max-width: 100%;
    width: fit-content;
}

.cta-button:hover {
    background-color: #2952cc;
    transform: scale(1.03);
}

@media (max-width: 480px) {
    .contact-card {
        padding: 16px;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
    }
}

.business-email-section {
    margin: 0;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.email-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.email-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.email-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 100px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    width: 100%;
    justify-content: space-between;
}

.email-container:hover {
    border-color: #3366FF;
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.email-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.copy-btn {
    background: rgba(51, 102, 255, 0.1);
    border: none;
    color: #3366FF;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: #3366FF;
    color: white;
    transform: scale(1.1);
}

.copy-btn i {
    font-size: 0.9rem;
}

/* Animated Arrows */
.arrow-pointer {
    position: absolute;
    color: #3366FF;
    font-size: 1rem;
    opacity: 0.6;
    pointer-events: none;
}

.arrow-left {
    left: 0;
    animation: pointRight 1.5s ease-in-out infinite;
}

.arrow-right {
    right: 0;
    animation: pointLeft 1.5s ease-in-out infinite;
}

@keyframes pointRight {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.4;
    }

    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}

@keyframes pointLeft {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.4;
    }

    50% {
        transform: translateX(-8px);
        opacity: 1;
    }
}

.links-section {
    margin: 40px auto 60px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.links-panel {
    background: rgba(15, 15, 15, 0.6);
    /* More solid background */
    /* backdrop-filter: blur(20px); Removed to avoid any potential clipping */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 5;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-group {
    margin-bottom: 30px;
}

.category-group:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

.link-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    min-height: 80px;
    position: relative;
    /* overflow: hidden; Removed to allow highlight animation glow */
}

.link-block:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.link-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.link-block:hover::before {
    opacity: 1;
}

.link-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.link-icon {
    font-size: 1.2rem;
    color: var(--text-main);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.link-block:hover .link-icon {
    background: var(--primary-color);
    transform: rotate(-10deg);
}

.link-title {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Arc Raider Loot Animation */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    to {
        --angle: 360deg;
    }
}

.link-block.highlight {
    position: relative;
    background:
        linear-gradient(#0a0a0a, #0a0a0a) padding-box,
        conic-gradient(from var(--angle), #bf00ff, #00f2ff, #ffffff, #00f2ff, #bf00ff) border-box;
    border: 2px solid transparent !important;
    border-radius: var(--radius-md);
    z-index: 10;
    animation: rotateBorder 3s linear infinite;
}

.link-block.highlight::before,
.link-block.highlight::after {
    display: none;
}

.link-block.highlight .link-left,
.link-block.highlight .fa-arrow-right {
    position: relative;
    z-index: 2;
}

.link-block.highlight .link-icon {
    color: #00f2ff;
    background: rgba(0, 242, 255, 0.15);
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.6));
}

/* Media Kit Dropdown */
.media-kit-dropdown {
    margin-top: 50px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 10, 0.8);
    overflow: hidden;
}

.media-kit-dropdown summary {
    list-style: none;
    padding: 25px 40px;
    background: linear-gradient(90deg, #111 0%, #1a1a1a 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.media-kit-dropdown summary:hover {
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.media-kit-dropdown[open] summary {
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    background: #0f0f0f;
}

.media-kit-dropdown summary::marker {
    display: none;
}

.media-kit-content {
    padding: 40px;
    background: #050505;
}

/* Stats */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    margin-top: 60px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.section-title:first-child {
    margin-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #333;
}

.stat-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.detailed-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.platform-accordion {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    /* Clean Look - No thick border here anymore */
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.platform-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.accordion-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.verify-tag {
    font-size: 0.75rem;
    color: #3B82F6;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 10px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.3);
}

.content-inner {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.metric-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Demos */
.demo-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .demo-split {
        grid-template-columns: 1fr;
    }
}

.demo-card {
    padding: 0;
    /* remove internal padding as chart js needs space, handling in HTML */
}

/* Brands Marquee section */
.brands-section {
    margin: 50px 0 30px;
    padding: 20px 0 40px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border-top: 1px solid var(--glass-border);
}

.brands-title-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.brands-title {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.brands-title i {
    color: #ffbb00;
    text-shadow: 0 0 10px rgba(255, 187, 0, 0.5);
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 60px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 60px;
    align-items: center;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding-right: 60px;
    /* Match gap for seamless loop */
}

.brand-item {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(0) invert(1) opacity(0.6);
    transition: var(--transition);
}

.brand-item:hover {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.1);
}

.brand-item img {
    height: 100%;
    max-width: 180px;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

@media (max-width: 768px) {
    .marquee-content {
        gap: 40px;
        animation-duration: 20s;
    }

    .brand-item {
        height: 35px;
    }
}

/* Utils */
.hidden {
    display: none;
}