:root {
    --bg: #020617;
    --card-bg: rgba(15, 23, 42, 0.7);
    --border: rgba(248, 250, 252, 0.08);
    --accent: #F97316;
    --accent-soft: rgba(249, 115, 22, 0.12);
    --accent-glow: rgba(249, 115, 22, 0.3);
    --text: #E2E8F0;
    --muted: #94A3B8;
    --radius: 18px;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --star-node-color: #fcd34d;
    --ring-color: rgba(255, 255, 255, 0.08);
}

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

body.events-app {
    height: 100vh;
    font-family: 'Hind', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.05), transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.05), transparent 40%),
        #020617;
    z-index: -1;
}

/* ──────────────────────────────────────────
   HEADER
   ────────────────────────────────────────── */
.app-header {
    height: 64px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

.nav-center h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ──────────────────────────────────────────
   VIEW MANAGEMENT
   ────────────────────────────────────────── */
.view-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.view {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding-top: 100px; /* Tab bar space at top */
    padding-bottom: 40px;
}

.view.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ──────────────────────────────────────────
   TAB BAR
   ────────────────────────────────────────── */
.tab-bar {
    position: fixed;
    top: 80px; /* Below header */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 0.4rem;
    border-radius: 20px;
    display: flex;
    gap: 0.3rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--muted);
    padding: 0.6rem 1.2rem;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.3s ease;
    min-width: 90px;
}

.tab-btn i {
    width: 20px;
    height: 20px;
}

.tab-btn span {
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* ──────────────────────────────────────────
   VIEW 1: CHAKRA
   ────────────────────────────────────────── */
#view-chakra {
    overflow: hidden; /* Orbit stays fixed */
    background: radial-gradient(circle at center, #0a0f1e 0%, #020617 100%);
}

#universe {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
}

#universe:active { cursor: grabbing; }

#celestial-map {
    width: 100%;
    height: 100%;
}

