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

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

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

/* Header and Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #2c3e50;
    color: white;
}

.btn-secondary:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 1rem;
}

#search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Featured Businesses */
.featured-businesses {
    padding: 4rem 0;
    background: #f8f9fa;
}

.featured-businesses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.business-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.business-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f2f5;
    transition: opacity 0.3s ease;
}

.business-image.lazy-loading {
    opacity: 0.5;
}

.business-image.lazy-loaded {
    opacity: 1;
}

.business-image.image-loaded {
    background-color: transparent;
}

.business-image.image-error {
    background-color: #f8f9fa;
    opacity: 1;
}

/* Lazy loading placeholder */
.business-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f0f2f5, #e1e4e8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
}

.business-placeholder i {
    font-size: 3rem;
    color: #bdc3c7;
}

.business-content {
    padding: 1.5rem;
}

.business-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.business-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.business-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #ecf0f1;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.halal {
    background: #27ae60;
    color: white;
}

.tag.bitcoin {
    background: #f39c12;
    color: white;
}

.business-clout {
    margin: 0.5rem 0;
}

.clout-score {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: #f39c12;
}

/* Skeleton Loading */
.skeleton {
    background: #f0f2f5;
    border-radius: 10px;
    overflow: hidden;
}

.skeleton-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e1e4e8 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 20px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e1e4e8 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin: 1rem;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
    margin: 0.5rem 1rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .features-grid,
    .businesses-grid {
        grid-template-columns: 1fr;
    }
}

/* Business Detail Page */
.business-detail {
    padding: 2rem 0;
}

.business-header {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.business-header-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.business-header-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
}

/* Business Photo Gallery */
.business-photo-gallery {
    margin: 1rem 0;
}

.business-photo-gallery h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.photo-placeholder,
.photo-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.photo-placeholder .business-placeholder,
.photo-item .business-placeholder {
    width: 100%;
    height: 100%;
}

