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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 50%, #1a0a0a 100%);
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(180deg, #ffd700 0%, #ff8c00 50%, #8b4513 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 4px;
}

header p {
    color: #888;
    margin-top: 5px;
}

.usage-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid;
}

.usage-badge.free {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.usage-badge.paid {
    background: rgba(74, 169, 153, 0.15);
    border-color: rgba(74, 169, 153, 0.5);
    color: #6dd5c0;
}

.usage-badge.empty {
    background: rgba(255, 80, 80, 0.1);
    border-color: rgba(255, 80, 80, 0.4);
    color: #ff8080;
}

.paywall {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 140, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.paywall-headline {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.paywall-sub {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 14px;
}

.buy-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: linear-gradient(180deg, #4a9 0%, #286 100%);
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(40, 134, 102, 0.4);
}

.buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 134, 102, 0.6);
}

.buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.paywall-note {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

.main-content {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.controls {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.api-section {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.api-link {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #ffd700;
    text-decoration: none;
}

.api-link:hover {
    text-decoration: underline;
}

.upload-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-btn {
    display: block;
    width: 100%;
    padding: 20px;
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border: 2px dashed #666;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-btn:hover {
    border-color: #ffd700;
    background: linear-gradient(180deg, #555 0%, #333 100%);
}

.upload-btn span {
    font-weight: bold;
    color: #ffd700;
}

.upload-btn input {
    display: none;
}

.upload-btn.has-photo {
    border-style: solid;
    border-color: #4a4;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ffd700;
}

.inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 12px;
    color: #888;
    letter-spacing: 2px;
}

.input-group input {
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    background: #222;
    border: 2px solid #444;
    border-radius: 5px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input[type="password"] {
    text-transform: none;
    font-weight: normal;
}

.input-group input:focus {
    border-color: #ffd700;
}

.input-group input::placeholder {
    color: #555;
}

.generate-btn {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: linear-gradient(180deg, #ffd700 0%, #ff8c00 50%, #cc7000 100%);
    color: #000;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.action-btn.download {
    background: linear-gradient(180deg, #4a9 0%, #286 100%);
    color: #fff;
}

.action-btn.share {
    background: linear-gradient(180deg, #c0c0c0 0%, #808080 100%);
    color: #000;
}

.preview-section {
    flex: 0 0 500px;
}

/* ALBUM COVER STYLES */
.album-cover {
    width: 500px;
    height: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    background: #111;
    border-radius: 4px;
}

.placeholder-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.placeholder-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.placeholder-text {
    text-align: center;
    color: #444;
    font-size: 18px;
    line-height: 1.5;
}

.generated-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: #ffd700;
    font-size: 16px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .controls {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .preview-section {
        flex: 0 0 auto;
    }

    .album-cover {
        width: 350px;
        height: 350px;
    }

    header h1 {
        font-size: 1.8rem;
    }
}