.date-tick-line { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.date-tick-text { fill: rgba(255, 255, 255, 0.3); font-family: 'Hind', sans-serif; letter-spacing: 0.5px; }

.pointer-triangle { fill: var(--star-node-color); filter: url(#glow); }
.pointer-date-text { fill: white; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

.node circle { transition: r 0.2s, stroke 0.2s; cursor: pointer; fill: var(--star-node-color); r: 3; }
.node.star:hover circle { r: 5; fill: white; }
.node.star.active circle { r: 6; fill: white; stroke: var(--star-node-color); stroke-width: 3; filter: url(#glow); }

#center-info {
    position: absolute;
    top: 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    pointer-events: none;
    z-index: 50;
}

.glass-card {
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 1.5rem 1.5rem;
    border-radius: 28px;
    text-align: center;
    pointer-events: auto;
    animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-profile-img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0px auto 0.8rem;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--star-node-color), 0 5px 15px rgba(0,0,0,0.4);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

#modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.parent-info {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

#modal-date { font-weight: 600; font-size: 1.1rem; }

.countdown-badge {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    display: inline-block;
    margin-bottom: 0.6rem;
    box-shadow: 0 4px 15px var(--accent-glow);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.countdown-exact {
    font-family: 'Outfit', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fcd34d;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(252, 211, 77, 0.15);
    display: inline-block;
    letter-spacing: 1px;
}

.vedic-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.4));
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #fbbf24;
    padding: 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 1.5rem;
    font-weight: 700;
    transition: all 0.3s;
}

.vedic-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

.numerology-badge {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    margin-top: 0.5rem;
}

.moolank-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 1rem 0;
    font-weight: 400;
    font-style: italic;
}

.list-numerology-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.action-buttons-container {
    bottom: 40px;
    left: 50%;
    width: 100%;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 60;
}

.action-buttons-container.center-aligned {
    bottom: 50px;
}

.event-tabs-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.event-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-tab:hover {
    background: rgba(255, 255, 255, 0.08);
}

.event-tab.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: white;
    box-shadow: inset 0 0 0 1px var(--accent);
}

/* Detail Modal Stats */
.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.info-card.deceased {
    border-left: 4px solid #ef4444;
}

.info-card-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.info-card-content {
    flex: 1;
    text-align: left;
}

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

.info-stat-row {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.info-stat-row strong {
    color: var(--accent);
    font-weight: 600;
}

.event-tab .material-symbols-rounded {
    font-size: 16px;
}

.no-event-card {
    text-align: center;
    pointer-events: auto;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.today-btn { border-color: var(--accent); color: var(--accent); font-weight: 700; }

/* ──────────────────────────────────────────
   VIEW 2: LIST (Ported from Cycles)
   ────────────────────────────────────────── */
.list-container {
    width: 95%;
    max-width: 1100px;
    margin: 2rem auto 40px;
    background: rgba(10, 15, 30, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: 20px;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: white;
    font-family: 'Hind', sans-serif;
}

.list-header {
    padding: 28px 30px 20px;
}

.list-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.list-header h2 {
    margin: 0;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #ffffff 0%, #fcd34d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.list-header p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.stat-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-badge.total .dot { background: #38bdf8; }
.stat-badge.alive .dot { background: #22c55e; }
.stat-badge.deceased .dot { background: #ef4444; }

.search-bar-full {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar-full .material-symbols-rounded {
    color: rgba(255, 255, 255, 0.35);
    font-size: 22px;
}

.search-bar-full input {
    background: none;
    border: none;
    color: white;
    outline: none;
    width: 100%;
    font-family: 'Hind', sans-serif;
    font-size: 1rem;
}

.list-body {
    flex: 1;
    overflow-x: auto;
}

.list-body table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.list-body thead {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.list-body th {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.list-body th:hover {
    color: rgba(255, 255, 255, 0.8);
}

.list-body th .sort-icon {
    font-size: 16px;
    vertical-align: middle;
    margin-left: 2px;
    opacity: 0.5;
}

.list-body th.sorted .sort-icon {
    opacity: 1;
    color: #38bdf8;
}

.list-body td {
    padding: 14px 20px;
    font-size: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.list-body tbody tr {
    cursor: pointer;
    transition: background 0.2s;
}

.list-body tbody tr:hover {
    background: rgba(56, 189, 248, 0.06);
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.list-avatar.is-placeholder {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    padding: 6px;
    opacity: 0.5;
}

.name-text {
    font-weight: 600;
    color: white;
}

.parent-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.alive { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.status-dot.deceased { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }


/* ──────────────────────────────────────────
   VIEW 3: VILLAGE
   ────────────────────────────────────────── */
.village-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.countdown-banner {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(249, 115, 22, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 25px;
    bottom: 25px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, rgba(249, 115, 22, 0.2) 50%, transparent 100%);
    border-radius: 2px;
}

.fest-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: stretch;
    gap: 1.2rem;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s, background 0.3s;
}

.fest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.fest-card::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 1.8rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
    z-index: 2;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.fest-card:hover::before {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
}

.fest-card::after {
    content: '';
    position: absolute;
    top: calc(1.8rem + 8px);
    left: -12px;
    width: 12px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
    transition: background 0.3s;
}

.fest-card:hover::after {
    background: rgba(249, 115, 22, 0.4);
}

.fest-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.08);
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(249, 115, 22, 0.15);
    min-width: 65px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.fest-date-box .day { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.fest-date-box .month { font-size: 0.75rem; font-weight: 700; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.5px; }

.fest-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0.2rem;
}

.fest-name { font-weight: 700; font-family: 'Playfair Display', serif; font-size: 1.25rem; color: #fdfdfd; margin-bottom: 0.4rem; letter-spacing: 0.2px; }
.fest-desc { font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); line-height: 1.5; }

/* ──────────────────────────────────────────
   MODAL (Ported from Cycles)
   ────────────────────────────────────────── */
.detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.detail-overlay.visible {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.detail-modal {
    width: 92%;
    max-width: 520px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(10, 15, 30, 0.98));
    border: 1px solid rgba(52, 211, 153, 0.12);
    border-radius: 28px;
    padding: 30px 25px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

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

.detail-modal::-webkit-scrollbar { width: 4px; }
.detail-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.modal-profile-section {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}

.modal-name-block h3 {
    margin: 0;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #ffffff 0%, #fcd34d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-name-block .modal-father {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    margin-top: 3px;
}

.modal-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 12px 0 22px;
}

.modal-status-badge.alive {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.modal-status-badge.deceased {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(52, 211, 153, 0.1);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.2s;
}

.info-card:hover {
    background: rgba(52, 211, 153, 0.05);
}

.info-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-icon .material-symbols-rounded {
    font-size: 22px;
    color: #34d399;
}

.info-card-content {
    flex: 1;
    min-width: 0;
}

.info-card-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3px;
    white-space: nowrap;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vedic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(234, 179, 8, 0.25) 100%);
    color: #fbbf24;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vedic-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(234, 179, 8, 0.5) 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

/* Modal Avatar Specific Styling */
.modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(52, 211, 153, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.modal-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.08);
    border: 2px solid rgba(52, 211, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-avatar-placeholder .material-symbols-rounded {
    font-size: 36px;
    color: rgba(52, 211, 153, 0.4);
}

@media (max-width: 640px) {
    .app-header { padding: 0 1rem; }
    .tab-bar { width: 95%; padding: 0.3rem; }
    .tab-btn { min-width: 70px; padding: 0.5rem 0.2rem; }
    .tab-btn span { font-size: 0.65rem; }
    .live-clock-main { font-size: 2.5rem; }
}
