/* ==========================================================================
   ARIMA DISCORD-STYLE SERVER POPOUT MODAL (High-Fidelity UI Redesign)
   ========================================================================== */

/* Keyframe Animations */
@keyframes arimaModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes arimaModalSlideUp {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Overlay */
.arima-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.arima-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

[data-theme="light"] .arima-modal-overlay {
    background: rgba(220, 222, 226, 0.85);
}

/* Modal Wrapper Container */
.arima-modal-wrapper {
    background: #1e1f22; /* Discord Dark Theme Base */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 92%;
    max-width: 1000px;
    height: 90vh;
    max-height: 860px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(20px);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.arima-modal-overlay.active .arima-modal-wrapper {
    transform: scale(1) translateY(0);
    opacity: 1;
}

[data-theme="light"] .arima-modal-wrapper {
    background: #f2f3f5; /* Discord Light Theme Base */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.15);
}

/* Modal Scroll Container (Holds Hero + Content) */
.arima-modal-scrollable {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar for Modal Wrapper */
.arima-modal-scrollable::-webkit-scrollbar {
    width: 8px;
}
.arima-modal-scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.arima-modal-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.arima-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .arima-modal-scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .arima-modal-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .arima-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Modal Hero Block (Header Area) */
.arima-modal-hero {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
}

.arima-modal-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 31, 34, 0.4) 0%, rgba(30, 31, 34, 0.95) 100%);
    z-index: 1;
}

[data-theme="light"] .arima-modal-hero::before {
    background: linear-gradient(to bottom, rgba(242, 243, 245, 0.3) 0%, rgba(242, 243, 245, 0.95) 100%);
}

.arima-modal-hero-content {
    position: relative;
    z-index: 2;
    padding: 24px 32px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.arima-modal-hero-icon {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    object-fit: cover;
    background: #2b2d31;
    border: 4px solid #1e1f22;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

[data-theme="light"] .arima-modal-hero-icon {
    background: #ffffff;
    border-color: #f2f3f5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.arima-modal-hero-meta {
    flex-grow: 1;
    min-width: 0;
}

.arima-modal-rank-badge {
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.arima-modal-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.1;
}

[data-theme="light"] .arima-modal-hero-title {
    color: #060607;
}

.arima-modal-hero-title i.verified {
    color: #5865F2; /* Discord Verified Color */
    font-size: 1.4rem;
}

.arima-modal-hero-genres {
    margin: 6px 0 0 0;
    font-size: 0.85rem;
    color: #b5bac1;
    font-weight: 500;
}

[data-theme="light"] .arima-modal-hero-genres {
    color: #4f5660;
}

/* Close & Top Actions Controls */
.arima-modal-top-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.arima-modal-btn-top {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
}

.arima-modal-btn-top:hover {
    background: rgba(0, 0, 0, 0.7);
}

.arima-modal-btn-top.close-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Modal Body Layout */
.arima-modal-body {
    flex-grow: 1;
    padding: 0 32px 40px 32px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    box-sizing: border-box;
}

/* Left Column */
.arima-modal-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Banner Active Image & Thumbnails Gallery */
.arima-modal-gallery {
    width: 100%;
}

.arima-modal-gallery-main {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    object-fit: cover;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity 0.2s ease;
}

[data-theme="light"] .arima-modal-gallery-main {
    border-color: rgba(0, 0, 0, 0.05);
}

.arima-modal-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.arima-modal-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.arima-modal-gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.arima-modal-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.arima-modal-gallery-thumb {
    width: 90px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.arima-modal-gallery-thumb:hover {
    opacity: 0.8;
}

.arima-modal-gallery-thumb.active {
    border-color: #5865F2;
    opacity: 1;
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.3);
}

/* Description Text */
.arima-modal-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #dbdee1;
    margin: 24px 0 0 0;
}

[data-theme="light"] .arima-modal-description {
    color: #313338;
}

/* Announcements Section */
.arima-modal-section {
    margin-top: 32px;
}

.arima-modal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.arima-modal-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

[data-theme="light"] .arima-modal-section-title {
    color: #060607;
}

.arima-modal-section-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b5bac1;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.arima-modal-section-link:hover {
    color: #ffffff;
}

[data-theme="light"] .arima-modal-section-link:hover {
    color: #060607;
}

/* Announcements Horizontal Scroll Carousel */
.arima-announcements-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
}

.arima-announcements-carousel::-webkit-scrollbar {
    height: 6px;
}
.arima-announcements-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.arima-announcements-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.arima-announcement-card {
    width: 240px;
    background: #2b2d31;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.arima-announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .arima-announcement-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .arima-announcement-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.arima-announcement-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    background: #1e1f22;
}

