/* Community Highlights Crystal Carousel */
.indra-carousel {
    position: relative;
    height: 360px;
    overflow: hidden;
    border-radius: 8px;
    background: radial-gradient(ellipse at center, rgba(20, 10, 40, 0.6) 0%, rgba(4, 4, 10, 0.8) 100%);
    pointer-events: auto;
}

.indra-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.indra-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    max-width: 480px;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 1;
}

.indra-card.active {
    transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.indra-card.prev {
    transform: translate(-115%, -50%) scale(0.8) rotateY(15deg);
    opacity: 0.5;
    z-index: 5;
}

.indra-card.next {
    transform: translate(15%, -50%) scale(0.8) rotateY(-15deg);
    opacity: 0.5;
    z-index: 5;
}

.indra-card.far-prev,
.indra-card.far-next {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    z-index: 0;
}

.indra-card-inner {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 8, 25, 0.95) 0%, rgba(20, 15, 40, 0.9) 50%, rgba(10, 8, 25, 0.95) 100%);
    border: 1px solid rgba(128, 0, 255, 0.3);
    border-radius: 10px;
    padding: 1.8rem;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(128, 0, 255, 0.15),
        0 0 40px rgba(0, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.active .indra-card-inner {
    border-color: transparent;
    box-shadow:
        0 0 25px rgba(128, 0, 255, 0.25),
        0 0 50px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.active .indra-card-inner::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(
        90deg,
        #ff0080, #8000ff, #00ffff, #00ff80, #ffff00, #ff8000, #ff0080
    );
    background-size: 400% 100%;
    border-radius: 11px;
    z-index: -1;
    animation: rgb-border 6s linear infinite;
    opacity: 0.6;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1.5px;
}

/* Sacred geometry corner accents */
.indra-card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 2;
}

.indra-card-corner.tl {
    top: 6px; left: 6px;
    border-top: 1.5px solid rgba(0, 255, 255, 0.5);
    border-left: 1.5px solid rgba(0, 255, 255, 0.5);
}
.indra-card-corner.tr {
    top: 6px; right: 6px;
    border-top: 1.5px solid rgba(255, 0, 128, 0.5);
    border-right: 1.5px solid rgba(255, 0, 128, 0.5);
}
.indra-card-corner.bl {
    bottom: 6px; left: 6px;
    border-bottom: 1.5px solid rgba(128, 0, 255, 0.5);
    border-left: 1.5px solid rgba(128, 0, 255, 0.5);
}
.indra-card-corner.br {
    bottom: 6px; right: 6px;
    border-bottom: 1.5px solid rgba(0, 255, 128, 0.5);
    border-right: 1.5px solid rgba(0, 255, 128, 0.5);
}

.active .indra-card-corner.tl {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: -2px -2px 8px rgba(0, 255, 255, 0.3);
}
.active .indra-card-corner.tr {
    border-color: rgba(255, 0, 128, 0.8);
    box-shadow: 2px -2px 8px rgba(255, 0, 128, 0.3);
}
.active .indra-card-corner.bl {
    border-color: rgba(128, 0, 255, 0.8);
    box-shadow: -2px 2px 8px rgba(128, 0, 255, 0.3);
}
.active .indra-card-corner.br {
    border-color: rgba(0, 255, 128, 0.8);
    box-shadow: 2px 2px 8px rgba(0, 255, 128, 0.3);
}

/* Indra's web sacred geometry overlay */
.indra-web-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.active .indra-web-overlay {
    opacity: 0.6;
    animation: web-pulse 4s ease-in-out infinite alternate;
}

@keyframes web-pulse {
    0% { opacity: 0.4; }
    100% { opacity: 0.7; }
}

.indra-web-svg {
    width: 100%;
    height: 100%;
}

