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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

header {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

header p {
    font-size: 1.2rem;
    color: #718096;
}

.shop-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.character-gallery, .customization-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.character-gallery h2, .customization-panel h2 {
    margin-bottom: 1.5rem;
    color: #4a5568;
    font-size: 1.8rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.character-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.character-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.character-card.selected {
    border-color: #667eea;
    background: #edf2f7;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.character-ascii {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1;
    white-space: pre;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.character-name {
    font-size: 0.8rem;
    color: #718096;
    font-weight: bold;
}

.selected-character {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speech-options {
    margin-bottom: 1.5rem;
}

.speech-options label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #4a5568;
}

.speech-options textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
    min-height: 80px;
}

.speech-options select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
}

.preview-section {
    margin-bottom: 1.5rem;
}

.preview-section h3 {
    margin-bottom: 1rem;
    color: #4a5568;
}

.ascii-preview {
    background: #1a202c;
    color: #a0aec0;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    min-height: 200px;
}

.ascii-preview pre {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: pre;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

#generateBtn {
    background: #667eea;
    color: white;
}

#generateBtn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

#copyBtn {
    background: #48bb78;
    color: white;
}

#copyBtn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

#downloadBtn {
    background: #ed8936;
    color: white;
}

#downloadBtn:hover {
    background: #dd6b20;
    transform: translateY(-1px);
}

.support-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.donate-button {
    text-align: center;
}

.stripe-donate-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
    border: none;
    cursor: pointer;
}

.stripe-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
    background: linear-gradient(135deg, #ee5a24, #c44314);
}

.stripe-donate-btn:active {
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .shop-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
    }
}