/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #111827; 
    font-family: Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 750px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    margin: 0 auto;
}

.main-image {
    max-width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.main-image:not(:first-child) {
    margin-top: 30px;
}

.video-section {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for the container */
    height: 0;
    display: flex;
    justify-content: center;
}

.video-section iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
}

.signup-form {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.signup-form iframe {
    height: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.signup-button {
    background: #fbbf24;
    color: #111827;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto 20px auto;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    width: 50%;
    max-width: 540px;
}

.signup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.top-bar {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 16px 20px 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.create-content-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111827;
    font-weight: 800;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    letter-spacing: 0.02em;
}

.create-content-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.45);
    filter: brightness(1.05);
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    color: #e2e8f0;
    text-decoration: none;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 999px;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.secondary-link:hover {
    color: #f8fafc;
    border-color: rgba(251, 191, 36, 0.7);
    background-color: rgba(251, 191, 36, 0.06);
}

.marketplace-section {
    width: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    padding: 50px 20px 60px 20px;
    margin-top: 30px;
}

.marketplace-inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.marketplace-inner h2 {
    color: #e2e8f0;
    font-size: 28px;
}

.marketplace-copy {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
}

.marketplace-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pill-inline {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.08);
    color: #cbd5e1;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: #111827;
    margin: 2vh auto;
    padding: 20px;
    border-radius: 12px;
    width: 95%;
    max-width: 500px;
    overflow-y: auto; /* Add scrolling if content exceeds height */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.close-button:hover {
    color: white;
}

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

.modal-form .sib-form {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.modal-form iframe {
    width: 100%;
    max-width: 540px;
    height: 640px; /* Fixed height that fits on smallest phone screens */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
    display: block;
    margin: 0 auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .top-bar {
        padding: 12px 15px 0 15px;
    }
    .video-iframe {
        padding-bottom: 56.25%; /* Maintain 16:9 on mobile */
    }
    
    .modal-content {
        width: 98%;
        margin: 1vh auto;
        padding: 15px 10px;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .video-iframe {
        padding-bottom: 56.25%; /* Maintain 16:9 on small mobile */
    }

    .marketplace-actions {
        flex-direction: column;
    }
}

/* Footer styles */
.footer {
    background-color: #0d1117; /* Slightly darker shade of the main background */
    color: #e2e8f0;
    padding: 40px 20px 30px 20px;
    margin-top: auto;
    border-top: none;
    width: 100%;
    max-width: 100%;
}

.footer-content {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

.email-link {
    font-size: 16px;
    color: #e2e8f0;
    margin: 0;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #fbbf24;
    transform: translateX(2px);
}

.email-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-right {
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link.facebook {
    background-color: #1877f2;
    color: white;
}

.social-link.facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.3);
}

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

/* Footer responsive design */
@media (max-width: 768px) {
    .footer {
        padding: 30px 15px 25px 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }
    
    .footer-left {
        order: 2;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .footer-right {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
        gap: 20px;
    }
    
    .email-link {
        font-size: 14px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 10px 15px 10px;
        margin-top: 30px;
    }
    
    .footer-content {
        gap: 15px;
    }
    
    .copyright {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .email-link {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .social-link svg {
        width: 22px;
        height: 22px;
    }
    
    .social-links {
        gap: 16px;
    }
}

/* For very large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 750px;
        margin: 0 auto;
    }
    
    .video-section {
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .video-section iframe {
        max-width: 750px;
    }
    
    .footer-content {
        max-width: 750px;
    }
}

/* Custom form styling */
.modal-form {
    padding: 20px;
}

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

#email {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#email:focus {
    border-color: #007bff;
    outline: none;
}

.signup-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.signup-submit-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

.signup-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#form-message {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

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

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

/* Legal page styles */
.legal-page {
    color: #e2e8f0;
}

.legal-hero {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-back-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.legal-back-link:hover {
    color: #fcd34d;
}

.legal-title {
    font-size: 32px;
    font-weight: 800;
    color: #f8fafc;
}

.legal-subtitle {
    color: #cbd5e1;
    font-size: 16px;
}

.legal-updated {
    color: #94a3b8;
    font-size: 14px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.legal-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fcd34d;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    background: rgba(251, 191, 36, 0.06);
}

.legal-nav-link:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 8px 18px rgba(251, 191, 36, 0.12);
}

.legal-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 1.7;
}

.legal-section {
    background: #0f172a;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.legal-section h2 {
    color: #f8fafc;
    font-size: 24px;
    margin-bottom: 12px;
}

.legal-section h3 {
    color: #fbbf24;
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.legal-section h4 {
    color: #e2e8f0;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 6px;
}

.legal-section p {
    color: #cbd5e1;
    margin-bottom: 12px;
}

.legal-section ul {
    margin: 8px 0 12px 20px;
    color: #cbd5e1;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section strong {
    color: #f8fafc;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    margin-top: 4px;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
}

.footer-link:hover {
    color: #fbbf24;
}

@media (max-width: 768px) {
    .legal-hero, .legal-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .legal-title {
        font-size: 26px;
    }

    .legal-nav {
        gap: 10px;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding-top: 28px;
    }

    .legal-title {
        font-size: 22px;
    }

    .legal-nav-link {
        width: 100%;
        justify-content: center;
    }

    .legal-section {
        padding: 20px 16px;
    }
}

/* ───────────────────────────── Support / Donate page ───────────────────────────── */
.support-hero-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    margin-bottom: 8px;
}

.support-hero-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.support-hero-card h2 {
    color: #f8fafc;
    font-size: 24px;
    margin-bottom: 10px;
}

.support-hero-card p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* Preset amount grid */
.support-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.amount-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 12px;
    border-radius: 12px;
    border: 2px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.06);
    color: #fbbf24;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.amount-btn .amount-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.amount-btn:hover {
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15);
}

.amount-btn.selected {
    background: rgba(251, 191, 36, 0.18);
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px #fbbf24;
}

/* Custom amount input */
.custom-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.custom-amount-wrapper label {
    color: #94a3b8;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.custom-amount-field {
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid #1f2937;
    border-radius: 10px;
    padding: 0 12px;
    transition: border-color 0.2s ease;
}

.custom-amount-field:focus-within {
    border-color: rgba(251, 191, 36, 0.6);
}

.custom-amount-field .currency-symbol {
    color: #94a3b8;
    font-size: 18px;
    font-weight: 700;
}

.custom-amount-field input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 8px;
    font-family: inherit;
    min-width: 0;
}

