/* ====================================
   ORAM Premium Upgrade v4.0
   Ultra-Luxe Visual Enhancement System
   ==================================== */

/* ====================================
   1. ENHANCED SVG ILLUSTRATIONS SYSTEM
   Animated Premium SVG Components
   ==================================== */

/* Base SVG Container Styling */
.premium-illustration {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.premium-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

/* SVG Animation Keyframes */
@keyframes svgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes svgPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes svgGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.6)); }
}

@keyframes svgFlameFlicker {
    0%, 100% { transform: scaleY(1) scaleX(1); opacity: 0.9; }
    25% { transform: scaleY(1.1) scaleX(0.95); opacity: 1; }
    50% { transform: scaleY(0.95) scaleX(1.05); opacity: 0.85; }
    75% { transform: scaleY(1.08) scaleX(0.98); opacity: 0.95; }
}

@keyframes svgHeartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

@keyframes svgSparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes svgOrbit {
    0% { transform: rotate(0deg) translateX(40px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

@keyframes svgWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes gradientShift {
    0% { stop-color: #c9a227; }
    50% { stop-color: #e8c547; }
    100% { stop-color: #c9a227; }
}

/* Premium Illustration - Family Connection */
.svg-family-connection {
    animation: svgFloat 6s ease-in-out infinite;
}

.svg-family-connection .person {
    animation: svgPulse 3s ease-in-out infinite;
}

.svg-family-connection .person:nth-child(2) {
    animation-delay: 0.5s;
}

.svg-family-connection .person:nth-child(3) {
    animation-delay: 1s;
}

.svg-family-connection .connection-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 3s ease forwards infinite;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Premium Illustration - Memorial Candle */
.svg-memorial-candle .flame-group {
    animation: svgFlameFlicker 2s ease-in-out infinite;
    transform-origin: bottom center;
}

.svg-memorial-candle .glow-circle {
    animation: svgGlow 3s ease-in-out infinite;
}

.svg-memorial-candle .sparkle {
    animation: svgSparkle 2s ease-in-out infinite;
}

.svg-memorial-candle .sparkle:nth-child(1) { animation-delay: 0s; }
.svg-memorial-candle .sparkle:nth-child(2) { animation-delay: 0.4s; }
.svg-memorial-candle .sparkle:nth-child(3) { animation-delay: 0.8s; }
.svg-memorial-candle .sparkle:nth-child(4) { animation-delay: 1.2s; }

/* Premium Illustration - Heart Connection */
.svg-heart-connection .heart-main {
    animation: svgHeartbeat 2s ease-in-out infinite;
    transform-origin: center;
}

.svg-heart-connection .orbit-heart {
    animation: svgOrbit 8s linear infinite;
}

.svg-heart-connection .orbit-heart:nth-child(2) {
    animation-delay: -2.67s;
}

.svg-heart-connection .orbit-heart:nth-child(3) {
    animation-delay: -5.33s;
}

/* Premium Illustration - WhatsApp Flow */
.svg-whatsapp-flow .message-bubble {
    animation: svgFloat 4s ease-in-out infinite;
}

.svg-whatsapp-flow .message-bubble:nth-child(2) {
    animation-delay: 0.8s;
}

.svg-whatsapp-flow .message-bubble:nth-child(3) {
    animation-delay: 1.6s;
}

.svg-whatsapp-flow .connection-wave {
    animation: svgWave 2s ease-in-out infinite;
}

/* ====================================
   2. VALUE BAR - ULTRA PREMIUM UPGRADE
   Enhanced badges instead of bullet points
   ==================================== */

.value-bar {
    background: linear-gradient(135deg, #0d3d4d 0%, #134b61 50%, #0d3d4d 100%) !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: 
        0 -4px 30px rgba(201, 162, 39, 0.15),
        0 4px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(201, 162, 39, 0.3);
}

.value-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201, 162, 39, 0.3) 20%, 
        var(--secondary-color) 50%, 
        rgba(201, 162, 39, 0.3) 80%, 
        transparent 100%) !important;
    z-index: 1;
}

.value-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    display: block !important;
}

.value-bar-items {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 20px;
}

.value-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    padding: 24px 40px;
    position: relative;
    border-left: 1px solid rgba(201, 162, 39, 0.15) !important;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(201, 162, 39, 0.08) 0%, 
        rgba(201, 162, 39, 0.02) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px 3px 0 0;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-item:first-child {
    border-right: 1px solid rgba(201, 162, 39, 0.15);
}

.value-item:last-child {
    border-left: none !important;
}

.value-item:hover {
    background: transparent !important;
    transform: none;
}

.value-item:hover::before {
    opacity: 1;
}

.value-item:hover::after {
    width: 40px;
}

.value-item:hover i {
    transform: scale(1.15) rotate(-5deg);
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.8);
}

.value-item i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
    background: linear-gradient(135deg, 
        rgba(201, 162, 39, 0.15) 0%, 
        rgba(201, 162, 39, 0.05) 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 14px;
    text-shadow: 0 0 15px rgba(201, 162, 39, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.value-item span {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* ====================================
   3. MEMORY CARDS - PREMIUM REACTIONS
   Floating icons outside card boundary
   ==================================== */

/* Memory card base fixes */
.memory-card {
    position: relative !important;
    overflow: visible !important;
    margin-bottom: 35px !important;
    display: flex;
    flex-direction: column;
}

.memory-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

/* Memory content - prevent cutoff */
.memory-card .memory-content {
    flex: 1;
    overflow: hidden;
}

.memory-card .memory-text,
.memory-content p {
    line-height: 1.75;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.memory-card.expanded .memory-text,
.memory-card.expanded .memory-content p {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* NEW: Premium floating reactions outside card */
.memory-reactions {
    position: absolute !important;
    bottom: -22px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 20 !important;
    padding: 10px 18px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
    border-radius: 30px !important;
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(201, 162, 39, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    margin: 0 !important;
}

.memory-reactions::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.05));
}

/* Reaction buttons - premium animated */
.reaction-btn {
    width: 38px !important;
    height: 38px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
    box-shadow: none !important;
}

.reaction-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    z-index: -1;
}

.reaction-btn:hover {
    transform: scale(1.3) translateY(-5px) !important;
    width: 38px !important;
    border-radius: 50% !important;
}

.reaction-btn:hover::before {
    background: rgba(201, 162, 39, 0.1);
}

.reaction-btn:hover i {
    transform: scale(1) !important;
    margin-left: 0 !important;
}

/* Like button */
.reaction-btn.like {
    color: #6b7c8a;
}

.reaction-btn.like:hover {
    color: #3b82f6 !important;
}

.reaction-btn.like:hover::before {
    background: rgba(59, 130, 246, 0.12);
}

.reaction-btn.like.active {
    color: #3b82f6 !important;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
}

/* Heart button */
.reaction-btn.heart {
    color: #6b7c8a;
}

.reaction-btn.heart:hover {
    color: #ef4444 !important;
}

.reaction-btn.heart:hover::before {
    background: rgba(239, 68, 68, 0.12);
}

.reaction-btn.heart.active {
    color: #ef4444 !important;
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
}

/* Thanks button */
.reaction-btn.thanks {
    color: #6b7c8a;
}

.reaction-btn.thanks:hover {
    color: #c9a227 !important;
}

.reaction-btn.thanks:hover::before {
    background: rgba(201, 162, 39, 0.12);
}

.reaction-btn.thanks.active {
    color: #c9a227 !important;
    background: linear-gradient(135deg, #faf6ec, #f7eed7) !important;
}

/* Reaction count badge */
.reaction-btn .reaction-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    min-width: 18px !important;
    height: 18px !important;
    background: var(--primary-color, #1a5f7a) !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    box-shadow: 0 2px 8px rgba(26, 95, 122, 0.3) !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 !important;
}

.reaction-btn .reaction-count:empty,
.reaction-btn .reaction-count[data-count="0"] {
    display: none !important;
}

/* Active state animation */
.reaction-btn.active i {
    animation: reactionBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes reactionBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.5) rotate(-15deg); }
    50% { transform: scale(0.9) rotate(10deg); }
    70% { transform: scale(1.2) rotate(-5deg); }
    100% { transform: scale(1); }
}

/* Hover effect on whole card */
.memory-card:hover .memory-reactions {
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(201, 162, 39, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* ====================================
   4. BANNER MEMORIAL ANIMATIONS
   Subtle floating memories in hero
   ==================================== */

.memorial-hero-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-memory-orb {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(201, 162, 39, 0.2), 
        rgba(201, 162, 39, 0.05) 50%,
        transparent 70%);
    animation: floatMemory 12s ease-in-out infinite;
    opacity: 0.6;
}

.floating-memory-orb:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    width: 60px;
    height: 60px;
}

.floating-memory-orb:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: -3s;
    width: 100px;
    height: 100px;
}

.floating-memory-orb:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -6s;
    width: 50px;
    height: 50px;
}

.floating-memory-orb:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: -9s;
    width: 70px;
    height: 70px;
}

