/* Main Stylesheet - Marriage Success Matrimonial System */

:root {
    --bg-main: #0b0f19;
    --bg-secondary: #0f172a;
    --card-bg: rgba(20, 30, 48, 0.65);
    --card-bg-solid: #1e293b;
    --primary-grad: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --primary-solid: #ff4b2b;
    --secondary-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    font-weight: 700;
}

/* Typography Color Overrides for Dark Background */
.text-muted, .text-secondary, .text-body-secondary {
    color: var(--text-muted) !important;
}

.content-wrapper {
    flex: 1;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-solid);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Navigation Bar */
.main-navbar {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-white) !important;
}

.logo-accent {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 5px;
}

.logo-highlight {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 6px;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white) !important;
}

/* Buttons */
.btn-login {
    color: var(--text-white) !important;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 12px;
    transition: all 0.2s;
}

.btn-login:hover {
    color: var(--primary-solid) !important;
}

.btn-register {
    background: var(--primary-grad);
    color: var(--text-white) !important;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.35);
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 43, 0.45);
    opacity: 0.95;
}

.btn-nav-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-nav-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.btn-profile-dropdown {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 16px 6px 8px;
    border-radius: 30px;
    transition: all 0.2s;
}

.btn-profile-dropdown:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-profile-dropdown::after {
    color: var(--text-muted);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dropdown Menu Customization */
.dropdown-menu {
    background-color: #162235;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 8px;
}

.dropdown-item {
    color: #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(138, 0, 37, 0.15);
    color: #ffffff;
}

.dropdown-item .text-muted {
    color: #94a3b8 !important;
    transition: color 0.2s;
}

.dropdown-item:hover .text-muted {
    color: #ffffff !important;
}

.dropdown-item.text-danger {
    color: #ff5252 !important;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(255, 82, 82, 0.12) !important;
    color: #ff6b6b !important;
}

.bg-unread {
    background-color: rgba(255, 75, 43, 0.08);
}

.bg-dark-card {
    background-color: #101927;
}

/* Alert Boxes Styling */
.alert {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* Footer Section */
.footer {
    background-color: #080c14;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--text-white) !important;
    text-decoration: none;
}

.footer-heading {
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 2px;
    background: var(--primary-grad);
    bottom: 0;
    left: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    color: var(--text-muted);
}

.footer-contact i {
    margin-top: 4px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-socials a:hover {
    background: var(--primary-grad);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}

.footer-divider {
    border-color: var(--border-color);
}

/* Home Page Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 140px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 75, 43, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -200px;
    right: -200px;
    z-index: -1;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Quick Search Card */
.search-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.quick-search-form select, 
.quick-search-form input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
}

.quick-search-form select:focus, 
.quick-search-form input:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.25);
}

/* Features Cards */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 75, 43, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(255, 75, 43, 0.1);
    color: var(--primary-solid);
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary-grad);
    color: white;
    transform: scale(1.1);
}

/* Premium Plans Cards */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card.premium-featured {
    background: rgba(30, 41, 59, 0.9);
    border: 2px solid var(--primary-solid);
    transform: scale(1.03);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-grad);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 40px;
    transform: rotate(45deg);
    box-shadow: var(--shadow-sm);
}

.plan-price h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.plan-price span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.plan-features li {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.plan-features i {
    color: var(--accent-green);
    margin-right: 12px;
}

/* Success Stories Items */
.story-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.story-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.story-card:hover .story-img img {
    transform: scale(1.08);
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0) 100%);
    padding: 20px;
}

/* Form Styles */
.custom-card {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

.form-control, .form-select {
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-white) !important;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.2) !important;
    border-color: var(--primary-solid) !important;
    outline: none;
}

.form-control::placeholder {
    color: #64748b !important;
    opacity: 0.85;
}

.form-select option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-white) !important;
}

.form-control[readonly], .form-control:disabled, .form-select:disabled {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

/* Floating AI Chatbot Widget Styling */
.chatbot-widget-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(255, 75, 43, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.08) rotate(5deg);
}

.chatbot-toggle-btn .pulse-ring {
    position: absolute;
    border: 3px solid var(--primary-solid);
    border-radius: 50%;
    height: 100%;
    width: 100%;
    animation: pulsate 2s infinite;
    opacity: 0;
}

@keyframes pulsate {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.chatbot-window {
    width: 380px;
    height: 520px;
    border-radius: 24px;
    background-color: #152033;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 68px;
    left: 0;
    right: auto;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    transform-origin: bottom left;
}

.chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    background: var(--primary-grad);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 12px;
}

.chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #0e1624;
}

