*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* Dashboard */
.dashboard-wrapper{
    display: flex;
    min-height: 100vh;
}

/* Hero */
.hero-section{
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.hero-logo{
    width: 500px;
    object-fit: cover;
}

.hero-right h1{
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-right p{
    font-size: 16px;
    color: #555;
    max-width: 550px;
    font-weight: 600;
    line-height: 1.6;
}

.explore-btn{
    margin-top: 22px;
    width: 320px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 12px;

    background: var(--crimson-gradient);
    color: #fff;

    font-size: 16px;
    font-weight: 700;

    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--crimson-glow);
    transition: all 0.3s ease;
}

/* Shine Effect */
.explore-btn::before{
    content: "";

    position: absolute;
    top: 0;
    left: -75%;

    width: 50%;
    height: 100%;

    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0) 100%
    );

    transform: skewX(-25deg);
}

/* Hover Animation */
.explore-btn:hover::before{
    animation: shine 1.5s ease;
}

@keyframes shine{
    100%{
        left: 125%;
    }
}

/* Cards */
.stats-row{
    margin-top: 40px;
}

.stat-card{
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gold-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.5);
}

.stat-card p{
    color: #777;
    margin-bottom: 8px;
    font-size: 16px;
}

.stat-card h3{
    font-size: 32px;
    font-weight: 700;
}

.stat-icon{
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #fcebed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bf1028;
    font-size: 24px;
}

/* Puja Section */
.puja-section{
    background: var(--card-bg);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 30px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.puja-title{
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-crimson);
    font-family: var(--font-header);
    letter-spacing: -0.01em;
}


.puja-item{
    background: #FBF4ED;
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.puja-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(212, 175, 55, 0.55);
}

.puja-left{
    display: flex;
    align-items: center;
    gap: 18px;
}

