/* RIP | Generations Digital - Responsive Styles */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #b89b5e;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #c9a865;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #b89b5e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 999;
}

header h1 {
    color: #b89b5e;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: bold;
}

header h1 a {
    color: #b89b5e;
    text-decoration: none;
}

header .user-info {
    color: #999;
    font-size: clamp(12px, 2vw, 14px);
}

/* Navigation */
nav {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

nav li {
    display: inline-block;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s;
    font-size: clamp(14px, 2vw, 16px);
}

nav a:hover {
    background: #b89b5e;
    color: #fff;
}

nav .user-menu {
    margin-left: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1001;
    touch-action: manipulation;
}

/* Flash Messages */
.flash {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
    animation: slideIn 0.3s;
}

.flash.success {
    background: #e6f4ea;
    border: 1px solid #a8d5b0;
    color: #2d7a3a;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

.flash.error {
    background: #fdecea;
    border: 1px solid #f5b8b4;
    color: #b71c1c;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

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

/* Cards */
.card {
    background: #fff;
    padding: clamp(15px, 3vw, 30px);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Buttons - Touch Friendly (min 44px) */
.btn {
    display: inline-block;
    padding: 12px 24px;
    min-height: 44px;
    min-width: 44px;
    flex: 0 1 auto; /* do not inherit stray flex:1 from page-specific blocks */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: #b89b5e;
    color: #fff;
}

.btn-primary:hover {
    background: #c9a865;
    color: #3e3522;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background: #666;
    color: #fff;
}

.btn-secondary:hover {
    background: #777;
}



.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #e74c5c;
}

/* Forms - Touch Friendly */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: clamp(14px, 2vw, 16px);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    min-height: 44px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #b89b5e;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

input[type="checkbox"]{
/*    width: 20px;
    height: 20px;*/
    width: auto;
    height: auto;    
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
}

input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
}
.form-group label[for="login_remember"] {
    display: flex;
    align-items: center; 
    cursor: pointer;
    font-weight: normal; 
    font-size: 14px;
}

/* Tables - Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 600px;
}

th {
    background: #b89b5e;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: clamp(12px, 2vw, 14px);
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: clamp(12px, 2vw, 14px);
}

tr:hover {
    background: #f9f9f9;
}

/* Grid Layouts - Responsive */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Memorial Card */
.memorial-card {
    text-align: center;
    cursor: pointer;
}

.memorial-card .photo {
    width: 100%;
    height: 200px;
    background: #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.memorial-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memorial-card .photo .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: clamp(48px, 8vw, 64px);
    color: #999;
}

.memorial-card h4 {
    margin-bottom: 5px;
    color: #333;
    font-size: clamp(14px, 2vw, 16px);
}

.memorial-card .dates {
    color: #666;
    font-size: clamp(12px, 2vw, 14px);
    margin-bottom: 10px;
}

/* Stats Box */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #b89b5e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-box h3 {
    font-size: clamp(28px, 6vw, 42px);
    color: #b89b5e;
    margin-bottom: 5px;
}

.stat-box p {
    color: #666;
    font-size: clamp(12px, 2vw, 16px);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #b89b5e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.photo-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.photo-gallery img:hover {
    transform: scale(1.05);
}

/* Gift Display */
.gifts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.gift-item {
    text-align: center;
    min-width: 80px;
}

.gift-item img {
    width: clamp(48px, 8vw, 64px);
    height: clamp(48px, 8vw, 64px);
    margin-bottom: 5px;
}

.gift-item small {
    display: block;
    color: #666;
    font-size: 12px;
}

/* Comments Section */
.comment {
    border-top: 1px solid #eee;
    padding: 15px 0;
}

.comment .author {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: clamp(14px, 2vw, 16px);
}

.comment .message {
    color: #666;
    margin-bottom: 5px;
    white-space: pre-wrap;
    font-size: clamp(14px, 2vw, 16px);
}

.comment .date {
    color: #999;
    font-size: 12px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #999;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 3px solid #b89b5e;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

footer a {
    color: #b89b5e;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    font-size: clamp(12px, 2vw, 14px);
    line-height: 1.8;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #b89b5e !important;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    /* ЦЕНТРИРОВАНИЕ */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;

    /* РАЗМЕР ТРЕУГОЛЬНИКА */
    font-size: 30px; /* Сделай 35px, если хочешь вообще гигантский */
}
/* Candle Animation */
.candle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 60px;
    background: linear-gradient(180deg, #ffeb3b 0%, #ff9800 100%);
    border-radius: 5px 5px 0 0;
    animation: flicker 2s infinite;
}

.candle::before {
    content: '🕯️';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ========================================================================== */
/* TABLET (768px - 1024px) */
/* ========================================================================== */



/* ========================================================================== */
/* MOBILE (max-width: 767px) */
/* ========================================================================== */



/* ========================================================================== */
/* SMALL MOBILE (max-width: 480px) */
/* ========================================================================== */



/* ========================================================================== */
/* LANDSCAPE ORIENTATION (Mobile/Tablet) */
/* ========================================================================== */



/* ========================================================================== */
/* PRINT STYLES */
/* ========================================================================== */



/* ========================================================================== */
/* ACCESSIBILITY */
/* ========================================================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #b89b5e;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #b89b5e;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* High contrast mode support */


/* Reduced motion support */


/* Hero Search */
.hero-search {
    display: flex;
    gap: 10px;
    width: 100%;
}

.hero-search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    min-height: 50px;
}

.hero-search-btn {
    padding: 15px 30px;
    font-size: 18px;
    min-width: 120px;
    white-space: nowrap;
}

/* Mobile hero search fix */


/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100vw;
    height: 500px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -20px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px;
    color: white;
}

.slide-content h1,
.slide-content h3 {
    font-size: clamp(32px, 6vw, 56px);
    margin-bottom: 20px;
}

.slide-content p {
    font-size: clamp(16px, 3vw, 24px);
    margin-bottom: 40px;
}

.hero-search-form {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    z-index: 10;
    display: flex;
    gap: 10px;
    padding: 0 20px;
    box-sizing: border-box;
}



.hero-search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
}

.hero-search-btn {
    padding: 15px 30px;
    background: #b89b5e;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-search-btn:hover {
    background: #ff8800;
}

.hero-search-btn i {
    color: white;
}

.hero-search-btn .btn-icon {
    display: none;
    color: white;
}

/* Slider controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(201, 168, 101, 0.8);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: #b89b5e;
}




/* Mobile adjustments */


/* Header Layout */


.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 1;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.user-info {
    order: 2;
    margin-left: auto;
}

/* Create Memorial Button */
.btn-create-memorial {
    background: #b89b5e;
    color: white !important;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    order: 3;
}

.btn-create-memorial:hover {
    background: #ff8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    color: white !important;
}

.btn-create-memorial i {
    font-size: 14px;
    color: white;
}

/* Mobile Create Button */
.btn-create-memorial-mobile {
    width: 50px;
    height: 50px;
    background: #b89b5e;
    color: white !important;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
    order: 4;
}

.btn-create-memorial-mobile:hover {
    background: #ff8800;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    color: white !important;
}

.btn-create-memorial-mobile i {
    color: white;
}

/* Desktop/Mobile visibility */
.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    touch-action: manipulation;
    order: 5;
}

.mobile-menu-toggle i {
    display: block;
    color: white;
}

/* Mobile styles */


/* Ensure footer is always visible at bottom */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

header,
nav,
footer {
    flex-shrink: 0;
}

footer {
    margin-top: auto;
}

/* Font Awesome Fallback Styles */
body.fa-fallback i[class*="fa-"] {
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: bold;
}

/* Ensure fallback icons are visible */
body.fa-fallback .btn-create-memorial i,
body.fa-fallback .btn-create-memorial-mobile i {
    font-size: 18px;
    color: white;
}

body.fa-fallback .mobile-menu-toggle i {
    font-size: 24px;
    color: white;
}

body.fa-fallback .hero-search-btn i {
    font-size: 18px;
    color: white;
}

/* === HEADER FINAL === */
/* =========================================================
   HEADER — ПОЛНАЯ РАБОЧАЯ ВЕРСИЯ
   ========================================================= */
header {
    background: #1a1a1a !important;
    padding: 10px 0 !important;
    border-bottom: 3px solid #b89b5e !important;
    position: sticky !important;
    top: 0;
    z-index: 1001 !important;
    min-height: 60px;
    display: flex;
    align-items: center;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important; /* Лого влево, остальное вправо */
}

/* Логотип */
.logo { margin: 0 !important; }
.logo a { display: flex !important; align-items: center !important; gap: 10px; text-decoration: none; }
.logo img { width: 35px !important; height: 35px !important; object-fit: contain; }
.logo span { color: #b89b5e !important; font-weight: bold; font-size: 18px !important; white-space: nowrap; }

/* Правая часть контейнер */
.header-right { 
    display: flex !important; 
    align-items: center !important; 
    gap: 15px !important; 
    margin-left: auto !important; /* Выталкивает всё вправо */
}

/* Кнопка Add Memorial (ПК) */
.btn-add {
    background: #b89b5e !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: bold;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
}

.btn-add .desktop { display: inline-block !important; margin-right: 8px; }
.btn-add .desktop i { font-size: 14px !important; vertical-align: middle; }
.btn-add .mobile { display: none !important; }

/* БУРГЕР */
.burger {
    width: 30px !important;
    height: 24px !important;
    position: relative !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    display: none !important;
}

.burger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: white !important;
    border-radius: 2px;
    left: 0;
    transition: .25s ease-in-out !important;
}

.burger span:nth-child(1) { top: 0px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }

.burger.active span:nth-child(1) { top: 10px !important; transform: rotate(135deg) !important; background: #b89b5e !important; }
.burger.active span:nth-child(2) { opacity: 0 !important; }
.burger.active span:nth-child(3) { top: 10px !important; transform: rotate(-135deg) !important; background: #b89b5e !important; }

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ (ДО 767px)
   ========================================================= */
.mobile-text { display: none; }



/* ФИКС ЩЕЛИ */
body:has(.hero-slider) main {
    margin-top: -40px !important;
}

/* =========================================================
   FOOTER — ТВОЙ ОРИГИНАЛ
   ========================================================= */
.site-footer {
    background: #0e0e0e;
    color: #aaa;
    padding: 40px 0 25px;
    font-size: 14px;
}

.site-footer .container { text-align: center; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #ccc; text-decoration: none; margin: 0 6px; }
.footer-links a:hover { color: #c9a865; }
.footer-links span { color: #444; }
.footer-social { margin-bottom: 25px; }
.footer-social a { display: inline-block; margin: 0 10px; font-size: 18px; color: #b89b5e; transition: color 0.3s ease; }
.footer-social a:hover {color: #fff2d8; }
.footer-divider { border: none; border-top: 1px solid #222; margin: 25px auto 15px; max-width: 300px; }
.footer-copy { font-size: 13px; color: #666; }

/* =========================================================
   ЭФФЕКТЫ АКТИВНОСТИ (ТОЛЬКО ДЛЯ ПК)
   ========================================================= */


    /* User Avatar Navigation */
    .user-profile-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 15px;
        text-decoration: none;
        transition: all 0.3s;
        margin-left: 15px;
    }
    
.user-profile-link:hover {
    transform: scale(1.05);
    color: white !important;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.3); /* Тень сделает белый текст читаемым */
}
    
    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #b89b5e;
        flex-shrink: 0;
    }
    
    .user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .avatar-placeholder {
        width: 100%;
        height: 100%;
        background: #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 20px;
    }
    
    .user-name {
        color: #b89b5e;
        font-weight: 600;
        font-size: 15px;
        white-space: nowrap;
    }
    
    .btn-login {
        padding: 8px 20px;
        background: #ede4bf;
        color: #333;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s;
        margin-right: 10px;
    }
    
    .btn-login:hover {
        background: #fff;
        color: #333;
    }
    
    /* Mobile */
    




/* --- Стили Карточки --- */
.container { max-width: 1200px; margin: 0 auto; padding: 30px 15px; }
.home-section { padding: 10px 0; }
.section-heading { font-size: 26px; text-transform: uppercase; margin-bottom: 5px; text-align: left; }
.section-line { width: 80px; height: 3px; background: #b89b5e; margin-bottom: 25px; }
.section-divider { border-bottom: 2px solid #b89b5e; margin: 20px auto; max-width: 1200px; opacity: 0.8; }

/* --- Центровка интро --- */
.home-intro { text-align: center; padding: 40px 15px; }

/* --- Сетки --- */
.memorial-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }

/* --- Стили карточки (для index) --- */
.memorial-block-card { 
    display: flex; flex-direction: column; background: #fff; 
    border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    text-decoration: none; color: #333; position: relative;
}

.memorial-block-photo { 
    position: relative; width: 100%; height: 180px; overflow: hidden; background: #f0f0f0; 
}
.memorial-block-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Стили Оверлея (Тот самый важный CSS) --- */
.memorial-block-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 10px; display: flex; justify-content: space-between; align-items: flex-end;
    z-index: 10;
}
.overlay-left { display: flex; gap: 10px; align-items: center; }
.overlay-left i { color: #b89b5e; font-size: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.candle-icon-gif { width: 60px !important; height: 60px !important; }
.candle-icon-gif-list { width: 40px !important; height: 40px !important; }

/* --- Текст карточки --- */
.memorial-block-body { 
    padding: 15px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; /* растягивается на всю высоту карточки */
}

.memorial-block-name {
    height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    margin-bottom: 8px; /* фиксированный отступ вниз */
}

.memorial-divider {
    width: 70px;
    height: 1px;
    background-color: #ccc;
    margin: 5px auto 12px; /* убрали margin-top: auto */
}

.memorial-block-dates { 
    display: flex; 
    justify-content: center; 
    /* Используем clamp для gap: минимум 10px, максимум 35px в зависимости от ширины */
    gap: clamp(10px, 2vw, 35px); 
    width: 100%;
    padding: 0 10px; /* Защитный отступ внутри */
    box-sizing: border-box;
    font-size: 12px; 
    color: #777; 
    white-space: nowrap;
    flex-wrap: nowrap;
}

.memorial-block-age { 
    margin-top: 15px; /* Отодвигаем возраст вниз от дат */
    font-size: 16px; 
    font-weight: bold; 
    color: #333;
}

.memorial-block-profession { 
    font-size: 13px; 
    color: #666; 
    margin-bottom: 8px; 
}

/* Контейнер для ссылок */
.home-nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
}

/* Стилизация ссылок как кнопок-карточек */
.home-nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Центрирует иконку и span по горизонтали */
    justify-content: center; /* Центрирует содержимое по вертикали */
    text-align: center;      /* ЦЕНТРИРУЕТ ТЕКСТ внутри span */
    
    text-decoration: none;
    color: #b89b5e;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    width: 180px;
    height: 120px;
    gap: 10px;
    padding: 10px;           /* Добавим внутренний отступ, чтобы текст не касался краев */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Иконки побольше */
.home-nav-links a i {
    font-size: 28px;
}

/* Эффект при наведении */
.home-nav-links a:hover {
    background: #b89b5e;
    color: #fff;
    border-color: #b89b5e;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(184, 155, 94, 0.3);
}

/* --- PROFILE --- */
.user-profile-page{max-width:900px;margin:0 auto;padding:20px}
.profile-header{display:grid;grid-template-columns:200px 1fr;gap:24px;margin-bottom:32px;margin-top: 32px;align-items:start}
.profile-left{text-align:center}
.profile-avatar {
    position: relative; /* Обязательно для позиционирования галочки */
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    border-radius: 5px;
    background: #eee;
    /* Убираем overflow:hidden здесь, если хотим, чтобы галочка чуть вылезала, 
       но тогда добавим его самому изображению */
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px; /* Переносим скругление на само фото */
}

/* Стиль галочки */
.verified-badge-icon {
    position: absolute;
    top: -8px;    /* Смещаем чуть выше угла */
    right: -8px;  /* Смещаем чуть правее угла */
    background: #fff; /* Белая подложка, чтобы иконка не сливалась */
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
}

.verified-badge-icon i {
    color: #3498db; /* Красивый синий цвет для галочки (как в соцсетях) */
    font-size: 24px;
}
.registration-date{font-size:12px;color:#666;margin:0}
.profile-right{}
.profile-name{font-size:28px;margin:0 0 12px;color:#333}
.profile-bio{color:#555;line-height:1.6;margin-bottom:12px}
.profile-website{margin-bottom:12px}
.profile-website a{color:#b89b5e;text-decoration:none}
.profile-website a:hover{text-decoration:underline}
.profile-contact{font-size:14px;color:#666;margin-bottom:16px}
.profile-message-btn-wrap{margin-top:16px}
.btn-send-message{display:inline-block;background:#b89b5e;color:#fff;border:none;padding:12px 24px;border-radius:6px;font-size:15px;cursor:pointer;text-decoration:none}
.btn-send-message:hover{background:#b89b5e;color:#fff}
.btn-send-message.disabled{background:#999;cursor:not-allowed}
.rate-limit-hint{display:block;font-size:12px;color:#666;margin-top:6px}
.profile-stats {
    display: grid;
    /* Изменяем с 4 на 3, чтобы колонки заняли всю ширину */
    grid-template-columns: repeat(3, 1fr); 
    gap: 16px;
    margin-bottom: 32px;
}

.stat-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #b89b5e;
}

.stat-label {
    font-size: 13px;
    color: #666;
}
.profile-gallery{}
.profile-gallery h2{font-size:22px;margin:0 0 16px;color:#333;padding-bottom:8px;border-bottom:2px solid #b89b5e}
.empty-gallery{color:#666;font-style:italic}
.memorial-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
/* memorial list page (views/memorial/list.php): both classes — wins over profile .memorial-grid above */
.memorial-grid.memorial-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* memorial list rows (search + list; partials/_memorial-list-item.php) — after grid, before profile .memorial-card */
.memorial-list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.memorial-list-item-left {
    display: flex;
    flex: 0 0 auto;
    width: 150px;
    min-width: 150px;
    padding: 2px 0;
    box-sizing: border-box;
}

.memorial-list-item-photo {
    position: relative;
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.memorial-list-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memorial-list-item-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memorial-list-item-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.memorial-list-item-profession {
    margin: -2px 0 0;
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 500;
}

.memorial-list-item-life-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 8px 12px;
    color: #666;
    font-size: 14px;
}

.memorial-list-item-life-row .life-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.memorial-list-item-life-row .life-col-death {
    align-items: flex-end;
    text-align: right;
}

.memorial-list-item-life-row .life-age {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    align-self: center;
}

.memorial-list-item-life-row .life-place {
    color: #777;
    font-size: 13px;
    line-height: 1.25;
}

.memorial-list-item-bio {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.memorial-card{text-decoration:none;color:inherit;border:1px solid #eee;border-radius:8px;overflow:hidden;transition:box-shadow .2s}
.memorial-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.1)}
.memorial-card-photo{aspect-ratio:4/3;background:#f0f0f0}
.memorial-card-photo img{width:100%;height:100%;object-fit:cover}
.memorial-card-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:32px;color:#ccc}
.memorial-card-name{padding:10px;font-weight:600;font-size:14px}
.profile-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.profile-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.profile-modal-content{position:relative;background:#fff;border-radius:8px;max-width:480px;width:100%;box-shadow:0 8px 32px rgba(0,0,0,.2)}
.profile-modal-header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #eee}
.profile-modal-header h3{margin:0;font-size:18px}
.profile-modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:#666}
.profile-modal-body{padding:18px}
.profile-modal-body label{display:block;margin-bottom:4px;font-size:13px;color:#555}
.profile-modal-body input[type=text],.profile-modal-body textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:6px;margin-bottom:12px;font-family:inherit;box-sizing:border-box}
.profile-modal-actions{display:flex;gap:10px;justify-content:flex-end;padding:14px 18px;border-top:1px solid #eee}
.btn-cancel{padding:8px 20px;border-radius:6px;background:#f0f0f0;border:1px solid #ddd;cursor:pointer}
.btn-send{padding:8px 20px;border-radius:6px;background:#b89b5e;color:#fff;border:none;cursor:pointer}
.btn-send:hover{background:#b89b5e}


/* ---- VIEW Memorial ------------ */

body{background:#f5f5f5;margin:0;font-family:Arial,sans-serif}
body:has(.memorial-page) main,body:has(.memorial-page) .container,body:has(.memorial-page) .memorial-page{background:transparent!important}

/* Контейнер для иконки и текста */
.memorial-header-flex {
    display: flex;
    align-items: center;    /* Выравнивание по вертикали (центр) */

    gap: 15px;              /* Расстояние между иконкой и текстом */
    margin-bottom: 20px;    /* Отступ снизу от всего заголовка */
}

/* Стили иконки */
.badge-plan {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;         /* Чтобы иконку не сплющило */
}

/* Стили текста */
.memorial-header-text {
    text-align: left;       /* Текст внутри блока прижат к иконке */
}

.memorial-title {
    margin: 0 !important;   /* Убираем лишние отступы у h1 */
    line-height: 1.1;
}

.memorial-meta {
    margin: 5px 0 0 0 !important; /* Небольшой отступ сверху */
    color: #777;
    font-size: 14px;
}

/* Адаптация для мобилок: если имя очень длинное */


.memorial-page{max-width:1200px;margin:0 auto;padding:20px}
.memorial-title{font-size:28px;color:#333;margin:0 0 4px}
.memorial-meta{font-size:14px;color:#555;margin:0 0 20px}
/* 8-column main + 4-column sidebar (Bootstrap-style ratio) */
.memorial-layout.row-8-4{display:grid;grid-template-columns:8fr 4fr;gap:24px}
.col-main{min-width:0}
.col-sidebar{min-width:0}
.main-col,.side-col{display:flex;flex-direction:column;gap:15px}
.info-box,.card,.memorial-card,.profile-card{background:rgba(255,255,255,0.5)!important;backdrop-filter:blur(10px);border:1px solid rgba(0,0,0,0.08);border-radius:6px;padding:15px}
.info-box h3,.card h4{margin:0 0 10px;font-size:18px;color:#333;border-bottom:2px solid #dbdbdb;padding-bottom:5px}
.block-comments{margin-top:20px}
.photo-box{position:relative}

.no-photo{display:flex;align-items:center;justify-content:center;height:100%;color:#666}
.arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.5);color:#fff;border:none;padding:10px 15px;cursor:pointer;font-size:20px;opacity:0;transition:opacity .3s}
.photo-main:hover .arrow{opacity:1}
.arrow:hover{background:rgba(0,0,0,.8)}
.arrow.left{left:10px}
.arrow.right{right:10px}
/* Favorite heart: top-left, smaller than plan icons */
.photo-main .badge-favorite{position:absolute;top:15px;left:15px;width:70px;height:70px;cursor:pointer;z-index:10;object-fit:contain}
/* Main image badges: plan top-right 105x105, candle bottom-right larger+equal padding, gifts bottom-left same size as candle */


.photo-main { position: relative; background: #000; border-radius: 8px; overflow: hidden; }
.photo-main img { width: 100%; height: auto; display: block; }
/*
.photo-main {position: relative; width: 100%; display: inline-block;}
.photo-main { aspect-ratio: 4/3; background: #000; }
.photo-main img { object-fit: cover; }
*/
/* Свеча: теперь она всегда занимает 20% от ширины фото */
.photo-main .badge-candle {
    position: absolute;
    bottom: 3%;
    right: 3%;
    width: 20%;      /* Относительная ширина */
    height: auto;    /* Сохраняем пропорции */
    max-width: 120px; /* Больше этого размера не вырастет (для десктопа) */
    aspect-ratio: 1 / 1; /* Гарантируем квадрат */
    object-fit: contain;
}

/* Блок подарков: теперь занимает 35% от ширины фото */
.photo-main .badge-gifts {
    position: absolute;
    bottom: 3%;
    left: 3%;
    width: 35%;      /* Относительная ширина */
    height: auto;
    max-width: 220px; /* Максимальный размер для больших экранов */
    aspect-ratio: 1 / 1;
}

/* Сами картинки внутри блока подарков */
.photo-main .badge-gifts .gift-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    object-fit: contain;
}

.photo-main .badge-gifts .gift-img.active {
    opacity: 1;
}

.photo-carousel{margin-top:12px}
.photo-carousel .carousel-label{font-size:14px;color:#666;margin:0 0 8px;font-weight:600}
.photo-thumbs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scroll-snap-type: x mandatory;}
.photo-thumbs .thumb{scroll-snap-align:start;width:80px;height:60px;min-width:80px;object-fit:cover;border:2px solid #ddd;border-radius:4px;cursor:pointer}
.thumb.active,.thumb:hover{border-color:#b89b5e}

.memorial-timeline .date-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0;padding:0;border:none}
.memorial-timeline .date-col{display:flex;flex-direction:column;gap:4px}
.memorial-timeline .date-label{font-size:12px;color:#999;font-weight:600;text-transform:uppercase;letter-spacing:0.02em}
.memorial-timeline .date-value{font-size:16px;color:#333}
.memorial-timeline .place-value{font-size:14px;color:#555}
.date-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #eee}
.date-grid div{display:flex;flex-direction:column}
.date-grid small{font-size:11px;color:#999;margin-top:5px}
.date-grid strong{font-size:16px;color:#333}
.age-line{text-align:center;padding-top:10px;font-size:15px;color:#666}
table{width:100%;border-collapse:collapse}
table td{padding:8px 0;border-bottom:1px solid #eee}
table tr:last-child td{border:none}
.empty{color:#999;font-style:italic}
.comment{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #eee}
.comment img{width:40px;height:40px;border-radius:50%;object-fit:cover}
.comment strong{display:block}
.comment small{color:#999;font-size:12px}
textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;resize:vertical;min-height:60px;font-family:inherit;margin-bottom:5px}
button[type=submit]{background:#b89b5e;color:#fff;border:none;padding:8px 20px;border-radius:4px;cursor:pointer}
button[type=submit]:hover{background:#c9a865;}
.creator{display:flex;gap:10px;margin-bottom:15px}
.creator img{width:50px;height:50px;border-radius:50%;object-fit:cover}
.creator small{font-size:11px;color:#999;display:block}
.creator a{font-weight:600;color:#b89b5e;text-decoration:none}
.btn-row{display:flex;gap:5px;margin-bottom:10px}
.btn-icon{flex:1;background:#f5f5f5;border:1px solid #ddd;padding:10px;border-radius:4px;cursor:pointer;font-size:16px;text-align:center;transition:all .3s;color:#333;text-decoration:none;display:block}
.btn-icon:hover{background:#b89b5e;color:#fff}
.stats{display:flex;justify-content:space-around;padding:10px 0;border-top:1px solid #eee;border-bottom:1px solid #eee;margin-bottom:10px}
.stats span{font-size:14px;color:#666}
.save-row{display:flex;justify-content:space-between;align-items:center}
.save-row button{background:#f5f5f5;border:1px solid #ddd;padding:8px 16px;border-radius:4px;cursor:pointer}
.gift-row{display:flex;gap:8px;padding:8px 0;border-bottom:1px solid #eee}
.gift-row img{width:30px;height:30px}
.gift-row strong{display:block;font-size:13px}
.gift-row small{font-size:12px;color:#666}
.gift-row a{color:#b89b5e;text-decoration:none}
/* Family block */
.block-family .family-list{display:flex;flex-direction:column;gap:10px}
.block-family .family-entry{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #eee;color:inherit;text-decoration:none;transition:background .2s}
.block-family .family-entry:last-child{border-bottom:none}
.block-family .family-entry:hover{background:#f9f9f9}
.family-avatar{width:50px;height:50px;min-width:50px;border-radius:5%;overflow:hidden;background:#eee;display:flex;align-items:center;justify-content:center}
.family-avatar img{width:100%;height:100%;object-fit:cover}
.family-avatar i{font-size:20px;color:#999}
.family-info{display:flex;flex-direction:column;gap:2px}
.family-relation{font-size:11px;color:#999;text-transform:uppercase;font-weight:600}
.family-name{font-size:15px;color:#333}
/* Sidebar */
.sidebar-card{margin-bottom:1px}
.sidebar-heading{font-size:12px;color:#b89b5e !important;letter-spacing:.05em;margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid #eee}
.sidebar-created .creator-block{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;margin-bottom:6px}
.sidebar-created .creator-block:hover 
.creator-avatar{width:48px;height:48px;min-width:48px;border-radius:50%;overflow:hidden}
.creator-avatar img{width:100%;height:100%;object-fit:cover}

.creator-date{font-size:12px;color:#999}
.sidebar-actions .action-buttons{display:flex;flex-direction:column;gap:8px}
.btn-action{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:10px 14px;border:1px solid #ddd;border-radius:6px;background:#f9f9f9;cursor:pointer;font-size:14px;color:#333;transition:all .2s}
.btn-action:hover{background:#c9a865;color:#fff;border-color:#c9a865}
.btn-action i{font-size:18px}
.sidebar-music .sidebar-music-label{font-size:12px;color:#666;margin:0 0 6px 0}
.sidebar-music .sidebar-audio{width:100%;height:36px;margin-top:4px}
.sidebar-stats{display:flex;justify-content:space-around;align-items:center;flex-wrap:wrap;gap:10px}
.sidebar-stats .stat-item{font-size:14px;color:#666}
.video-item,.doc-item{margin-bottom:6px}
.video-item a,.doc-item a{color:#b89b5e;text-decoration:none}
.video-item a:hover,.doc-item a:hover{text-decoration:underline}
/* Utility & Share */
.sidebar-utility .utility-buttons,.sidebar-share .share-buttons{display:flex;flex-wrap:wrap;gap:8px}
.btn-share{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid #ddd;border-radius:6px;background:#f9f9f9;cursor:pointer;font-size:13px;color:#333;transition:all .2s}
.btn-utility:hover,.btn-share:hover{background:#c9a865;color:#fff;border-color:#c9a865}
/* Modals */
.memorial-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.memorial-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.memorial-modal-content{position:relative;background:#fff;border-radius:8px;max-width:400px;width:100%;box-shadow:0 8px 32px rgba(0,0,0,.2)}
.memorial-modal-header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #eee}
.memorial-modal-header h3{margin:0;font-size:18px}
.memorial-modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:#666;line-height:1}
.memorial-modal-close:hover{color:#333}
.memorial-modal-body{padding:18px}
.memorial-modal-hint{margin-top:10px;font-size:13px;color:#666}
.text-center{text-align:center}
.payment-price{margin:12px 0}
.memorial-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}

.btn-confirm{background:#b89b5e;border:none;color:#fff;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;}
.btn-confirm:hover{background:#977e4a}
.duration-options{list-style:none;margin:0;padding:0}
.duration-options li{margin-bottom:8px}
.duration-options button{width:100%;text-align:left;padding:10px 14px;border:1px solid #ddd;border-radius:6px;background:#f9f9f9;cursor:pointer}
.duration-options button:hover{background:#fff3ed;border-color:#b89b5e}
/* Gift selection modal */
.gift-modal-content{max-width:520px}
.gift-modal-hint{font-size:13px;color:#666;margin:0 0 12px}
.gift-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.gift-item{position:relative;display:flex;flex-direction:column;align-items:center;padding:12px 8px;border:2px solid #eee;border-radius:8px;cursor:pointer;transition:border-color .2s,background .2s}
.gift-item:hover,.gift-item:has(.gift-checkbox:checked){border-color:#c9a865;background:#fff9f6}
.gift-item .gift-checkbox{position:absolute;top:8px;right:8px;width:18px;height:18px;margin:0;cursor:pointer}
.gift-item-check{display:none}
.gift-item-icon{width:48px;height:48px;object-fit:contain;margin-bottom:6px;display:block}
.gift-item-icon-placeholder{display:flex!important;align-items:center;justify-content:center;background:#f0f0f0;border-radius:6px;font-size:24px;color:#999}
.gift-item-name{font-size:12px;text-align:center;color:#333}
.gift-no-types{color:#999;font-style:italic;margin:0}
.gift-period-row{margin-bottom:10px}
.gift-period-row label{display:block;font-size:13px;color:#555;margin-bottom:4px}
.gift-period-select{width:100%;padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px}
.gift-total-row{margin:12px 0;font-size:15px}
.gift-total-row strong{color:#b89b5e}
/* Highlight Color modal */
.highlight-modal-hint{font-size:13px;color:#666;margin:0 0 12px}
.highlight-color-row{display:flex;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.highlight-color-box{display:block;width:56px;height:56px;border-radius:8px;border:3px solid #ddd;cursor:pointer;transition:border-color .2s}
.highlight-color-box:hover,.highlight-color-box.selected{border-color:#c9a865}
.highlight-color-box input{position:absolute;opacity:0;pointer-events:none}
.highlight-period-row{margin-bottom:10px}
.highlight-period-row label{display:block;font-size:13px;color:#555;margin-bottom:4px}
.highlight-duration-select{width:100%;padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px}
.highlight-sum-row{margin:12px 0;font-size:15px}
.highlight-sum-row strong{color:#b89b5e}
#paymentModalPrice{color:#b89b5e; font-weight:700;}
.stand-txt{color:#b89b5e; font-weight:700;}
.sidebar-music{
    border-radius:2px !important;
}
audio::-webkit-media-controls-panel {
    border-radius: 2px !important;
}
audio::-webkit-media-controls-enclosure {
    border-radius: 2px !important;
}

/* view */

.timeline-container {
    display: flex;
    gap: 30px; /* Расстояние между блоками Рождения и Смерти */
}

.timeline-section {
    flex: 1; /* Обе колонки одинаковой ширины */
    display: flex;
    flex-direction: column;
}

/* Заголовок с оранжевой чертой */
.timeline-header {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    padding-bottom: 5px;
    border-bottom: 2px solid #b89b5e; /* Оранжевая черта */
    text-transform: none; /* Убираем капс, если он не нужен */
}

.timeline-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 5px 0;
}

/* Серая черта под датой */
.timeline-row-divider {
    height: 1px;
    background-color: #eee;
    margin: 2px 0 5px 0;
}

.place-value {
    font-size: 14px;
    color: #666;
}

/* Адаптивность для мобилок */


.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 15px; /* Отступ между названием и значением */
}

.details-label {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap; /* Чтобы название не переносилось, если есть место */
}

.details-value {
    text-align: right;
    font-size: 15px;
    color: #333;
    word-break: break-word; /* Если текст очень длинный, он перенесется */
}

/* Адаптивность для средних и маленьких экранов */



/* --- Right Sidebar ----- */
/* === SIDEBAR COMPACT & CLEAN === */

/* Базовые контейнеры и блоки */
.side-col .sidebar-block, .side-col .card {
    margin-bottom: 0px;
    padding: 15px;
}

/* Единый стиль заголовков (Твой цвет #b89b5e) */
.side-col h4 {
    margin: 0 0 15px 0 !important;
    padding-bottom: 8px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #b89b5e !important;
    border-bottom: 2px solid #dbdbdb !important;
    display: block !important;
    text-transform: none !important;
}

/* Автор (Created By) */
.creator-card { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.creator-avatar img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; display: block; }
.creator-info { display: flex; flex-direction: column; gap: 2px; }
.creator-name { 
    font-weight: 600; color: #333; font-size: 15px; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    max-width: 180px; display: block; 
}
.creator-date { color: #888; font-size: 12px; }

/* === 4. КНОПКИ (УНИВЕРСАЛЬНЫЙ СТИЛЬ) === */

.action-buttons-list, .share-grid, .utility-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: 10px; 
}

/* Базовый стиль для всех кнопок */
.btn-action, .btn-share, .btn-utility { 
    flex: 1; 
    /* Уменьшили min-width до 75px, чтобы 3 кнопки влезали в ряд */
    min-width: 75px; 
    padding: 10px 5px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 13px; 
    color: #333; 
    transition: 0.2s; 
    font-weight: 500;
}

/* Кнопки Honoring всегда на всю ширину */
.btn-action { 
    width: 100%; 
    flex: 1 1 100%;
}

/* Кнопки Tools (utility) — жестко по 3 в ряд, если место позволяет */
.btn-utility {
    flex: 1 1 calc(33.33% - 8px);
}

.btn-action:hover, .btn-share:hover, .btn-utility:hover { 
    border-color: #c9a865; 
    color: #c9a865; 
    background: #fff9f6; 
}

/* Иконка сердца в активном состоянии */
.btn-utility .fa-heart {
    color: #e74c3c;
}

/* Список подарков, Музыка и Статистика */
.gift-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gift-row img { width: 40px; height: 40px; object-fit: contain; }
.gift-text { display: flex; flex-direction: column; font-size: 13px; }
.sidebar-audio { width: 100%; margin-top: 10px; height: 35px; }
.sidebar-music-label { font-size: 13px; color: #666; margin-bottom: 5px; }
.stats-block { display: flex; justify-content: space-between; border-top: none; }
.stat-item { font-size: 13px; color: #777; display: flex; align-items: center; gap: 5px; }

/* Модальное окно (QR) */
/* 1. ОБЩИЕ СТИЛИ (Для всех окон: Подарки, Топ, Цвет) */
/* ОБЩИЕ стили для всех окон (Подарки, Топ, Цвет) */
.memorial-modal { 
    position: fixed; inset: 0; z-index: 10000; 
    display: none; /* Изначально скрыто */
    align-items: center; justify-content: center; padding: 20px; 
}

.memorial-modal-backdrop { 
    position: absolute; inset: 0; 
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); 
}

/* Контент окна по умолчанию (Широкий - для подарков) */
.memorial-modal-content { 
    position: relative; background: #fff; 
    width: 100%; 
    max-width: 550px; /* Увеличили, чтобы подарки (image_01be17) влезли */
    border-radius: 12px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); 
    overflow: hidden; 
    animation: modalAppear 0.3s ease-out; 
}

/* СПЕЦИФИЧЕСКИЙ стиль только для QR-кода */
.memorial-modal.modal-qr-variant .memorial-modal-content {
    max-width: 350px; /* Узкое окно только для QR */
}

/* Стили заголовка и тела (общие) */
.memorial-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; }
.memorial-modal-header h3 { margin: 0; font-size: 18px; color: #333; }
.memorial-modal-close { background: none; border: none; font-size: 28px; color: #999; cursor: pointer; }

.memorial-modal-body { 
    padding: 20px; 
    text-align: center; 
}

/* Специфические отступы внутри QR тела */
.modal-qr-variant .memorial-modal-body {
    padding: 30px 20px; 
}

/* Стили заголовка и кнопок остаются общими */
.memorial-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; }
.memorial-modal-header h3 { margin: 0; font-size: 18px; color: #333; }
.memorial-modal-close { background: none; border: none; font-size: 28px; color: #999; cursor: pointer; }

/* Стили самого QR (они и так уникальны по именам классов) */
.qr-wrapper { background: #fff; padding: 10px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 15px; display: inline-block; }
.qr-wrapper img { display: block; width: 200px; height: 200px; object-fit: contain; }

/*  BLOG-БЛОГ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.blog-block-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    transition: box-shadow .2s;
}
.blog-block-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.blog-block-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}
.blog-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-block-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 12px;
    margin: 0;
    line-height: 1.4;
}




/*  МОБИЛЬНАЯ АДАПТАЦИЯ */






/* Перетаскивание фото при ред. */
.photo-preview-item {
    cursor: grab;
    touch-action: none;
}

.photo-preview-item:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.3;
    background: #f0f0f0;
    border: 2px dashed #007bff;
}


/* Favorite */
.fav-icon-trigger i {
    cursor: pointer;
    color: #ff0000;
    transition: color 0.2s ease;
}

.fav-icon-trigger i.is-favorite {
    color: #ff4d4d;
}

.section-heading {
    font-size: clamp(20px, 3vw, 26px);
    color: #333;
    margin-bottom: 8px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: #b89b5e;
    margin-bottom: 24px;
}

.memorial-saved-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.btn-return-home {
    display: inline-block;
    padding: 12px 24px;
    background: #b89b5e;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
}

.btn-return-home:hover {
    background: #c9a865;
    color: #fff;
}








/* --- Адаптив --- */






/* ========== INLINE STYLES (extracted from PHP) ========== */

/* --- extracted from: views/admin/blog-list.php --- */
.blog-list-wrap { max-width: 1100px; margin: 24px auto; padding: 0 20px; }

.bl-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bl-header h1 { font-size: 22px; color: #1a1a1a; margin: 0; }

.btn-new { padding: 9px 20px; background: #b89b5e; color: #fff; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: 600; }
.btn-new:hover { background: #b89b5e; }

.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.flash-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

/* Filters */
.filters-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters-bar select {
    padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 5px;
    font-size: 13px; background: #fff; cursor: pointer; outline: none;
}
.filters-bar select:focus { border-color: #b89b5e; }
.posts-count { margin-left: auto; font-size: 13px; color: #6b7280; }

/* Table */
.posts-table-wrap { overflow-x: auto; }
.posts-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.posts-table th {
    background: #f9fafb; border-bottom: 2px solid #e5e7eb;
    padding: 10px 12px; text-align: left; font-size: 12px;
    font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em;
    white-space: nowrap;
}
.posts-table td { padding: 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.posts-table tr:hover td { background: #fafafa; }
.row-draft td { opacity: .7; }

.td-id { color: #9ca3af; font-size: 13px; }

.post-title-cell { display: flex; align-items: center; gap: 10px; }
.post-thumb { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.post-thumb-empty { width: 48px; height: 36px; background: #f3f4f6; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.post-title-text { font-weight: 600; color: #1a1a1a; line-height: 1.3; }
.post-slug { font-size: 11px; color: #9ca3af; font-family: monospace; margin-top: 2px; }
.post-author { font-size: 11px; color: #6b7280; margin-top: 2px; }

.td-topic { font-size: 13px; color: #374151; }
.no-topic { color: #d1d5db; }

.status-badge { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-badge.draft     { background: #f3f4f6; color: #6b7280; }
.status-badge.published { background: #dcfce7; color: #166534; }

.td-views { font-size: 13px; color: #6b7280; white-space: nowrap; }
.td-date  { font-size: 12px; color: #6b7280; white-space: nowrap; }

.td-actions { display: flex; gap: 4px; align-items: center; }
.btn-edit   { padding: 4px 10px; background: #f3f4f6; color: #374151; border-radius: 4px; font-size: 12px; text-decoration: none; border: 1px solid #e5e7eb; }
.btn-view   { padding: 4px 10px; background: #eff6ff; color: #1d4ed8; border-radius: 4px; font-size: 12px; text-decoration: none; border: 1px solid #bfdbfe; }
/* .btn-delete { padding: 4px 10px; background: #fef2f2; color: #b91c1c; border-radius: 4px; font-size: 12px; border: 1px solid #fca5a5; cursor: pointer; }
*/
.btn-edit:hover   { background: #344d81; }
.btn-view:hover   { background: #0f2a4e; }
/*.btn-delete:hover { background: #852525; }*/

.empty-state { text-align: center; padding: 60px 20px; color: #6b7280; }
.empty-state p { margin-bottom: 16px; font-size: 16px; }



/* --- extracted from: views/admin/create-post.php --- */
/* ── Layout ─────────────────────────────────────────────── */
.create-post-wrap { max-width: 1100px; margin: 24px auto; padding: 0 20px; }

.post-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.post-header-left { display: flex; align-items: center; gap: 16px; }
.post-header-left h1 { font-size: 22px; color: #1a1a1a; margin: 0; }
.back-link { font-size: 13px; color: #b89b5e; text-decoration: none; white-space: nowrap; }
.back-link:hover { text-decoration: underline; }

.post-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.btn-preview  { padding: 9px 18px; background: #f3f4f6; color: #333; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; cursor: pointer; }
.btn-draft    { padding: 9px 18px; background: #6b7280; color: #fff; border: none; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-publish  { padding: 9px 22px; background: #b89b5e; color: #fff; border: none; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-draft:hover   { background: #4b5563; }
.btn-publish:hover { background: #b89b5e; }
.btn-preview:hover { background: #e5e7eb; }

.btn-draft-sm   { flex: 1; padding: 8px; background: #6b7280; color: #fff; border: none; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-publish-sm { flex: 1; padding: 8px; background: #b89b5e; color: #fff; border: none; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-draft-sm:hover   { background: #4b5563; }
.btn-publish-sm:hover { background: #b89b5e; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.flash-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

/* Two-column layout */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

/* Main content */
.post-main { display: flex; flex-direction: column; gap: 16px; }

.field-block { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: #374151; }
.req { color: #b89b5e; }
.char-hint { font-size: 11px; color: #9ca3af; }

.input-title {
    width: 100%; padding: 14px 16px;
    border: 2px solid #e5e7eb; border-radius: 6px;
    font-size: 22px; font-weight: 700; color: #1a1a1a;
    font-family: Georgia, serif;
    box-sizing: border-box; outline: none;
}
.input-title:focus { border-color: #b89b5e; }
.input-title::placeholder { color: #d1d5db; font-weight: 400; }

.input-desc {
    width: 100%; padding: 10px 14px;
    border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 14px; color: #374151; resize: vertical;
    font-family: inherit; box-sizing: border-box; outline: none;
}
.input-desc:focus { border-color: #b89b5e; }

/* Toolbar */
.editor-toolbar {
    display: flex; flex-wrap: wrap; gap: 2px;
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-bottom: none; border-radius: 6px 6px 0 0;
    padding: 6px 8px;
}
.editor-toolbar button {
    padding: 4px 10px; background: transparent;
    border: 1px solid transparent; border-radius: 4px;
    font-size: 13px; cursor: pointer; color: #374151;
}
.editor-toolbar button:hover { background: #e5e7eb; border-color: #d1d5db; }
.editor-toolbar .sep { width: 1px; background: #e5e7eb; margin: 0 4px; align-self: stretch; }

/* Content editor */
.content-editor {
    min-height: 420px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 6px 6px;
    font-size: 15px; line-height: 1.75; color: #1a1a1a;
    outline: none;
    background: #fff;
}
.content-editor:focus { border-color: #b89b5e; }
.content-editor[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: #d1d5db;
    pointer-events: none;
}
.content-editor h2 { font-size: 20px; margin: 20px 0 8px; color: #111; }
.content-editor h3 { font-size: 17px; margin: 16px 0 6px; color: #222; }
.content-editor a  { color: #b89b5e; }
.content-editor ul, .content-editor ol { padding-left: 24px; }

/* Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 14px; }

.sidebar-card {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 8px; padding: 16px;
}
.sidebar-card-title { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }

.slug-row { display: flex; align-items: center; gap: 0; }
.slug-base { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.input-slug {
    flex: 1; padding: 7px 10px;
    border: 1px solid #e5e7eb; border-radius: 5px;
    font-size: 13px; font-family: monospace; outline: none;
    min-width: 0;
}
.input-slug:focus { border-color: #b89b5e; }

.input-text {
    width: 100%; padding: 8px 12px;
    border: 1px solid #e5e7eb; border-radius: 5px;
    font-size: 13px; box-sizing: border-box; outline: none;
}
.input-text:focus { border-color: #b89b5e; }

/* Image drop zone */
.image-drop-zone {
    border: 2px dashed #e5e7eb; border-radius: 6px;
    min-height: 110px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden; position: relative;
    transition: border-color .2s;
}
.image-drop-zone:hover { border-color: #b89b5e; }
#imageDropText { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9ca3af; font-size: 13px; }
.drop-icon { font-size: 28px; }
#imagePreview { width: 100%; height: 100%; object-fit: cover; position: absolute; top:0; left:0; }

/* Status badge */
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-badge.draft     { background: #f3f4f6; color: #6b7280; }
.status-badge.published { background: #dcfce7; color: #166534; }
.status-row { margin-bottom: 12px; }
.sidebar-actions { display: flex; gap: 8px; }
.post-status-card { border-color: #b89b5e; }

/* Preview overlay */
.preview-overlay {
    position: fixed; inset: 0; background: #fff; z-index: 9999;
    overflow-y: auto;
}
.preview-bar {
    position: sticky; top: 0; background: #1a1a1a; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px;
}
.preview-bar button { background: none; border: none; color: #fff; font-size: 15px; cursor: pointer; }
.preview-content { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
.preview-content h1 { font-size: 32px; font-family: Georgia, serif; color: #1a1a1a; margin-bottom: 12px; }
.preview-desc { font-size: 16px; color: #6b7280; line-height: 1.6; margin-bottom: 24px; }

/* Responsive */


/* --- extracted from: views/admin/edit-post.php --- */
.create-post-wrap { max-width: 1100px; margin: 24px auto; padding: 0 20px; }

.post-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.post-header-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-header-left h1 { font-size: 22px; color: #1a1a1a; margin: 0; }
.post-id-badge { font-size: 14px; font-weight: 400; color: #9ca3af; }
.back-link { font-size: 13px; color: #b89b5e; text-decoration: none; white-space: nowrap; }
.back-link:hover { text-decoration: underline; }

.post-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-preview  { padding: 9px 18px; background: #f3f4f6; color: #333; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-draft    { padding: 9px 18px; background: #6b7280; color: #fff; border: none; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; }

.btn-draft:hover   { background: #4b5563; }
.btn-publish:hover { background: #b89b5e; }
.btn-preview:hover { background: #e5e7eb; }

.btn-draft-sm   { flex: 1; padding: 8px; background: #6b7280; color: #fff; border: none; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-publish-sm { flex: 1; padding: 8px; background: #b89b5e; color: #fff; border: none; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-draft-sm:hover   { background: #4b5563; }
.btn-publish-sm:hover { background: #b89b5e; }

.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.flash-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.post-main { display: flex; flex-direction: column; gap: 16px; }
.field-block { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: #374151; }
.req { color: #b89b5e; }
.char-hint { font-size: 11px; color: #9ca3af; }

.input-title {
    width: 100%; padding: 14px 16px;
    border: 2px solid #e5e7eb; border-radius: 6px;
    font-size: 22px; font-weight: 700; color: #1a1a1a;
    font-family: Georgia, serif; box-sizing: border-box; outline: none;
}
.input-title:focus { border-color: #b89b5e; }
.input-title::placeholder { color: #d1d5db; font-weight: 400; }

.input-desc {
    width: 100%; padding: 10px 14px;
    border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 14px; color: #374151; resize: vertical;
    font-family: inherit; box-sizing: border-box; outline: none;
}
.input-desc:focus { border-color: #b89b5e; }

.editor-toolbar {
    display: flex; flex-wrap: wrap; gap: 2px;
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-bottom: none; border-radius: 6px 6px 0 0;
    padding: 6px 8px;
}
.editor-toolbar button {
    padding: 4px 10px; background: transparent;
    border: 1px solid transparent; border-radius: 4px;
    font-size: 13px; cursor: pointer; color: #374151;
}
.editor-toolbar button:hover { background: #e5e7eb; border-color: #d1d5db; }
.editor-toolbar .sep { width: 1px; background: #e5e7eb; margin: 0 4px; align-self: stretch; }

.content-editor {
    min-height: 420px; padding: 16px;
    border: 1px solid #e5e7eb; border-radius: 0 0 6px 6px;
    font-size: 15px; line-height: 1.75; color: #1a1a1a;
    outline: none; background: #fff;
}
.content-editor:focus { border-color: #b89b5e; }
.content-editor[data-placeholder]:empty::before {
    content: attr(data-placeholder); color: #d1d5db; pointer-events: none;
}
.content-editor h2 { font-size: 20px; margin: 20px 0 8px; color: #111; }
.content-editor h3 { font-size: 17px; margin: 16px 0 6px; color: #222; }
.content-editor a  { color: #b89b5e; }
.content-editor ul, .content-editor ol { padding-left: 24px; }

.post-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.sidebar-card-title { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }

.slug-row { display: flex; align-items: center; }
.slug-base { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.input-slug {
    flex: 1; padding: 7px 10px;
    border: 1px solid #e5e7eb; border-radius: 5px;
    font-size: 13px; font-family: monospace; outline: none; min-width: 0;
}
.input-slug:focus { border-color: #b89b5e; }

.input-text {
    width: 100%; padding: 8px 12px;
    border: 1px solid #e5e7eb; border-radius: 5px;
    font-size: 13px; box-sizing: border-box; outline: none;
}
.input-text:focus { border-color: #b89b5e; }

.image-drop-zone {
    border: 2px dashed #e5e7eb; border-radius: 6px;
    min-height: 110px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden; position: relative; transition: border-color .2s;
}
.image-drop-zone:hover { border-color: #b89b5e; }
#imageDropText { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9ca3af; font-size: 13px; }
.drop-icon { font-size: 28px; }

.stats-row { display: flex; flex-direction: column; gap: 6px; }
.stat-item { font-size: 13px; color: #6b7280; }

.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-badge.draft     { background: #f3f4f6; color: #6b7280; }
.status-badge.published { background: #dcfce7; color: #166534; }
.status-row { margin-bottom: 12px; }
.sidebar-actions { display: flex; gap: 8px; }
.post-status-card { border-color: #b89b5e; }

.preview-overlay { position: fixed; inset: 0; background: #fff; z-index: 9999; overflow-y: auto; }
.preview-bar {
    position: sticky; top: 0; background: #1a1a1a; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px;
}
.preview-bar button { background: none; border: none; color: #fff; font-size: 15px; cursor: pointer; }
.preview-content { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
.preview-content h1 { font-size: 32px; font-family: Georgia, serif; color: #1a1a1a; margin-bottom: 12px; }
.preview-desc { font-size: 16px; color: #6b7280; line-height: 1.6; margin-bottom: 24px; }



/* Admin layout was mistakenly pasted here with global body/nav/table rules — that overwrote the whole site.
   The Crypt admin UI does not load this file; keep admin-specific CSS in admin views or a separate admin.css. */

/* --- extracted from: views/auth/login.php --- */
.social-login { display: flex; flex-direction: column; gap: 12px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: 0.3s; border: 2px solid #ddd; }
.btn-google { background: white; color: #333; }
.btn-google:hover { background: #f8f8f8; border-color: #4285F4; }
.btn-facebook { background: #1877F2; color: white; border-color: #1877F2; }
.btn-facebook:hover { background: #166FE5; }
.pw-wrapper input { box-sizing: border-box; }
#togglePassword:hover { color: #b89b5e !important; }

/* --- extracted from: views/auth/register.php --- */
.social-login { display: flex; flex-direction: column; gap: 12px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: 0.3s; border: 2px solid #ddd; }
.btn-google { background: white; color: #333; }
.btn-google:hover { background: #f8f8f8; border-color: #4285F4; }
.btn-facebook { background: #1877F2; color: white; border-color: #1877F2; }
.btn-facebook:hover { background: #166FE5; }
.pw-wrapper input { box-sizing: border-box; }
.toggle-password:hover { color: #b89b5e !important; }

/* --- extracted from: views/blog/blog-post-list.php --- */
.blog-page { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }

/* Hero */
.blog-hero { text-align: center; padding: 30px 0 24px; }

.blog-hero p  { font-size: 16px; color: #6b7280; margin: 0; }

/* Filters */
.blog-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }

.topic-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-tab {
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
    text-decoration: none; color: #6b7280; background: #f3f4f6;
    border: 1px solid #e5e7eb; transition: all .15s;
}
.topic-tab:hover { background: #ffe8d6; border-color: #b89b5e; color: #b89b5e; }
.topic-tab.active { background: #b89b5e; color: #fff; border-color: #b89b5e; }

.sort-wrap select {
    padding: 7px 12px; border: 1px solid #e5e7eb; border-radius: 5px;
    font-size: 13px; background: #fff; cursor: pointer; outline: none;
}
.sort-wrap select:focus { border-color: #b89b5e; }

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.post-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    overflow: hidden; text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

.post-card-img {
    position: relative; width: 100%; aspect-ratio: 16/9;
    background: #f3f4f6; overflow: hidden;
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #d1d5db; }

.post-topic-badge {
    position: absolute; top: 10px; left: 10px;
    background: #b89b5e; color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 3px;
}

.post-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.post-card-title {
    font-size: 17px; font-weight: 700; color: #1a1a1a;
    margin: 0 0 8px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-desc {
    font-size: 14px; color: #6b7280; line-height: 1.5; margin: 0 0 12px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta { display: flex; gap: 12px; font-size: 12px; color: #9ca3af; margin-top: auto; }

.blog-empty { text-align: center; padding: 60px 20px; color: #6b7280; font-size: 16px; }




/* --- extracted from: views/blog/blog-single-post.php --- */
/* ── Hero ──────────────────────────────────────────────── */
.post-article { max-width: 100%; }

.post-hero {
    position: relative; width: 100%;
    min-height: 420px; display: flex; align-items: flex-end;
    background: #1a1a1a;
}
.post-hero.no-image {
    min-height: 240px; background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}
.post-hero-img { position: absolute; inset: 0; overflow: hidden; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%); }

.post-hero-content {
    position: relative; z-index: 2;
    max-width: 820px; margin: 0 auto; width: 100%;
    padding: 40px 24px 48px;
}

.post-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.post-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.post-breadcrumb a:hover { color: #b89b5e; }

.post-hero-title {
    font-size: 38px; font-weight: 800; color: #fff; margin: 0 0 12px;
    line-height: 1.2; font-family: Georgia, serif;
}
.post-hero-desc { font-size: 16px; color: rgba(255,255,255,.8); margin: 0 0 18px; line-height: 1.5; max-width: 680px; }

.post-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.6); }
.post-tag { background: #b89b5e; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }

/* ── Body ──────────────────────────────────────────────── */
.post-body-wrap { max-width: 820px; margin: 0 auto; padding: 40px 24px 60px; }

.post-body { font-size: 17px; line-height: 1.8; color: #1a1a1a; }
.post-body h2 { font-size: 24px; font-weight: 800; color: #111; margin: 36px 0 12px; font-family: Georgia, serif; }
.post-body h3 { font-size: 20px; font-weight: 700; color: #222; margin: 28px 0 10px; }
.post-body p  { margin: 0 0 18px; }
.post-body a  { color: #b89b5e; text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 18px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote {
    border-left: 4px solid #b89b5e; margin: 24px 0;
    padding: 12px 20px; background: #fff9f5; font-style: italic; color: #555;
}
.post-body img { max-width: 100%; border-radius: 6px; margin: 16px 0; }
.post-body strong { color: #111; }

/* ── Share ─────────────────────────────────────────────── */
.post-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 36px 0; padding: 20px; background: #f9fafb; border-radius: 8px; }
.share-label { font-size: 13px; font-weight: 700; color: #374151; margin-right: 4px; }
.share-btn { padding: 7px 16px; border-radius: 5px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; }
.share-fb   { background: #1877f2; color: #fff; }
.share-tw   { background: #1da1f2; color: #fff; }
.share-copy { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.share-btn:hover { opacity: .85; }

/* ── Related ───────────────────────────────────────────── */
.related-posts { margin: 40px 0 0; }
.related-posts h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.related-card { text-decoration: none; color: inherit; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; display: block; transition: box-shadow .2s; }
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.related-card-img-empty { aspect-ratio: 16/9; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.related-card-title { font-size: 14px; font-weight: 600; color: #1a1a1a; padding: 10px 12px 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card-date  { font-size: 12px; color: #9ca3af; padding: 0 12px 10px; }

/* ── Back link ─────────────────────────────────────────── */
.post-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.post-back a { color: #b89b5e; text-decoration: none; font-size: 14px; font-weight: 600; }
.post-back a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────── */


/* --- extracted from: views/blog/index.php --- */
.blog-page { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }

/* Новый блок для выравнивания шапки и фильтров */
.blog-header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    padding: 10px 0;
    border-bottom: 2px solid #e5e7eb; padding-bottom: 5px;
}

.blog-hero h1 {color: #1a1a1a; margin: 0 0 6px; }
.blog-hero p  { font-size: 15px; color: #6b7280; margin: 0; }

.blog-filters { display: flex; align-items: center; gap: 10px; }
.sort-buttons { display: flex; gap: 5px; }

/* Стили для кнопок сортировки */
.sort-btn { 
    background: #f3f4f6; 
    border: 1px solid #e5e7eb; 
    border-radius: 5px; 
    padding: 8px 14px; 
    color: #6b7280; 
    cursor: pointer; 
    font-size: 14px; 
    transition: all 0.2s; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.sort-btn:hover { background: #e5e7eb; color: #1a1a1a; }
.sort-btn.active { background: #b89b5e; color: #fff; border-color: #b89b5e; }

.topic-select { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 5px; font-size: 14px; background: #fff; cursor: pointer; outline: none; }
.topic-select:focus { border-color: #b89b5e; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.post-card-img { position: relative; width: 100%; aspect-ratio: 16/9; background: #f3f4f6; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #d1d5db; }
.post-topic-badge { position: absolute; top: 10px; left: 10px; background: #b89b5e; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }
.post-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.post-card-title { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-desc { font-size: 14px; color: #6b7280; line-height: 1.5; margin: 0 0 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; gap: 15px; font-size: 12px; color: #9ca3af; margin-top: auto; align-items: center; }
.post-card-meta i { margin-right: 4px; } /* Отступ для новых иконок Font Awesome */
.blog-empty { text-align: center; padding: 60px 20px; color: #6b7280; font-size: 16px; }




/* --- extracted from: views/blog/view.php --- */
.blog-post-wrap { max-width: 820px; margin: 0 auto; padding: 20px 20px 60px; }

.blog-post-cover { width: 100%; aspect-ratio: 16/6; overflow: hidden; border-radius: 10px; margin-bottom: 28px; }
.blog-post-cover img { width: 100%; height: 100%; object-fit: cover; }

.blog-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: #6b7280; margin-bottom: 14px; }
.blog-post-topic { background: #b89b5e; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 3px; text-decoration: none; }
.blog-post-topic:hover { background: #b89b5e; }

.blog-post-title { font-size: 32px; font-weight: 800; color: #1a1a1a; margin: 0 0 12px; line-height: 1.2; font-family: Georgia, serif; }
.blog-post-desc { font-size: 16px; color: #6b7280; line-height: 1.6; margin: 0 0 28px; border-left: 3px solid #b89b5e; padding-left: 14px; }

.blog-post-content { font-size: 16px; line-height: 1.8; color: #1a1a1a; }
.blog-post-content h2 { font-size: 22px; font-weight: 700; color: #111; margin: 32px 0 10px; }
.blog-post-content h3 { font-size: 18px; font-weight: 700; color: #222; margin: 24px 0 8px; }
.blog-post-content p  { margin: 0 0 16px; }
.blog-post-content a  { color: #b89b5e; text-decoration: underline; }
.blog-post-content ul, .blog-post-content ol { padding-left: 24px; margin: 0 0 16px; }
.blog-post-content li { margin-bottom: 6px; }
.blog-post-content img { max-width: 100%; border-radius: 6px; margin: 16px 0; }
.blog-post-content blockquote { border-left: 4px solid #b89b5e; margin: 24px 0; padding: 12px 20px; background: #fff9f5; font-style: italic; color: #555; }

.blog-post-back { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.blog-post-back a { color: #b89b5e; text-decoration: none; font-size: 14px; font-weight: 600; }
.blog-post-back a:hover { text-decoration: underline; }



/* --- 404 page: must be scoped — unscoped body/h1/a here broke the entire site --- */


/* === BASE (create + edit) === */

/* ============================================================
   CREATE / EDIT MEMORIAL — все стили скоупированы под
   .create-memorial-container, чтобы не конфликтовать с
   одноимёнными классами (.form-section, .form-row и т.д.)
   из других страниц приложения.
   ============================================================ */

.create-memorial-container { max-width: 900px; margin: 30px auto; padding: 20px; }

.create-memorial-container .page-header h1 { font-size: 28px; color: #333; margin: 0 0 40px 0; text-align: center; }

.create-memorial-container .plan-selection { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #ddd; }
.create-memorial-container .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }

.create-memorial-container .pricing-card {
    background: #fff; border: 2px solid #ddd; border-radius: 6px;
    padding: 12px; text-align: center; cursor: pointer; position: relative;
}
.create-memorial-container .pricing-card:hover:not(.locked) { border-color: #b89b5e; }
.create-memorial-container .pricing-card.selected { border-color: #b89b5e; background: #fff9f5; }
.create-memorial-container .pricing-card.locked { opacity: 0.5; cursor: not-allowed; }
.create-memorial-container .pricing-card.disabled-plan { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.create-memorial-container .lock-icon { position: absolute; top: 8px; right: 8px; font-size: 12px; color: #999; }
.create-memorial-container .current-badge { position: absolute; top: 8px; left: 8px; background: #10b981; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 600; }
.create-memorial-container .pricing-card h3 { font-size: 16px; margin: 0 0 4px 0; color: #333; }
.create-memorial-container .pricing-card .duration { font-size: 12px; color: #666; }
.create-memorial-container .balance-info { text-align: center; font-size: 14px; color: #b89b5e; }
.create-memorial-container .balance-info strong { color: #b89b5e; }

.create-memorial-container .form-section {
    background: #fff; padding: 20px; border-radius: 8px;
    border: 1px solid #ddd; margin-bottom: 20px;
}
.create-memorial-container .form-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 15px; margin-bottom: 15px;
}
.create-memorial-container .form-field { display: flex; flex-direction: column; }
.create-memorial-container .form-field.full { grid-column: 1 / -1; }
.create-memorial-container .form-field label { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 5px; }
.create-memorial-container .req { color: #b89b5e; }

.create-memorial-container .form-field input,
.create-memorial-container .form-field select,
.create-memorial-container .form-field textarea {
    width: 100%; padding: 10px; border: 1px solid #ddd;
    border-radius: 4px; font-size: 14px; font-family: inherit; box-sizing: border-box;
}
.create-memorial-container .form-field input:focus,
.create-memorial-container .form-field select:focus,
.create-memorial-container .form-field textarea:focus {
    outline: none; border-color: #b89b5e; box-shadow: none;
}
.create-memorial-container .form-field textarea { resize: vertical; }

.create-memorial-container .dynamic-section {
    background: #fff; padding: 20px; border-radius: 8px;
    border: 1px solid #ddd; margin-bottom: 20px;
}
.create-memorial-container .dynamic-section h3 { font-size: 16px; margin: 0 0 15px 0; color: #333; }
.create-memorial-container .music-unavailable { color: #666; font-size: 14px; }
.create-memorial-container .media-list { margin-bottom: 10px; }
.create-memorial-container .media-item { display: flex; gap: 10px; margin-bottom: 8px; align-items: center; }
.create-memorial-container .media-item input,
.create-memorial-container .media-item select {
    flex: 1; width: auto; padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px;
}
.create-memorial-container .media-item button {
    padding: 8px 12px; background: #ef4444; color: #fff; border: none;
    border-radius: 4px; cursor: pointer; font-size: 13px; white-space: nowrap; flex-shrink: 0;
}


.create-memorial-container .media-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
    width: 100%;
}

/* Общие стили для всех полей ввода */
.create-memorial-container .media-item input,
.create-memorial-container .media-item select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: 40px; /* Фиксируем высоту для всех */
    box-sizing: border-box;
}

/* Пропорции ширины */
.create-memorial-container .media-item .rel-type {
    flex: 1; /* Обычная ширина */
}

.create-memorial-container .media-item .rel-id {
    flex: 0.5; /* В два раза уже */
}

.create-memorial-container .media-item .rel-name {
    flex: 2; /* Самое длинное поле */
    background-color: #f5f5f5; /* Визуально выделяем, что оно только для чтения */
    color: #333;
}

/* Кнопка */
.create-memorial-container .media-item button {
    height: 40px;
    padding: 0 15px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}




.create-memorial-container .btn-add-item {
    padding: 10px 20px; background: #6b7280; color: #fff; border: none;
    border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500; display: inline-block;
}
.create-memorial-container .btn-add-item:hover { background: #4b5563; }

.create-memorial-container .form-actions { 
    display: flex; 
    gap: 12px; 
    justify-content: center; 
    flex-wrap: wrap; /* Разрешает перенос кнопок на новую строку */
    margin-top: 20px;
}

.create-memorial-container .btn-publish {
    padding: 12px 40px; background: #b89b5e; color: #fff; border: none;
    border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; flex: 0 1 auto;
}


.create-memorial-container .btn-reserve {
    padding: 12px 30px; background: #6b7280; color: #fff; border: none;
    border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer; flex: 0 1 auto;
}
.create-memorial-container .btn-reserve:hover { background: #8f97a7; }

.create-memorial-container .btn-cancel {
    padding: 12px 24px; 
    background: #e5e5e5; 
    color: #666; 
    border: none;
    border-radius: 6px; 
    font-size: 14px; 
    text-decoration: none; 
    
    /* Добавь это: */
    display: flex;             /* Меняем с inline-block */
    align-items: center;       /* Центровка по вертикали */
    justify-content: center;   /* Центровка по горизонтали */
    text-align: center;
    box-sizing: border-box;    /* Чтобы паддинги не раздували кнопку */
    flex: 0 1 auto;
}
.btn-cancel:hover { background: #ebebeb; }

.create-memorial-container .btn-delete {
    padding: 12px 24px; background: #ef4444; color: #fff; border: none;
    border-radius: 6px; font-size: 14px; cursor: pointer; flex: 0 1 auto;
}
.create-memorial-container .btn-delete:hover { background: #dc2626; }

.create-memorial-container .photo-preview-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px; margin-bottom: 15px;
}
.create-memorial-container .photo-preview-item {
    position: relative; border: 2px solid #ddd; border-radius: 6px;
    overflow: hidden; aspect-ratio: 1; cursor: move;
}
.create-memorial-container .photo-preview-item.main-photo { border-color: #b89b5e; border-width: 3px; }
.create-memorial-container .photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.create-memorial-container .photo-preview-item .remove-photo {
    position: absolute; top: 4px; right: 4px; background: rgba(239,68,68,0.9);
    color: #fff; border: none; border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 11px;
}
.create-memorial-container .photo-preview-item .main-badge {
    position: absolute; bottom: 4px; left: 4px; background: rgba(184,155,94,0.9);
    color: #fff; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 600;
}
.create-memorial-container .photo-preview-item .set-main {
    position: absolute; bottom: 4px; right: 4px; background: rgba(16,185,129,0.9);
    color: #fff; border: none; border-radius: 3px; padding: 2px 6px; cursor: pointer; font-size: 10px;
}

.create-memorial-container .color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.create-memorial-container .color-box { height: 60px; border: 3px solid #ddd; border-radius: 6px; cursor: pointer; }
.create-memorial-container .color-box.selected { border-color: #b89b5e; }

.section-heading { font-size: clamp(20px, 3vw, 26px); color: #333; margin-bottom: 8px; }
.section-line { width: 60px; height: 3px; background: #b89b5e; margin-bottom: 24px; }
.section-link { font-weight: 600; color: #b89b5e; }
.section-link-wrap { text-align: center; margin-top: 30px; }


/*
 * Memorial page background (hex or image) is output in views/memorial/view.php as a <style> block.
 * Never embed server-side code in this file — static CSS breaks if non-CSS syntax appears.
 */

/* --- extracted from: views/pages/about.php --- */
.about-page { max-width: 1200px; margin: 0 auto; }
.about-hero { text-align: center; padding: 60px 20px; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); color: white; margin-bottom: 40px; }
.about-hero h1 { font-size: 48px; margin-bottom: 15px; color: #b89b5e; }
.about-hero .tagline { font-size: 20px; color: #ccc; }
.about-content { padding: 0 20px 60px; }
.about-content section { margin-bottom: 60px; }
.about-content h2 { color: #b89b5e; font-size: 32px; margin-bottom: 20px; border-bottom: 3px solid #b89b5e; padding-bottom: 10px; }
.about-content h3 { color: #333; font-size: 20px; margin-bottom: 10px; }
.about-content p { line-height: 1.8; margin-bottom: 15px; color: #555; }
.about-content ul { margin-left: 30px; line-height: 1.8; }
.about-content li { margin-bottom: 10px; color: #555; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.value-item { background: #f9f9f9; padding: 30px; border-radius: 8px; text-align: center; }
.value-item h3 { color: #b89b5e; margin-bottom: 10px; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; margin-top: 30px; }
.feature { background: #fff; border: 2px solid #f0f0f0; padding: 20px; border-radius: 8px; transition: 0.3s; }
.feature:hover { border-color: #b89b5e; box-shadow: 0 4px 12px rgba(255,102,0,0.1); }
.feature h3 { color: #c9a865; margin-bottom: 10px; }

/* Support Mission Special Section */
.support-mission { background-color: #f4fdf9; padding: 40px 30px; border-radius: 8px; border-left: 5px solid #28a745; }

.cta-buttons { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.cnt-buttons {text-align: center; margin-top: 20px;}
.btn-primary, .btn-secondary, .btn-support { padding: 15px 40px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 16px; display: inline-block; transition: 0.3s; text-align: center; }

.btn-primary { background: #b89b5e; color: white; }
/* .btn-primary:hover { background: #ff8800; transform: translateY(-2px); }*/

.btn-secondary { background: #333; color: white; }
.btn-secondary:hover { background: #555; transform: translateY(-2px); }

.btn-support { background: #28a745; color: white; }
.btn-support:hover { background: #218838; transform: translateY(-2px); color: white; }

.contact-info ul { list-style: none; margin-left: 0; }
.contact-info a { color: #b89b5e; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }



/* --- extracted from: views/pages/contact.php --- */
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}
.form-group select:focus {
    outline: none;
    border-color: #b89b5e;
}
#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- .static-page + .related-links: shared by cookies, data-deletion, privacy, offer, support, terms --- */
.static-page { max-width: 900px; margin: 40px auto; padding: 20px; line-height: 1.8; }
.static-page h1 { color: #b89b5e; font-size: 36px; margin-bottom: 10px; }
.static-page .updated { color: #666; font-size: 14px; margin-bottom: 30px; }
.static-page h2 { color: #333; font-size: 24px; margin-top: 40px; margin-bottom: 15px; border-bottom: 2px solid #b89b5e; padding-bottom: 5px; }
.static-page h3 { color: #555; font-size: 18px; margin-top: 25px; margin-bottom: 10px; }
.static-page ul, .static-page ol { margin-left: 30px; margin-bottom: 20px; }
.static-page li { margin-bottom: 10px; }
.static-page a { color: #b89b5e; text-decoration: none; }
.static-page a:hover { text-decoration: underline; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.cookie-table th { background: #b89b5e; color: white; padding: 10px; text-align: left; }
.cookie-table td { border: 1px solid #ddd; padding: 10px; }
.cookie-table tr:nth-child(even) { background: #f9f9f9; }
.btn-cookie-settings { background: #b89b5e; color: white; padding: 12px 24px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; margin: 20px 0; }
.btn-cookie-settings:hover { background: #ff8800; }
.related-links { background: #f9f9f9; padding: 20px; border-radius: 5px; margin-top: 40px; }
.related-links h3 { margin-top: 0; color: #b89b5e; }
.related-links ul { margin-left: 20px; }

/* --- extracted from: views/pages/newprices.php --- */
.pricing-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h1 {
    font-size: 42px;
    color: #333;
    margin: 0 0 20px 0;
}

.pricing-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: #b89b5e;
    border-width: 4px;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #b89b5e;
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 28px;
    color: #333;
    margin: 0 0 15px 0;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 700;
    color: #b89b5e;
    margin: 20px 0;
}

.pricing-card .price span {
    font-size: 18px;
    color: #666;
}

.pricing-card .duration {
    color: #666;
    margin-bottom: 0px;
    font-size: 16px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.pricing-card li {
    padding: 12px 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li::before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
    margin-right: 10px;
}

.pricing-card .btn {
    display: inline-block;
    padding: 15px 40px;
    background: #b89b5e;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
}

.pricing-card .btn:hover {
    background: #b89b5e;
    transform: scale(1.05);
}

.pricing-card.featured .btn {
    background: linear-gradient(135deg, #b89b5e 0%, #b89b5e 100%);
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.3);
}

.extras-section {
    background: #f9f9f9;
    padding: 50px 30px;
    border-radius: 15px;
    margin-bottom: 60px;
}

.extras-section h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin: 0 0 40px 0;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.extra-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.extra-item h4 {
    font-size: 20px;
    color: #333;
    margin: 0 0 10px 0;
}

.extra-item .extra-price {
    font-size: 24px;
    font-weight: 700;
    color: #b89b5e;
    margin: 10px 0;
}

.extra-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.faq-section {
    margin: 60px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin: 0 0 40px 0;
}

.faq-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.faq-item h4 {
    font-size: 20px;
    color: #333;
    margin: 0 0 15px 0;
}

.faq-item p {
    color: #666;
    margin: 0;
    line-height: 1.8;
}



/* --- extracted from: views/pages/payment-request.php --- */
.payment-request-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 18px;
    color: #666;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.option-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.option-card:hover {
    border-color: #b89b5e;
    box-shadow: 0 8px 20px rgba(255,102,0,0.15);
    transform: translateY(-5px);
}

.option-icon {
    margin-bottom: 20px;
}

.option-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.option-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.option-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.option-card ul li {
    padding: 5px 0;
    color: #666;
    font-size: 14px;
}

.option-card ul li::before {
    content: '✓ ';
    color: #10b981;
    font-weight: bold;
    margin-right: 5px;
}

.contact-form-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form-section h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.contact-form-section > p {
    color: #666;
    margin-bottom: 30px;
}

.payment-request-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b89b5e;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-primary {
    background: #b89b5e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*
.btn-primary:hover {
    background: #b89b5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,102,0,0.3);
}*/

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}



/* --- extracted from: views/pages/prices.php --- */
.prices-container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.prices-container h1 { text-align: center; color: #b89b5e; font-size: 48px; margin-bottom: 10px; }
.subtitle { text-align: center; color: #666; font-size: 20px; margin-bottom: 60px; }

/* Plans Grid */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-bottom: 80px; }

/* Plan Card */
.plan-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: 0.3s; position: relative; }
.plan-card:hover { transform: translateY(-10px); box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.plan-card.featured { border: 3px solid #b89b5e; }
.ribbon { position: absolute; top: 15px; right: -35px; background: #b89b5e; color: white; padding: 5px 40px; transform: rotate(45deg); font-weight: bold; font-size: 12px; z-index: 1; }

/* Plan Header */
.plan-header { background: linear-gradient(135deg, #f5f5f5, #e0e0e0); padding: 40px 30px; text-align: center; }
.plan-card.basic .plan-header { background: linear-gradient(135deg, #4CAF50, #45a049); color: white; }
.plan-card.legacy .plan-header { background: linear-gradient(135deg, #2196F3, #1976D2); color: white; }
.plan-card.infinity .plan-header { background: linear-gradient(135deg, #9C27B0, #7B1FA2); color: white; }
.plan-header h2 { margin: 0 0 20px 0; font-size: 32px; }
.plan-price { font-size: 64px; font-weight: bold; margin: 20px 0; }
.plan-price .currency { font-size: 32px; vertical-align: super; }
.plan-duration { font-size: 18px; opacity: 0.9; }

/* Plan Features */
.plan-features { padding: 30px; }
.plan-features h3 { margin: 0 0 20px 0; color: #333; }
.plan-features ul { list-style: none; padding: 0; margin: 0 0 30px 0; }
.plan-features li { padding: 10px 0; border-bottom: 1px solid #eee; color: #666; }
.plan-features li:last-child { border-bottom: none; }

.plan-card .btn { width: calc(100% - 60px); margin: 0 30px 30px 30px; }
.infinity-note { text-align: center; color: #999; font-size: 12px; padding: 0 30px 20px 30px; margin: 0; }

/* Additional Services */
.additional-services { margin-bottom: 80px; }
.additional-services h2 { text-align: center; color: #b89b5e; margin-bottom: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.service-card { background: white; padding: 30px; border-radius: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.service-card h3 { margin: 0 0 10px 0; color: #333; }
.service-price { font-size: 24px; font-weight: bold; color: #b89b5e; margin: 10px 0; }

/* Balance Section */
.balance-section { background: white; padding: 40px; border-radius: 15px; margin-bottom: 80px; text-align: center; }
.balance-section h2 { color: #b89b5e; margin-bottom: 30px; }
.balance-card { background: linear-gradient(135deg, #b89b5e, #ff8800); color: white; padding: 40px; border-radius: 10px; display: inline-block; }
.balance-label { font-size: 18px; margin: 0; opacity: 0.9; }
.balance-amount { font-size: 48px; font-weight: bold; margin: 10px 0 20px 0; }
.balance-notice { margin-top: 20px; color: #666; }

/* FAQ */
.faq-section { background: white; padding: 40px; border-radius: 15px; }
.faq-section h2 { color: #b89b5e; margin-bottom: 30px; text-align: center; }
.faq-item { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: #333; margin-bottom: 10px; }
.faq-item p { color: #666; line-height: 1.6; }

/* --- extracted from: views/pages/public-offer.php (pricing table only; .static-page shared above) --- */
.pricing-table th,
.pricing-table td {
    border: 1px solid #ddd !important;
    padding: 12px; }

/* --- extracted from: views/pages/refund.php --- */
.policy-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
}

.policy-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #b89b5e;
}

.policy-header h1 {
    font-size: 42px;
    color: #333;
    margin: 0 0 15px 0;
}

.last-updated {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.policy-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.policy-content h2 {
    font-size: 28px;
    color: #333;
    margin: 40px 0 20px 0;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.policy-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.policy-content h3 {
    font-size: 20px;
    color: #555;
    margin: 25px 0 15px 0;
}

.policy-content p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.policy-content ul, .policy-content ol {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
    color: #444;
}

.policy-content li {
    margin-bottom: 10px;
}

.highlight-box {
    background: #fff9f5;
    border-left: 4px solid #b89b5e;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.contact-box {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
    text-align: center;
}

.contact-box h3 {
    margin-top: 0;
    color: #333;
}

.contact-box a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.contact-box a:hover {
    text-decoration: underline;
}



/* --- extracted from: views/pages/support.php --- */
.mission-intro { background: #fff5ee; padding: 20px; border-radius: 8px; margin-bottom: 30px; border-left: 5px solid #b89b5e; }

/* --- extracted from: views/search/index.php --- */
.search-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.sidebar-form {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}
.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}
.filter-input:focus {
    border-color: #b89b5e;
    outline: none;
}
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.btn-search-full {
    width: 100%;
    padding: 12px;
    background: #b89b5e;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.2s;
}
.btn-search-full:hover {
    background: #e65c00;
}
.range-group {
    display: flex;
    gap: 10px;
}
.range-group input {
    width: 50%;
}
.search-divider {
    margin: 24px 0; 
    border: 0; 
    border-top: 1px solid #eee;
}
.sidebar-section-title {
    margin-bottom: 16px;
    color: #222;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.search-results-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.search-results-count {
    margin: 0;
    font-weight: bold;
    color: #555;
}
.search-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.search-view-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.search-view-btn:hover {
    border-color: #bbb;
    background: #f7f7f7;
}
.search-view-btn.active {
    background: #b89b5e;
    border-color: #b89b5e;
    color: #fff;
}
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --- extracted from: views/user/add-funds.php --- */
.add-funds-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 20px;
}


.page-header p {
    color: #666;
    font-size: 16px;
}

.balance-info {
    background: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

.current-balance {
    color: white;
}

.current-balance .label {
    font-size: 16px;
    opacity: 0.9;
    display: block;
    margin-bottom: 10px;
}

.current-balance .amount {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

.payment-section {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #e0e0e0;
}

.payment-section h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 25px 0;
    text-align: center;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.amount-btn {
    padding: 25px 15px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    color: #333;
}

.amount-btn:hover {
    border-color: #0070ba;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 112, 186, 0.2);
}

.amount-btn.active {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white;
    border-color: #0070ba;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.3);
}

.amount-btn.custom-btn {
    background: #f5f5f5;
    border-style: dashed;
    border-width: 2px;
}

.amount-btn.custom-btn.active {
    background: #333;
    border-color: #333;
    border-style: solid;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #b89b5e;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.custom-amount {
    margin-bottom: 25px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-amount label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.custom-amount input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
}

.custom-amount input:focus {
    outline: none;
    border-color: #0070ba;
}

.selected-amount-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    font-size: 18px;
    margin-bottom: 30px;
    border: 2px solid #0ea5e9;
}

.selected-amount-display strong {
    color: #0369a1;
    font-size: 28px;
    display: block;
    margin-top: 5px;
}

.paypal-button-container-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

#paypal-button-container {
    min-height: 150px;
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    margin: 0 0 15px 0;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}


/* --- extracted from: views/user/dashboard.php --- */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 32px;
    color: #333;
    margin: 0;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    outline: none;
}

.tab-button:hover {
    color: #b89b5e;
    background: rgba(255, 102, 0, 0.05);
}

.tab-button:focus {
    outline: none;
}

.tab-button.active {
    color: #b89b5e;
    border-bottom-color: #b89b5e;
    font-weight: 600;
}

.tab-button.admin-tab {
    margin-left: auto;
    color: #764ba2;
}

.tab-button.admin-tab:hover,
.tab-button.admin-tab.active {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.tab-button svg {
    width: 20px;
    height: 20px;
}

.tab-button i {
    font-size: 16px;
}

.dashboard-content {
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

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

/* Shared: tab panel section headers (billing-tab, gifts-tab, saved-memorials-tab) */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tab-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}



/* --- extracted from: views/user/deposit.php --- */
.deposit-container { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.deposit-container h1 { color: #b89b5e; text-align: center; margin-bottom: 30px; }

/* Current Balance */
.current-balance { background: linear-gradient(135deg, #b89b5e, #ff8800); color: white; padding: 30px; border-radius: 10px; text-align: center; margin-bottom: 40px; }
.current-balance p { margin: 0; font-size: 18px; opacity: 0.9; }
.current-balance h2 { margin: 10px 0 0 0; font-size: 48px; }

/* Payment Methods */
.deposit-methods h2 { text-align: center; color: #333; margin-bottom: 30px; }
/* 
.payment-method { background: white; padding: 30px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.payment-method {color: #999; font-size: 13px; font-style: italic;}
*/

.method-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #f0f0f0; }
.method-header h3 { margin: 0; color: #333; }

/* Buttons */
.btn-paypal { background: #0070ba; border-color: #0070ba; }
.btn-paypal:hover { background: #005ea6; }
.btn-stripe { background: #635bff; border-color: #635bff; }
.btn-stripe:hover { background: #554de8; }

/* Quick Amounts */
.quick-amounts { background: white; padding: 30px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.quick-amounts h3 { text-align: center; margin-bottom: 20px; color: #333; }
.amount-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.amount-btn { padding: 15px; background: #f0f0f0; border: 2px solid #ddd; border-radius: 5px; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.amount-btn:hover { background: #b89b5e; color: white; border-color: #b89b5e; }
.amount-btn.active { background: #b89b5e; color: white; border-color: #b89b5e; }

/* Info */
.deposit-info { background: #f9f9f9; padding: 30px; border-radius: 10px; }
.deposit-info h3 { color: #333; margin-bottom: 20px; }
.deposit-info ul { list-style: none; padding: 0; margin: 0 0 20px 0; }
.deposit-info li { padding: 10px 0; color: #666; }
.deposit-info .note { background: #fff3cd; border-left: 4px solid #ffc107; padding: 15px; color: #856404; margin: 0; }

/* --- extracted from: views/user/payment-success.php --- */
.payment-success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.success-container {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 30px;
    animation: scaleIn 0.5s ease-out;
}

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

.payment-success-page .success-container h1 {
    font-size: 36px;
    color: #333;
    margin: 0 0 20px 0;
}

.success-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.info-box {
    background: #f0f9ff;
    border: 2px solid #dbdbdb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.payment-details {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.payment-details h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.payment-details p {
    margin: 10px 0;
    color: #666;
    font-size: 18px;
}

.payment-details strong {
    color: #333;
}

/* Scoped: global .btn must NOT get flex:1 (breaks all buttons site-wide) */
.payment-success-page .actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-success-page .actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.payment-success-page .actions .btn-primary {
    background: #b89b5e;
    color: white;
}

.payment-success-page .actions .btn-primary:hover {
    background: #b89b5e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.payment-success-page .actions .btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.payment-success-page .actions .btn-secondary:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.support-info {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 14px;
}

.support-info a {
    color: #b89b5e;
    text-decoration: none;
    font-weight: 600;
}

.support-info a:hover {
    text-decoration: underline;
}



/* --- extracted from: views/user/dashboard/billing-tab.php --- */
.billing-tab {
    background: white;
    border-radius: 10px;
    padding: 30px;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.filter-section label {
    font-weight: 600;
    color: #333;
}

.filter-section select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    background: white;
    min-width: 150px;
}

.filter-section select:focus {
    outline: none;
    border-color: #b89b5e;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.transactions-table thead {
    background: #f9f9f9;
    border-bottom: 2px solid #e0e0e0;
}

.transactions-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
}

.transactions-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.transactions-table tbody tr:hover {
    background: #fafafa;
}

.transactions-table td {
    padding: 15px;
    color: #666;
    font-size: 15px;
}

.date-cell {
    white-space: nowrap;
    color: #999;
    font-size: 14px;
}

.description-cell {
    color: #333;
}

.transaction-id {
    color: #999;
    font-family: monospace;
    font-size: 14px;
}

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

.text-right {
    text-align: right;
}

.amount-cell {
    white-space: nowrap;
}

.amount {
    font-weight: 600;
    font-size: 16px;
}

.amount.positive {
    color: #10b981;
}

.amount.negative {
    color: #ef4444;
}

.transactions-table tfoot {
    border-top: 2px solid #e0e0e0;
    background: #f9f9f9;
}

.summary-row td {
    padding: 20px 15px;
    font-size: 16px;
}

.balance-total {
    color: #b89b5e;
    font-size: 20px;
}

.billing-tab .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.billing-tab .btn-primary {
    background: #b89b5e;
    color: white;
}

.billing-tab .btn-primary:hover {
    background: #b89b5e;
}

.billing-tab .btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.billing-tab .btn-secondary:hover {
    background: #e8e8e8;
}



/* --- extracted from: views/user/dashboard/crypt-tab.php --- */
.crypt-tab {
    background: white;
    border-radius: 10px;
    padding: 30px;
    min-height: 600px;
}

.access-denied {
    text-align: center;
    padding: 100px 20px;
    font-size: 24px;
    color: #ef4444;
    font-weight: 600;
}

.crypt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #b89b5e;
}

.crypt-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.crypt-header h2 i {
    color: #b89b5e;
}

.user-role {
    display: flex;
    align-items: center;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-super {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-admin {
    background: #f59e0b;
    color: white;
}

.badge-mod {
    background: #3b82f6;
    color: white;
}

.admin-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    overflow-x: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-item:hover {
    background: #f5f5f5;
    color: #b89b5e;
}

.nav-item.active {
    background: #b89b5e;
    color: white;
    border-color: #b89b5e;
}

.nav-item i {
    font-size: 16px;
}

.admin-content {
    background: #fafafa;
    border-radius: 10px;
    padding: 30px;
    min-height: 400px;
}



/* --- extracted from: views/user/dashboard/gifts-tab.php --- */
.gifts-tab {
    background: white;
    border-radius: 10px;
    padding: 30px;
}

.empty-state { text-align: center; padding: 80px 20px; }
.empty-state h3 { font-size: 24px; color: #333; margin: 16px 0 10px; }
.empty-state p { color: #666; }

/* ── Memorial Hero ── */
.memorial-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 20px;
    margin-bottom: 36px;

    border-radius: 12px;
}
.memorial-hero-avatar {
    display: block;
    width: 250px;
    height:250px;
    border-radius: 8px;
    overflow: hidden;
    border: none; /* 4px solid #b89b5e; */
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.memorial-hero-avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.memorial-hero-name {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    text-align: center;
}
.memorial-hero-name:hover { color: #b89b5e; }
.memorial-hero-age  { font-size: 15px; color: #555; }
.memorial-hero-dates { font-size: 14px; color: #888; }

/* ── Gifts ── */
.gifts-section { margin-bottom: 40px; }
.section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; color: #333; margin: 0 0 20px;
}
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.gift-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    /* Убираем курсор и переходы */
    cursor: default; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: none;
}

/* Убираем эффект увеличения при наведении */
.gift-card:hover {
    border-color: #e0e0e0; /* Оставляем обычный цвет границ */
    transform: none;
    box-shadow: none;
}
.gift-icon { width: 150px; height: 150px; }   /* +50% от 64px */
.gift-icon img { width: 100%; height: 100%; object-fit: contain; }
.gift-icon i   { font-size: 96px; color: #b89b5e; }
.gift-name  { font-size: 15px; font-weight: 600; color: #333; }
.gift-from-label { font-size: 12px; color: #999; }
.gift-donor {
    display: flex;
    flex-direction: column; /* Элементы идут друг под другом */
    align-items: center;    /* Центрирует по горизонтали */
    text-decoration: none;
    color: #333;
    text-align: center;
}
.gift-donor:hover { color: #b89b5e; }
.gift-donor img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}
.gift-donor span {
    margin-top: 5px; /* Отступ имени от аватарки */
    font-size: 13px;
    font-weight: 500;
}
.gift-expires { font-size: 11px; color: #aaa; }

/* ── Services ── */
.services-section { margin-bottom: 30px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: default; /* Изменено с pointer на default */
    transition: all 0.3s;
}

.service-card:hover { 
    /* Можно убрать трансформацию, чтобы карточка не "прыгала" при наведении */
    transform: none; 
    box-shadow: none; 
}
.service-card.active  { border-color: #10b981; background: #f0fdf4; }
.service-card.inactive { opacity: 0.6; }
.service-card.inactive .service-icon { color: #ccc; }
.service-card.active   .service-icon { color: #10b981; }
.service-icon  { font-size: 48px; margin-bottom: 15px; }
.service-name  { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 8px; }
.service-status { font-size: 13px; color: #999; }
.service-status.active { color: #10b981; font-weight: 600; }

/* ── Pagination ── */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 20px; margin-top: 30px; padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}
.page-info { font-size: 16px; color: #666; }

.pagination .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border: none; border-radius: 8px;
    font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s;
}
.pagination .btn-primary  { background: #b89b5e; color: white; }
.pagination .btn-primary:hover  { background: #b89b5e; }
.pagination .btn-secondary { background: #f5f5f5; color: #333; }
.pagination .btn-secondary:hover { background: #e8e8e8; }

.pagination-wrap {display: flex; justify-content: center; align-items: center;
    gap: 6px; margin: 40px 0 20px; flex-wrap: wrap;}
.pag-btn {display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #ddd;
    border-radius: 4px; text-decoration: none; color: #555; background: #fff;
    font-weight: 600; transition: 0.2s;}
.pag-btn:hover {background: #f0f0f0;}
.pag-btn.pag-active {background: #b89b5e; color: #fff; border-color: #b89b5e;    pointer-events: none;}
.pag-dots {color: #aaa; padding: 0 4px;}

.pagination-mobile { display: none; }
.pag-info { font-size: 14px; color: #666; line-height: 38px; }

/* --- extracted from: views/user/dashboard/my-memorials-tab.php --- */
/* ОБЩИЕ СТИЛИ */
.my-memorials-tab { background: #fff; border-radius: 10px; padding: 30px; }
.my-memorial-list { display: flex; flex-direction: column; gap: 14px; }
.my-memorial-row-wrap { display: flex; align-items: center; gap: 12px; }
.status-indicator { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.status-green { background: #10b981; } .status-yellow { background: #f59e0b; } .status-gray { background: #9ca3af; }

/* ДЕСТКОП (согласно comp.jpg) */
.my-memorial-row { 
    flex: 1; display: grid; grid-template-columns: 150px 1fr auto; 
    align-items: center; gap: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; 
}
.my-memorial-col-avatar { width: 150px; height: 150px; }
.memorial-photo-link { position: relative; display: block; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; }
.memorial-photo-link img { width: 100%; height: 100%; object-fit: cover; }
.memorial-block-overlay { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.overlay-left i { color: #b89b5e; margin-right: 5px; }
.candle-icon-gif-list { width: 40px; height: 40px; }

.my-memorial-content { display: contents; } /* Позволяет дочерним элементам участвовать в гриде родителя */
.my-memorial-info { display: flex; flex-direction: column; gap: 8px; }
.memorial-name-link { font-size: 24px; font-weight: 700; color: #1f2937; text-decoration: none; }
.memorial-life-row { font-size: 14px; color: #4b5563; }
.memorial-metrics { display: flex; gap: 15px; color: #4b5563; font-size: 14px; }
.mobile-only-divider { display: none; border: 0; border-top: 1px solid #eee; margin: 10px 0; }

.my-memorial-actions { display: flex; gap: 10px; }
.btn-edit, .btn-delete { padding: 10px 30px; border-radius: 8px; font-weight: bold; border: none; cursor: pointer; text-decoration: none; text-align: center; }
.btn-edit { background: #3498db; color: #fff;}
.btn-edit:hover { background: #53b7fb; color: #023667;}
.btn-delete { background: #f6f3f3; color: #ff0000; }
.btn-delete:hover { background: #ff0000; color: #fff; }

/* МОБИЛКА (согласно mobil.jpg) */


/* Общие стили для возраста (вне медиа-запроса) */
.memorial-age-line {
    font-size: 16px;
    color: #4b5563;    
    
    
}

/* --- extracted from: views/user/dashboard/profile-tab.php --- */
.profile-tab {
    background: white;
    border-radius: 10px;
    padding: 30px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Left Column */
.profile-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.avatar-section {
    text-align: center;
}

.avatar-preview {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-badge-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
}

.verified-badge-icon i {
    color: #3498db;
    font-size: 24px;
    display: block;
    line-height: 1;
}


.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #b89b5e;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255,102,0,0.3);
}

.avatar-upload-btn:hover {
    background: #b89b5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,102,0,0.4);
}

.avatar-hint {
    margin-top: 10px;
    font-size: 13px;
    color: #999;
}

.balance-section {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balance-label {
    color: #666;
    font-size: 14px;
}

.balance-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.balance-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-tab .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-block {
    width: 100%;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
    color: #fff;
}

.btn-orange {
    background: #b89b5e;
    color: white;
}

.btn-orange:hover {
    background: #b89b5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}

/* Profile tab only — do not override global .btn-primary / .btn-secondary */
.profile-tab .btn-primary {
    background: #667eea;
    color: white;
}

.profile-tab .btn-primary:hover {
    background: #5568d3;
}

.profile-tab .btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.profile-tab .btn-secondary:hover {
    background: #d0d0d0;
}

/* Right Column */
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.form-section.trusted-contact {
    background: #fff9f0;
    border: 2px solid #ffe4b3;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.section-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.info-tooltip {
    cursor: help;
    color: #b89b5e;
}

.account-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.account-type-toggle input[type="radio"] {
    display: none;
}

.toggle-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.account-type-toggle input[type="radio"]:checked + .toggle-option {
    border-color: #b89b5e;
    background: #fff5f0;
    color: #b89b5e;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b89b5e;
}

.form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.input-with-checkbox {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-with-checkbox input[type="email"],
.input-with-checkbox input[type="tel"] {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stealth-section {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
}

.logout-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.stealth-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.stealth-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.stealth-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: #10b981;
}

.stealth-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-text {
    font-weight: 500;
    color: #333;
}

.btn-block {
    width: 100%;
}

.text-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link.danger {
    color: #ef4444;
}

.text-link.danger:hover {
    color: #dc2626;
}



/* --- extracted from: views/user/dashboard/saved-memorials-tab.php --- */
/* 1. Стили самого контейнера таба (границы, фон) */
.saved-memorials-tab {
    background: white;
    border-radius: 10px;
    padding: 30px;

}

/* 2. Заголовок — .tab-header shared (after dashboard.php) */

/* 3. Сетка */
.saved-memorials-container { width: 100%; margin-top: 20px; }
.saved-memorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}
.saved-memorial-item {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
}

/* 4. Кнопка и пустые состояния (как у тебя было) */
.empty-state { text-align: center; padding: 80px 20px; }
.btn-primary {
    background: #b89b5e;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}





/* --- extracted from: views/user/dashboard/crypt-modules/blog.php --- */
/* Заголовок */
.module-header-container { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.module-title h3 { margin: 0; font-size: 20px; font-weight: 700; color: #1a1a1a; }
.module-title p { margin: 5px 0 0; font-size: 13px; color: #9ca3af; }

.btn-create-post { 
    background: #b89b5e; color: #fff; padding: 10px 18px; border-radius: 8px; 
    text-decoration: none; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.btn-create-post:hover { background: #e65c00; box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15); }

/* Контролы */
.admin-controls-bar { 
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; 
    padding: 12px 18px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.admin-filters { display: flex; gap: 15px; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; }
.filter-group select { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; outline: none; background: #fff; }

.admin-sort { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.admin-sort label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; }
.sort-buttons { display: flex; gap: 4px; }
.sort-btn { 
    width: 34px; height: 34px; border-radius: 6px; border: 1px solid #e5e7eb; 
    background: #f9fafb; color: #6b7280; cursor: pointer; transition: 0.2s;
}
.sort-btn:hover { background: #f3f4f6; color: #111827; }
.sort-btn.active { background: #b89b5e; color: #fff; border-color: #b89b5e; }

/* Таблица */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.admin-table th { background: #f9fafb; padding: 14px 15px; text-align: left; font-size: 11px; text-transform: uppercase; color: #6b7280; border-bottom: 2px solid #f3f4f6; }
.admin-table td { padding: 12px 15px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }

.td-id { font-family: monospace; color: #9ca3af; font-size: 12px; }
.td-date { font-size: 13px; color: #4b5563; }
.date-wrapper { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.date-wrapper i { color: #9ca3af; font-size: 12px; }

.post-info-cell { display: flex; align-items: center; gap: 12px; }
.post-mini-img { width: 45px; height: 32px; border-radius: 4px; overflow: hidden; background: #f3f4f6; flex-shrink: 0; }
.post-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #d1d5db; }

.post-title-text strong { display: block; font-size: 14px; color: #111827; line-height: 1.2; margin-bottom: 2px; }
.post-slug { font-size: 11px; color: #9ca3af; font-family: monospace; }

.author-name { font-size: 13px; color: #4b5563; }

/* Статусы */
.status-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.status-badge.published { background: #dcfce7; color: #15803d; }
.status-badge.draft { background: #f3f4f6; color: #4b5563; }

.td-stats { font-size: 13px; color: #6b7280; }

/* Кнопки действий */
.admin-actions-row { display: flex; gap: 4px; }
.act-btn { 
    width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; 
    justify-content: center; text-decoration: none; border: 1px solid #e5e7eb; 
    background: #fff; color: #6b7280; transition: 0.2s; cursor: pointer;
}
.act-btn:hover { background: #f9fafb; color: #111827; }
.act-btn.delete:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.act-btn i { font-size: 12px; }

/* Пустое состояние */
.empty-state { text-align: center; padding: 50px; background: #fff; border-radius: 12px; border: 2px dashed #e5e7eb; color: #9ca3af; }
.empty-icon { font-size: 40px; margin-bottom: 10px; }



/* --- extracted from: views/user/dashboard/crypt-modules/comments.php --- */
.cm-wrap { font-size: 14px; }

/* Header */
.cm-header { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.cm-header-left { display:flex; flex-direction:column; gap:8px; }
.cm-header h3 { margin:0; font-size:18px; color:#1a1a1a; display:flex; align-items:center; gap:8px; }
.cm-total { font-size:12px; font-weight:400; color:#9ca3af; }

/* Filter tabs */
.cm-filter-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.cm-tab { padding:5px 12px; border-radius:20px; font-size:12px; font-weight:600; text-decoration:none; color:#6b7280; background:#f3f4f6; border:1px solid #e5e7eb; transition:all .15s; }
.cm-tab:hover { border-color:#b89b5e; color:#b89b5e; }
.cm-tab.active { background:#b89b5e; color:#fff; border-color:#b89b5e; }

/* Trash button */
.cm-btn-trash { padding:7px 14px; background:#fef2f2; color:#b91c1c; border:1px solid #fca5a5; border-radius:5px; font-size:13px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:6px; }
.cm-btn-trash:hover { background:#fee2e2; }

/* List */
.cm-list { display:flex; flex-direction:column; gap:4px; }
.cm-row { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #e5e7eb; border-radius:7px; padding:10px 12px; flex-wrap:wrap; }
.cm-row:hover { border-color:#b89b5e; background:#fffbf7; }

.cm-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; display:inline-block; }

/* Memorial avatar (square) */
.cm-mem-avatar { flex-shrink:0; }
.cm-mem-avatar img { width:40px; height:40px; object-fit:cover; border-radius:5px; border:1px solid #e5e7eb; display:block; }
.cm-mem-avatar:hover img { border-color:#b89b5e; }

.cm-date { font-size:11px; color:#9ca3af; white-space:nowrap; flex-shrink:0; }

/* User avatar (round) */
.cm-user-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; border:2px solid #e5e7eb; flex-shrink:0; }

/* Comment text */
.cm-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.cm-author-box { display: flex; align-items: center; gap: 8px; }
.cm-author { font-size:12px; font-weight:700; color:#374151; }
.cm-msg { font-size:13px; color:#1a1a1a; line-height:1.4; word-break:break-word; }

/* Actions */
.cm-actions-footer { display: flex; align-items: center; gap: 10px; }
.cm-actions { display:flex; gap:4px; flex-shrink:0; }
.ca-btn { padding:5px 9px; border-radius:5px; font-size:12px; border:none; cursor:pointer; display:inline-flex; align-items:center; gap:3px; transition:opacity .15s; }
.ca-btn:hover:not(:disabled) { opacity:.8; }
.ca-btn:disabled { opacity:.35; cursor:not-allowed; }
.ca-activate { background:#dcfce7; color:#166534; }
.ca-delete   { background:#fef2f2; color:#b91c1c; }
.ca-ban      { background:#1a1a1a; color:#fff; }

/* Empty */
.cm-empty { text-align:center; padding:50px 20px; color:#9ca3af; }
.cm-empty i { font-size:40px; display:block; margin-bottom:10px; }

/* Pagination */


/* Modal */
.cm-modal { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9999; display:flex; align-items:center; justify-content:center; }
.cm-modal-box { background:#fff; border-radius:10px; padding:28px; width:90%; max-width:360px; text-align:center; }
.cm-modal-box p { font-size:15px; font-weight:600; color:#1a1a1a; margin:0 0 20px; }
.cm-modal-btns { display:flex; gap:10px; justify-content:center; }

/* МОБИЛЬНАЯ АДАПТАЦИЯ */


/* --- extracted from: views/user/dashboard/crypt-modules/dashboard.php --- */
.dashboard-module h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: #333;
    margin: 0 0 30px 0;
}

.stats-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.stats-section h4 {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px; 

}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.pending-cards {
    display: grid;
   grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 20px;
}

.pending-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.pending-card.has-pending {
    background: #fef3c7;
    border-color: #f59e0b;
}

.pending-card i {
    font-size: 36px;
    color: #999;
}

.pending-card.has-pending i {
    color: #f59e0b;
}

.pending-count {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.pending-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.btn-view {
    margin-top: 10px;
    padding: 8px 20px;
    background: #b89b5e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.btn-view:hover {
    background: #b89b5e;
}

.financial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.financial h4 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.financial-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.financial-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.financial-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.financial-note {
    font-size: 12px;
    opacity: 0.7;
}

.expenses-section h5 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.expense-item {
    margin-bottom: 15px;
}

.expense-bar {
    height: 30px;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: width 0.5s;
}

.expense-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.expense-label {
    opacity: 0.9;
}

.expense-value {
    font-weight: 600;
}



/* --- extracted from: views/user/dashboard/crypt-modules/memorials.php --- */
.mm-wrap { font-size: 14px; }

/* Header */
.mm-header { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.mm-header h3 { margin:0; font-size:18px; color:#1a1a1a; display:flex; align-items:center; gap:8px; }
.mm-total { font-size:12px; font-weight:400; color:#9ca3af; }

/* Filters */
.mm-filters { margin-bottom:16px; }
.mm-filter-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.mm-filter-row2 { gap:8px; }
.mm-search-wrap { display:flex; }
.mm-search-wrap input { padding:7px 12px; border:1px solid #e5e7eb; border-right:none; border-radius:5px 0 0 5px; font-size:13px; outline:none; width:200px; }
.mm-search-wrap input:focus { border-color:#b89b5e; }
.mm-btn-search { padding:7px 12px; background:#b89b5e; color:#fff; border:none; border-radius:0 5px 5px 0; cursor:pointer; }
.mm-filters select { padding:7px 10px; border:1px solid #e5e7eb; border-radius:5px; font-size:13px; background:#fff; cursor:pointer; outline:none; }
.mm-filters select:focus { border-color:#b89b5e; }
.mm-sort-label { font-size:12px; color:#6b7280; white-space:nowrap; }
.mm-sort-btns, .mm-sort-group { display:flex; align-items:center; gap:3px; }
.mm-sort-btn { padding:5px 8px; border:1px solid #e5e7eb; border-radius:4px; text-decoration:none; color:#374151; font-size:13px; }
.mm-sort-btn:hover { background:#f3f4f6; }
.mm-sort-btn.active { background:#b89b5e; color:#fff; border-color:#b89b5e; }
.mm-age-range { display:flex; align-items:center; gap:4px; }
.mm-age-range input { width:70px; padding:6px 8px; border:1px solid #e5e7eb; border-radius:5px; font-size:13px; outline:none; }
.mm-age-range input:focus { border-color:#b89b5e; }
.mm-btn-apply { padding:6px 10px; background:#6b7280; color:#fff; border:none; border-radius:5px; cursor:pointer; font-size:12px; }

/* Row */
.mm-list { display:flex; flex-direction:column; gap:6px; }
.mm-row { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:10px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.mm-row:hover { border-color:#b89b5e; background:#fffbf7; }

.mm-row-info { display:flex; align-items:center; gap:12px; flex-wrap:wrap; flex:1; min-width:0; }

/* ID + plan */
.mm-col-id { display:flex; align-items:center; gap:5px; flex-shrink:0; }
.mm-dot { display:inline-block; width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.mm-id { font-size:12px; color:#9ca3af; white-space:nowrap; }
.mm-plan { font-size:16px; line-height:1; }

/* Avatar */
.mm-avatar-link { flex-shrink:0; }
.mm-avatar { width:44px; height:44px; object-fit:cover; border-radius:5px; border:2px solid #e5e7eb; display:block; }

/* Name + meta */
.mm-col-main { flex:1; min-width:120px; }
.mm-name { font-weight:700; color:#1a1a1a; text-decoration:none; font-size:14px; display:block; line-height:1.3; }
.mm-name:hover { color:#b89b5e; }
.mm-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:4px; font-size:12px; color:#6b7280; }
.mm-gender { display:inline-block; padding:1px 5px; border-radius:3px; font-weight:700; font-size:11px; text-transform:uppercase; }
.mm-gender.m { background:#dbeafe; color:#1d4ed8; }
.mm-gender.f { background:#fce7f3; color:#be185d; }
.mm-gift { opacity:.25; }
.mm-gift.has-gift { opacity:1; }

/* Creator */
.mm-creator img { width:30px; height:30px; border-radius:50%; object-fit:cover; border:2px solid #e5e7eb; display:block; flex-shrink:0; }
.mm-creator:hover img { border-color:#b89b5e; }

/* Actions */
.mm-row-actions { display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
.ma-btn { padding:5px 10px; border-radius:5px; font-size:12px; border:none; cursor:pointer; display:inline-flex; align-items:center; gap:4px; font-weight:600; transition:opacity .15s; }
.ma-btn:hover { opacity:.8; }
.ma-approve { background:#dcfce7; color:#166534; }
.ma-stealth { background:#f5f3ff; color:#6d28d9; }
.ma-reject  { background:#fef9c3; color:#854d0e; }
.ma-delete  { background:#fef2f2; color:#b91c1c; }
.mm-restricted { font-size:12px; color:#9ca3af; }

/* Empty */
.mm-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.mm-empty i { font-size:48px; display:block; margin-bottom:12px; }

/* Pagination */




/* --- extracted from: views/user/dashboard/crypt-modules/settings.php --- */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
}

.settings-section h4 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.setting-item input[type="text"],
.setting-item input[type="email"],
.setting-item input[type="url"],
.setting-item input[type="number"] {
    width: 100%;
    max-width: 500px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

.setting-item input[type="checkbox"] {
    margin-right: 10px;
}

.settings-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #b89b5e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}


/* --- extracted from: views/user/dashboard/crypt-modules/users.php --- */
/* ── Основной контейнер ── */
.um-wrap { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px; 
    color: #374151;
}

/* ── Шапка ── */
.um-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 16px; 
    margin-bottom: 24px; 
}
.um-header h3 { 
    margin: 0; 
    font-size: 20px; 
    color: #111827; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.um-total { font-size: 13px; font-weight: 400; color: #6b7280; background: #f3f4f6; padding: 2px 8px; border-radius: 12px; }

/* ── Поиск и фильтры ── */
.um-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; width: 100%; justify-content: space-between; }


.um-search-form { display: flex; flex: 1; min-width: 240px; }
.um-search-form input { 
    flex: 1;
    padding: 8px 12px; 
    border: 1px solid #d1d5db; 
    border-right: none; 
    border-radius: 6px 0 0 6px; 
    font-size: 14px; 
    outline: none; 
    transition: border-color 0.2s;
}
.um-search-form input:focus { border-color: #b89b5e; }
.um-search-form button { padding: 8px 16px; background: #b89b5e; color: #fff; border: none; border-radius: 0 6px 6px 0; cursor: pointer; }

.um-select { 
    padding: 8px 12px; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    font-size: 14px; 
    background: #fff; 
    cursor: pointer; 
    outline: none; 
}

/* ── Таблица (Desktop) ── */
.um-table-wrap { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; overflow: hidden; }
.um-table { width: 100%; border-collapse: collapse; }
.um-table th { 
    background: #f9fafb; 
    padding: 12px 16px; 
    text-align: left; 
    font-size: 12px; 
    font-weight: 600; 
    color: #4b5563; 
    text-transform: uppercase; 
    letter-spacing: .03em; 
    border-bottom: 1px solid #e5e7eb; 
}
.um-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.um-table tr:last-child td { border-bottom: none; }
.um-table tr:hover td { background: #fdfdfd; }

/* ── Контент ячеек ── */
.um-indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.um-id { color: #9ca3af; font-family: monospace; font-size: 12px; }
.um-user-info { display: flex; align-items: center; gap: 12px; }
.um-avatar-wrap { position: relative; width: 40px; height: 40px; }
.um-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #f3f4f6; }
.um-badge { 
    position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; 
    border-radius: 50%; background: #9ca3af; border: 2px solid #fff; 
    font-size: 9px; display: flex; align-items: center; justify-content: center; color: #fff; 
}
.um-badge.verified { background: #00b4df; }
.um-name { font-weight: 600; color: #111827; margin-bottom: 2px; }
.um-status-label { font-size: 11px; font-weight: 500; text-transform: uppercase; }

/* ── Кнопки действий ── */
.um-actions { display: flex; gap: 6px; justify-content: flex-end; }
.ua-btn { 
    width: 32px; height: 32px; border-radius: 6px; border: none; 
    display: inline-flex; align-items: center; justify-content: center; 
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.ua-btn i { font-size: 14px; }
.ua-wallet { background: #eff6ff; color: #2563eb; }
.ua-edit { background: #f3f4f6; color: #4b5563; }
.ua-activate { background: #ecfdf5; color: #059669; }
.ua-stealth { background: #f5f3ff; color: #7c3aed; }
.ua-ban { background: #fff1f2; color: #e11d48; }
.ua-delete { background: #fff1f2; color: #be123c; border: 1px solid #fecaca; }
.ua-btn:hover { transform: translateY(-1px); filter: brightness(0.95); }

/* ── Пагинация ── */
.mm-pagination, .um-pagination, .cm-pagination { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-top: 20px; 
    padding-top: 16px; 
    border-top: 1px solid #e5e7eb; 
}

/* Контейнеры для выбора кол-ва элементов и навигации */
.mm-perpage, .um-perpage, .cm-perpage,
.mm-pages, .um-pages, .cm-pages { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

/* Кнопки выбора страниц (10, 50, 100) */
.mm-pp, .um-pp, .cm-pp { 
    padding: 6px 12px; 
    border-radius: 6px; 
    border: 1px solid #d1d5db; 
    text-decoration: none; 
    color: #374151; 
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
}

/* Активная страница */
.mm-pp.active, .um-pp.active, .cm-pp.active { 
    background: #b89b5e; 
    color: #fff !important; 
    border-color: #b89b5e; 
}

/* Кнопки Назад/Вперед */
.mm-nav, .um-nav, .cm-nav { 
    padding: 8px 16px; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    text-decoration: none; 
    color: #374151; 
    background: #fff; 
    font-size: 14px;
}

/* Состояние Disabled */
.mm-nav.disabled, .um-nav.disabled, .cm-nav.disabled { 
    opacity: 0.4; 
    pointer-events: none; 
}

/* Текст "1 / 10" */
.mm-pageinfo, .um-pageinfo, .cm-pageinfo { 
    font-size: 13px; 
    color: #6b7280; 
    white-space: nowrap; 
}

.date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.date-input-wrap .date-field {
    width: 100%;
    padding-right: 40px;
}
.date-picker-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #b89b5e;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}
.date-picker-btn:hover {
    color: #a0844a;
}
.flatpickr-calendar .flatpickr-months .flatpickr-month {
    overflow: visible !important;
    height: 42px !important;
    line-height: 42px !important;
}

.flatpickr-calendar .flatpickr-current-month {
    padding-top: 0 !important;
    line-height: 42px !important;
    height: 42px !important;
}

.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-current-month input.cur-year {
    line-height: inherit !important;
    vertical-align: middle !important;
}
.btn-reset-filters {
    display: block;
    text-align: center;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}
.btn-reset-filters:hover {
    color: #b89b5e;
}

.video-section {
  padding: 60px 20px;
}

.video-wrapper {
/*  max-width: 820px; */
  width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

/* ========== Responsive & print (grouped by breakpoint) ========== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
}

@media print {
    header, nav, footer, .btn, .mobile-menu-toggle, .scroll-to-top {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    body {
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .memorial-page {
        max-width: 100%;
        box-shadow: none;
    }
    
    .sidebar-utility, .sidebar-share, .sidebar-actions, .btn-action, .btn-utility, .btn-share, nav, header .header-right, .photo-thumbs, .memorial-modal, .badge-favorite {
        display: none !important;
    }
    
    .side-col .sidebar-created, .sidebar-stats, .sidebar-music, .gift-row {
        display: block;
    }
    
    .photo-main .badge-candle, .photo-main .badge-gifts {
        opacity: .9;
    }
}


@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav a {
        padding: 12px 15px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .dashboard-tabs {
        width: 100%;
        justify-content: space-around;
        gap: 5px;
        overflow-x: visible;
    }
    
    .tab-button {
        flex-direction: column;
        font-size: 11px;
        padding: 10px 5px;
        gap: 5px;
        flex: 1;
        min-width: 0;
    }
    
    .tab-button i {
        font-size: 22px;
    }
}

@media (min-width: 769px) {
    .btn-add, .user-profile-link img, .btn-login {
        transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out !important;
    }
    
    .btn-add:hover, .user-profile-link:hover img, .btn-login:hover {
        transform: scale(1.05) !important;
    }
    
    .btn-add:active, .user-profile-link:active img {
        transform: scale(0.95) !important;
    }
    
    .btn-add:hover {
        background-color: #dfbc75 !important;
    }
}

@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .secondary-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    nav li {
        width: auto;
        border-bottom: none;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .memorial-card .photo {
        height: 150px;
    }
}

@media (max-width: 991px) {
    .details-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .details-value {
        text-align: left;
    }
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .admin-sort {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .admin-sort select, .admin-sort .admin-btn {
        width: 100%;
    }
    
    .admin-table thead {
        display: none;
    }
    
    .admin-table tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
        position: relative;
    }
    
    .admin-table td {
        display: block;
        width: 100% !important;
        padding: 5px 0 !important;
        border: none !important;
    }
    
    .td-info {
        order: 1;
    }
    
    .td-stats {
        display: flex !important;
        order: 2;
        font-size: 12px;
        color: #6b7280;
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .td-status {
        order: 3;
        margin-bottom: 10px;
    }
    
    .td-actions {
        order: 4;
        border-top: 1px solid #f3f4f6 !important;
        padding-top: 10px !important;
        justify-content: flex-start;
    }
    
    .author-name {
        display: block !important;
        font-size: 12px;
        margin-top: 4px;
    }
    
    .post-title {
        font-size: 16px;
    }
}

@media (max-width: 860px) {
    .my-memorial-row {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .my-memorial-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .my-memorial-col-avatar {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    
    .mobile-only-divider {
        display: block;
        width: 80%;
    }
    
    .my-memorial-actions {
        width: 100%;
        margin-top: 15px;
    }
    
    .btn-edit, .btn-delete {
        flex: 1;
    }
    
    .my-memorial-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .memorial-metrics {
        justify-content: center;
        width: 100%;
    }
    
    .memorial-age-line {
        font-weight: 600;
        color: #1f2937;
        margin-top: 2px;
    }
    
    .memorial-life-row {
        margin-top: 2px;
        color: #6b7280;
    }
}

@media (max-width: 768px) {
    
    .stat-icon {
    width: 40px;
    height: 40px;
font-size: 20px;
    flex-shrink: 0;
}
    
    
    .create-memorial-container .form-row {
        grid-template-columns: 1fr;
    }
    
    .create-memorial-container .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .create-memorial-container .photo-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .create-memorial-container .media-item {
        flex-wrap: wrap;
    }
    
    .memorial-grid.memorial-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-name {
        display: none;
    }
    
    .user-profile-link {
        padding: 0;
        background: transparent;
        margin-left: 10px;
    }
    
    .btn-login {
        display: none;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .memorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-nav-links {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .home-nav-links a span {
        display: none;
    }
    
    .home-nav-links a {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
    
    .home-nav-links a i {
        font-size: 20px;
    }
    
    .memorial-layout.row-8-4 {
        display: flex;
        flex-direction: column;
    }
    
    .memorial-saved-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-table th:nth-child(5), .posts-table td:nth-child(5) {
        display: none;
    }
    
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-header-actions {
        width: 100%;
    }
    
    .btn-preview, .btn-draft, .btn-publish {
        flex: 1;
        text-align: center;
    }
    
    .post-hero-title {
        font-size: 26px;
    }
    
    .post-hero {
        min-height: 300px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .post-body {
        font-size: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
    }
    
    .media-item {
        flex-wrap: wrap;
    }
    
    .media-item button {
        flex-shrink: 0;
    }
    
    #existingPhotosGrid, #newPhotosGrid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        margin-bottom: 10px;
    }
    
    #newPhotosGrid:empty {
        margin: 0;
    }
    
    .about-hero h1 {
        font-size: 32px;
    }
    
    .about-hero .tagline {
        font-size: 16px;
    }
    
    .values-grid, .feature-list {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary, .btn-support {
        width: 100%;
    }
    
    .pricing-header h1 {
        font-size: 32px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 20px;
    }
    
    .policy-header h1 {
        font-size: 32px;
    }
    
    .policy-content {
        padding: 25px 20px;
    }
    
    .policy-content h2 {
        font-size: 24px;
    }
    
    .search-layout {
        grid-template-columns: 1fr;
    }
    
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .current-balance .amount {
        font-size: 36px;
    }
    
    .selected-amount-display strong {
        font-size: 24px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .dashboard-tabs {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2px;
        padding: 5px 0;
        border-bottom: 1px solid #eee;
    }
    
    .tab-button {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 2px;
        min-width: 0;
        background: transparent;
        border: none;
        font-size: 0 !important;
        transition: all 0.2s ease;
    }
    
    .tab-button i {
        font-size: 20px !important;
        height: 24px;
        display: flex;
        align-items: center;
        margin-bottom: 0;
    }
    
    .tab-button.active {
        font-size: 9px !important;
        color: #b89b5e;
        background: rgba(184, 155, 94, 0.05);
        border-radius: 8px;
        font-weight: 600;
        text-transform: uppercase;
        min-height: 55px;
        white-space: normal;
        text-align: center;
        line-height: 1.1;
    }
    
    .tab-button.active i {
        margin-bottom: 6px !important;
        color: #b89b5e;
    }
    
    .success-container {
        padding: 40px 25px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .success-icon {
        font-size: 60px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        min-width: 100%;
    }
    
    .tab-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .transactions-table {
        font-size: 13px;
    }
    
    .transactions-table th, .transactions-table td {
        padding: 10px 8px;
    }
    
    .date-cell {
        font-size: 12px;
    }
    
    .description-cell {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .crypt-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .crypt-header h2 {
        font-size: 22px;
    }
    
    .admin-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-item {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .gifts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .gift-icon {
        width: 100px;
        height: 100px;
    }
    
    .gift-card {
        padding: 15px;
    }
    
    .saved-memorials-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .dashboard-container {
        padding: 15px;
    }
    
    .stats-grid, .financial-grid, .pending-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .financial-card {
        padding: 15px;
    }
    
    .financial-value {
        font-size: 24px;
    }
    
    .pending-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .pending-info {
        margin: 10px 0;
    }
    
    h4 {
        font-size: 18px;
    }
    
    .um-table-wrap {
        border: none;
        background: none;
        box-shadow: none;
    }
    
    .um-table, .um-table thead, .um-table tbody, .um-table th, .um-table td, .um-table tr {
        display: block;
    }
    
    .um-table thead {
        display: none;
    }
    
    .um-row {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        margin-bottom: 16px;
        padding: 12px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    
    .um-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 4px;
        border-bottom: 1px solid #f3f4f6;
        text-align: right;
    }
    
    .um-table td:last-child {
        border-bottom: none;
    }
    
    .um-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 11px;
        color: #6b7280;
        text-align: left;
    }
    
    .td-user {
        flex-direction: row-reverse;
        gap: 12px;
    }
    
    .td-user::before {
        display: none;
    }
    
    .um-user-info {
        text-align: right;
        width: 100%;
        justify-content: flex-end;
    }
    
    .td-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .td-actions::before {
        text-align: center;
        margin-bottom: 8px;
        width: 100%;
    }
    
    .um-actions {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }
    
    .ua-btn {
        flex: 1;
        height: 38px;
    }
    
    .create-memorial-container .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .create-memorial-container .form-actions button, .create-memorial-container .form-actions .btn-cancel {
        width: 100%;
        text-align: center;
        padding: 14px;
    }
    
    .stats-grid > *, .financial-grid > *, .pending-grid > * {
        min-width: 0;
        max-width: 100%;
    }
    
    table {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .posts-table-wrap, .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    
    .memorial-block-dates {
        font-size: 8px;
    }
    
    .memorial-block-profession {
        display: none !important;
    }

    .um-controls {width: auto;}

.search-view-toggle {display: none !important;}        
    
}

@media (max-width: 767px) {
    header .container {
        flex-direction: row !important;
        text-align: center;
        gap: 10px;
        justify-content: space-between !important;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 4;
        margin-left: 10px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        position: fixed;
        top: 0;
        left: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        height: 100vh;
        padding: 80px 20px 20px;
        z-index: 1000;
    }
    
    nav ul.active {
        display: flex !important;
        position: fixed !important;
        top: 63px !important;
        left: 0;
        width: 100%;
        height: calc(100vh - 63px) !important;
        background: #1a1a1a !important;
        flex-direction: column !important;
        padding: 20px !important;
        z-index: 1000 !important;
    }
    
    nav li {
        width: 100%;
        border-bottom: 1px solid #404040;
    }
    
    nav a {
        padding: 20px;
        width: 100%;
        text-align: left;
        font-size: 18px;
    }
    
    nav .user-menu {
        margin-left: 0;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 15px;
    }
    
    table {
        font-size: 12px;
        min-width: auto;
    }
    
    th, td {
        padding: 8px 6px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], textarea, select {
        font-size: 16px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
    .memorial-card .photo {
        height: 150px;
    }
    
    .hero-search {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-search-input {
        width: 100%;
        font-size: 16px;
        border-radius: 5px 0 0 5px;
        padding-right: 70px;
    }
    
    .hero-search-btn {
        width: 60px;
        min-width: 60px;
        padding: 15px;
        border-radius: 0 5px 5px 0;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content {
        padding: 60px 20px;
    }
    
    .hero-search-form {
        flex-direction: row;
        position: relative;
    }
    
    .hero-search-btn .btn-text {
        display: none;
    }
    
    .hero-search-btn .btn-icon {
        display: inline-block;
        font-size: 18px;
    }
    
    .slider-prev, .slider-next {
        display: none !important;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .logo-link {
        flex: 1;
        order: 1;
    }
    
    .logo-link span {
        font-size: 16px;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .user-info {
        display: none;
        order: 2;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .btn-create-memorial-mobile {
        display: flex;
        order: 3;
        margin-left: auto;
    }
    
    .desktop-text {
        display: none !important;
    }
    
    .mobile-text {
        display: inline !important;
    }
    
    .header-right {
        gap: 12px !important;
        margin-left: auto !important;
        display: flex !important;
    }
    
    .btn-add {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: #b89b5e !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        order: 1 !important;
    }
    
    .btn-add .desktop {
        display: none !important;
    }
    
    .btn-add .mobile {
        display: flex !important;
    }
    
    .btn-add .mobile i {
        font-size: 20px !important;
        color: #ffffff !important;
        font-weight: 900 !important;
    }
    
    .btn-login {
        display: none !important;
    }
    
    .user-profile-link {
        order: 2 !important;
        margin: 0 !important;
        display: flex !important;
    }
    
    .burger {
        display: block !important;
        order: 3 !important;
        margin-left: 5px !important;
    }
    
    .user-name {
        display: none !important;
    }
}

@media (max-width:700px) {
    .mm-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mm-row-actions {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .timeline-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-header {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .blog-post-title {
        font-size: 24px;
    }
    
    .blog-post-cover {
        aspect-ratio: 16/9;
    }
    
    .cm-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        position: relative;
        padding-top: 45px !important;
        gap: 12px !important;
    }
    
    .cm-dot {
        position: absolute;
        top: 18px;
        left: 12px;
    }
    
    .cm-mem-avatar {
        position: absolute;
        top: 10px;
        left: 28px;
    }
    
    .cm-mem-avatar img {
        width: 32px !important;
        height: 32px !important;
    }
    
    .cm-text {
        width: 100% !important;
    }
    
    .cm-actions-footer {
        width: 100% !important;
        justify-content: space-between;
        margin-top: 5px;
        padding-top: 10px;
        border-top: 1px solid #f3f4f6;
    }
    
    .cm-user-avatar {
        width: 24px !important;
        height: 24px !important;
    }
}

@media (max-width: 560px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-filters {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .blog-header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width:520px) {
    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    .stat-box h3 {
        font-size: 32px;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .memorial-card .photo {
        height: 200px;
    }
    
    .memorial-header-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .badge-plan {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .memorial-header-text {text-align: center;}
    .memorial-title {font-size: 24px;}
    .amount-options {grid-template-columns: repeat(2, 1fr);}
    .pagination-wrap {gap: 4px;}
    .pag-btn {min-width: 32px; height: 32px; padding: 0 7px; font-size: 13px;}
    .pag-dots {padding: 0 2px;}
    
    .search-results .pagination-desktop { display: none; }
    .search-results .pagination-mobile { display: flex; }

.candle-icon-gif { width: 40px !important; height: 40px !important; }
.candle-icon-gif-list { width: 40px !important; height: 40px !important; }
   
}