@keyframes floatMemory {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(30px, -40px) rotate(5deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, -60px) rotate(-3deg);
        opacity: 0.5;
    }
    75% {
        transform: translate(40px, -30px) rotate(4deg);
        opacity: 0.6;
    }
}

.floating-candle-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: sparkRise 4s ease-out infinite;
    opacity: 0;
}

@keyframes sparkRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* WhatsApp Banner - Enhanced with animations */
.whatsapp-group-banner {
    position: relative;
    overflow: hidden;
}

.whatsapp-group-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transform: translateY(-50%) rotate(25deg);
    animation: bannerShimmer 4s ease-in-out infinite;
}

@keyframes bannerShimmer {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* Memorial Hero - Enhanced with floating elements */
.memorial-hero {
    position: relative;
}

/* Add floating candle sparks to hero */
.memorial-hero .hero-spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--secondary-color, #c9a227);
    border-radius: 50%;
    animation: heroSparkFloat 6s ease-in-out infinite;
    box-shadow: 0 0 6px var(--secondary-color, #c9a227);
}

@keyframes heroSparkFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translateY(-80px) scale(0.8);
    }
}

/* ====================================
   5. SETTINGS & DASHBOARD UPGRADE
   Better spacing, fonts, and organization
   ==================================== */

/* Settings Page Hero Fix */
.page-hero {
    padding-top: 150px !important;
    padding-bottom: 70px;
}