.arima-announcement-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.arima-announcement-author {
    font-size: 0.72rem;
    font-weight: 600;
    color: #5865F2;
    margin-bottom: 6px;
}

.arima-announcement-body {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #dbdee1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

[data-theme="light"] .arima-announcement-body {
    color: #313338;
}

.arima-announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.7rem;
    color: #b5bac1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

[data-theme="light"] .arima-announcement-footer {
    color: #4f5660;
    border-top-color: rgba(0, 0, 0, 0.05);
}

.arima-announcement-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Right Column Sidebar */
.arima-modal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Sidebar Box Cards */
.arima-sidebar-card {
    background: #2b2d31;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
}

[data-theme="light"] .arima-sidebar-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

/* Action button items */
.arima-sidebar-btn {
    width: 100%;
    padding: 10px 14px;
    background: #35373c;
    border-radius: 4px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.arima-sidebar-btn:hover {
    background: #404249;
}

[data-theme="light"] .arima-sidebar-btn {
    background: #e3e5e8;
    color: #313338 !important;
}

[data-theme="light"] .arima-sidebar-btn:hover {
    background: #d4d7dc;
}

.arima-sidebar-btn:last-child {
    margin-bottom: 0;
}

/* Community / Join Box Component */
.arima-community-box {
    display: flex;
    flex-direction: column;
}

.arima-community-banner {
    width: 100%;
    height: 76px;
    border-radius: 6px 6px 0 0;
    object-fit: cover;
    margin: -16px -16px 0 -16px;
    width: calc(100% + 32px);
    background: #111214;
}

.arima-community-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 3px solid #2b2d31;
    margin-top: -26px;
    z-index: 2;
    background: #1e1f22;
    object-fit: cover;
}

[data-theme="light"] .arima-community-icon {
    border-color: #ffffff;
    background: #f2f3f5;
}

.arima-community-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 8px 0 2px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

[data-theme="light"] .arima-community-name {
    color: #060607;
}

.arima-community-desc {
    font-size: 0.78rem;
    color: #b5bac1;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

[data-theme="light"] .arima-community-desc {
    color: #4f5660;
}

.arima-community-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.arima-community-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: #b5bac1;
}

[data-theme="light"] .arima-community-stat {
    color: #4f5660;
}

.arima-community-stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.arima-community-stat-dot.online {
    background: #23a55a;
}

.arima-community-stat-dot.total {
    background: #b5bac1;
}

[data-theme="light"] .arima-community-stat-dot.total {
    background: #4f5660;
}

.arima-community-join-btn {
    width: 100%;
    padding: 10px;
    background: #248046; /* Discord green join */
    border: none;
    color: #ffffff !important;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.88rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.arima-community-join-btn:hover {
    background: #1a6535;
}

/* Reviews / Metacritic-style card */
.arima-sidebar-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #949ba4;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 12px 0;
}

[data-theme="light"] .arima-sidebar-title {
    color: #5c5e66;
}

.arima-reviews-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arima-reviews-source {
    font-weight: 600;
    font-size: 0.88rem;
    color: #ffffff;
}

[data-theme="light"] .arima-reviews-source {
    color: #060607;
}

.arima-reviews-score-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arima-reviews-badge {
    width: 32px;
    height: 32px;
    background: #23a55a; /* Great rating green */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.arima-reviews-tier {
    font-size: 0.74rem;
    color: #949ba4;
    font-weight: 500;
}

/* Details Key-Value Table */
.arima-details-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arima-details-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    line-height: 1.4;
}

.arima-details-label {
    color: #949ba4;
    width: 100px;
    flex-shrink: 0;
}

[data-theme="light"] .arima-details-label {
    color: #5c5e66;
}

.arima-details-value {
    color: #dbdee1;
    text-align: right;
    word-break: break-word;
}

[data-theme="light"] .arima-details-value {
    color: #313338;
}

.arima-details-value i {
    font-size: 0.92rem;
    margin-left: 6px;
    color: #b5bac1;
}

[data-theme="light"] .arima-details-value i {
    color: #4f5660;
}

/* Links (Social Network Icons row) */
.arima-social-links-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.arima-social-icon-link {
    color: #b5bac1;
    font-size: 0.95rem;
    transition: color 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}

.arima-social-icon-link:hover {
    color: #5865F2;
    transform: translateY(-1px);
}

[data-theme="light"] .arima-social-icon-link {
    color: #4f5660;
}

[data-theme="light"] .arima-social-icon-link:hover {
    color: #5865F2;
}

