.st-promo-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background: #000;
    padding: 20px;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.st-affiliate-config {
    margin-bottom: 30px;
    padding: 20px;
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
}

.st-affiliate-config input {
    padding: 12px;
    width: 100%;
    max-width: 400px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    margin-top: 10px;
    font-size: 16px;
}

.st-promo-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.st-promo-item {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    width: 100%;
}

.st-promo-item:hover {
    border-color: #e63946;
}

.st-promo-preview {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #050505;
    line-height: 0;
    overflow: hidden;
}

.st-promo-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

.st-promo-preview video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
}

.st-promo-info {
    padding: 20px;
    background: #111;
    border-top: 1px solid #222;
}

.st-promo-info h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #eee;
}

.st-promo-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.st-btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.3s ease;
    cursor: pointer;
    border: none;
}

.st-download-btn {
    background: #333;
    color: #fff;
}

.st-download-btn:hover {
    background: #444;
}

.st-code-btn {
    background: #e63946;
    color: #fff;
}

.st-code-btn:hover {
    background: #d62828;
}

/* Modal Styles */
.st-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.st-modal-content {
    background-color: #1a1a1a;
    padding: 30px;
    border: 1px solid #444;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    color: #fff;
}

.st-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.st-modal-close:hover {
    color: #fff;
}

.st-modal h2 {
    margin-top: 0;
    color: #e63946;
}

.st-modal pre {
    background: #000;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}

.st-copy-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    width: 100%;
}

@media (max-width: 600px) {
    .st-promo-preview video {
        max-height: 60vh;
    }
    .st-btn {
        width: 100%;
        flex: none;
    }
}
