* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e6f5;
    background: radial-gradient(circle at top, #0d1b2a, #000000 80%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1b263b, #0d1b2a 70%);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e0e6f5;
    text-shadow: 0 0 15px rgba(173, 216, 230, 0.6);
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #a5b8d8;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.logo-container {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(72, 202, 228, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    box-shadow: 0 0 20px rgba(72, 202, 228, 0.3);
    transition: all 0.3s ease;
}

.logo-container:hover {
    border-color: rgba(72, 202, 228, 0.8);
    box-shadow: 0 0 30px rgba(72, 202, 228, 0.5);
    transform: scale(1.05);
}

.logo-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
}

.cta-button {
    background: linear-gradient(90deg, #5e60ce, #48cae4);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(72, 202, 228, 0.7);
}

.cta-button:hover {
    background: linear-gradient(90deg, #6930c3, #00b4d8);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(94, 96, 206, 0.9);
}

/* Progress Section */
.progress-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #0d1b2a, #1b263b);
    text-align: center;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e0e6f5;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f5d4, #80ffdb);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0.1%;
    box-shadow: 0 0 12px rgba(0, 245, 212, 0.6);
}

.progress-count {
    color: #a5b8d8;
    font-size: 1.1rem;
}

.progress-milestone {
    margin-bottom: 25px;
}

.progress-milestone:last-child {
    margin-bottom: 0;
}

.milestone-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #e0e6f5;
}

.milestone-achieved {
    color: #00f5d4;
}

.milestone-description {
    font-size: 0.85rem;
    color: #a5b8d8;
    font-style: italic;
    margin-top: 2px;
}

/* User Agreement Modal */
.agreement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 15000;
    align-items: center;
    justify-content: center;
}

.agreement-modal.active {
    display: flex;
}

