:root {
    --primary-color: #ffffff;
    --secondary-color: #f0f0f0;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --text-color: #333;
    --text-light: #fff;
    --container-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--primary-color);
    overflow-x: hidden;
    background-color: #121212;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    padding: 1rem 5%;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    animation: fadeInDown 1s;
}

.nav-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: #121212;
}

main {
    padding: 2rem 5%;
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.session-id-container {
    background: var(--container-bg);
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    display: inline-block;
    animation: fadeInUp 1s;
}

.generator-container, .progress-container, .result-container {
    background: var(--container-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fadeInUp 1.2s;
}

h2, h3, h4 {
    font-weight: 300;
}

textarea {
    width: 95%;
    height: 100px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    resize: none;
    margin-top: 1rem;
}

textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.word-counter {
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: right;
    margin-right: 2.5%;
}

.cta-button, .pay-now-btn, .submit-proof-btn {
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.cta-button:hover, .pay-now-btn:hover, .submit-proof-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.cta-button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-status {
    font-size: 1.1rem;
    min-height: 25px;
}

/* Result Section */
.result-image-preview {
    max-width: 270px;
    width: 60%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 15px;
    margin: 1.5rem auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.pricing-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.price-tag {
    background: #23d5ab;
    color: #121212;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
}

.verification-container {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.verification-container input {
    display: block;
    width: 80%;
    margin: 1rem auto;
    padding: 0.8rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1e1e1e;
    color: var(--secondary-color);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 600px;
    border-radius: 15px;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.faq-item {
    text-align: left;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
}

#supportForm label {
    display: block;
    text-align: left;
    margin-top: 1rem;
}

#supportForm input, #supportForm textarea {
    width: calc(100% - 2rem);
    padding: 0.8rem;
    margin-top: 0.5rem;
    background: #333;
    border: 1px solid #555;
    color: var(--secondary-color);
    border-radius: 5px;
}

#supportStatus {
    margin-top: 1rem;
    font-weight: bold;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