/* Card text content */
.indra-card-title {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    background: linear-gradient(to right, #ff0080, #ff00ff, #00ffff, #00ff00, #ffff00, #ff7f00, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 2s infinite linear;
    text-shadow: none;
}

.indra-card-date {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: #00cccc;
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.indra-card-preview {
    position: relative;
    z-index: 1;
    font-size: 0.92rem;
    color: rgba(200, 200, 220, 0.9);
    line-height: 1.55;
    margin: 0;
}

.indra-card-expand-hint {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indra-card-expand-hint span {
    font-size: 0.75rem;
    color: rgba(0, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.active .indra-card-expand-hint {
    opacity: 1;
    cursor: pointer;
}

.active .indra-card-expand-hint:hover span {
    color: rgba(0, 255, 255, 0.9);
}

/* Full content (hidden until expanded) */
.indra-card-full {
    display: none;
}

/* Expanded card overlay -- portaled to body */
.indra-carousel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    cursor: pointer;
}

/* Expanded modal -- portaled to body */
.indra-expanded-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 680px;
    max-height: 80vh;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(10, 8, 25, 0.98) 0%, rgba(20, 15, 40, 0.95) 50%, rgba(10, 8, 25, 0.98) 100%);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 2rem 2.2rem 1.5rem;
    box-shadow:
        0 0 40px rgba(128, 0, 255, 0.3),
        0 0 80px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.indra-expanded-modal::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(
        90deg,
        #ff0080, #8000ff, #00ffff, #00ff80, #ffff00, #ff8000, #ff0080
    );
    background-size: 400% 100%;
    border-radius: 11px;
    z-index: -1;
    animation: rgb-border 6s linear infinite;
    opacity: 0.6;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1.5px;
}

/* Close button */
.indra-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: rgba(200, 200, 220, 0.6);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    z-index: 2;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.indra-modal-close:hover {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.indra-expanded-modal .indra-card-title {
    font-size: 1.6rem;
    flex-shrink: 0;
    padding-right: 2rem;
}

.indra-expanded-modal .indra-card-date {
    flex-shrink: 0;
}

/* Scrollable body */
.indra-modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    font-size: 0.95rem;
    color: rgba(210, 210, 225, 0.95);
    line-height: 1.7;
    margin-top: 0.6rem;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 0, 255, 0.4) transparent;
}

.indra-modal-body::-webkit-scrollbar {
    width: 6px;
}
.indra-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.indra-modal-body::-webkit-scrollbar-thumb {
    background: rgba(128, 0, 255, 0.4);
    border-radius: 3px;
}

.indra-modal-body h1,
.indra-modal-body h2,
.indra-modal-body h3 {
    color: #e0e0ff;
    margin: 1.2rem 0 0.5rem;
}

.indra-modal-body h1 { font-size: 1.4rem; }
.indra-modal-body h2 { font-size: 1.2rem; }
.indra-modal-body h3 { font-size: 1.05rem; }

.indra-modal-body p {
    margin: 0.6rem 0;
}

.indra-modal-body a {
    color: #00cccc;
    text-decoration: underline;
    text-decoration-color: rgba(0, 204, 204, 0.3);
}

.indra-modal-body a:hover {
    color: #00ffff;
}

.indra-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid rgba(128, 0, 255, 0.2);
}

.indra-modal-body code {
    background: rgba(128, 0, 255, 0.15);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.88em;
    color: #d0d0e0;
}

.indra-modal-body pre {
    background: rgba(10, 8, 20, 0.8);
    border: 1px solid rgba(128, 0, 255, 0.2);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.indra-modal-body blockquote {
    border-left: 3px solid rgba(0, 255, 255, 0.4);
    padding-left: 1rem;
    margin: 1rem 0;
    color: rgba(200, 200, 220, 0.8);
    font-style: italic;
}

.indra-modal-body ul,
.indra-modal-body ol {
    padding-left: 1.5rem;
    margin: 0.6rem 0;
}

.indra-modal-body li {
    margin: 0.3rem 0;
}

.carousel-controls {
    pointer-events: auto;
}

.carousel-controls .btn {
    pointer-events: auto;
    min-width: 120px;
}

/* Account buttons row */
.account-buttons {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 0.8rem;
    justify-content: start;
}

@media (max-width: 600px) {
    .account-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}