/* Settings Typography Enhancement */
.settings-section h2,
.settings-section-header h2 {
    font-family: 'Heebo', sans-serif;
    font-weight: 700 !important;
    font-size: 1.2rem;
    letter-spacing: 0.3px;
    color: var(--primary-color);
}

.settings-section-body {
    padding: 30px !important;
}

.settings-form-group label {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 12px !important;
    display: block;
}

.settings-form-group input {
    padding: 16px 20px !important;
    font-size: 1rem !important;
    border-radius: 14px !important;
    border: 2px solid rgba(201, 162, 39, 0.15) !important;
    transition: all 0.3s ease !important;
}

.settings-form-group input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1) !important;
}

/* Settings Section - Gold accent border */
.settings-section {
    border-right: 4px solid var(--secondary-color, #c9a227) !important;
    margin-bottom: 30px !important;
    animation: settingsFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.settings-section:nth-child(1) { animation-delay: 0.1s; }
.settings-section:nth-child(2) { animation-delay: 0.2s; }
.settings-section:nth-child(3) { animation-delay: 0.3s; }
.settings-section:nth-child(4) { animation-delay: 0.4s; }
.settings-section:nth-child(5) { animation-delay: 0.5s; }

/* Settings Section Header - Enhanced icon */
.settings-section-header {
    background: linear-gradient(135deg, rgba(250, 246, 236, 0.95), rgba(255, 255, 255, 0.98)) !important;
    border-bottom: 1px solid rgba(201, 162, 39, 0.12) !important;
    padding: 24px 28px !important;
}

.settings-section-header i {
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(135deg, var(--secondary-color, #c9a227), #b8912a) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.35) !important;
}

/* Settings buttons - Premium styling */
.settings-btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

.settings-btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #1a5f7a), var(--primary-dark, #134b61)) !important;
    box-shadow: 0 6px 25px rgba(26, 95, 122, 0.35) !important;
}

.settings-btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 35px rgba(26, 95, 122, 0.45) !important;
}

/* Dashboard Hero Enhancement */
.dashboard-hero {
    margin-top: 90px;
    border-radius: 24px !important;
    background: linear-gradient(135deg, var(--primary-color, #1a5f7a) 0%, var(--primary-dark, #134b61) 100%) !important;
    box-shadow: 0 20px 60px rgba(26, 95, 122, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Dashboard title enhancements */
.dashboard-title h1 {
    color: #fff !important;
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    position: relative;
    z-index: 1;
}

.dashboard-title h1 i {
    color: var(--secondary-color, #c9a227) !important;
    font-size: 1.5rem !important;
}

.dashboard-title p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Dashboard Quick Stats - Premium Grid */
.dashboard-quick-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px !important;
    margin-top: 25px !important;
    padding-top: 22px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.quick-stat-item {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 18px 20px !important;
    border-radius: 16px !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-align: center;
}

.quick-stat-item:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(201, 162, 39, 0.3) !important;
}

.quick-stat-item i {
    font-size: 1.2rem !important;
    color: var(--secondary-color, #c9a227) !important;
    margin-bottom: 8px !important;
    display: block;
}

.quick-stat-item span {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: block;
}

.quick-stat-item small,
.quick-stat-item .stat-label {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    display: block;
    margin-top: 4px;
}

/* Dashboard Action Buttons */
.dashboard-actions {
    position: relative;
    z-index: 1;
}

.dashboard-actions .btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.dashboard-actions .btn:hover {
    transform: translateY(-3px) !important;
}

.dashboard-actions .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color, #c9a227), #e8c06a) !important;
    color: var(--primary-dark, #134b61) !important;
}

.dashboard-actions .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.45) !important;
}

/* Memorial cards in dashboard */
.memorial-card {
    border-radius: 20px !important;
    border: 1px solid rgba(201, 162, 39, 0.12) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow: hidden;
}

.memorial-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(201, 162, 39, 0.3) !important;
}

/* Dashboard empty state */
.dashboard-empty,
.empty-state {
    text-align: center;
    padding: 60px 30px !important;
    background: linear-gradient(135deg, rgba(250, 246, 236, 0.8), rgba(255, 255, 255, 0.95)) !important;
    border-radius: 24px !important;
    border: 2px dashed rgba(201, 162, 39, 0.3) !important;
}

.dashboard-empty i,
.empty-state i {
    font-size: 4rem !important;
    color: var(--primary-color, #1a5f7a) !important;
    opacity: 0.3 !important;
    margin-bottom: 20px !important;
}

.dashboard-empty h3,
.empty-state h3 {
    color: var(--primary-color, #1a5f7a) !important;
    margin-bottom: 12px !important;
}

.dashboard-empty p,
.empty-state p {
    color: var(--text-muted, #6b7c8a) !important;
    margin-bottom: 25px !important;
}

/* ====================================
   6. MOBILE OPTIMIZATION - MEMORIAL
   Cleaner mobile experience
   ==================================== */

@media (max-width: 768px) {
    /* Value Bar Mobile */
    .value-bar-items {
        flex-wrap: wrap !important;
        padding: 10px !important;
        gap: 5px !important;
    }
    
    .value-item {
        flex: 1 1 calc(50% - 5px);
        padding: 14px 12px !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(201, 162, 39, 0.1);
        justify-content: flex-start;
    }
    
    .value-item:first-child {
        border-right: none !important;
    }
    
    .value-item i {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .value-item span {
        font-size: 0.82rem;
        white-space: normal;
        text-align: right;
    }
    
    /* WhatsApp Banner Mobile - Much Smaller */
    .whatsapp-group-banner {
        padding: 12px 16px !important;
        margin: 12px auto 20px !important;
        border-radius: 12px !important;
        flex-direction: column !important;
        text-align: center;
        gap: 12px !important;
    }
    
    .whatsapp-group-banner .info {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .whatsapp-group-banner .banner-icon,
    .whatsapp-group-banner i:first-child {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    
    .whatsapp-group-banner .banner-text h3,
    .whatsapp-group-banner h3 {
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
    }
    
    .whatsapp-group-banner .banner-text p,
    .whatsapp-group-banner p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    .whatsapp-group-banner .btn,
    .whatsapp-group-banner .btn-whatsapp {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
        width: 100%;
        justify-content: center;
    }
    
    /* Memory Cards Mobile Grid - Single column */
    .memories-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .memory-card {
        margin-bottom: 25px !important;
    }
    
    .memory-card-body {
        padding: 18px !important;
    }
    
    /* Reactions - Smaller on mobile */
    .memory-reactions {
        padding: 8px 14px !important;
        gap: 6px !important;
        bottom: -18px !important;
    }
    
    .reaction-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
    
    .reaction-btn .reaction-count {
        min-width: 16px !important;
        height: 16px !important;
        font-size: 0.6rem !important;
        top: -4px !important;
        right: -4px !important;
    }
    
    /* Share Button Mobile - Compact floating */
    .floating-share-btn,
    .share-fab {
        width: 46px !important;
        height: 46px !important;
        bottom: 18px !important;
        left: 18px !important;
        font-size: 1rem !important;
    }
    
    .floating-share-btn span,
    .share-fab span {
        display: none !important;
    }
    
    /* Action Buttons - Less clutter */
    .memorial-actions {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 15px !important;
    }
    
    .memorial-actions .btn {
        flex: 1 1 calc(50% - 4px) !important;
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        min-width: auto !important;
    }
    
    .memorial-actions .btn i {
        font-size: 0.9rem !important;
    }
    
    /* Hide less important buttons on mobile */
    .memorial-actions .btn.secondary-action {
        display: none;
    }
    
    /* Page Hero Mobile */
    .page-hero {
        padding-top: 120px !important;
        padding-bottom: 45px !important;
    }
    
    .page-hero h1 {
        font-size: 1.6rem !important;
    }
    
    .page-hero p {
        font-size: 0.95rem !important;
    }
    
    /* Memorial Hero Mobile - More compact */
    .memorial-hero {
        padding: 110px 15px 70px !important;
        min-height: auto !important;
    }
    
    .memorial-hero h1 {
        font-size: 1.8rem !important;
    }
    
    .memorial-hero-content {
        padding: 0 10px !important;
    }
    
    /* Avatar on mobile */
    .memorial-avatar {
        width: 100px !important;
        height: 100px !important;
    }
    
    .memorial-avatar img {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Dates display - Compact */
    .memorial-dates {
        font-size: 0.85rem !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px !important;
    }
    
    /* Hide decorative elements on mobile */
    .hero-candle-frame,
    .floating-hearts,
    .hero-decorations,
    .memorial-bg-effects .memorial-bg-candle {
        display: none !important;
    }
    
    /* Settings Mobile */
    .settings-container {
        padding: 0 15px 40px !important;
    }
    
    .settings-section-body {
        padding: 18px !important;
    }
    
    .settings-form-group input {
        padding: 12px 14px !important;
        font-size: 0.95rem !important;
    }
    
    .settings-section-header {
        padding: 16px 18px !important;
    }
    
    .settings-section-header h2 {
        font-size: 1rem !important;
    }
    
    /* Dashboard Mobile */
    .dashboard-container {
        padding: 15px !important;
    }
    
    .dashboard-hero {
        padding: 20px !important;
        margin-top: 80px !important;
    }
    
    .dashboard-title h1 {
        font-size: 1.4rem !important;
    }
    
    .dashboard-quick-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .quick-stat-item {
        padding: 12px !important;
    }
    
    .quick-stat-item span {
        font-size: 1.1rem !important;
    }
    
    /* Filter tabs mobile */
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-tab {
        flex-shrink: 0;
        font-size: 0.78rem !important;
        padding: 6px 12px !important;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .value-item {
        flex: 1 1 100%;
        justify-content: center;
    }
    
    .value-item i {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .value-item span {
        font-size: 0.75rem;
    }
    
    .memory-reactions {
        bottom: -15px !important;
        padding: 6px 10px !important;
    }
    
    .reaction-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }
    
    .whatsapp-group-banner {
        padding: 10px 12px !important;
    }
    
    .whatsapp-group-banner h3 {
        font-size: 0.85rem !important;
    }
    
    .memorial-hero {
        padding: 100px 12px 60px !important;
    }
    
    .memorial-hero h1 {
        font-size: 1.5rem !important;
    }
    
    .memorial-avatar {
        width: 85px !important;
        height: 85px !important;
    }
    
    .memorial-avatar img {
        width: 85px !important;
        height: 85px !important;
    }
    
    .memory-card-body {
        padding: 14px !important;
    }
    
    .page-hero {
        padding-top: 110px !important;
        padding-bottom: 35px !important;
    }
    
    .page-hero h1 {
        font-size: 1.4rem !important;
    }
}

/* ====================================
   7. ACCESSIBILITY - REDUCED MOTION
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-memory-orb,
    .floating-candle-spark,
    .svg-family-connection,
    .svg-memorial-candle .flame-group,
    .svg-heart-connection .heart-main,
    .svg-whatsapp-flow .message-bubble {
        animation: none !important;
    }
    
    .memory-reaction-btn:hover {
        transform: scale(1.1) !important;
    }
}

/* ====================================
   8. PREMIUM SVG INLINE COMPONENTS
   Ready-to-use SVG illustrations
   ==================================== */

/* SVG Container Sizes */
.svg-illustration-sm {
    max-width: 200px;
}

.svg-illustration-md {
    max-width: 350px;
}

.svg-illustration-lg {
    max-width: 500px;
}

.svg-illustration-full {
    max-width: 100%;
}

/* Premium Glow Effects for SVGs */
.svg-premium-glow {
    filter: drop-shadow(0 10px 40px rgba(201, 162, 39, 0.2));
}

.svg-premium-glow:hover {
    filter: drop-shadow(0 15px 50px rgba(201, 162, 39, 0.35));
}

/* ====================================
   9. ENHANCED CARD CONTENT FIX
   Prevent text cutoff in memory cards
   ==================================== */

.memory-card-content {
    min-height: auto;
    overflow: visible;
}

.memory-card .memory-text {
    line-height: 1.75;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
}

.memory-card.expanded .memory-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.memory-card .read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.memory-card .read-more-btn:hover {
    color: var(--secondary-color);
}

/* ====================================
   10. GLOBAL TYPOGRAPHY ENHANCEMENTS
   Consistent premium fonts
   ==================================== */

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    font-weight: 400;
    line-height: 1.75;
}

/* Ensure proper Hebrew text rendering */
:lang(he) {
    font-feature-settings: "kern" 1;
}

/* ====================================
   6. STORIES VISUAL UPGRADE
   Readability and Premium Styling
   ==================================== */

.readable-text-bg {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(26, 95, 122, 0.1);
    display: inline-block;
    border: 1px solid rgba(201, 162, 39, 0.3);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.readable-text-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
}

.premium-shadow-img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.05);
    border: 3px solid rgba(255,255,255,0.9);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
}

.premium-shadow-img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.1);
}

/* Featured Header Gradient Text Adjustment for Contrast */
.featured-text .gradient-text {
    /* Using specific colors for readability on light bg */
    background: linear-gradient(135deg, #1a5f7a 0%, #134b61 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Update hero stats styling */
.hero-testimonial-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hero-testimonial-preview .testimonial-avatars {
    margin-bottom: 5px;
}

.hero-testimonial-preview span {
    font-weight: 600;
    font-size: 1.15rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}
