/* 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: #e0e0e0;
}

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

/* Header and Navigation */
header {
    background-color: black;
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    flex-grow: 1;
}

.nav-menu li {
    display: inline;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.lang-switcher a {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid transparent;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.login-btn {
    background-color: #e74c3c;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.login-btn:hover {
    background-color: #c0392b;
}

/* Hero Section */
.hero {
    background: #191919;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 960px;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #fafafa;
}

/* Services Section */
.services {
    background-color: #191919;
}

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

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

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

/* Gallery */
.gallery {
    background-color: #191919;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.875rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-content {
    max-width: 92%;
    max-height: 90%;
    margin: 0;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 3rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-content figcaption {
    color: #fff;
    padding: 0.75rem 1rem 0;
    font-size: 0.95rem;
    white-space: pre-line;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1002;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    padding: 1rem 1.25rem;
    cursor: pointer;
    z-index: 1002;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-close:hover,
.lightbox-close:focus,
.lightbox-nav:hover,
.lightbox-nav:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

/* FAQ */
.faq {
    background-color: #191919;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question h3 {
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.faq-icon {
    color: #3498db;
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item.active .faq-question {
    background-color: #e9ecef;
}

.faq-item p {
    color: #555;
    margin: 1rem 0 0 0;
}

/* Contact */
.contact {
    background-color: #191919;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fafafa;
}

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

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

/* Consent Section */
.consent-section {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.consent-section h3 {
    color: #fafafa;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: #fafafa;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
}

/* Category Filter */
.category-filter {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.category-filter h3 {
    color: #fafafa;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #3a3a3a;
    color: #fafafa;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #4a4a4a;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: #4a4a4a;
    border-color: #5a5a5a;
}

.filter-btn.active {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.filter-btn.active:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

button, .btn {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background-color: #2980b9;
}

/* Page Header */
.page-header {
    background: #191919;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

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

/* Products Section */
.products-section {
    background-color: #191919;
    padding: 4rem 0;
}

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

.product-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: justify;
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

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

/* Downloads Section */
.downloads-section {
    background-color: #191919;
    padding: 4rem 0;
}

.downloads-list {
    max-width: 800px;
    margin: 0 auto;
}

.download-item {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.download-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.download-item .version {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

.download-btn {
    background-color: #27ae60;
}

.download-btn:hover {
    background-color: #219150;
}

/* Contact Section (standalone) */
.contact-section {
    background-color: #191919;
    padding: 4rem 0;
}

.contact-section form {
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    background-color: #191919;
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #ffffff;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper p {
    margin-bottom: 1rem;
    color: #ffffff;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

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

.content-wrapper a:hover {
    text-decoration: underline;
    color: #5dade2;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.content-wrapper blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #bdc3c7;
    font-style: italic;
}

.content-wrapper code {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.content-wrapper pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

.content-wrapper pre code {
    background-color: transparent;
    padding: 0;
    color: #ecf0f1;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
}

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

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

/* Footer */
footer {
    background-color: black;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #3498db;
    text-decoration: underline;
}

.footer-cookie-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.875rem;
    margin-left: 1rem;
}

.footer-cookie-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 960px) {
    .navbar-container {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.75rem 20px;
    }
    
    .logo {
        order: 1;
        width: 100%;
    }

    .nav-menu {
        order: 2;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
    }
    
    .nav-right {
        order: 3;
        width: 100%;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .lang-switcher {
        flex-grow: 1;
    }
    
    .login-btn {
        white-space: nowrap;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    gap: 1rem;
}

#cookie-consent-banner .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

#cookie-consent-banner .cookie-text {
    flex: 1;
    min-width: 300px;
}

#cookie-consent-banner .cookie-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

#cookie-consent-banner .cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

#cookie-consent-banner .cookie-text a {
    color: #3498db;
    text-decoration: underline;
}

#cookie-consent-banner .cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#cookie-consent-banner .cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

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

#cookie-consent-banner .cookie-btn-primary:hover {
    background-color: #2980b9;
}

#cookie-consent-banner .cookie-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

#cookie-consent-banner .cookie-btn-secondary:hover {
    background-color: #7f8c8d;
}

#cookie-consent-banner .cookie-btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

#cookie-consent-banner .cookie-btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Cookie Preferences Modal */
#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#cookie-preferences-modal .cookie-modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

#cookie-preferences-modal .cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

#cookie-preferences-modal .cookie-modal-header h2 {
    margin: 0;
    color: #2c3e50;
}

#cookie-preferences-modal .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cookie-preferences-modal .close-modal:hover {
    color: #2c3e50;
}

#cookie-preferences-modal .cookie-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

#cookie-preferences-modal .cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

#cookie-preferences-modal .cookie-option-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
}

#cookie-preferences-modal .cookie-option p {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    color: #555;
}

#cookie-preferences-modal .cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

#cookie-preferences-modal .cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

#cookie-preferences-modal .cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

#cookie-preferences-modal .cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

#cookie-preferences-modal .cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #3498db;
}

#cookie-preferences-modal .cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

#cookie-preferences-modal .cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#cookie-preferences-modal .cookie-modal-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Cookie Settings Link in Footer */
.footer-cookie-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.875rem;
    margin-left: 1rem;
}

.footer-cookie-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Cookie Preferences Page */
.cookie-preferences-container {
    max-width: 600px;
    margin: 2rem auto;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.cookie-preferences-container .cookie-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive Cookie Consent */
@media (max-width: 768px) {
    #cookie-consent-banner .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    #cookie-consent-banner .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    #cookie-preferences-modal .cookie-modal-content {
        padding: 1rem;
    }
    
    #cookie-preferences-modal .cookie-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: #2980b9;
}

@media (max-width: 960px) {
    #back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}

/* Support Page Styles */
.support-intro,
.support-why,
.support-funds,
.support-donate,
.support-thanks,
.support-questions {
    background-color: #191919;
    color: #fafafa;
}

.support-intro p,
.support-why p,
.support-thanks p,
.support-questions p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.support-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

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

.support-card p {
    color: #555;
}

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

.support-method {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.support-method h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.btn-support {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn-support:hover {
    background-color: #2980b9;
}

.crypto-address {
    background-color: #f4f4f4;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    display: block;
    max-width: 100%;
}

.support-donate-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.support-donate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 200px;
}

.support-donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.support-donate-button img {
    height: 32px;
    width: auto;
    margin-right: 0.5rem;
}

.support-donate-button span {
    font-weight: 600;
    color: white;
}

.paypal-button {
    background-color: #00457C;
}

.buymeacoffee-button {
    background-color: #FFDD00;
}

.buymeacoffee-button span {
    color: #000;
}

.github-button {
    background-color: #333;
}

.monero-qr-container {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 0.25rem;
}

.monero-qr-container img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.monero-qr-label {
    color: #2c3e50;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #191919;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

.hero-slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-slide-content p {
    font-size: 1.2rem;
    color: #fafafa;
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

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

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

.hero-slider-dot.active {
    background: white;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Hero Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }
    
    .hero-slide-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-slide-content p {
        font-size: 1rem;
    }
    
    .hero-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-slider-prev {
        left: 10px;
    }
    
    .hero-slider-next {
        right: 10px;
    }
}

/* ==========================================================================
   Comments Section (products.php) - <!-- Comment Form -->
   Sfondo #191919 con testo bianco
   ========================================================================== */
.comments-section {
    background-color: #191919;
    color: #fafafa;
    padding: 3rem 0;
}

.comments-section h2 {
    color: #fafafa;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Form di inserimento commento */
.comment-form {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #fafafa;
}

.comment-form h3 {
    color: #fafafa;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fafafa;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #191919;
    color: #fafafa;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #888;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

/* Evita lo sfondo chiaro dell'autocompletamento del browser */
.comment-form input:-webkit-autofill,
.comment-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fafafa;
    -webkit-box-shadow: 0 0 0 1000px #191919 inset;
    caret-color: #fafafa;
}

.comment-form .btn-primary {
    background-color: #3498db;
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-form .btn-primary:hover {
    background-color: #2980b9;
}

/* Lista commenti */
.comments-list {
    margin-top: 2rem;
}

.comments-list > p {
    color: #b0b0b0;
}

.comment-item {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    color: #fafafa;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #3a3a3a;
}

.comment-header strong {
    color: #fff;
}

.comment-date {
    color: #b0b0b0;
    font-size: 0.9em;
}

.comment-content {
    color: #e6e6e6;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Pulsante "Comments" nelle card prodotto */
.btn-secondary {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-left: 5px;
}

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

@media (max-width: 600px) {
    .comments-section {
        padding: 2rem 0;
    }

    .comment-form {
        padding: 1rem;
    }

    .comment-header {
        flex-direction: column;
    }
}