/* Claims and Credits footer */
.arima-sidebar-claims {
    font-size: 0.68rem;
    color: #949ba4;
    text-align: center;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.arima-sidebar-claims a {
    color: #5865F2;
    text-decoration: none;
}

.arima-sidebar-claims a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness styling overrides */
@media (max-width: 767px) {
    .arima-modal-wrapper {
        height: 94vh;
        max-height: none;
        width: 95%;
    }

    .arima-modal-hero {
        height: auto;
        min-height: 180px;
    }

    .arima-modal-hero-content {
        padding: 16px 20px;
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .arima-modal-hero-icon {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        border-width: 3px;
    }

    .arima-modal-hero-title {
        font-size: 1.5rem;
    }

    .arima-modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .arima-modal-gallery-main {
        height: 190px;
    }

    .arima-modal-gallery-thumb {
        width: 68px;
        height: 45px;
    }

    .arima-modal-top-controls {
        top: 12px;
        right: 12px;
        gap: 8px;
    }

    .arima-modal-btn-top {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   ARIMA CUSTOM THEMES / TEMPLATES (Gaming, Comunidad, Musical, Corp, Influencers)
   ========================================================================== */

/* 1. Gaming Theme Styles */
.arima-modal-wrapper.theme-gaming {
    border-color: rgba(163, 190, 140, 0.4);
    box-shadow: 0 24px 72px rgba(163, 190, 140, 0.15);
}
.arima-modal-wrapper.theme-gaming .arima-modal-rank-badge {
    background: rgba(163, 190, 140, 0.25);
    color: #a3be8c;
    border: 1px solid rgba(163, 190, 140, 0.4);
}
.arima-modal-wrapper.theme-gaming .arima-modal-hero-title i.verified {
    color: #a3be8c;
}
.arima-modal-wrapper.theme-gaming .arima-modal-gallery-thumb.active {
    border-color: #a3be8c;
    box-shadow: 0 0 8px rgba(163, 190, 140, 0.4);
}
.arima-modal-wrapper.theme-gaming .arima-community-join-btn {
    background: #a3be8c;
    color: #1e1f22 !important;
}
.arima-modal-wrapper.theme-gaming .arima-community-join-btn:hover {
    background: #8fa87a;
}
.arima-modal-wrapper.theme-gaming .arima-sidebar-btn {
    background: rgba(163, 190, 140, 0.1);
    border: 1px solid rgba(163, 190, 140, 0.2);
}
.arima-modal-wrapper.theme-gaming .arima-sidebar-btn:hover {
    background: rgba(163, 190, 140, 0.2);
}

/* 2. Comunidad Theme Styles */
.arima-modal-wrapper.theme-community {
    border-color: rgba(88, 101, 242, 0.3);
}
.arima-modal-wrapper.theme-community .arima-modal-rank-badge {
    background: rgba(88, 101, 242, 0.2);
    color: #5865f2;
}

/* 3. Musical Theme Styles */
.arima-modal-wrapper.theme-musical {
    border-color: rgba(235, 94, 85, 0.4);
    box-shadow: 0 24px 72px rgba(235, 94, 85, 0.15);
}
.arima-modal-wrapper.theme-musical .arima-modal-rank-badge {
    background: rgba(235, 94, 85, 0.25);
    color: #eb5e55;
    border: 1px solid rgba(235, 94, 85, 0.3);
}
.arima-modal-wrapper.theme-musical .arima-modal-hero-title i.verified {
    color: #eb5e55;
}
.arima-modal-wrapper.theme-musical .arima-modal-gallery-thumb.active {
    border-color: #eb5e55;
    box-shadow: 0 0 8px rgba(235, 94, 85, 0.4);
}
.arima-modal-wrapper.theme-musical .arima-community-join-btn {
    background: #eb5e55;
    color: #ffffff !important;
}
.arima-modal-wrapper.theme-musical .arima-community-join-btn:hover {
    background: #d44d45;
}
.arima-modal-wrapper.theme-musical .arima-sidebar-btn {
    background: rgba(235, 94, 85, 0.1);
    border: 1px solid rgba(235, 94, 85, 0.2);
}
.arima-modal-wrapper.theme-musical .arima-sidebar-btn:hover {
    background: rgba(235, 94, 85, 0.2);
}

/* 4. Corporativo (Business) Theme Styles */
.arima-modal-wrapper.theme-business {
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 24px 72px rgba(52, 152, 219, 0.15);
}
.arima-modal-wrapper.theme-business .arima-modal-rank-badge {
    background: rgba(52, 152, 219, 0.25);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}
.arima-modal-wrapper.theme-business .arima-modal-hero-title i.verified {
    color: #3498db;
}
.arima-modal-wrapper.theme-business .arima-modal-gallery-thumb.active {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}
.arima-modal-wrapper.theme-business .arima-community-join-btn {
    background: #3498db;
    color: #ffffff !important;
}
.arima-modal-wrapper.theme-business .arima-community-join-btn:hover {
    background: #2980b9;
}
.arima-modal-wrapper.theme-business .arima-sidebar-btn {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
}
.arima-modal-wrapper.theme-business .arima-sidebar-btn:hover {
    background: rgba(52, 152, 219, 0.2);
}

/* 5. Influencers Theme Styles */
.arima-modal-wrapper.theme-influencers {
    border-color: rgba(241, 196, 15, 0.4);
    box-shadow: 0 24px 72px rgba(241, 196, 15, 0.15);
}
.arima-modal-wrapper.theme-influencers .arima-modal-rank-badge {
    background: rgba(241, 196, 15, 0.25);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}
.arima-modal-wrapper.theme-influencers .arima-modal-hero-title i.verified {
    color: #f1c40f;
}
.arima-modal-wrapper.theme-influencers .arima-modal-gallery-thumb.active {
    border-color: #f1c40f;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}
.arima-modal-wrapper.theme-influencers .arima-community-join-btn {
    background: #f1c40f;
    color: #1e1f22 !important;
    font-weight: 700;
}
.arima-modal-wrapper.theme-influencers .arima-community-join-btn:hover {
    background: #d4ac0d;
}
.arima-modal-wrapper.theme-influencers .arima-sidebar-btn {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.2);
}
.arima-modal-wrapper.theme-influencers .arima-sidebar-btn:hover {
    background: rgba(241, 196, 15, 0.2);
}


/* ==========================================================================
   VISUAL COMPONENT LAYOUT & DRAG-AND-DROP EDITOR STYLES
   ========================================================================== */

/* Video container */
.arima-modal-video-container {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.arima-modal-video-container video,
.arima-modal-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Component container wrapper (during edit mode) */
.arima-component-wrapper {
    position: relative;
    padding: 8px;
    margin: 8px -8px;
    border-radius: 8px;
    border: 1.5px dashed transparent;
    transition: all 0.2s ease;
}

.arima-modal-overlay.active .arima-component-wrapper.is-editing-mode:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.02);
}

.arima-component-wrapper.dragover {
    border-color: var(--color-accent, #a3be8c) !important;
    background: rgba(163, 190, 140, 0.05) !important;
    transform: scale(0.99);
}

/* Edit Controls Panel */
.arima-component-controls {
    position: absolute;
    top: -12px;
    right: 8px;
    display: none;
    align-items: center;
    gap: 4px;
    z-index: 100;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.arima-component-wrapper.is-editing-mode:hover .arima-component-controls {
    display: flex;
}

.arima-component-control-btn {
    background: none;
    border: none;
    color: #b5bac1;
    cursor: pointer;
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s;
}

.arima-component-control-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.arima-component-control-btn.btn-delete:hover {
    color: #f23f42;
    background: rgba(242, 63, 66, 0.15);
}

.arima-component-drag-handle {
    cursor: move;
}

/* Title Component styling */
.arima-title-component {
    margin-top: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 14px;
}
.arima-title-component h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    outline: none;
}
.arima-title-component p {
    margin: 6px 0 0 0;
    font-size: 0.85rem;
    color: #b5bac1;
    outline: none;
}

/* News/Noticias Component styling */
.arima-news-widget {
    margin-top: 24px;
}
.arima-news-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.arima-news-item:hover {
    background: rgba(255, 255, 255, 0.04);
}
.arima-news-item-title {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    outline: none;
}
.arima-news-item-desc {
    margin: 0;
    font-size: 0.8rem;
    color: #b5bac1;
    line-height: 1.4;
    outline: none;
}
.arima-news-item-meta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #949ba4;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 6px;
}

/* API Widget Component styling */
.arima-api-widget {
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
}
.arima-api-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.arima-api-widget-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.arima-api-widget-url {
    font-size: 0.7rem;
    color: #949ba4;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 200px;
    cursor: pointer;
}
.arima-api-widget-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.arima-api-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 4px 0;
}
.arima-api-item-label {
    color: #b5bac1;
}
.arima-api-item-value {
    color: var(--color-accent, #a3be8c);
    font-weight: 600;
}
.arima-api-error-state {
    font-size: 0.76rem;
    color: #f23f42;
    padding: 10px;
    text-align: center;
    background: rgba(242, 63, 66, 0.05);
    border-radius: 4px;
    border: 1px dashed rgba(242, 63, 66, 0.2);
}

/* Add Component Bar */
.arima-add-component-bar {
    margin-top: 24px;
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
}
.arima-add-component-bar-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #949ba4;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}
.arima-add-component-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.arima-add-component-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.arima-add-component-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Template Switcher Styled Select in edit header */
.arima-editor-theme-select {
    padding: 6px 10px;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.arima-editor-theme-select:focus {
    border-color: var(--color-accent, #a3be8c);
}
