:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #ec4899;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

[data-theme="dark"] {
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}


/* Search Loading */
.search-loading {
    text-align: center;
    padding: 40px 20px;
}

.search-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-loading p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.search-stage-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: 8px;
}

.search-not-found {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 500;
}

.search-error {
    text-align: center;
    color: #ef4444;
    padding: 20px;
}


.search-not-found {
    color: white;
    color: white !important;
    font-size: 1.1rem;
    font-weight: 500;
}
.page-content {
    background: var(--surface);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 1200px;
	width: 1200px;
    box-sizing: border-box;
    overflow: hidden;
}

.yu_a {
text-align: center; margin-top: -50px;
font-weight: 500;
}
@media (max-width: 768px) {
.yu_a {
text-align: center; margin-top: 10px;
font-weight: 500;
}
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

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

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.nav a:hover {
    background: var(--background);
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
}

.btn-liked {
    background: var(--secondary-color);
}

.btn-liked:hover {
    background: #db2777;
}

/* Tarot Styles */
.tarot-section {
    text-align: center;
}

.tarot-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.tarot-card {
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tarot-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.tarot-result {
    animation: fadeIn 0.5s ease-in;
    margin-top: 20px;
    padding: 15px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    color: white;
    text-align: center;
   max-width: 1200px;
    overflow: hidden;
}

.tarot-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tarot-cards-container > div {
    flex: 1 1 0;
    max-width: 1200px;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .tarot-cards-container {
        flex-direction: column;
    }

    .tarot-cards-container > div {
        max-width: 100%;
		
    }
	.tarot-result {
     max-width: 100%;
}
}

.tarot-result h2 {
    margin-bottom: 20px;
}

.tarot-interpretation {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-top: 20px;
    font-size: 1.1rem;
}

.tarot-interpretation .advice {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-style: italic;
}

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

#tarot-info {
    text-align: left !important;
}

#tarot-info h4 {
    text-align: center !important;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--background);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
}

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

/* Header Message Icon */
.header-icon-link {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-link:hover {
    color: var(--primary-color);
    background: var(--surface);
}

.header-icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;

}

.emoji-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--background);
    font-size: 1.2rem;
    line-height: 1;
}

.comment-avatar.emoji-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
}

.dropdown-content a:hover {
    background: var(--background);
}

.search-section {
    padding: 30px 0;
}

.search-form {
    display: flex;
    gap: 10px;
    background: var(--surface);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--background);
    color: var(--text-primary);
}

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

.ads-section {
    margin-bottom: 30px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.ad-item {
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.ad-item:hover {
    transform: translateY(-2px);
}

.ad-item img {
    width: 100%;
    height: 60px;

    display: block;
}

.ad-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
}

.ad-icon i {
    font-size: 1.8rem;
}

.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ad-link:hover {
    opacity: 0.9;
}

.ad-item span {
    display: block;
    padding: 8px;
    font-size: 0.85rem;
    text-align: center;
    background: var(--surface);
}

.ad-free-btn {
    display: block;
    width: 100%;
    padding: 8px;
    font-size: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ad-free-btn:hover {
    background: var(--primary-hover);
}

.ad-free-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

.ad-badge {
    display: block;
    padding: 8px;
    font-size: 0.8rem;
    text-align: center;
    background: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.ad-clicked {
    opacity: 0.7;
}

.viewed-badge {
    position: absolute;
    top: 0px;
    right: -1px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 0px 2px 0px 5px;
}

.dream-card.viewed {
    border: 1px solid rgba(0,0,0,0.08);
}

.dreams-section {
    margin-bottom: 40px;
}

.dreams-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.dreams-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.dreams-section h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.dreams-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.dreams-section.with-style {
    padding: 25px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dreams-section.with-style h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.dreams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dream-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-link {
    display: block;
    padding: 20px;
    color: var(--text-primary);
}

.card-link h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.card-link .excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.dream-list {
    list-style: none;
}

.dream-list li {
    border-bottom: 1px solid var(--border-color);
}

.dream-list li:last-child {
    border-bottom: none;
}

.dream-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-primary);
}

.dream-list a:hover {
    color: var(--primary-color);
}

.list-title {
    flex: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 10px;
    text-align: center;
    color: var(--text-secondary);
}

.dream-page {
}

.dream-header {
    text-align: center;
    margin-bottom: 30px;
}

.dream-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.dream-content {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 1.1rem;
}

.dream-stats {
    display: flex;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
    justify-content: flex-end;
}

.dream-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
}

.comments-section {
    margin-top: 40px;
}

.comments-section h3 {
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--text-primary);
    resize: vertical;
    min-height: 100px;
}