.photo-placeholder .business-placeholder i {
    font-size: 2rem;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.business-header-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.clout-score {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.business-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.comment-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comment-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comment-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.comment-content {
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Businesses Page */
.filters {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Authentication */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* User Profile */
.user-profile-section {
    padding: 2rem 0;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.user-profile-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-header-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.user-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.user-pubkey {
    color: #7f8c8d;
    font-family: monospace;
    font-size: 0.9rem;
}

.clout-display {
    margin-top: 1rem;
}

.clout-display .clout-score {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.ratings-count {
    margin-left: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.profile-sections {
    display: grid;
    gap: 2rem;
}

.profile-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.profile-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.threshold-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input[type="number"] {
    width: 120px;
}

.form-group small {
    display: block;
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

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

.login-required {
    text-align: center;
    padding: 3rem;
}

.login-required h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: #e74c3c;
}

.error-message h2 {
    margin-bottom: 1rem;
}

/* Responsive Profile */
@media (max-width: 768px) {
    .profile-header-section {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        width: 100%;
    }
    
    .form-group input[type="number"] {
        width: 100%;
    }
}
/* Private Messaging */
.messages-section {
    padding: 2rem 0;
}

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

.messages-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
}

.messages-container {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 70vh;
}

.messages-sidebar {
    width: 350px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.search-messages {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.search-messages input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.conversation-item:hover {
    background-color: #f8f9fa;
}

.conversation-item.unread {
    background-color: #e3f2fd;
}

.conversation-item.unread:hover {
    background-color: #d1e7ff;
}

.conversation-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

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

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.conversation-header h4 {
    margin: 0;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    font-size: 0.8rem;
    color: #7f8c8d;
    flex-shrink: 0;
}

.conversation-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-preview p {
    margin: 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.unread-badge {
    background: #3498db;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.messages-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.messages-display {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-conversation-selected,
.no-messages,
.clout-restricted,
.recipient-restricted {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #7f8c8d;
}

.no-conversation-selected h3,
.no-messages h3,
.clout-restricted h3,
.recipient-restricted h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.message {
    display: flex;
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 0.8rem 1rem;
    border-radius: 18px;
    max-width: 100%;
}

.message.sent .message-content {
    background: #3498db;
    color: white;
    border-bottom-right-radius: 5px;
}

.message.received .message-content {
    background: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 5px;
}

.message-content p {
    margin: 0 0 0.3rem 0;
    word-wrap: break-word;
}

.message-content .message-time {
    font-size: 0.7rem;
    opacity: 0.8;
}

.encryption-indicator {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    opacity: 0.7;
}

.message-input-area {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.message-input-area input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
}

.message-input-area.hidden {
    display: none;
}

/* Responsive Messaging */
@media (max-width: 1024px) {
    .messages-container {
        flex-direction: column;
        height: auto;
    }
    
    .messages-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .messages-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .message {
        max-width: 85%;
    }
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background: white;
}

.pricing-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #7f8c8d;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #ecf0f1;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: #3498db;
    transform: scale(1.05);
}

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

.pricing-header {
    text-align: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.price {
    margin-bottom: 1rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
}

.period {
    display: block;
    color: #7f8c8d;
    font-size: 1rem;
}

.pricing-features {
    padding: 2rem 1.5rem;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li i.fa-check {
    color: #27ae60;
}

.pricing-features li i.fa-times {
    color: #e74c3c;
}

.pricing-cta {
    padding: 0 1.5rem 2rem;
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn {
    background: white;
    color: #667eea;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.cta-content .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-section h2 {
        font-size: 2rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: scale(1) translateY(-10px);
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* Business Dashboard */
.business-dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.dashboard-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.dashboard-header-section h2 {
    margin: 0;
    color: #2c3e50;
}

.dashboard-empty-state {
    text-align: center;
    padding: 3rem;
}

.dashboard-empty-state h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.businesses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.business-stats {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

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

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.stat-value {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.stat-value.verified {
    color: #27ae60;
}

.stat-value.pending {
    color: #f39c12;
}

.business-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Dashboard Modals */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #7f8c8d;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-pane {
    display: none;
}

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

.photos-preview {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.photo-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

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

.credits-management .stat-value {
    font-size: 2rem;
    color: #3498db;
}

.credit-info {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: left;
}

.credit-info p {
    margin-bottom: 0.5rem;
}

.pricing-options {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 300px;
}

.pricing-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.price {
    margin-bottom: 1.5rem;
}

.amount {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    display: block;
}

.credits {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.analytics-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-header-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .business-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pricing-options {
        flex-direction: column;
        align-items: center;
    }
    
    .analytics-summary {
        grid-template-columns: 1fr;
    }
}

/* User Rating Modal */
#user-rating-modal .modal-content {
    max-width: 400px;
    text-align: center;
}

#user-rating-modal .modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

#user-rating-modal .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

/* Report Modal */
#report-modal .modal-content {
    max-width: 500px;
}

#report-modal .form-group {
    margin-bottom: 1.5rem;
}

#report-modal .report-reason-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#report-modal .report-details-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

#report-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==================== MESSAGES PAGE - NOSTR INTEGRATION ==================== */

/* Nostr Connection Status */
.nostr-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #f8f9fa;
}

.nostr-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
}

.nostr-status.connected .status-dot {
    background: #27ae60;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

.nostr-status.disconnected .status-dot {
    background: #e74c3c;
}

/* Messages Tabs */
.messages-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.messages-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.messages-tab:hover {
    color: #3498db;
    background: #f8f9fa;
}

.messages-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.messages-tab i {
    font-size: 1rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* Feed Post Composer */
.feed-composer {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feed-composer textarea {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.feed-composer textarea:focus {
    outline: none;
    border-color: #3498db;
}

.feed-composer textarea.replying {
    border-color: #9b59b6;
    background: #faf5ff;
}

.feed-composer .btn {
    align-self: flex-end;
}

/* Feed Posts Container */
.feed-posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Feed Post Card */
.feed-post {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feed-post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f2f5;
}

.feed-post-author {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feed-post-time {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feed-post-content {
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
    word-break: break-word;
}

.feed-post-content a {
    color: #3498db;
    text-decoration: none;
}

.feed-post-content a:hover {
    text-decoration: underline;
}

/* Feed Post Actions */
.feed-post-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.feed-post-action {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #7f8c8d;
    border-radius: 5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.feed-post-action:hover {
    background: #f8f9fa;
    color: #3498db;
}

.feed-post-action.delete-btn:hover {
    color: #e74c3c;
}

/* Nostr Badge */
.nostr-badge {
    font-size: 0.75rem;
    color: #9b59b6;
    background: #f5eeff;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Suhuf Badge */
.suhuf-badge {
    margin-left: 0.3rem;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f0f2f5;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Private Messages Specific */
.conversation-item .conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-item.active {
    background: #e3f2fd;
}

.conversation-name {
    font-weight: 600;
    color: #2c3e50;
}

.conversation-time {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-message {
    max-width: 70%;
    padding: 0.8rem 1rem;
    border-radius: 18px;
}

.chat-message.sent {
    align-self: flex-end;
    background: #3498db;
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-message.received {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 5px;
}

.chat-message-time {
    font-size: 0.7rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.encryption-badge {
    font-size: 0.8rem;
}

/* Chat Header */
#chat-header {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

#chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#chat-name {
    font-weight: 600;
    color: #2c3e50;
}

/* Chat Input */
#chat-input-area {
    display: none;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}

#chat-message-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
}

/* Personal Messages */
.personal-message {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.personal-message-context {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.personal-message-context a {
    color: #3498db;
    text-decoration: none;
}

/* ==================== THREADED REPLIES (NIP-10) ==================== */

/* Container for all threaded messages */
.personal-messages-threads {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Thread message wrapper with depth-based indentation */
.thread-message {
    position: relative;
    margin-left: calc(var(--thread-depth, 0) * 24px);
    transition: margin-left 0.2s ease;
}

/* Thread connector - vertical and horizontal lines */
.thread-connector {
    position: absolute;
    left: -18px;
    top: 0;
    bottom: 0;
    width: 18px;
    pointer-events: none;
}

.thread-line {
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, #e0e0e0, #3498db);
    border-radius: 1px;
}

.thread-line::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 22px;
    width: 10px;
    height: 2px;
    background: #3498db;
    border-radius: 1px;
}

/* Thread content wrapper */
.thread-content {
    position: relative;
}

/* Container for child messages */
.thread-children {
    position: relative;
    margin-top: 0.25rem;
}

/* Continuous line for children container */
.thread-children::before {
    content: '';
    position: absolute;
    left: calc(var(--thread-depth, 0) * 24px + 14px);
    top: 0;
    bottom: 20px;
    width: 2px;
    background: #e8e8e8;
    border-radius: 1px;
}

/* Depth-specific styling for visual hierarchy */
.thread-message.depth-0 {
    margin-left: 0;
}

.thread-message.depth-0 .thread-connector {
    display: none;
}

.thread-message.depth-1 { --thread-depth: 1; }
.thread-message.depth-2 { --thread-depth: 2; }
.thread-message.depth-3 { --thread-depth: 3; }
.thread-message.depth-4 { --thread-depth: 4; }
.thread-message.depth-5 { --thread-depth: 5; }
.thread-message.depth-6 { --thread-depth: 6; }
.thread-message.depth-7 { --thread-depth: 7; }
.thread-message.depth-8 { --thread-depth: 8; }

/* Nested reply indicator arrow */
.nested-reply-indicator {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-right: 0.3rem;
    opacity: 0.7;
}

/* Nested reply styling - slightly smaller and different background */
.personal-message.nested-reply {
    background: #fafbfc;
    border-left: 3px solid #3498db;
    padding: 1rem 1.25rem;
}

.personal-message.nested-reply:hover {
    background: #f5f7fa;
}

/* Depth-based color variations for visual distinction */
.thread-message.depth-1 .personal-message.nested-reply {
    border-left-color: #3498db;
}

.thread-message.depth-2 .personal-message.nested-reply {
    border-left-color: #9b59b6;
}

.thread-message.depth-3 .personal-message.nested-reply {
    border-left-color: #27ae60;
}

.thread-message.depth-4 .personal-message.nested-reply {
    border-left-color: #f39c12;
}

.thread-message.depth-5 .personal-message.nested-reply {
    border-left-color: #e74c3c;
}

.thread-message.depth-6 .personal-message.nested-reply {
    border-left-color: #1abc9c;
}

.thread-message.depth-7 .personal-message.nested-reply {
    border-left-color: #e67e22;
}

.thread-message.depth-8 .personal-message.nested-reply {
    border-left-color: #34495e;
}

/* Thread line colors matching depth */
.thread-message.depth-1 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #3498db);
}

.thread-message.depth-1 .thread-line::after {
    background: #3498db;
}

.thread-message.depth-2 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #9b59b6);
}

.thread-message.depth-2 .thread-line::after {
    background: #9b59b6;
}

.thread-message.depth-3 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #27ae60);
}

.thread-message.depth-3 .thread-line::after {
    background: #27ae60;
}

.thread-message.depth-4 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #f39c12);
}

.thread-message.depth-4 .thread-line::after {
    background: #f39c12;
}

.thread-message.depth-5 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #e74c3c);
}

.thread-message.depth-5 .thread-line::after {
    background: #e74c3c;
}

/* Smaller avatar and text for deeply nested replies */
.thread-message.depth-3 .personal-message .feed-post-avatar,
.thread-message.depth-4 .personal-message .feed-post-avatar,
.thread-message.depth-5 .personal-message .feed-post-avatar,
.thread-message.depth-6 .personal-message .feed-post-avatar,
.thread-message.depth-7 .personal-message .feed-post-avatar,
.thread-message.depth-8 .personal-message .feed-post-avatar {
    width: 40px;
    height: 40px;
}

.thread-message.depth-4 .personal-message,
.thread-message.depth-5 .personal-message,
.thread-message.depth-6 .personal-message,
.thread-message.depth-7 .personal-message,
.thread-message.depth-8 .personal-message {
    font-size: 0.95rem;
}

/* Responsive threading - collapse deep nesting on mobile */
@media (max-width: 768px) {
    .thread-message {
        margin-left: calc(var(--thread-depth, 0) * 12px);
        max-width: 100%;
    }
    
    .thread-message.depth-4,
    .thread-message.depth-5,
    .thread-message.depth-6,
    .thread-message.depth-7,
    .thread-message.depth-8 {
        margin-left: calc(4 * 12px); /* Cap at depth 4 on mobile */
    }
    
    .thread-connector {
        left: -10px;
        width: 10px;
    }
    
    .thread-line {
        left: 4px;
    }
    
    .thread-line::after {
        width: 6px;
    }
}

/* Login Required Container */
#login-required-container {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#login-required-container h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

#login-required-container p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* New DM Modal */
#new-dm-modal .modal-content {
    text-align: left;
}

#new-dm-modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

#recipient-pubkey,
#first-dm-message {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

#first-dm-message {
    min-height: 80px;
    resize: vertical;
}

/* Responsive Messages Page */
@media (max-width: 768px) {
    .messages-tabs {
        flex-wrap: wrap;
    }
    
    .messages-tab {
        flex: 1;
        justify-content: center;
        padding: 0.8rem;
    }
    
    .feed-composer {
        flex-direction: column;
    }
    
    .feed-composer .btn {
        align-self: stretch;
    }
    
    .chat-message {
        max-width: 85%;
    }
}

/* ==================== NOSTR COMMENTS ==================== */

/* Nostr Comment Card */
.nostr-comment {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #9b59b6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nostr-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nostr-comment .comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nostr-comment .comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.nostr-comment .comment-author .nostr-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
}

.nostr-comment .comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.nostr-comment .comment-content {
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.nostr-comment .comment-date {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Clout Badge - for displaying clout score */
.clout-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.clout-badge i {
    font-size: 0.65rem;
}

.clout-badge.high-clout {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.clout-badge.medium-clout {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.clout-badge.low-clout {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* Business Link in Feed Posts */
.business-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #3498db;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    background: #e3f2fd;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.business-link:hover {
    background: #bbdefb;
    text-decoration: none;
}

.business-link i {
    font-size: 0.75rem;
}

/* Feed Post Context (for business comments shown in feed) */
.feed-post-context {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #eee;
}

.feed-post-context i {
    color: #3498db;
}

/* Nostr Comments Section Header */
.nostr-comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f2f5;
}

.nostr-comments-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.nostr-comments-section h3 .nostr-badge {
    font-size: 0.8rem;
}

.nostr-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Comments Toggle */
.comments-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.comments-toggle .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.comments-toggle .btn.active {
    background: #3498db;
    color: white;
}

.comments-toggle .btn:not(.active) {
    background: #f0f2f5;
    color: #7f8c8d;
}

/* Empty Nostr Comments State */
.nostr-comments-empty {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    background: #f8f9fa;
    border-radius: 8px;
}

.nostr-comments-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

/* Responsive Nostr Comments */
@media (max-width: 768px) {
    .nostr-comment .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nostr-comment .comment-meta {
        margin-top: 0.5rem;
    }
    
    .feed-post-context {
        flex-wrap: wrap;
    }
}

/* ==================== LEGAL PAGES (Privacy Policy & Terms of Service) ==================== */

/* Legal Page Layout */
.legal-page {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 300px);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-header .last-updated {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Legal Content Container */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Legal Sections */
.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child,
.legal-section.legal-footer {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

.legal-section h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #555;
}

.legal-section li strong {
    color: #2c3e50;
}

.legal-section a {
    color: #3498db;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Legal Footer Section */
.legal-section.legal-footer {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.legal-section.legal-footer p {
    margin: 0;
    color: #1565c0;
    font-weight: 500;
}

/* Main Header Styling for Legal Pages */
.main-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-header .main-nav {
    display: flex;
    gap: 2rem;
}

.main-header .main-nav a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-header .main-nav a:hover {
    color: white;
}

.main-header .btn-login {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.main-header .btn-login:hover {
    background: #2980b9;
}

/* Legal pages header nav-auth container */
.main-header .nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.main-header .nav-auth .btn-accent {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Responsive adjustments for legal pages header */
@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }
    
    .main-header .nav-auth {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    
    .main-header .nav-auth .btn-accent {
        order: -1;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Main Footer Styling */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.main-footer .footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.main-footer .footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.main-footer .footer-section a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.main-footer .footer-section a:hover {
    color: #3498db;
}

.main-footer .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-header .main-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Accessibility Improvements */
.legal-section:focus-within {
    outline: none;
}

.legal-section h2:focus,
.legal-section h3:focus {
    outline: 2px solid #3498db;
    outline-offset: 4px;
}

/* Print Styles for Legal Pages */
@media print {
    .main-header,
    .main-footer {
        display: none;
    }
    
    .legal-page {
        background: white;
        padding: 0;
    }
    
    .legal-content {
        box-shadow: none;
        padding: 0;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
}

/* ==================== CONTACT PAGE - NOSTR NIP-17 ==================== */

/* Nostr Status Container */
.nostr-status-container {
    margin-bottom: 1.5rem;
}

.nostr-status {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.nostr-status.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.nostr-status.warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.nostr-status i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.nostr-status strong {
    display: block;
    margin-bottom: 0.25rem;
}

.nostr-status p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.nostr-status a {
    color: inherit;
    text-decoration: underline;
}

.nostr-status code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Contact Form Nostr Info */
.nostr-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

.nostr-info p {
    margin: 0;
    color: #666;
}

.nostr-info a {
    color: #3498db;
    text-decoration: none;
}

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

.nostr-info code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Contact Form Section Updates */
.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notification Styles (for contact form) */
.contact-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.contact-notification.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.contact-notification.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: inherit;
    opacity: 0.5;
    font-size: 1rem;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 1.5rem;
    }

    .contact-notification {
        left: 20px;
        right: 20px;
        max-width: none;
        top: 80px;
    }
}

/* ==================== BUSINESS COMMENTS - THREADED DISPLAY ==================== */

/* Comment Actions Bar */
.comment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.comment-action {
    background: none;
    border: none;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    color: #7f8c8d;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
}

.comment-action:hover {
    background: #f8f9fa;
    color: #3498db;
}

.comment-action.delete-btn:hover {
    color: #e74c3c;
    background: #fdf2f2;
}

.comment-action.reply-btn:hover {
    color: #9b59b6;
    background: #faf5ff;
}

.comment-action.copy-btn:hover {
    color: #27ae60;
    background: #f0faf4;
}

/* Threaded Comments Container */
.nostr-comments-thread {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Comment Thread Wrapper with depth-based indentation */
.comment-thread-wrapper {
    position: relative;
    margin-left: calc(var(--thread-depth, 0) * 24px);
    transition: margin-left 0.2s ease;
}

.comment-thread-wrapper.depth-0 {
    margin-left: 0;
}

.comment-thread-wrapper.depth-1 { --thread-depth: 1; }
.comment-thread-wrapper.depth-2 { --thread-depth: 2; }
.comment-thread-wrapper.depth-3 { --thread-depth: 3; }
.comment-thread-wrapper.depth-4 { --thread-depth: 4; }
.comment-thread-wrapper.depth-5 { --thread-depth: 5; }
.comment-thread-wrapper.depth-6 { --thread-depth: 6; }
.comment-thread-wrapper.depth-7 { --thread-depth: 7; }
.comment-thread-wrapper.depth-8 { --thread-depth: 8; }

/* Thread connector lines */
.comment-thread-wrapper .thread-connector {
    position: absolute;
    left: -18px;
    top: 0;
    bottom: 0;
    width: 18px;
    pointer-events: none;
}

.comment-thread-wrapper.depth-0 .thread-connector {
    display: none;
}

.comment-thread-wrapper .thread-line {
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, #e0e0e0, #9b59b6);
    border-radius: 1px;
}

.comment-thread-wrapper .thread-line::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 22px;
    width: 10px;
    height: 2px;
    background: #9b59b6;
    border-radius: 1px;
}

/* Comment children container */
.comment-children {
    position: relative;
    margin-top: 0.5rem;
}

.comment-children::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 20px;
    width: 2px;
    background: #e8e8e8;
    border-radius: 1px;
}

/* Depth-based color variations for thread lines */
.comment-thread-wrapper.depth-1 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #3498db);
}

.comment-thread-wrapper.depth-1 .thread-line::after {
    background: #3498db;
}

.comment-thread-wrapper.depth-2 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #9b59b6);
}

.comment-thread-wrapper.depth-2 .thread-line::after {
    background: #9b59b6;
}

.comment-thread-wrapper.depth-3 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #27ae60);
}

.comment-thread-wrapper.depth-3 .thread-line::after {
    background: #27ae60;
}

.comment-thread-wrapper.depth-4 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #f39c12);
}

.comment-thread-wrapper.depth-4 .thread-line::after {
    background: #f39c12;
}

.comment-thread-wrapper.depth-5 .thread-line {
    background: linear-gradient(to bottom, #e0e0e0, #e74c3c);
}

.comment-thread-wrapper.depth-5 .thread-line::after {
    background: #e74c3c;
}

/* Nested comment styling */
.comment-thread-wrapper .nostr-comment.nested-reply {
    background: #fafbfc;
    border-left-width: 3px;
    padding: 0.75rem 1rem;
}

.comment-thread-wrapper.depth-1 .nostr-comment.nested-reply {
    border-left-color: #3498db;
}

.comment-thread-wrapper.depth-2 .nostr-comment.nested-reply {
    border-left-color: #9b59b6;
}

.comment-thread-wrapper.depth-3 .nostr-comment.nested-reply {
    border-left-color: #27ae60;
}

.comment-thread-wrapper.depth-4 .nostr-comment.nested-reply {
    border-left-color: #f39c12;
}

.comment-thread-wrapper.depth-5 .nostr-comment.nested-reply {
    border-left-color: #e74c3c;
}

/* Reply Input Area */
.comment-form.replying {
    position: relative;
    background: #faf5ff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0d0f0;
}

.comment-input.replying {
    border-color: #9b59b6;
    background: white;
}

.comment-input.replying:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

/* Reply context indicator */
.reply-context {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f0e6f5;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #6c3483;
}

.reply-context i {
    color: #9b59b6;
}

/* Cancel Reply Button */
#cancel-reply-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

#cancel-reply-btn:hover {
    background: #7f8c8d;
}

/* Comment form with reply buttons container */
.comment-form-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Highlight effect for own comments */
.nostr-comment.own-comment {
    border-left-color: #27ae60;
    background: #f8fff9;
}

.nostr-comment.own-comment:hover {
    background: #f0faf4;
}

/* Deleted comment placeholder */
.nostr-comment.deleted {
    opacity: 0.6;
    font-style: italic;
    border-left-color: #95a5a6;
}

.nostr-comment.deleted .comment-content {
    color: #7f8c8d;
}

/* Responsive threaded comments */
@media (max-width: 768px) {
    .comment-thread-wrapper {
        margin-left: calc(var(--thread-depth, 0) * 12px);
    }
    
    .comment-thread-wrapper.depth-4,
    .comment-thread-wrapper.depth-5,
    .comment-thread-wrapper.depth-6,
    .comment-thread-wrapper.depth-7,
    .comment-thread-wrapper.depth-8 {
        margin-left: calc(4 * 12px);
    }
    
    .comment-thread-wrapper .thread-connector {
        left: -10px;
        width: 10px;
    }
    
    .comment-thread-wrapper .thread-line {
        left: 4px;
    }
    
    .comment-thread-wrapper .thread-line::after {
        width: 6px;
    }
    
    .comment-actions {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .comment-action {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .nostr-comment {
        padding: 0.75rem 1rem;
    }
}

/* ==================== USER PROFILE TOOLTIP ==================== */

/* User Profile Tooltip Container */
.user-profile-tooltip {
    position: absolute;
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.user-profile-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Tooltip Header */
.tooltip-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
}

.tooltip-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #f0f2f5;
}

.tooltip-avatar.interactive {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tooltip-avatar.interactive:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.tooltip-user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tooltip-user-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tooltip-clout-score {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tooltip-clout-score i {
    font-size: 0.7rem;
}

.tooltip-sole-trader-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tooltip-nostr-badge {
    font-size: 0.7rem;
    color: #9b59b6;
    background: #f5eeff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Tooltip Content */
.tooltip-content {
    padding: 1.25rem;
}

.tooltip-section {
    margin-bottom: 1rem;
}

.tooltip-section:last-child {
    margin-bottom: 0;
}

.tooltip-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

.tooltip-section-content {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Services List */
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

/* Promote Text */
.tooltip-promote-text {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #3498db;
    font-style: italic;
    color: #555;
}

/* Message Threshold Info */
.tooltip-threshold-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #856404;
}

.tooltip-threshold-info i {
    color: #f39c12;
}

/* Message Section */
.tooltip-message-section {
    border-top: 1px solid #e0e0e0;
    padding: 1.25rem;
    background: #fafbfc;
}

.tooltip-message-section.disabled {
    background: #f8f9fa;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tooltip-message-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tooltip-message-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.tooltip-message-input:disabled {
    background: #f0f2f5;
    cursor: not-allowed;
}

.message-form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.tooltip-send-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.tooltip-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f6dad);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.tooltip-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tooltip-close-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.tooltip-close-btn:hover {
    background: #7f8c8d;
}

/* Message Blocked State */
.message-blocked {
    text-align: center;
    padding: 1.5rem;
    color: #7f8c8d;
}

.message-blocked i {
    font-size: 2rem;
    color: #bdc3c7;
    margin-bottom: 0.75rem;
    display: block;
}

.message-blocked-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.message-blocked-text {
    font-size: 0.9rem;
    margin: 0;
}

/* Message Status */
.message-status {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading State */
.tooltip-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #7f8c8d;
}

.tooltip-loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #f0f2f5;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 1rem;
}

/* Error State */
.tooltip-error {
    text-align: center;
    padding: 1.5rem;
    color: #e74c3c;
}

.tooltip-error i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

/* Private Profile Notice */
.tooltip-private-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.tooltip-private-notice i {
    font-size: 1.5rem;
    color: #bdc3c7;
}

/* Arrow for tooltip positioning */
.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.tooltip-arrow.top {
    top: -8px;
    left: 30px;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent white transparent;
}

.tooltip-arrow.bottom {
    bottom: -8px;
    left: 30px;
    border-width: 8px 8px 0 8px;
    border-color: white transparent transparent transparent;
}

.tooltip-arrow.left {
    left: -8px;
    top: 30px;
    border-width: 8px 8px 8px 0;
    border-color: transparent white transparent transparent;
}

.tooltip-arrow.right {
    right: -8px;
    top: 30px;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent white;
}

/* Click outside to close hint */
.tooltip-close-hint {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #95a5a6;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Avatar highlight in comments */
.comment-avatar.interactive {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-avatar.interactive:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Tooltip */
@media (max-width: 768px) {
    .user-profile-tooltip {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.95);
        max-width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .user-profile-tooltip.visible {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .tooltip-arrow {
        display: none;
    }
    
    .tooltip-header {
        padding: 1rem;
    }
    
    .tooltip-avatar {
        width: 50px;
        height: 50px;
    }
    
    .tooltip-user-name {
        font-size: 1rem;
    }
    
    .tooltip-content,
    .tooltip-message-section {
        padding: 1rem;
    }
    
    .message-form-actions {
        flex-direction: column;
    }
    
    .tooltip-send-btn,
    .tooltip-close-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .user-profile-tooltip {
        min-width: unset;
        width: 95vw;
    }
    
    .tooltip-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tooltip-user-meta {
        justify-content: center;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .user-profile-tooltip {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .tooltip-header {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
        border-bottom-color: #34495e;
    }
    
    .tooltip-user-name {
        color: #ecf0f1;
    }
    
    .tooltip-section-title {
        color: #bdc3c7;
    }
    
    .tooltip-section-content {
        color: #ecf0f1;
    }
    
    .tooltip-promote-text {
        background: #34495e;
        color: #bdc3c7;
    }
    
    .tooltip-message-section {
        background: #34495e;
        border-top-color: #34495e;
    }
}

/* Data Freshness Badge Styles */
.data-freshness-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: help;
}

.data-freshness-badge.fresh {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b1dfbb;
}

.data-freshness-badge.stale {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border: 1px solid #ffe8a1;
}

.data-freshness-badge.outdated {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.data-freshness-badge .freshness-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.data-freshness-badge.fresh .freshness-icon::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: freshness-pulse 2s infinite;
}

.data-freshness-badge.stale .freshness-icon::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffc107;
    opacity: 0.8;
}

.data-freshness-badge.outdated .freshness-icon::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    opacity: 0.6;
}

@keyframes freshness-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(40, 167, 69, 0);
    }
}

.data-freshness-badge .freshness-label {
    font-weight: 600;
}

.data-freshness-badge .last-updated-time {
    font-size: 11px;
    opacity: 0.8;
    margin-left: 4px;
    padding-left: 8px;
    border-left: 1px solid currentColor;
}

/* Business Freshness Header */
.business-freshness-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.business-freshness-header .freshness-info {
    flex: 1;
}

.business-freshness-header .freshness-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.business-freshness-header .freshness-description {
    font-size: 12px;
    color: #6c757d;
}

/* Contact Info Items */
.contact-info-item {
    position: relative;
    padding-left: 24px;
    margin: 8px 0;
}

.contact-info-item .freshness-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.contact-info-item.fresh .freshness-indicator {
    background: #28a745;
}

.contact-info-item.stale .freshness-indicator {
    background: #ffc107;
}

.contact-info-item.outdated .freshness-indicator {
    background: #dc3545;
}

.contact-info-item small {
    color: #6c757d;
    font-size: 0.85em;
    margin-left: 8px;
}

.contact-info-item.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.2s ease;
}

.contact-info-item.social-links a:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .business-freshness-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-freshness-badge {
        flex-wrap: wrap;
    }
    
    .data-freshness-badge .last-updated-time {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
    }
}

/* ============================================================================
   ADD YOUR BUSINESS BUTTON - Color Blind Friendly Styles
   Using amber/orange (#f39c12) which is distinguishable by most color blind types
   Combined with icon and text for maximum accessibility
   ============================================================================ */

/* Accent Button - Color Blind Friendly Amber/Orange */
.btn-accent {
    background: #f39c12;
    color: white;
    border: 2px solid #e67e22;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(243, 156, 18, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-accent:hover {
    background: #e67e22;
    border-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(243, 156, 18, 0.4);
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-accent:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.btn-accent i {
    margin-right: 0.5rem;
}

/* Large button variant */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header Add Business Button */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-auth .btn-accent {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Footer Add Business Button */
.footer-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
}

/* ============================================================================
   ADD BUSINESS FORM STYLES
   ============================================================================ */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.form-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.business-form .form-group {
    margin-bottom: 1.5rem;
}

.business-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.business-form label i {
    margin-right: 0.5rem;
    color: #3498db;
}

.business-form .required {
    color: #e74c3c;
}

.business-form input[type="text"],
.business-form input[type="email"],
.business-form input[type="tel"],
.business-form input[type="url"],
.business-form select,
.business-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.business-form input:focus,
.business-form select:focus,
.business-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

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

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #27ae60;
    border-color: #27ae60;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.label-text i {
    margin-right: 0.4rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.form-actions .btn {
    flex: 1;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 3rem 2rem;
}

.prompt-content i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.prompt-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.prompt-content p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Success/Error Messages */
.submission-success,
.submission-error {
    text-align: center;
    padding: 3rem 2rem;
}

.success-content i,
.error-content i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.success-content i {
    color: #27ae60;
}

.error-content i {
    color: #e74c3c;
}

.success-content h3,
.error-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.success-content p,
.error-content p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .nav-auth {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-auth .btn-accent {
        order: -1;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .btn-accent {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .footer-btn {
        width: 100%;
        justify-content: center;
    }
}