.bot-msg, .user-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-msg {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.user-msg {
    background: var(--primary-grad);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(255, 75, 43, 0.2);
}

.chatbot-suggested-queries {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.suggested-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggested-btn:hover {
    background: rgba(255, 75, 43, 0.1);
    color: var(--primary-solid);
    border-color: rgba(255, 75, 43, 0.3);
}

.chatbot-footer {
    padding: 16px;
    background-color: #152033;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary-solid);
}

.chatbot-send-btn {
    background: var(--primary-grad);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatbot-send-btn:hover {
    opacity: 0.95;
}

/* User Profile Badges */
.badge-premium {
    background: var(--primary-grad);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(255, 75, 43, 0.3);
}

.badge-verified {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Dashboard Layout */
.dashboard-menu-card {
    background-color: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.dashboard-user-summary {
    padding: 24px;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.9) 0%, rgba(36, 59, 85, 0.9) 100%);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-menu-list .list-group-item {
    background-color: transparent;
    color: var(--text-muted);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 24px;
    font-weight: 500;
    transition: all 0.2s;
}

.dashboard-menu-list .list-group-item:last-child {
    border-bottom: 0;
}

.dashboard-menu-list .list-group-item:hover,
.dashboard-menu-list .list-group-item.active {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
}

.dashboard-menu-list .list-group-item.active {
    border-left: 3px solid var(--primary-solid);
}

/* Search results listing profiles */
.profile-list-card {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.profile-list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.profile-list-img {
    height: 100%;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.profile-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Active chat page design */
.chat-container {
    height: calc(100vh - 160px);
    min-height: 500px;
    background: #111827;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chat-threads {
    border-right: 1px solid var(--border-color);
    height: 100%;
    overflow-y: auto;
}

.chat-thread-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.chat-thread-item:hover, .chat-thread-item.active {
    background-color: rgba(255, 255, 255, 0.04);
}

.chat-thread-item.unread {
    background-color: rgba(255, 75, 43, 0.04);
}

.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-area-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: #172033;
}

.chat-messages-box {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    max-width: 60%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.chat-bubble.incoming {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.chat-bubble.outgoing {
    background: var(--primary-grad);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.15);
}

.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: #172033;
}

/* Photo Gallery Grid */
.photo-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-delete-btn:hover {
    background: rgb(239, 68, 68);
    transform: scale(1.1);
}

/* User Panel Table Overrides for legibility */
.table th, .table td {
    color: var(--text-white) !important;
}
.table code {
    color: #f43f5e !important;
}

/* App download section styling */
.app-download-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(194, 14, 90, 0.06) 0%, rgba(11, 15, 25, 0) 60%),
                radial-gradient(circle at bottom left, rgba(226, 62, 125, 0.04) 0%, rgba(11, 15, 25, 0) 60%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.app-mockup-wrapper {
    position: relative;
    text-align: center;
}
.app-mockup-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s ease;
}
.app-mockup-wrapper:hover .app-mockup-img {
    transform: translateY(-8px) rotate(-1deg);
}
.app-badge-btn {
    background-color: #121824;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.app-badge-btn:hover {
    background-color: #1a2336;
    border-color: var(--primary-solid);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(194, 14, 90, 0.15);
    color: var(--text-white) !important;
}
.app-badge-btn i {
    font-size: 1.5rem;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.app-badge-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}
.app-badge-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

/* Profiles Hover Upgrade */
.story-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}
.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(194, 14, 90, 0.15);
}
.story-img img {
    transition: transform 0.5s ease;
}
.story-card:hover .story-img img {
    transform: scale(1.06);
}

/* Typography Upgrade: Matching Logo Font Family */
h1, h2, h3, h4, h5, h6, .hero-title, .navbar-brand, .footer-brand {
    font-family: 'Playfair Display', 'Noto Serif Devanagari', 'Outfit', serif;
}

/* Nav Logo Maximum Display Height */
.navbar-brand img {
    max-height: 120px !important;
    width: auto;
    transition: max-height 0.3s ease;
}

/* Footer Logo Maximum Display Height */
.footer-brand img {
    max-height: 120px !important;
    width: auto;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 95px !important;
    }
}

@media (max-width: 767.98px) {
    /* Navbar Logo Cap for small viewports */
    .navbar-brand img {
        max-height: 85px !important;
    }
    
    /* Hero Title scale down to fit on small mobile screens */
    .hero-title {
        font-size: 2.3rem !important;
        line-height: 1.25 !important;
    }
    .hero-lead {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }
    .hero-section {
        padding: 60px 0 80px !important;
    }
    
    /* Feature & Story Cards scaling */
    .feature-card {
        padding: 30px 20px !important;
    }
    
    /* General spacing fixes for stacks */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .my-5 {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
}

@media (max-width: 575.98px) {
    /* Mobile Card paddings */
    .custom-card, .search-card, .profile-list-card {
        padding: 20px !important;
    }
    .dashboard-user-summary {
        padding: 16px !important;
    }
    .profile-list-card p {
        max-width: 100% !important;
        white-space: normal !important;
    }
    /* Tables wrap helper */
    .table-responsive {
        margin-bottom: 0 !important;
    }
}

/* Payment Gateway Selector Style Alignment */
.btn-gateway-selector {
    background-color: var(--card-bg-solid, #ffffff) !important;
    border: 1px solid var(--border-color, #cbd5e1) !important;
    color: var(--text-white, #475569) !important;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
}
.btn-gateway-selector:hover {
    background-color: rgba(138, 0, 37, 0.04) !important;
    color: var(--primary-solid) !important;
    border-color: var(--primary-solid) !important;
}
.btn-check:checked + .btn-gateway-selector {
    background: var(--primary-grad) !important;
    border-color: var(--primary-solid) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(138, 0, 37, 0.2) !important;
}

/* Notification Menu Premium Dark-Mode Styles */
.notification-menu {
    background-color: #111827 !important; /* Deep slate dark */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 0 !important;
}

.notification-menu li {
    background-color: transparent !important;
    color: #f1f5f9 !important;
}

/* Header and footer blocks styling overrides */
.notification-menu li.bg-dark-card,
.notification-menu li.border-top {
    background-color: #1f2937 !important; /* Dark grey backdrop */
    color: #ffffff !important;
}

.notification-menu li.bg-dark-card span,
.notification-menu li.bg-dark-card fw-semibold {
    color: #ffffff !important;
}

.notification-menu li.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Base list item text colors override to prevent Bootstrap defaults */
.notification-menu li h6,
.notification-menu li h6.text-white {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}

.notification-menu li p,
.notification-menu li p.text-muted {
    color: #94a3b8 !important;
}

.notification-menu li small,
.notification-menu li small.text-secondary {
    color: #64748b !important;
}

/* Unread Notifications highlights override */
.bg-unread {
    background-color: rgba(255, 75, 43, 0.08) !important; /* Soft brand red overlay */
    border-left: 3px solid var(--primary-solid) !important; /* Left active accent bar */
}

.bg-unread h6,
.bg-unread h6.text-white {
    color: #ffffff !important;
}

.bg-unread p,
.bg-unread p.text-muted {
    color: #cbd5e1 !important;
}

.bg-unread small,
.bg-unread small.text-secondary {
    color: var(--primary-solid) !important; /* Crimson date for unread */
}

.notification-menu a {
    color: var(--primary-solid) !important;
    font-weight: 600 !important;
    transition: color 0.2s;
}

.notification-menu a:hover {
    color: #fda4af !important;
}

/* Premium Mobile App UI - Bottom Navigation and Bottom Sheet Modal */
.mobile-bottom-nav {
    background-color: var(--card-bg-solid, #ffffff) !important;
    border-top: 1px solid var(--border-color, #e2e8f0) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
}

.mobile-bottom-nav .nav-link-item {
    color: var(--text-muted, #64748b) !important;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.mobile-bottom-nav .nav-link-item.active {
    color: var(--primary-solid, #dc2626) !important;
    font-weight: 700;
}

/* Slide-up Bottom Sheet Modal for Menu */
.modal.bottom-sheet-modal {
    padding-right: 0 !important;
}

.modal.bottom-sheet-modal .modal-dialog {
    position: fixed !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.modal.bottom-sheet-modal.show .modal-dialog {
    transform: translateY(0) !important;
}

.modal.bottom-sheet-modal .modal-content {
    border-radius: 24px 24px 0 0 !important;
    border: none !important;
    background-color: var(--card-bg-solid, #ffffff) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15) !important;
}

.modal.bottom-sheet-modal .modal-header {
    border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
    padding: 20px 24px 12px !important;
    background-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.modal.bottom-sheet-modal .modal-header .modal-title {
    color: var(--text-white, #0f172a) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Mobile Menu Items Styles */
.mobile-menu-item {
    display: flex !important;
    align-items: center !important;
    padding: 16px 24px !important;
    color: var(--text-white, #0f172a) !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--border-color, #f1f5f9) !important;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:last-child {
    border-bottom: none !important;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

/* Dark mode hover adaptation */
body.dark-mode .mobile-menu-item:hover,
body.dark-mode .mobile-menu-item:active {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.mobile-menu-item i {
    width: 24px !important;
    margin-right: 16px !important;
    font-size: 1.25rem !important;
    text-align: center !important;
}

/* swipeable horizontal nav tabs for mobile */
@media (max-width: 767.98px) {
    #editTabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        padding: 8px !important;
        background-color: rgba(255, 255, 255, 0.03) !important;
        border-radius: 12px !important;
        border: 1px solid var(--border-color) !important;
        scrollbar-width: none !important; /* Hide scrollbar Firefox */
    }
    
    #editTabs::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar Chrome/Safari */
    }
    
    #editTabs .nav-item {
        flex: 0 0 auto !important;
        margin-right: 6px !important;
    }
    
    #editTabs .nav-item:last-child {
        margin-right: 0 !important;
    }
    
    #editTabs .nav-link {
        font-size: 0.85rem !important;
        padding: 8px 14px !important;
    }
}
