:root {
    --bg-dark: #0a0a0e;
    --bg-glass: rgba(20, 20, 30, 0.6);
    --gold-primary: #f9d423;
    --gold-secondary: #ff4e50;
    --purple-glow: #8a2387;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Glowing Orbs */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}

.orb-1 {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple-glow), transparent);
}

.orb-2 {
    bottom: 20%;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-secondary), transparent);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.om {
    color: var(--gold-primary);
    font-size: 2.2rem;
    text-shadow: 0 0 15px var(--gold-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

/* Buttons */
.btn-outline {
    border: 1px solid var(--gold-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    color: var(--gold-primary) !important;
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 20px rgba(249, 212, 35, 0.4);
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold-secondary), var(--gold-primary));
    color: var(--bg-dark);
    box-shadow: 0 5px 20px rgba(255, 78, 80, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 212, 35, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.text-gradient {
    background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    min-height: 80vh;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(249, 212, 35, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(249, 212, 35, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

/* Cosmic Clock Widget */
.cosmic-clock-widget {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 20, 30, 0.9), rgba(10, 10, 14, 0.4));
    box-shadow: 0 0 50px rgba(138, 35, 135, 0.3), inset 0 0 30px rgba(249, 212, 35, 0.1);
}

.clock-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(249, 212, 35, 0.4);
    border-radius: 50%;
    animation: rotateClockwise 60s linear infinite;
}

.clock-middle-ring {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px dotted rgba(76, 175, 80, 0.5);
    border-radius: 50%;
    animation: rotateCounterClockwise 40s linear infinite;
}

.clock-inner-ring {
    position: absolute;
    width: 60%;
    height: 60%;
    border: 2px solid rgba(255, 78, 80, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 78, 80, 0.2);
    animation: rotateClockwise 20s linear infinite;
}

.clock-center {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clock-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.clock-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(249, 212, 35, 0.5);
    margin-bottom: 0.5rem;
}

.clock-countdown {
    font-size: 0.9rem;
    color: #4ecdc4;
    font-family: monospace;
}

@keyframes rotateClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Sections */
.section {
    padding: 6rem 5%;
}

.dark-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.two-col {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.reverse {
    flex-direction: row-reverse;
}

.col-img, .col-text {
    flex: 1;
}

.glow-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(138, 35, 135, 0.3);
}

.section-tag {
    color: var(--gold-secondary);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.col-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.col-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--gold-primary);
}

/* Tech Cards */
.tech-cards {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-card {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 15px;
    flex: 1;
}

.tech-card.feminine {
    border-top: 3px solid var(--purple-glow);
}

.tech-card.masculine {
    border-top: 3px solid var(--gold-primary);
}

.tech-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.tech-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Code Block */
.code-block-container {
    background: #111116;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 2.5rem;
    overflow: hidden;
}

.code-header {
    background: #1a1a24;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.3s;
}

.copy-btn:hover {
    opacity: 0.7;
}

pre {
    padding: 1.5rem;
    overflow-x: auto;
}

code {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Seva Section */
.text-center {
    text-align: center;
}

.massive-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.center-para {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.mining-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.step {
    flex: 1;
    max-width: 250px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(249, 212, 35, 0.1);
    border: 1px solid rgba(249, 212, 35, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold-primary);
    margin: 0 auto 1.5rem auto;
}

/* Footer */
footer {
    padding: 4rem 5% 2rem 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand p {
    max-width: 300px;
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links h4 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-slow {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
    .two-col, .reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-row {
        justify-content: center;
        margin-bottom: 3rem;
    }

    .mining-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-list li {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
}

/* Gita Reader */
.gita-reader {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(249, 212, 35, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.reader-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-select {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(249, 212, 35, 0.3);
    color: var(--gold-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    min-width: 150px;
}

.glass-select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

.reader-display {
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.sloka-text {
    font-size: 2.2rem;
    color: var(--gold-primary);
    line-height: 1.5;
    text-shadow: 0 0 15px rgba(249, 212, 35, 0.3);
    font-family: serif;
}

.transliteration {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

.translation {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

/* Live Editor */
.live-editor-container {
    background: #111116;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 2.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.editor-actions .compile-btn {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.editor-actions .compile-btn:hover {
    box-shadow: 0 0 15px rgba(249, 212, 35, 0.5);
    transform: translateY(-2px);
}

.sutra-textarea {
    width: 100%;
    min-height: 200px;
    background: #0d0d12;
    color: #e0e0e0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    padding: 1.5rem;
    border: none;
    resize: vertical;
    outline: none;
}

.compiler-terminal {
    background: #000;
    border-top: 1px solid rgba(249, 212, 35, 0.2);
}

.terminal-header {
    background: #1a1a24;
    padding: 0.5rem 1.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--gold-secondary);
    text-transform: uppercase;
}

.terminal-body {
    padding: 1rem 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: #4CAF50;
    min-height: 60px;
    white-space: pre-wrap;
}

.terminal-body .error {
    color: #ff4e50;
}

.terminal-body .success {
    color: #f9d423;
}

/* AST Visualizer */
.ast-visualizer-container {
    background: #111116;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ast-header {
    background: #1a1a24;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold-primary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ast-badge {
    background: rgba(249, 212, 35, 0.1);
    color: var(--gold-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.ast-canvas {
    padding: 2rem;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
    background: #0d0d12;
    position: relative;
}

.ast-placeholder {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.5;
    margin-top: 2rem;
}

.ast-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.ast-node {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 120px;
}

.ast-node.root-node { border-color: var(--gold-primary); box-shadow: 0 0 15px rgba(249, 212, 35, 0.2); }
.ast-node.dhatu-node { border-color: #4ecdc4; box-shadow: 0 0 15px rgba(78, 205, 196, 0.2); }
.ast-node.strilinga-node { border-color: var(--purple-glow); box-shadow: 0 0 15px rgba(138, 35, 135, 0.2); }

.ast-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.ast-val {
    display: block;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: bold;
}

.ast-children {
    display: flex;
    gap: 2rem;
    position: relative;
}

.ast-children::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    width: 2px;
    height: 1.5rem;
    background: rgba(255,255,255,0.2);
}

.ast-child-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.ast-child-wrapper::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.2);
}

.ast-child-wrapper:first-child::before {
    left: 50%;
    width: 50%;
}

.ast-child-wrapper:last-child::before {
    left: 0;
    width: 50%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(249, 212, 35, 0.2);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast i {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.toast.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* ═══════════════════════════════════════════════════════════
   Sabha DAO Dashboard Styles
   ═══════════════════════════════════════════════════════════ */

.active-link { color: var(--gold-primary) !important; }

.orb-dao {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 35, 135, 0.15), transparent);
}

/* DAO Hero */
.dao-hero {
    text-align: center;
    padding: 4rem 5% 3rem;
}

.dao-hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.dao-stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
}

.dao-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 130px;
}

.dao-stat-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.dao-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* Tabs */
.dao-tabs-section {
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 14, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dao-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0;
    overflow-x: auto;
}

.dao-tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-family: var(--font-body);
}

.dao-tab:hover {
    background: rgba(249, 212, 35, 0.08);
    color: var(--gold-primary);
    border-color: rgba(249, 212, 35, 0.2);
}

.dao-tab.active {
    background: linear-gradient(135deg, rgba(249, 212, 35, 0.15), rgba(255, 78, 80, 0.1));
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(249, 212, 35, 0.15);
}

/* Tab Panels */
.dao-content { padding: 2rem 5% 4rem; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInPanel 0.4s ease; }

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.panel-header h2 i { color: var(--gold-primary); }

.panel-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
}

/* Proposal Cards */
.proposal-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.proposal-card:hover {
    border-color: rgba(249, 212, 35, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.proposal-card.active { border-left: 3px solid #4ecdc4; }
.proposal-card.passed { border-left: 3px solid #f9d423; }
.proposal-card.rejected { border-left: 3px solid #ff4e50; }
.proposal-card.executed { border-left: 3px solid #4CAF50; }

.proposal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.proposal-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.proposal-id {
    color: var(--text-muted);
    font-weight: 800;
    font-family: var(--font-heading);
}

.proposal-type-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.proposal-status { font-weight: 800; font-size: 0.85rem; letter-spacing: 1px; }

.proposal-timer {
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.proposal-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.proposal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.proposal-link {
    color: var(--gold-primary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.proposal-link:hover { text-decoration: underline; }

.proposal-by {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.wallet-tag {
    background: rgba(249, 212, 35, 0.1);
    color: var(--gold-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Vote Section */
.vote-section { margin-top: 1rem; }

.vote-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    margin-bottom: 0.8rem;
}

.vote-yes-bar {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.5s ease;
}

.vote-no-bar {
    background: linear-gradient(90deg, #ff4e50, #f44336);
    transition: width 0.5s ease;
}

.vote-counts {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.vote-yes-count { color: #4CAF50; }
.vote-no-count { color: #ff4e50; }

.vote-actions {
    display: flex;
    gap: 1rem;
}

.vote-btn {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
}

.vote-yes {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.vote-yes:hover {
    background: rgba(76, 175, 80, 0.3);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.vote-no {
    background: rgba(255, 78, 80, 0.15);
    color: #ff4e50;
    border: 1px solid rgba(255, 78, 80, 0.3);
}

.vote-no:hover {
    background: rgba(255, 78, 80, 0.3);
    box-shadow: 0 0 20px rgba(255, 78, 80, 0.2);
    transform: translateY(-2px);
}

.voted-badge {
    color: var(--gold-primary);
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }

/* Submit Form */
.submit-form-container {
    background: rgba(20, 20, 30, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.dao-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-row { display: flex; gap: 1.5rem; }
.form-row .form-group { flex: 1; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.glass-input, .glass-textarea {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s ease;
}

.glass-input:focus, .glass-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(249, 212, 35, 0.15);
}

.glass-textarea { resize: vertical; min-height: 100px; }
.full-width { width: 100%; }

.reward-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.9rem;
    transition: all 0.3s ease;
}

.reward-display.glow {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(249, 212, 35, 0.15);
}

.reward-amount {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.reward-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.submit-btn {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

/* Leaderboard */
.leaderboard-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.leaderboard-table thead {
    background: rgba(249, 212, 35, 0.08);
}

.leaderboard-table th {
    text-align: left;
    padding: 1rem 1.2rem;
    color: var(--gold-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.leaderboard-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.leaderboard-table tr:hover {
    background: rgba(255,255,255,0.03);
}

.leaderboard-table .top-1 {
    background: linear-gradient(90deg, rgba(249, 212, 35, 0.08), transparent);
}

.leaderboard-table .top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.06), transparent);
}

.leaderboard-table .top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.06), transparent);
}

.rank-cell { font-size: 1.3rem; width: 60px; text-align: center; }

.seva-badge {
    background: rgba(249, 212, 35, 0.1);
    color: var(--gold-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.earned-cell {
    color: #4CAF50;
    font-weight: 700;
}

/* Referral Dashboard */
.referral-dashboard {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.referral-code-card, .referral-progress-card {
    flex: 1;
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.referral-code-card h3, .referral-progress-card h3, .referral-tree-section h3, .referral-rules h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.referral-code-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0,0,0,0.4);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(249, 212, 35, 0.2);
    margin-bottom: 1rem;
}

.ref-code {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 2px;
    flex: 1;
}

.copy-ref-btn {
    background: rgba(249, 212, 35, 0.15);
    border: 1px solid rgba(249, 212, 35, 0.3);
    color: var(--gold-primary);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-ref-btn:hover { background: rgba(249, 212, 35, 0.3); }

.ref-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: monospace;
}

/* Progress Ring */
.progress-ring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.progress-bg {
    fill: none;
    stroke: rgba(255,255,255,0.05);
    stroke-width: 8;
}

.progress-fill {
    fill: none;
    stroke: var(--gold-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-count {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.progress-total {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Referral Tree */
.referral-tree-section {
    background: rgba(20, 20, 30, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.ref-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s;
}

.ref-node:hover {
    border-color: rgba(249, 212, 35, 0.15);
    background: rgba(0,0,0,0.5);
}

.ref-node.active { border-left: 3px solid #4CAF50; }
.ref-node.inactive { border-left: 3px solid rgba(255,255,255,0.1); }

.ref-node-icon { font-size: 1.3rem; }
.ref-node.active .ref-node-icon { color: #4CAF50; }
.ref-node.inactive .ref-node-icon { color: var(--text-muted); }

.ref-node-info { flex: 1; }
.ref-wallet { font-family: monospace; font-size: 0.9rem; }

.ref-activity-bar {
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    margin: 0.4rem 0;
    overflow: hidden;
}

.ref-activity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-secondary), var(--gold-primary));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.ref-score {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ref-status-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
}

.ref-status-badge.active {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

/* Referral Rules */
.rules-grid {
    display: flex;
    gap: 1.5rem;
}

.rule-card {
    flex: 1;
    background: rgba(20, 20, 30, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

.rule-icon {
    width: 60px;
    height: 60px;
    background: rgba(249, 212, 35, 0.1);
    border: 1px solid rgba(249, 212, 35, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin: 0 auto 1rem;
}

.rule-card h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.rule-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contract Cards */
.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contract-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contract-card:hover {
    border-color: rgba(249, 212, 35, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contract-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contract-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contract-icon.sabha { background: rgba(249, 212, 35, 0.15); color: var(--gold-primary); }
.contract-icon.seva { background: rgba(138, 35, 135, 0.2); color: #c471ed; }
.contract-icon.referral { background: rgba(76, 175, 80, 0.15); color: #4CAF50; }
.contract-icon.token { background: rgba(255, 78, 80, 0.15); color: #ff4e50; }

.contract-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.contract-badge {
    font-size: 0.7rem;
    background: rgba(249, 212, 35, 0.1);
    color: var(--gold-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
}

.contract-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contract-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contract-stats i { color: var(--gold-primary); margin-right: 0.3rem; }

.view-contract-btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.contract-source {
    margin-top: 1rem;
    background: #0d0d12;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.05);
}

.contract-source code {
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    color: #e0e0e0;
}

.hidden { display: none; }

/* Responsive DAO */
@media (max-width: 900px) {
    .dao-hero h1 { font-size: 2.5rem; }
    .dao-stats-row { flex-wrap: wrap; gap: 1rem; }
    .form-row { flex-direction: column; }
    .referral-dashboard { flex-direction: column; }
    .rules-grid { flex-direction: column; }
    .contracts-grid { grid-template-columns: 1fr; }
    .filter-group { flex-direction: column; }
    .dao-tabs { gap: 0.3rem; }
    .dao-tab { padding: 0.6rem 1rem; font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════════════════
   AST Visualizer Styles
   ═══════════════════════════════════════════════════════════ */
.ast-visualizer-container {
    margin-top: 3rem;
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid rgba(249, 212, 35, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.ast-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-weight: 600;
}

.ast-badge {
    background: rgba(249, 212, 35, 0.15);
    color: var(--gold-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(249, 212, 35, 0.3);
}

.ast-canvas {
    padding: 2rem;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
}

.ast-placeholder {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.ast-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ast-node {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 150px;
}

.ast-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.ast-val {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.ast-children {
    display: flex;
    gap: 2rem;
    position: relative;
}

.ast-child-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ast-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    margin: 0 auto;
}

.ast-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: rgba(255,255,255,0.2);
}

.root-node {
    border-color: rgba(249, 212, 35, 0.4);
    background: rgba(249, 212, 35, 0.05);
}

.strilinga-node {
    border-color: rgba(255, 78, 80, 0.5);
    background: rgba(255, 78, 80, 0.1);
}

.dhatu-node {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.1);
}

.glow-anim {
    animation: glow-pulse-red 2s infinite alternate;
}

.glow-anim-alt {
    animation: glow-pulse-green 2s infinite alternate;
}

.ast-spacer {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
}

@keyframes glow-pulse-red {
    from { box-shadow: 0 0 5px rgba(255, 78, 80, 0.2); }
    to { box-shadow: 0 0 20px rgba(255, 78, 80, 0.6); }
}

@keyframes glow-pulse-green {
    from { box-shadow: 0 0 5px rgba(76, 175, 80, 0.2); }
    to { box-shadow: 0 0 20px rgba(76, 175, 80, 0.6); }
}

/* ═══════════════════════════════════════════════════════════
   Forum Enhancements
   ═══════════════════════════════════════════════════════════ */
.post-media-container {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.post-media-container img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.post-media-container:hover img {
    transform: scale(1.02);
}

.forum-post {
    padding: 2rem;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: bold;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}

.post-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}


.nav-btn { background: rgba(10, 10, 15, 0.8); color: var(--gold-primary); border: 1px solid var(--gold-primary); padding: 0.8rem 1.2rem; border-radius: 10px; cursor: pointer; transition: all 0.3s; }
.nav-btn:hover { box-shadow: 0 0 15px rgba(249, 212, 35, 0.2); background: rgba(249, 212, 35, 0.1); }

/* ═══════════════════════════════════════════════════════════
   Gyansagar (Vedic Encyclopedia)
   ═══════════════════════════════════════════════════════════ */
#gyansagar {
    position: relative;
    overflow: hidden;
}

.gyansagar-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.g-tab-btn {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.g-tab-btn i {
    color: var(--cyan, #4ecdc4);
}

.g-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.g-tab-btn.active {
    background: rgba(249, 212, 35, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(249, 212, 35, 0.2);
}

.g-tab-btn.active i {
    color: var(--gold-primary);
}

.gyansagar-content-container {
    position: relative;
    min-height: 400px;
}

.g-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.g-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.g-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.g-title span {
    font-size: 1.2rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.g-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 1. Panini Matrix */
.panini-sutra-card {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(249, 212, 35, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.p-sutra-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.p-sutra-id {
    color: var(--gold-primary);
    font-weight: bold;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.p-audio-btn {
    background: rgba(249, 212, 35, 0.2);
    border: none;
    color: var(--gold-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.p-audio-btn:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 15px var(--gold-primary);
}

.p-sutra-text {
    font-size: 2.5rem;
    color: var(--text-main);
    font-family: serif;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.p-sutra-meaning {
    color: var(--cyan, #4ecdc4);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.p-sutra-code {
    background: #111116;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--purple-glow);
}

.p-sutra-code code {
    color: #e0e0e0;
    font-family: monospace;
    white-space: pre-wrap;
}

.g-matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.matrix-cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-family: serif;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.matrix-cell:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateY(-5px);
}

.matrix-cell.highlight {
    background: rgba(249, 212, 35, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(249, 212, 35, 0.2);
}

/* 2. Astro-Chronology */
.nakshatra-info-box {
    background: linear-gradient(135deg, rgba(20,20,30,0.8), rgba(10,10,15,0.9));
    border-left: 4px solid var(--cyan, #4ecdc4);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
}

.n-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.n-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.n-sub {
    color: var(--gold-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.n-freq {
    font-family: monospace;
    color: var(--purple-glow, #8a2387);
    font-size: 1.2rem;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
}

.astro-3d-container {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.astro-sphere {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateSphere 20s infinite linear;
}

.astro-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(78, 205, 196, 0.4);
    box-sizing: border-box;
}

.r1 { transform: rotateX(60deg) rotateY(0deg); }
.r2 { transform: rotateX(60deg) rotateY(60deg); }
.r3 { transform: rotateX(60deg) rotateY(120deg); }

.astro-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: radial-gradient(circle, var(--gold-primary), transparent);
    border-radius: 50%;
    box-shadow: 0 0 50px var(--gold-primary);
}

@keyframes rotateSphere {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* 3. Chatushkoti Logic */
.logic-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.logic-list li {
    background: rgba(255,255,255,0.03);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.l-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.l-sat { background: rgba(76, 175, 80, 0.2); color: #4CAF50; border: 1px solid #4CAF50; }
.l-asat { background: rgba(244, 67, 54, 0.2); color: #F44336; border: 1px solid #F44336; }
.l-sadasat { background: rgba(156, 39, 176, 0.2); color: #9C27B0; border: 1px solid #9C27B0; }
.l-avyaktam { background: rgba(158, 158, 158, 0.2); color: #9E9E9E; border: 1px solid #9E9E9E; }

.logic-simulator {
    width: 100%;
    height: 350px;
    position: relative;
    background: radial-gradient(circle, rgba(20,20,30,0.8), transparent);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
}

.sim-node {
    position: absolute;
    width: 80px; height: 80px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.n-sat { top: 10%; left: 50%; transform: translateX(-50%); border: 2px solid #4CAF50; color: #4CAF50; box-shadow: 0 0 20px rgba(76, 175, 80, 0.4); }
.n-asat { bottom: 10%; left: 50%; transform: translateX(-50%); border: 2px solid #F44336; color: #F44336; box-shadow: 0 0 20px rgba(244, 67, 54, 0.4); }
.n-avyaktam { top: 50%; left: 10%; transform: translateY(-50%); border: 2px solid #9E9E9E; color: #9E9E9E; }
.sim-center-node {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    z-index: 3;
    border: 2px solid #9C27B0;
    color: #9C27B0;
    box-shadow: 0 0 30px rgba(156, 39, 176, 0.6);
    animation: pulseSadasat 2s infinite alternate;
}

@keyframes pulseSadasat {
    from { box-shadow: 0 0 10px rgba(156, 39, 176, 0.4); }
    to { box-shadow: 0 0 40px rgba(156, 39, 176, 0.8), inset 0 0 20px rgba(156, 39, 176, 0.5); }
}

.sim-path {
    position: absolute;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.p1 { top: 10%; bottom: 10%; left: 50%; width: 2px; transform: translateX(-50%); }
.p2 { left: 10%; right: 10%; top: 50%; height: 2px; transform: translateY(-50%); }

/* 4. Shastra Vault */
.shastra-vault-layout {
    display: flex;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    min-height: 500px;
}

.shastra-sidebar {
    width: 300px;
    background: rgba(20,20,30,0.8);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.s-lib-item {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.s-lib-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}

.s-lib-item.active {
    background: linear-gradient(90deg, rgba(249, 212, 35, 0.1), transparent);
    border-left: 4px solid var(--gold-primary);
    color: var(--gold-primary);
}

.shastra-main-view {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.s-view-header {
    margin-bottom: 3rem;
}

.s-blockchain-stamp {
    display: inline-block;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: monospace;
    border: 1px solid rgba(76, 175, 80, 0.3);
    margin-top: 1rem;
}

.s-verse-box {
    max-width: 600px;
}

.s-audio-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.audio-wave {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 30px;
}

.audio-wave .bar {
    width: 4px;
    background: var(--gold-primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite alternate;
}

.audio-wave .bar:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.audio-wave .bar:nth-child(2) { height: 20px; animation-delay: 0.2s; }
.audio-wave .bar:nth-child(3) { height: 30px; animation-delay: 0.3s; }
.audio-wave .bar:nth-child(4) { height: 15px; animation-delay: 0.4s; }

@keyframes wave {
    0% { height: 5px; }
    100% { height: 30px; }
}

.s-verse-sanskrit {
    font-size: 2.2rem;
    color: var(--gold-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: serif;
    text-shadow: 0 0 15px rgba(249, 212, 35, 0.2);
}

.s-verse-trans {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.s-verse-meaning {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
    .shastra-vault-layout {
        flex-direction: column;
    }
    .shastra-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .s-lib-item {
        white-space: nowrap;
        border-bottom: none;
    }
    .s-lib-item.active {
        border-left: none;
        border-bottom: 4px solid var(--gold-primary);
        background: linear-gradient(0deg, rgba(249, 212, 35, 0.1), transparent);
    }
}
