* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
}

.gate-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gate-header {
    text-align: center;
    margin-bottom: 30px;
}

.gate-header h1 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 10px;
}

.gate-header .subtitle {
    color: #666;
    font-size: 1.1em;
}

.emoji-large {
    font-size: 80px;
    margin: 20px 0;
}

.options-container {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.option-card {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border: 2px solid #e0e6ed;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.option-card.free {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.option-card.premium {
    background: linear-gradient(135deg, #81ecec 0%, #00b894 100%);
}

.option-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2d3436;
}

.option-description {
    color: #636e72;
    line-height: 1.6;
}

.option-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.option-badge.free-badge {
    background: #00b894;
}

.beg-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
    margin-top: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.beg-section.active {
    display: block;
}

.beg-instructions {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px dashed #e17055;
}

.beg-instructions h3 {
    color: #d63031;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.beg-instructions ul {
    margin-right: 20px;
    color: #2d3436;
    line-height: 1.8;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.char-counter {
    text-align: left;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-beg {
    background: linear-gradient(135deg, #ff6b6b 0%, #d63031 100%);
    color: white;
}

.btn-beg:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(214, 48, 49, 0.3);
}

.btn-back {
    background: #dfe6e9;
    color: #2d3436;
    margin-top: 10px;
}

.btn-back:hover {
    background: #b2bec3;
}

.success-message {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    color: white;
    font-size: 1.2em;
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.payment-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
    margin-top: 30px;
}

.payment-section.active {
    display: block;
}

.payment-info {
    background: linear-gradient(135deg, #81ecec 0%, #00b894 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
}

.payment-info h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.price {
    font-size: 2.5em;
    font-weight: bold;
    margin: 20px 0;
}

#paypal-button-container-P-6M770414PT678403KNEZ7KKI {
    margin: 20px 0;
    min-height: 50px;
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.welcome-screen {
    text-align: center;
    padding: 40px 20px;
}

.welcome-screen .emoji-success {
    font-size: 80px;
    margin-bottom: 20px;
}

.features-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.features-list h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.features-list ul {
    text-align: right;
    color: #2d3436;
    line-height: 2;
    list-style: none;
}

.features-list li:before {
    content: "✓ ";
    color: #00b894;
    font-weight: bold;
    margin-left: 10px;
}

.access-key-display {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    color: #856404;
    word-break: break-all;
}

.payment-processing {
    text-align: center;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
    margin: 20px 0;
}

.payment-success {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    margin: 20px 0;
    animation: pulse 0.5s ease-out;
}

.test-notice {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    color: #856404;
    border: 2px solid #ffc107;
}