.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;

}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-text {
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.comment-actions a {
    color: var(--text-secondary);
}

.comment-actions a:hover {
    color: var(--primary-color);
}

.replies {
    margin-left: 55px;
    margin-top: 10px;
}

.search-results {
}

.search-info {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.empty-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: var(--radius);
}

.empty-results h3 {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.suggested-section {
    margin-top: 30px;
}

.suggested-section h4 {
    margin-bottom: 15px;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.profile-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.profile-section h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;

}

.profile-info h2 {
    margin-bottom: 5px;
}

.profile-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-tab {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-secondary);
}

.profile-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tarot-section {
    padding: 30px 0;
    text-align: center;
}



.tarot-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tarot-card {
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.tarot-card:hover {
    transform: scale(1.1);
}

.tarot-result h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tarot-history {
    margin-top: 40px;
}

.tarot-history h4 {
    margin-bottom: 15px;
}

.tarot-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.admin-section {
}

.profile-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.profile-section h4 {
    color: var(--text-primary);
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-content {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-content.mb-30 {
    margin-bottom: 30px;
}

.tab-content {
    display: none;
    padding: 25px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

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

.tab-content.dreams-section.with-style {
    padding: 25px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.footer-hits {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-form {
    max-width: 600px;
}

.admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.admin-form input[type="file"] {
    padding: 8px 15px;
    background: var(--surface);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--background);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
}

.auth-section {
    padding: 60px 0;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--text-primary);
}

.auth-form .btn {
    width: 100%;
    margin-top: 10px;
}

.az-list {
}

.az-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.az-letters a {
    display: inline-block;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.az-letters a:hover,
.az-letters a.active {
    background: var(--primary-color);
    color: white;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

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

.dream-card {
    animation: fadeIn 0.3s ease-out;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    font-size: 1.2rem;
    z-index: 1000;
}

@media (max-width: 768px) {
	
	.page-content {
    background: var(--surface);
    padding: -10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 95%;
    box-sizing: border-box;
    overflow: hidden;
}
	
.container {
    background: var(--surface);
    max-width: 100%;
}
	
	
	
    .header-flex {
        flex-wrap: wrap;
		width: 90%;
    }

    .search-form {
        flex-direction: column;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .dream-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .dream-stats {
        flex-direction: row;
        gap: 15px;
        flex: none;
    }
}

.notification-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    margin-left: 10px;
    background: #ff4757;
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s;
}

.notification-badge:hover {
    background: #e84118;
}

.notification-badge .badge {
    margin-left: 5px;
    background: #fff;
    color: #ff4757;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
}

.premium-features {
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.premium-features h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.premium-features ul {
    margin-left: 20px;
    line-height: 1.8;
}

.premium-features li {
    margin-bottom: 8px;
}

.bank-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
}

.bank-info h4 {
    color: #ffd700 !important;
    margin-bottom: 15px !important;
}

.bank-note {
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.9;
}

.section-title {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

.balance-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.dropdown-balance {
    padding: 10px 15px;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.notification-item .badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.dream-yozumu {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .profile-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .admin-content {
        padding: 20px;
    }

    .premium-features {
        padding: 15px;
    }
}

.premium-features ul {
    margin-left: 20px;
    line-height: 1.8;
}

/* Tarot content styles */
.tarot-desc {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.tarot-info-bar {
    background: var(--surface);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.tarot-actions {
    margin-top: 40px;
}

.tarot-info-btn {
    margin-bottom: 20px;
}

.tarot-info-box {
    display: none;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.tarot-info-title {
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.tarot-info-text {
    margin-bottom: 10px;
    line-height: 1.6;
}

.tarot-cards-list {
    margin-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.tarot-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.tarot-premium-title {
    margin-bottom: 10px;
    color: #ffd700;
}

.tarot-premium-text {
    margin-bottom: 10px;
    line-height: 1.6;
}

.tarot-premium-list {
    margin-left: 20px;
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: 0.9rem;
}

.tarot-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 8px;
}

.tarot-item-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tarot-empty {
    color: var(--text-secondary);
}

.footer-hits {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Messages Page */
.messages-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Conversation List */
.conv-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    transition: background 0.2s;
}

.conv-item:hover {
    background: var(--background);
}

.conv-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
}

.conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.conv-last {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

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

.messages-header h2 {
    margin: 0;
}

.msg-delete-all {
    color: #ef4444;
    font-size: 0.85rem;
    text-decoration: none;
}

.msg-delete-all:hover {
    text-decoration: underline;
}

/* Chat Box */
.chat-box {
	max-width: 1200px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    height: 450px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Message Row */
.msg-row {
    margin-bottom: 12px;
}

/* Message Bubble */
.msg-bubble {
    background: transparent;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 12px 14px;
    max-width: 80%;
    display: inline-block;
}

.msg-bubble.user-bubble {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(0,0,0,0.08);
}

/* Message Header (inside bubble) */
.msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.user-bubble .msg-header {
    border-bottom-color: rgba(0,0,0,0.08);
}

.msg-header strong {
    font-size: 0.85rem;
}

.msg-date {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: auto;
}

/* Avatar inside bubble */
.msg-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;

    flex-shrink: 0;
}

/* Message Text */
.msg-text {
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.msg-img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 8px;
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
}

.msg-bubble audio {
    width: 220px;
    display: block;
    margin-bottom: 6px;
	
}

/* Delete Button */
.msg-del {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.7rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.msg-del:hover {
    background: #ef4444;
    color: white;
}

.user-bubble .msg-del {
    color: #ef4444;
    background: rgba(239,68,68,0.1);
}

.user-bubble .msg-del:hover {
    background: #ef4444;
    color: white;
}

/* Chat Input */
.chat-input-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 6px 8px;
}

.chat-input-row textarea {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    padding: 6px 8px;
    min-height: 24px;
    outline: none;
}

.chat-attach-btn,
.chat-voice-btn,
.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-attach-btn:hover,
.chat-voice-btn:hover {
    background: var(--primary-color);
    color: white;
}

.chat-voice-btn.recording {
    background: #ef4444;
    color: white;
}

.chat-send-btn {
    background: var(--primary-color);
    color: white;
}

.chat-send-btn:hover {
    opacity: 0.85;
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--background);
    border-radius: 8px;
    font-size: 0.85rem;
}

.btn-remove-file {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 0.75rem;
}

/* Badge */
.badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 5px;
}

/* Alerts */
.alert-success {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.notification-item {
    position: relative;
}
/* 1. Logo Konteyneri */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none; /* Linkin alt xəttini silir */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333; /* Əsas rəng */
    transition: all 0.3s ease;
    position: relative;
}

/* 2. Logo İkonu (Ay 🌙) */
.logo-icon {
    font-size: 20px; /* İkonun böyüklüyü */
    margin-right: 1px; /* Yazı ilə arasındakı məsafə */
    line-height: 1;
    
    /* Davamlı animasiya: Yüngül üzən (floating) effekti */
    animation: float 3s ease-in-out infinite;
    
    /* Keçid effekti */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

/* 3. Logo Yazısı */
.logo-text {
    font-size: 20px;
    font-weight: 800; /* Qalın şrift */
    letter-spacing: -0.5px;
    color: #2c3e50;
    position: relative;
    transition: color 0.3s ease;
}

/* Yazı altına kiçik bir xətt animasiyası (hover olmadan) */
.logo-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: #f1c40f;
    transition: width 0.3s ease;
    border-radius: 2px;
}


.logo:hover .logo-icon {
   
    animation: none; 
    transform: rotate(-15deg) scale(1.2); 
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.6);
}

.logo:hover .logo-text {
    color: #000; 
}

.logo:hover .logo-text::after {
    width: 100%; 
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}