.puja-icon{
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #fcebed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.puja-icon img{
    width: 54px;
    height: 54px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.puja-item h4{
    font-size: 16px;
    margin-bottom: 4px;
}

.puja-item p{
    color: #777;
    margin: 0;
}

.days-badge{
    border: 1px solid #bf1028;
    color: #bf1028;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.puja-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-cancel-btn {
    border: 1.5px solid #dc3545;
    background: #FBF4ED;
    color: #dc3545;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 44px;
}

.dashboard-cancel-btn:hover {
    background: #dc3545;
    color: #fff;
}

.view-all{
    text-align: center;
    margin-top: 10px;
}

.view-all a{
    color: #bf1028;
    font-size: 16px;
    font-weight: 600;
}



/* ============================ PROFILE PAGE ===================================== */

/* ========================= DETAILS FORM CARD ========================= */

.details-form-card{

    background: var(--card-bg);

    border: 1px solid var(--gold-border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    padding: 30px;

    margin-top: 10%;
}
/* ========================= TITLE ========================= */

.details-form-title{
    font-size: 18px;
    font-weight: 700;

    color: var(--primary-crimson);
    font-family: var(--font-header);
    letter-spacing: -0.01em;

    margin-bottom: 14px;
}

/* ========================= PROFILE IMAGE ========================= */

.profile-card{

    background: #FBF4ED;

    border: 1px solid var(--gold-border);

    border-radius: var(--radius-md);

    padding: 24px;

    text-align: center;

    height: 100%;

    box-shadow: var(--shadow-sm);
}

.profile-wrapper{

    position:relative;

    width:140px;
    height:140px;

    margin:auto;
}

.profile-circle{

    width:140px;

    height:140px;

    border-radius:50%;

    overflow:hidden;

    border:3px solid #B5122B;

    background:#f5f5f5;

    cursor:pointer;
}

.profile-circle img{

    width:100%;

    height:100%;

    object-fit:cover;
}

.edit-profile-btn{

    position:absolute;

    right:-4px;
    bottom:8px;

    width:40px;
    height:40px;

    border-radius:50%;

    background:#B5122B;

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    border:3px solid #fff;

    box-shadow:0 6px 15px rgba(0,0,0,.2);

    z-index:10;
}

.edit-profile-btn:hover{

    background:#980f24;

    transform:scale(1.08);
}

.edit-profile-btn i{

    font-size:15px;

    color:#fff;
}

.profile-upload-info{

    display:block;

    margin-top:20px;

    font-size:13px;

    color:#777;

    line-height:1.7;
}

/* ========================= LABEL ========================= */

.custom-label{
    display: block;

    font-size: 11px;
    font-weight: 400;

    color: #7c7c7c;

    margin-bottom: 6px;
}

/* ========================= INPUT ========================= */

.custom-input{
    width: 100%;
    height: 36px;

    border: 1px solid #dddddd;

    border-radius: 5px;

    padding: 0 10px;

    font-size: 11px;
    font-weight: 400;

    color: #111;

    background: #FBF4ED !important;

    outline: none;

    transition: 0.2s;
}

.custom-input:focus{
    border-color: #b5122b;

    box-shadow: none;

    background: #FBF4ED !important;
}

/* ========================= TEXTAREA ========================= */

.custom-textarea{
    height: 56px;

    resize: none;

    padding-top: 10px;

    background: #FBF4ED !important;
}

/* ========================= SELECT ========================= */

select.custom-input{
    appearance: none;

    background-color: #FBF4ED !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23777' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 10px center;

    padding-right: 30px;
}

/* Ensure all inputs, selects, textareas and addons in details-form-card have #FBF4ED background */
.details-form-card .custom-input,
.details-form-card .custom-textarea,
.details-form-card select.custom-input,
.details-form-card select,
.details-form-card input:not([type="checkbox"]):not([type="radio"]),
.details-form-card textarea,
.details-form-card .form-control,
.details-form-card .input-group-text {
    background-color: #FBF4ED !important;
}

.details-form-card .custom-input:focus,
.details-form-card .custom-textarea:focus,
.details-form-card select.custom-input:focus,
.details-form-card select:focus,
.details-form-card input:not([type="checkbox"]):not([type="radio"]):focus,
.details-form-card textarea:focus,
.details-form-card .form-control:focus {
    background-color: #FBF4ED !important;
}

.details-form-card .input-group-text {
    border-color: #dddddd !important;
}

.details-form-card input:-webkit-autofill,
.details-form-card input:-webkit-autofill:hover,
.details-form-card input:-webkit-autofill:focus,
.details-form-card textarea:-webkit-autofill,
.details-form-card select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #FBF4ED inset !important;
    -webkit-text-fill-color: #111 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ========================= BUTTON WRAP ========================= */

.submit-btn-wrap{
    display: flex;
    justify-content: flex-end;

    margin-top: 6px;
}

/* ========================= BUTTON ========================= */

.submit-btn{
    min-width: 120px;
    height: 38px;

    border: 1px solid rgba(255, 215, 0, 0.35);

    border-radius: 8px;

    background: var(--crimson-gradient);

    color: #fff;

    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 4px 15px var(--crimson-glow);

    transition: all 0.25s ease;
}

.submit-btn:hover{
    background: linear-gradient(135deg, #d41b2f 0%, #9c0f20 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184, 20, 38, 0.38);
    border-color: rgba(255, 215, 0, 0.6);
}

/* ========================= FORM SPACING ========================= */

.row > div{
    margin-bottom: 4px;
}

.row>.col-md-6,
.row>.col-12{

    margin-bottom:18px;
}


.countdown-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.time-box{
    width: 62px;
    height: 52px;

    background: #FFFCAA;
    border: 1px solid #FFB84C;

    border-radius: 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #E7030E;
}

.time-box h4{
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.time-box span{
    font-size: 11px;
    margin-top: 3px;
}

.dot{
    color: #666;

    font-size: 22px;
    font-weight: 700;

    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

.dot::before{
    content: ":";
}


.password-group{
    position:relative;
}

.password-group .custom-input{
    padding-right:50px;
}

.password-toggle{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:#777;
    font-size:18px;
    z-index:5;
}

.password-toggle:hover{
    color:#bf1028;
}

.field-error{
    color:#dc3545;
    font-size:12px;
    display:block;
    margin-top:4px;
}

.error{
    border:1px solid #dc3545 !important;
}

/* ==========================================
   TABLET & MOBILE RESPONSIVE STYLES FOR DASHBOARD & PROFILE
========================================== */

@media (max-width: 991px) {
    /* Hero Section */
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        gap: 24px;
        margin-top: 20px;
    }

    .hero-left {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-logo {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .hero-right h1 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-right p {
        font-size: 14px;
        max-width: 100%;
    }

    .explore-btn {
        width: 100%;
        max-width: 300px;
        margin: 18px auto 0;
    }

    /* Stats Cards */
    .stats-row {
        margin-top: 24px;
    }

    /* Profile Page Form Card */
    .details-form-card {
        margin-top: 20px;
        padding: 20px 16px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        gap: 16px;
        margin-top: 15px;
    }

    .hero-logo {
        max-width: 240px;
    }

    .hero-right h1 {
        font-size: 22px;
    }

    .hero-right p {
        font-size: 13px;
    }

    .stat-card {
        padding: 16px;
        border-radius: 12px;
    }

    .stat-card h3 {
        font-size: 24px;
    }

    .stat-card p {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .puja-section {
        padding: 16px;
        margin-top: 20px;
        border-radius: 14px;
    }

    .puja-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }

    .puja-left {
        gap: 12px;
    }

    .puja-icon {
        width: 46px;
        height: 46px;
    }

    .puja-icon img {
        width: 46px;
        height: 46px;
    }

    .days-badge {
        width: 100%;
        text-align: center;
    }

    .puja-right-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .puja-right-actions .countdown-wrapper {
        justify-content: center;
        width: 100%;
    }

    .dashboard-cancel-btn {
        width: 100%;
        justify-content: center;
    }

    /* Profile Page Mobile adjustments */
    .details-form-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .profile-card {
        padding: 16px;
    }

    .profile-wrapper,
    .profile-circle {
        width: 110px;
        height: 110px;
    }

    .edit-profile-btn {
        width: 34px;
        height: 34px;
        right: -2px;
        bottom: 2px;
    }

    .edit-profile-btn i {
        font-size: 13px;
    }

    .submit-btn-wrap {
        justify-content: stretch;
    }

    .submit-btn {
        width: 100%;
    }
}

/* =======================================================
   MODERN SACRED PROFILE UI (MATCHING MOBILE DESIGN)
======================================================= */

/* Sacred Temple Atmosphere Backdrop */
.temple-backdrop-art {
    position: absolute;
    top: 0;
    right: 0;
    width: 680px;
    max-width: 55vw;
    height: 340px;
    background-image: url('../assets/home_background.svg');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse at 100% 0%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 85%);
    mask-image: radial-gradient(ellipse at 100% 0%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 85%);
}

.main-content {
    position: relative;
    background-color: transparent !important;
    background-image: none !important;
}

.profile-top-header,
.profile-avatar-card,
.profile-tabs-nav,
.profile-content-card,
.dash-top-header,
.dash-hero-card,
.dash-stats-grid,
.dash-services-section {
    position: relative;
    z-index: 1;
}

.profile-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-top: 6px;
    min-height: 60px;
}

.profile-header-left {
    display: flex;
    flex-direction: column;
}

.profile-header-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF5EC;
    border: 1px solid #F3E0CF;
    color: #8B1324;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.profile-back-btn:hover {
    background: #8B1324;
    color: #FFFFFF;
    transform: scale(1.05);
}

.profile-page-title {
    font-size: 26px;
    font-weight: 700;
    color: #8B1324;
    margin: 0;
    font-family: var(--font-header);
    letter-spacing: -0.01em;
}

.profile-avatar-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid #EFE8DE;
    border-radius: 20px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(141, 13, 31, 0.04);
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.profile-avatar-card:hover {
    border-color: #E2D5C3;
    box-shadow: 0 6px 24px rgba(141, 13, 31, 0.07);
}

.profile-avatar-main-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid #E5C365;
    overflow: visible;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(229, 195, 101, 0.3);
    cursor: pointer;
}

.profile-avatar-wrapper .avatar-img-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-camera-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #8B1324;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.avatar-camera-btn:hover {
    transform: scale(1.12);
}

.profile-avatar-meta {
    display: flex;
    flex-direction: column;
}

.profile-user-name {
    font-size: 19px;
    font-weight: 700;
    color: #201A18;
    margin: 0 0 3px 0;
    font-family: var(--font-sans);
}

.profile-avatar-hint {
    font-size: 13px;
    color: #78716C;
    margin: 0;
}

/* Profile Language Picker Box */
.profile-lang-option-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFF9F2;
    border: 1.5px solid #F0DFCC;
    border-radius: 14px;
    padding: 8px 14px;
    box-shadow: 0 2px 8px rgba(141, 13, 31, 0.03);
    flex-shrink: 0;
}

