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

:root {
    --primary-green: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --success-green: #22c55e;
    --error-red: #ef4444;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    width: 100%;
}

.header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.support-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff3366, #ff0033);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    z-index: 100;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
    background: linear-gradient(135deg, #ff0033, #cc0026);
}

.support-btn i {
    font-size: 1.1rem;
}

.download-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: -40px;
    position: relative;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

button {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    margin-bottom: 10px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.platform-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.platform-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.platform-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-info h3 {
    font-size: 1rem;
    color: #1e293b;
    margin: 0;
    font-weight: 500;
}

.platform-info p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.security-badge .material-icons {
    font-size: 18px;
    color: #4ade80;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: #64748b;
    font-size: 0.9rem;
    background: #f0fdf4;
    padding: 12px 16px;
    border-radius: 8px;
}

.download-info .material-icons {
    color: var(--primary-green);
    font-size: 18px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    display: none;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.toast.success {
    background: var(--success-green);
}

.toast.error {
    background: var(--error-red);
}

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

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

@media (max-width: 640px) {
    .container {
        padding: 15px;
        margin: 20px auto;
    }

    .header {
        padding: 40px 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .download-card {
        padding: 30px 20px;
        margin-top: -30px;
    }

    .input-group {
        flex-direction: column;
    }

    button {
        width: 100%;
        justify-content: center;
    }

    input[type="text"] {
        padding: 14px 16px;
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .platform-card {
        padding: 15px;
    }

    .platform-icon {
        width: 28px;
        height: 28px;
    }

    .security-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Special styling for platform icons */
.platform-icon.youtube svg {
    fill: #FF0000;
}

.platform-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-radius: 6px;
    padding: 6px;
}

.platform-icon.instagram svg {
    fill: white;
}

.platform-icon.tiktok svg {
    fill: #000000;
}

.platform-icon.twitter svg {
    fill: #1DA1F2;
}

.platform-icon.facebook svg {
    fill: #1877f2;
}

/* Developer section styles */
.developers-section {
    margin-top: 60px;
    text-align: center;
}

.developers-section h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.developers-section p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 30px;
}

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

.developer-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.developer-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.developer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.developer-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.developer-role {
    color: var(--primary-green);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.developer-bio {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.developer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--primary-green);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.contact-section {
    margin-top: 40px;
    background: #f0fdf4;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.contact-section h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.contact-section p {
    color: #64748b;
    margin-bottom: 20px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-green);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.donation-section {
    margin-top: 40px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.donation-section h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.donation-section p {
    color: #64748b;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.donation-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.donation-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.donation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.donation-button img {
    height: 24px;
    width: auto;
}

.donation-button span {
    color: #1e293b;
}

.donation-button.coffee {
    background: #FFDD00;
}

.donation-button.kofi {
    background: #FF5E5B;
}

.donation-button.patreon {
    background: #FF424D;
}

.donation-button.coffee span,
.donation-button.kofi span,
.donation-button.patreon span {
    color: white;
}

@media (max-width: 640px) {
    .donation-options {
        flex-direction: column;
        align-items: center;
    }

    .donation-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.popup {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: popIn 0.3s ease;
    max-height: 90vh;        /* keep the popup within screen height */
    overflow-y: auto;        /* enable scrolling */
    box-sizing: border-box;

}

@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.popup h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.popup p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.popup .donation-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Success message with donation option */
.success-message {
    display: none;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.success-message h4 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.success-message p {
    color: #64748b;
    margin-bottom: 15px;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-green);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.support-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.popup-button {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.popup-button.continue {
    background: var(--primary-green);
    color: white;
    margin-top: 1rem;
}

.popup-button.continue:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.popup-button.skip {
    background: #f1f5f9;
    color: #64748b;
}

.popup-button.skip:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}
.coming-soon-overlay-wrapper {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 5px;
    border: 2px dashed #ccc;
}

.platform-card {
    width: 150px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    text-align: center;
}

.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-size: 32px;
    color: red;
    font-weight: bold;
    opacity: 0.3;
    pointer-events: none;
    z-index: 10;
    text-shadow: 1px 1px 2px black;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .header {
        padding: 50px 15px;
    }

    .support-btn {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }

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

    .header p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 40px 10px;
    }

    .support-btn {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

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

@media screen and (max-width: 360px) {
    .header {
        padding: 35px 8px;
    }

    .support-btn {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header p {
        font-size: 0.85rem;
    }
}

.footer {
    background: #f8f9fa;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

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

.footer-links {
    margin-bottom: 15px;
}

.footer-link {
    color: var(--primary-green);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #008f3e;
    text-decoration: underline;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-link {
        display: block;
        margin: 10px 0;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    display: none;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    color: var(--primary-green);
    font-size: 24px;
}

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

.cookie-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.cookie-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-button {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.cookie-button.accept-all {
    background: var(--primary-green);
    color: white;
}

.cookie-button.accept-all:hover {
    background: #008f3e;
    transform: translateY(-2px);
}

.cookie-button.customize {
    background: #f0f0f0;
    color: #333;
}

.cookie-button.customize:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    backdrop-filter: blur(4px);
}

.cookie-preferences-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.cookie-preferences-header h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: #f0f0f0;
    color: #333;
}

.cookie-preferences-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

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

.cookie-category-title h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 5px 0;
}

.cookie-category-title p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-green);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.cookie-preferences-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cookie-button.save-preferences {
    background: var(--primary-green);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-button.save-preferences:hover {
    background: #008f3e;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .cookie-preferences-content {
        width: 95%;
        margin: 10px;
    }
}
