:root {
    /* High Fidelity Mobile UI Colors */
    --mobile-bg: #FCFAF6;
    --mobile-text: #2D2338;
    --mobile-text-secondary: #70687A;
    --mobile-accent: #B4934C;
    --mobile-accent-dark: #8E6F33;
    --mobile-purple: #5A2D7A;
    --mobile-purple-light: #F4EEF8;
    
    /* Card Styles */
    --card-bg: #FFFFFF;
    --card-border: rgba(180, 147, 76, 0.12);
    --card-shadow: 0 8px 24px rgba(45, 35, 56, 0.04);
    
    /* Font */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--mobile-bg);
    color: var(--mobile-text);
    line-height: 1.5;
    padding-bottom: 85px;
    overflow-x: hidden;
}

.mobile-container {
    padding: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* App Bar styling */
.app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-bar-icon {
    font-size: 1.25rem;
    color: var(--mobile-text);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bottom Tab Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.02);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--mobile-text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    flex: 1;
    gap: 4px;
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item.active {
    color: var(--mobile-purple);
}

/* Cards layout */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

/* Featured Banner Card */
.featured-banner {
    background: linear-gradient(135deg, #2D1A3C 0%, #150921 100%);
    border-radius: 24px;
    padding: 24px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-banner-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 85% 50%, rgba(180, 147, 76, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.featured-banner-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #F8F5F0;
}

.featured-banner-accent {
    color: #E2C275;
    font-weight: 800;
}

.featured-banner-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.featured-banner-btn {
    background: #E2C275;
    color: #2D1A3C;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
}

/* Category Grid (3x3 Layout) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.category-item {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 4px 12px rgba(45, 35, 56, 0.02);
    border-radius: 16px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--mobile-text);
}

.category-icon-container {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.category-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mobile-text-secondary);
}

/* Category grid tint colors from demo screenshot */
.tint-panchangam { background: #FEF3F2; color: #F04438; }
.tint-publications { background: #FDF4E9; color: #F38F18; }
.tint-magazine { background: #F6F3FB; color: #6941C6; }
.tint-key { background: #FEF6EE; color: #E06D14; }
.tint-ashramam { background: #F0F9FF; color: #0284C7; }
.tint-trust { background: #ECFDF3; color: #10B981; }
.tint-gallery { background: #F0FDF9; color: #14B8A6; }
.tint-brotherhood { background: #FFF1F2; color: #F43F5E; }
.tint-events { background: #FDF2FA; color: #D444F1; }

/* Today's Panchangam Layout (Side-by-side Cards) */
.panchang-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.panchang-summary-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panchang-summary-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mobile-accent-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panchang-summary-header i {
    font-size: 0.75rem;
}

.panchang-detail-item {
    margin-bottom: 8px;
}

.panchang-detail-item:last-child {
    margin-bottom: 0;
}

.panchang-detail-label {
    font-size: 0.75rem;
    color: var(--mobile-text-secondary);
    font-weight: 600;
}

.panchang-detail-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mobile-text);
}

/* Sunrise/Sunset strip rows in widget */
.sun-time-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.sun-time-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #FFF9E6;
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.sun-time-icon.moon {
    background: #F4EEF8;
    color: var(--mobile-purple);
}

.sun-time-details {
    display: flex;
    flex-direction: column;
}

.sun-time-label {
    font-size: 0.7rem;
    color: var(--mobile-text-secondary);
    font-weight: 600;
}

.sun-time-value {
    font-size: 0.85rem;
    font-weight: 700;
}

/* Tabs switcher styling (Daily / Monthly / Yearly) */
.tab-switch {
    display: flex;
    background: #ECE9F1;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-switch-item {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mobile-text-secondary);
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
}

.tab-switch-item.active {
    background: var(--mobile-purple);
    color: #FFFFFF;
}

/* Date Switcher Widget */
.date-switch-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.date-switch-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mobile-text);
    cursor: pointer;
}

.date-switch-center {
    text-align: center;
}

.date-switch-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.date-switch-subtitle {
    font-size: 0.75rem;
    color: var(--mobile-text-secondary);
    font-weight: 600;
}

/* Panchang Info List Rows (Detail items) */
.panchang-info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.panchang-info-row:last-child {
    border-bottom: none;
}

.panchang-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFF9EE;
    color: var(--mobile-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 14px;
    flex-shrink: 0;
}

.panchang-row-content {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panchang-row-left {
    display: flex;
    flex-direction: column;
}

.panchang-row-label {
    font-size: 0.75rem;
    color: var(--mobile-text-secondary);
    font-weight: 600;
}

.panchang-row-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--mobile-text);
}

.panchang-row-time {
    font-size: 0.7rem;
    color: var(--mobile-text-secondary);
    font-weight: 600;
    text-align: right;
}

/* Publications UI additions */
.horizontal-scroll-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 20px;
    padding: 4px 0;
}

.horizontal-scroll-pills::-webkit-scrollbar {
    display: none;
}

.pill-item {
    padding: 8px 18px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mobile-text-secondary);
    text-decoration: none;
    white-space: nowrap;
}

.pill-item.active {
    background: var(--mobile-purple);
    color: #FFFFFF;
}

/* Featured publication card */
.featured-pub-card {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.pub-thumb {
    width: 100px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.pub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.pub-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--mobile-accent-dark);
}

.pub-title-bold {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--mobile-text);
}

.pub-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.pub-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--mobile-text);
}

.btn-buy {
    background: #B4934C;
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* Popular list row layout */
.popular-book-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.popular-book-row:last-child {
    border-bottom: none;
}

.popular-book-thumb {
    width: 50px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.popular-book-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-book-info {
    flex-grow: 1;
}

.popular-book-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mobile-text);
}

.popular-book-subtitle {
    font-size: 0.75rem;
    color: var(--mobile-text-secondary);
}

.popular-book-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--mobile-text);
    margin-top: 2px;
}