.agreement-content {
    background: linear-gradient(135deg, #1b263b, #0d1b2a);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.agreement-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #a5b8d8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.agreement-close:hover {
    color: #ffffff;
}

.agreement-header {
    text-align: center;
    margin-bottom: 30px;
}

.agreement-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.agreement-subtitle {
    color: #a5b8d8;
    font-size: 1rem;
}

.agreement-text {
    color: #e0e6f5;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: left;
}

.agreement-text h3 {
    color: #48cae4;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.agreement-text p {
    margin-bottom: 15px;
}

.agreement-text ul {
    margin: 10px 0 15px 20px;
}

.agreement-text li {
    margin-bottom: 5px;
}

.agreement-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.agreement-button {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.agree-button {
    background: linear-gradient(90deg, #00f5d4, #80ffdb);
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
}

.agree-button:hover {
    background: linear-gradient(90deg, #80ffdb, #00f5d4);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.7);
}

.decline-button {
    background: rgba(255, 255, 255, 0.1);
    color: #a5b8d8;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.decline-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Submission Form */
.submission-section {
    padding: 80px 0;
    background: radial-gradient(circle at center, #000000, #1b263b 80%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.form-subtitle {
    font-size: 1.2rem;
    color: #a5b8d8;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.sentence-input {
    flex: 1;
    padding: 20px;
    border: 2px solid #2c3e50;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.name-input {
    width: 200px;
    padding: 20px;
    border: 2px solid #2c3e50;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sentence-input:focus, .name-input:focus {
    outline: none;
    border-color: #5e60ce;
    box-shadow: 0 0 12px rgba(94, 96, 206, 0.7);
}

.char-counters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #a5b8d8;
}

.tier-selection {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.tier-option {
    flex: 1;
    max-width: 250px;
    padding: 20px;
    border: 2px solid #2c3e50;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.tier-option:hover {
    border-color: #5e60ce;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(94, 96, 206, 0.6);
}

.tier-option.selected {
    border-color: #5e60ce;
    background: rgba(94, 96, 206, 0.2);
}

.tier-price {
    font-size: 2rem;
    font-weight: 700;
    color: #48cae4;
    margin-bottom: 10px;
}

.tier-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.tier-description {
    color: #a5b8d8;
    font-size: 0.9rem;
}

.payment-button {
    background: linear-gradient(90deg, #ffd60a, #ff6b35);
    color: black;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.7);
    margin-bottom: 10px;
}

.payment-button:hover:not(:disabled) {
    background: linear-gradient(90deg, #ffb703, #fb8500);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.8);
}

.payment-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Modal */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.payment-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1b263b, #0d1b2a);
    padding: 40px;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #a5b8d8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #a5b8d8;
    font-size: 1rem;
}

.order-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #e0e6f5;
}

.order-total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-method {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.payment-method:hover {
    border-color: #5e60ce;
    background: rgba(94, 96, 206, 0.1);
    transform: translateY(-2px);
}

.payment-method.processing {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.payment-method.selected {
    border-color: #48cae4;
    background: rgba(72, 202, 228, 0.1);
    box-shadow: 0 0 15px rgba(72, 202, 228, 0.3);
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stripe-icon {
    background: linear-gradient(135deg, #635bff, #4f46e5);
    color: white;
}

.payment-info {
    flex: 1;
}

.payment-info h3 {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-info p {
    color: #a5b8d8;
    font-size: 0.9rem;
}

.security-badge {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff88;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #48cae4;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: auto;
    flex-shrink: 0;
}

.payment-method.processing .loading-spinner {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stripe Elements */
#stripe-elements-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

#stripe-card-element {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.stripe-submit-button {
    width: 100%;
    background: linear-gradient(90deg, #635bff, #4f46e5);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3);
}

.stripe-submit-button:hover:not(:disabled) {
    background: linear-gradient(90deg, #4f46e5, #3730a3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 91, 255, 0.4);
}

.stripe-submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Wall Section */
.wall-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #1b263b, #000000);
}

.wall-header {
    text-align: center;
    margin-bottom: 50px;
}

.wall-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(173, 216, 230, 0.5);
}

.wall-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.random-button, .scroll-top-button {
    background: linear-gradient(90deg, #5e60ce, #48cae4);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.random-button:hover, .scroll-top-button:hover {
    background: linear-gradient(90deg, #00f5d4, #80ffdb);
    transform: translateY(-2px);
}

.sentences-container {
    max-height: 800px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    background: rgba(239, 234, 234, 0.02);
}

.top-ten-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ffd60a;
}

.top-ten-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd60a;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.sentence-item {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    position: relative;
    color: #ffffff;
}

.sentence-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(94, 96, 206, 0.6);
}

.sentence-normal {
    background: #ffffff;
    border: 1px solid #ddd;
    backdrop-filter: blur(6px);
    color: #333333;
}

.sentence-featured {
    background: rgba(26, 26, 26, 0.9);
    border: 3px solid #5e60ce;
    color: #ffffff;
    position: relative;
    backdrop-filter: blur(6px);
}

.sentence-featured::after {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #48cae4;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.sentence-featured .sentence-meta {
    color: #a5b8d8;
}

.sentence-top-ten {
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.15) 0%, rgba(255, 224, 130, 0.15) 100%);
    border: 3px solid #ffd60a;
    position: relative;
    backdrop-filter: blur(6px);
}

.sentence-top-ten::before {
    content: "⭐ TOP 10";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ffd60a;
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 12px;
}

.sentence-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    padding-right: 140px;
}

.sentence-meta {
    font-size: 0.9rem;
    color: #a5b8d8;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.sentence-number {
    font-weight: 600;
}

/* Share Button Styles */
.share-button {
    position: absolute;
    bottom: 35px;
    right: 20px;
    background: linear-gradient(90deg, #5e60ce, #48cae4);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.share-button:hover {
    background: linear-gradient(90deg, #00f5d4, #80ffdb);
}

.sentence-timestamp {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: #a5b8d8;
    font-size: 0.75rem;
    font-weight: 400;
}

.new-post-highlight {
    animation: highlightNew 3s ease-in-out;
    border: 3px solid #00f5d4 !important;
}

@keyframes highlightNew {
    0% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(0, 245, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

/* Footer */
.footer {
    background: rgba(26, 26, 26, 0.95);
    color: #a5b8d8;
    padding: 12px 24px;
    text-align: center;
    border-radius: 25px;
    font-size: 15px;
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.footer-content {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.footer-content a {
    color: #a5b8d8;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-weight: 500;
}

.footer-content a:hover {
    color: #80ffdb;
    text-shadow: 0 0 8px rgba(128, 255, 219, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    .name-input {
        width: 100%;
    }

    .tier-selection {
        flex-direction: column;
        align-items: center;
    }

    .tier-option {
        max-width: none;
        width: 100%;
    }

    .wall-controls {
        flex-direction: column;
        align-items: center;
    }

    .sentence-text {
        padding-right: 120px;
        margin-bottom: 50px;
    }

    .share-button {
        bottom: 30px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .sentence-timestamp {
        font-size: 0.7rem;
        bottom: 12px;
        right: 15px;
    }

    .modal-content, .agreement-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }

    .payment-method {
        padding: 15px;
        gap: 12px;
    }

    .payment-icon {
        width: 35px;
        height: 35px;
    }

    #stripe-elements-container {
        padding: 20px;
    }

    .stripe-submit-button {
        padding: 14px;
        font-size: 1rem;
    }

    .agreement-buttons {
        flex-direction: column;
    }

    .agreement-button {
        width: 100%;
    }
}