.lang-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #8B1324;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.lang-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-option-label {
    font-size: 11px;
    font-weight: 700;
    color: #8B1324;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-lang-select {
    width: 105px !important;
    height: 34px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #8B1324 !important;
    border: 1.5px solid #D4B27C !important;
    border-radius: 8px !important;
    background-color: #FFFFFF !important;
    padding: 2px 8px !important;
    cursor: pointer;
}

/* Tab Navigation Strip */
.profile-tabs-nav {
    background: #FFFFFF;
    border: 1.5px solid #EFE8DE;
    border-radius: 16px;
    padding: 6px;
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.profile-tabs-nav::-webkit-scrollbar {
    display: none;
}

.profile-tab-btn {
    flex: 1;
    min-height: 42px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #4B4543;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    padding: 8px 16px;
}

.profile-tab-btn i {
    font-size: 15px;
    color: #8B1324;
    transition: color 0.25s ease;
}

.profile-tab-btn:hover:not(.active) {
    background: #FFF5EC;
    color: #8B1324;
}

.profile-tab-btn.active {
    background: linear-gradient(135deg, #A71123 0%, #850A1B 100%);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(139, 19, 36, 0.28);
}

.profile-tab-btn.active i {
    color: #FFFFFF !important;
}

/* Tab Content Card */
.profile-content-card {
    background: #FFFFFF;
    border: 1.5px solid #EFE8DE;
    border-radius: 20px;
    padding: 24px 22px;
    box-shadow: 0 4px 20px rgba(141, 13, 31, 0.04);
    margin-bottom: 22px;
    transition: all 0.25s ease;
}

.profile-tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.profile-tab-pane.active {
    display: block;
    opacity: 1;
}

.section-badge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.badge-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #FFF5EC;
    border: 1px solid #FFE4CC;
    color: #CB6818;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.badge-heading {
    font-size: 18px;
    font-weight: 700;
    color: #201A18;
    margin: 0;
    font-family: var(--font-sans);
}

.profile-field-label {
    font-size: 14px;
    font-weight: 600;
    color: #201A18;
    margin-bottom: 7px;
    display: inline-block;
}

.profile-field-label .required-star {
    color: #DC2626;
    font-weight: 700;
    margin-left: 2px;
}

.profile-content-card .custom-input,
.profile-content-card .form-control.custom-input,
.profile-content-card input.custom-input {
    background-color: #FBF4ED !important;
    border: 1.5px solid #E5DDD0 !important;
    border-radius: 14px !important;
    padding: 11px 16px !important;
    height: 48px !important;
    min-height: 48px !important;
    font-size: 14.5px !important;
    color: #201A18 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.profile-content-card textarea.custom-input,
.profile-content-card textarea {
    height: auto !important;
    min-height: 105px !important;
    padding: 14px 16px !important;
    line-height: 1.6 !important;
    background-color: #FBF4ED !important;
    border: 1.5px solid #E5DDD0 !important;
    border-radius: 14px !important;
    font-size: 14.5px !important;
    color: #201A18 !important;
    font-weight: 500 !important;
    resize: vertical;
}

.profile-content-card select.custom-input,
.profile-content-card select.form-select,
select.custom-input {
    height: 48px !important;
    min-height: 48px !important;
    line-height: normal !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 16px !important;
    padding-right: 38px !important;
    font-size: 14.5px !important;
    background-color: #FBF4ED !important;
    color: #201A18 !important;
    border: 1.5px solid #E5DDD0 !important;
    border-radius: 14px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2378716C' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 13px !important;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box !important;
}

.profile-content-card select.custom-input option,
.profile-content-card select.form-select option {
    background-color: #FFFFFF;
    color: #201A18;
    padding: 10px 14px;
    font-size: 14.5px;
}

.profile-content-card .custom-input:focus,
.profile-content-card select.custom-input:focus,
.profile-content-card select.form-select:focus,
.profile-content-card textarea.custom-input:focus {
    border-color: #8B1324 !important;
    box-shadow: 0 0 0 3.5px rgba(139, 19, 36, 0.12) !important;
    background-color: #FBF4ED !important;
    outline: none;
}

.profile-phone-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #E5DDD0;
    border-radius: 14px;
    background: #FBF4ED !important;
    overflow: hidden;
    height: 48px;
    min-height: 48px;
    transition: all 0.2s ease;
}

.profile-phone-group:focus-within {
    border-color: #8B1324;
    box-shadow: 0 0 0 3.5px rgba(139, 19, 36, 0.12);
}

.profile-phone-group .country-badge {
    background: #F2E7DC !important;
    border-right: 1.5px solid #E5DDD0;
    padding: 0 14px;
    height: 100%;
    font-size: 14.5px;
    font-weight: 600;
    color: #4B4543;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.profile-phone-group .custom-input {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 14px !important;
    background-color: transparent !important;
    height: 100% !important;
    min-height: auto !important;
}

.profile-phone-group .custom-input:focus {
    box-shadow: none !important;
}

.dob-custom-group {
    position: relative;
}

.dob-custom-group .custom-input,
.dob-custom-group .form-control {
    padding-right: 46px !important;
}

.password-group {
    position: relative;
}

.password-group .custom-input {
    padding-right: 46px !important;
}

.dob-custom-group .calendar-trigger-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B1324;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
}