.popular-book-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF9EE;
    color: var(--mobile-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

/* Profile / Drawer Menu Items */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FFF3EE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--mobile-accent);
    border: 2px solid var(--card-border);
}

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

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.profile-status {
    font-size: 0.8rem;
    color: var(--mobile-text-secondary);
}

/* Menu links list */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 30px;
}

.menu-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--mobile-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.menu-list-item:active,
.menu-list-item.active {
    background: #FFF8EE;
    color: var(--mobile-accent-dark);
}

.menu-list-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--mobile-text-secondary);
}

.menu-list-item:active i,
.menu-list-item.active i {
    color: var(--mobile-accent);
}

/* CTA Callout Banner */
.cta-banner {
    background: linear-gradient(135deg, #3A234E 0%, #201130 100%);
    border-radius: 20px;
    padding: 20px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(226, 194, 117, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #F8F5F0;
}

.cta-desc {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 12px;
}

.cta-btn {
    background: #E2C275;
    color: #201130;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
}

.outfit {
    font-family: var(--font-heading);
}

.text-gradient {
    background: linear-gradient(135deg, var(--mobile-text), var(--mobile-accent-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Spiritual Site Loader */
#site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FCFAF6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 140px;
}

/* Concentric Rings rotating in opposite directions */
.loader-outer-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 2px dashed rgba(180, 147, 76, 0.35);
    border-radius: 50%;
    animation: loader-spin-clockwise 8s linear infinite;
}

.loader-inner-ring {
    position: absolute;
    width: 85px;
    height: 85px;
    border: 2px solid transparent;
    border-top-color: var(--mobile-accent);
    border-bottom-color: var(--mobile-accent-dark);
    border-radius: 50%;
    animation: loader-spin-counter 2s linear infinite;
}

.loader-aura {
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 147, 76, 0.18) 0%, rgba(252, 250, 246, 0) 70%);
    animation: loader-aura-pulse 2s ease-in-out infinite;
}

.loader-logo-inner {
    position: absolute;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: loader-logo-pulse 2s ease-in-out infinite;
}

@keyframes loader-spin-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loader-spin-counter {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes loader-aura-pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes loader-logo-pulse {
    0%, 100% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
}