.custom-amount-field input::placeholder {
    color: #475569;
}

/* Donate button */
.donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    margin-top: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.3);
    font-family: inherit;
    letter-spacing: 0.02em;
}

.donate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(251, 191, 36, 0.4);
    filter: brightness(1.05);
}

.donate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.donate-btn .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(17, 24, 39, 0.3);
    border-top-color: #111827;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.donate-btn.loading .btn-spinner {
    display: inline-block;
}

.donate-btn.loading .btn-label {
    display: none;
}

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

/* How it helps section */
.support-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.perk-card {
    background: #0f172a;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}

.perk-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.perk-card h4 {
    color: #f8fafc;
    font-size: 14px;
    margin-bottom: 4px;
}

.perk-card p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Success / error banners */
.support-banner {
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}

.support-banner.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.support-banner.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* Secure badge */
.support-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
}

.support-secure svg {
    width: 14px;
    height: 14px;
    fill: #64748b;
}

/* Responsive */
@media (max-width: 480px) {
    .support-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-perks {
        grid-template-columns: 1fr;
    }

    .support-hero-card {
        padding: 24px 18px;
    }

    .support-hero-card h2 {
        font-size: 20px;
    }

    .custom-amount-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-amount-wrapper label {
        margin-bottom: 2px;
    }
}