.profile-update-btn {
    min-width: 150px;
    height: 44px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    background: linear-gradient(135deg, #A71123 0%, #850A1B 100%);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(139, 19, 36, 0.28);
    transition: all 0.25s ease;
    cursor: pointer;
}

.profile-update-btn:hover {
    background: linear-gradient(135deg, #BD162C 0%, #950D20 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(139, 19, 36, 0.35);
    border-color: rgba(255, 215, 0, 0.7);
    color: #FFFFFF;
}

/* =======================================================
   MOBILE BOTTOM NAVIGATION BAR (FIXED BOTTOM DOCK)
======================================================= */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1.5px solid #EFE8DE;
    z-index: 1050;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #78716C;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    padding: 6px 8px;
    flex: 1;
    text-align: center;
}

.mobile-nav-item i {
    font-size: 19px;
    margin-bottom: 2px;
    color: #78716C;
    transition: color 0.2s ease;
}

.mobile-nav-item.active {
    color: #8B1324;
}

.mobile-nav-item.active i {
    color: #8B1324;
}

.mobile-nav-item.active::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #DF9B1A;
    position: absolute;
    bottom: 2px;
}

.mobile-nav-center {
    position: relative;
    top: -14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 1;
}

.mobile-nav-center-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A71123 0%, #750817 100%);
    border: 3px solid #FFF8EE;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(139, 19, 36, 0.4), 0 0 0 2px #E5C365;
    transition: transform 0.2s ease;
}

