/* Chauhan World Ecosystem portal switcher */
.portal-ecosystem-dropdown .portal-ecosystem-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
}

.portal-ecosystem-dropdown .portal-ecosystem-trigger::after {
    display: none;
}

.portal-ecosystem-dropdown .portal-grid-icon {
    width: 31px;
    height: 31px;
    display: block;
}

.portal-ecosystem-menu {
    width: min(420px, calc(100vw - 24px));
    min-width: min(420px, calc(100vw - 24px));
    border: 1px solid #e8edf5;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(17, 64, 138, 0.14);
    margin-top: 12px !important;
    overflow: visible;
    z-index: 2050;
    padding: 0;
}

.navbar-coinet .portal-ecosystem-dropdown,
.user-topbar .portal-ecosystem-dropdown {
    position: static;
}

.navbar-coinet,
.user-topbar.navbar-coinet,
.navbar-coinet .container,
.user-topbar .admin-header {
    overflow: visible;
}

.portal-ecosystem-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 18px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid #e8edf5;
    border-top: 1px solid #e8edf5;
    transform: rotate(45deg);
}

.portal-ecosystem-panel {
    padding: 20px 20px 16px;
}

.portal-ecosystem-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f2d5c;
    margin: 0 0 4px;
    line-height: 1.3;
}

.portal-ecosystem-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 18px;
}

.portal-ecosystem-panel a.portal-ecosystem-follow-link  {
    font-size: 0.5rem;
}


.portal-ecosystem-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #11408a;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.portal-ecosystem-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dbe4f0;
}

.portal-ecosystem-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.portal-ecosystem-platform-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 72px;
}

.portal-ecosystem-platform-card:hover {
    border-color: #b8c9e8;
    box-shadow: 0 4px 14px rgba(17, 64, 138, 0.08);
    color: inherit;
}

.portal-ecosystem-platform-card.is-current {
    border-color: #11408a;
    box-shadow: 0 0 0 1px rgba(17, 64, 138, 0.12);
}

.portal-ecosystem-platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}

.portal-ecosystem-platform-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.portal-ecosystem-platform-text span {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.portal-ecosystem-external {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 0.75rem;
    color: #9ca3af;
}

.portal-ecosystem-brands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.portal-ecosystem-brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    min-height: 108px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-ecosystem-brand-card:hover {
    border-color: #b8c9e8;
    box-shadow: 0 4px 14px rgba(17, 64, 138, 0.08);
    color: inherit;
}

.portal-ecosystem-brand-logo {
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.portal-ecosystem-brand-logo.stridez {
    color: #11408a;
    font-family: Segoe UI, 'Times New Roman', serif;
    font-weight: 700;
}

.portal-ecosystem-brand-logo.cutexx {
    color: #ec4899;
    font-family: 'Segoe UI', cursive, sans-serif;
    font-weight: 700;
}

.portal-ecosystem-brand-card strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #111827;
}

.portal-ecosystem-brand-card span {
    font-size: 1.0rem;
    color: #6b7280;
}

.portal-ecosystem-manage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #11408a;
    border-radius: 10px;
    background: #fff;
    color: #11408a;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.portal-ecosystem-manage:hover {
    background: #11408a;
    color: #fff;
}

.portal-ecosystem-follow {
    margin-top: 16px;
}

.portal-ecosystem-follow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 8px;
}

.portal-ecosystem-follow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.15s ease;
}

.portal-ecosystem-follow-link:hover {
    color: #111827;
}

.portal-ecosystem-follow-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.portal-ecosystem-follow-icon.is-facebook {
    background: #1877f2;
}

.portal-ecosystem-follow-icon.is-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.portal-ecosystem-follow-icon.is-linkedin {
    background: #0a66c2;
}

.portal-ecosystem-follow-icon.is-youtube {
    background: #ff0000;
}

.portal-ecosystem-follow-icon.is-x {
    background: #000;
}

@media (max-width: 400px) {
    .portal-ecosystem-platforms,
    .portal-ecosystem-brands {
        grid-template-columns: 1fr;
    }
}