.mobile-nav-center-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.mobile-nav-center-btn:active {
    transform: scale(0.94);
}

.mobile-nav-center-label {
    font-size: 11px;
    font-weight: 700;
    color: #8B1324;
    margin-top: 3px;
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }

    .main-content {
        padding: 16px 14px 40px 14px;
    }

    .temple-backdrop-art {
        width: 480px;
        max-width: 70vw;
        height: 250px;
    }

    .profile-top-header {
        margin-bottom: 14px;
    }

    .profile-page-title {
        font-size: 22px;
    }

    .profile-avatar-card {
        padding: 14px 16px;
        border-radius: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .profile-lang-option-box {
        width: 100%;
        justify-content: space-between;
    }

    .profile-avatar-wrapper {
        width: 66px;
        height: 66px;
    }

    .avatar-camera-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .profile-user-name {
        font-size: 17px;
    }

    .profile-tabs-nav {
        padding: 4px;
        gap: 4px;
        border-radius: 14px;
    }

    .profile-tab-btn {
        font-size: 13px;
        padding: 6px 10px;
        min-height: 38px;
    }

    .profile-content-card {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .badge-heading {
        font-size: 16px;
    }

    .profile-update-btn {
        width: 100%;
        height: 44px;
    }
}

/* =======================================================
   MODERN SACRED DASHBOARD UI (MATCHING MOBILE DESIGN)
======================================================= */

.dash-top-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
    min-height: 44px;
}

.dash-brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.dash-hero-card {
    background: linear-gradient(135deg, #6B0A18 0%, #8B1324 50%, #5E0815 100%);
    border-radius: 22px;
    padding: 24px 28px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(107, 10, 24, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
    border: 1px solid rgba(229, 195, 101, 0.35);
}

.dash-hero-card::after {
    content: "ॐ";
    position: absolute;
    right: 20px;
    bottom: -35px;
    font-size: 160px;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-header);
    pointer-events: none;
    line-height: 1;
}

.dash-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dash-hero-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #FFF8EE;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash-hero-live-pill {
    background: rgba(229, 195, 101, 0.22);
    border-color: rgba(229, 195, 101, 0.5);
    color: #FFF3D6;
}

.dash-hero-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.dash-hero-info {
    flex: 1;
    min-width: 280px;
}

.dash-hero-name {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    font-family: var(--font-header);
    letter-spacing: -0.01em;
}

.dash-hero-sub {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 540px;
    line-height: 1.5;
}

.dash-explore-btn {
    background: linear-gradient(135deg, #E5C365 0%, #D4AF37 100%);
    color: #5E0815;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(229, 195, 101, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.dash-explore-btn:hover {
    background: linear-gradient(135deg, #F0D27B 0%, #E5C365 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 195, 101, 0.45);
    color: #5E0815;
}

/* 3-Card Stats Grid */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-stat-box {
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dash-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.dash-stat-box.stat-maroon {
    background: linear-gradient(135deg, #8B1324 0%, #6E0B1B 100%);
    border: 1px solid rgba(229, 195, 101, 0.3);
}

.dash-stat-box.stat-terracotta {
    background: linear-gradient(135deg, #CB6818 0%, #B4520A 100%);
    border: 1px solid rgba(229, 195, 101, 0.3);
}

.dash-stat-box.stat-ochre {
    background: linear-gradient(135deg, #C2820C 0%, #9C6504 100%);
    border: 1px solid rgba(229, 195, 101, 0.3);
}

.stat-badge-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-big-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin: 2px 0 0 0;
    color: #FFFFFF;
    font-family: var(--font-sans);
}

.stat-label-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    white-space: nowrap;
}

/* Quick Sacred Services */
.dash-services-section {
    margin-bottom: 24px;
}

.dash-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.dash-section-icon {
    color: #8B1324;
    font-size: 20px;
}

.dash-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #201A18;
    margin: 0;
    font-family: var(--font-header);
    letter-spacing: -0.01em;
}

.dash-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.dash-service-card {
    background: #FFFFFF;
    border: 1.5px solid #EFE8DE;
    border-radius: 18px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.dash-service-card:hover {
    border-color: #D4AF37;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 19, 36, 0.08);
    color: inherit;
}

.service-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.service-icon-box.icon-library {
    background: #FFF0F2;
    color: #8B1324;
}

.service-icon-box.icon-sankalp {
    background: #FFF7E6;
    color: #D97706;
}

.service-icon-box.icon-wallet {
    background: #FEF9EE;
    color: #C2820C;
}

.service-icon-box.icon-support {
    background: #EDF8F5;
    color: #0D9488;
}

.service-card-text {
    min-width: 0;
}

.service-title {
    font-size: 15px;
    font-weight: 700;
    color: #201A18;
    margin: 0 0 2px 0;
    font-family: var(--font-sans);
}

.service-desc {
    font-size: 12px;
    color: #78716C;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Upcoming Puja Section Modernization */
.puja-section {
    background: #FFFFFF;
    border: 1.5px solid #EFE8DE;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.puja-title {
    font-size: 20px;
    font-weight: 700;
    color: #8B1324;
    font-family: var(--font-header);
    letter-spacing: -0.01em;
}

.puja-item {
    background: #FDFBF7;
    border: 1.5px solid #EFE8DE;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    transition: all 0.25s ease;
    flex-wrap: wrap;
    gap: 14px;
}

.puja-item:hover {
    border-color: #D4AF37;
    background: #FFFFFF;
    box-shadow: 0 6px 18px rgba(139, 19, 36, 0.06);
}

.puja-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 240px;
}

.puja-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #FFF0F2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(139, 19, 36, 0.1);
}

.puja-icon img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.puja-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #201A18;
    margin-bottom: 3px;
    font-family: var(--font-sans);
}

.puja-item p {
    color: #78716C;
    font-size: 13px;
    margin: 0;
}

.puja-right-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.dashboard-cancel-btn {
    border: 1.5px solid #FCA5A5;
    background: #FFF5F5;
    color: #DC2626;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 42px;
}

.dashboard-cancel-btn:hover {
    background: #DC2626;
    color: #FFFFFF;
    border-color: #DC2626;
}

.view-all a {
    color: #8B1324;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-all a:hover {
    color: #B5122B;
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 992px) {
    .dash-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .temple-backdrop-art {
        width: 320px;
        max-width: 85vw;
        height: 180px;
    }

    .dash-hero-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .dash-hero-name {
        font-size: 22px;
    }

    .dash-stats-grid {
        gap: 8px;
    }

    .dash-stat-box {
        padding: 14px 6px;
        border-radius: 14px;
    }

    .stat-badge-circle {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .stat-big-num {
        font-size: 22px;
    }

    .stat-label-text {
        font-size: 11px;
    }

    .dash-services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dash-service-card {
        padding: 12px 10px;
        border-radius: 14px;
        gap: 10px;
    }

    .service-icon-box {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .service-title {
        font-size: 13.5px;
    }

    .service-desc {
        font-size: 11px;
    }

    .puja-item {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .puja-right-actions {
        width: 100%;
        justify-content: space-between;
    }
}
