* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #ff006e;
    --bg-dark: #0f0c29;
    --bg-medium: #302b63;
    --bg-light: #24243e;
    --text-primary: #fff;
    --text-secondary: #b8b8d1;
    --text-muted: #6e6e8f;
    --success: #00ff88;
    --error: #ff006e;
    --warning: #ffbe0b;
    --info: #00d4ff;
    --shadow-md: 0 4px 8px rgba(0, 0, 0, .2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, .3);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, .4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all .3s ease
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--bg-light) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, .98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .5s
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, .1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite
}

.loading-text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    animation: pulse 1.5s ease-in-out infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px
}

.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px
}

.header-content {
    max-width: 800px;
    margin: 0 auto
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px
}

.logo-icon {
    font-size: 3.5rem;
    animation: bounce 2s ease-in-out infinite
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0
}

.version-badge {
    background: rgba(255, 255, 255, .1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    color: var(--text-secondary)
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 15px
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    max-width: 900px;
    padding: 0 20px
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 3px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition)
}

.progress-step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 136, .5);
    transform: scale(1.1)
}

.progress-step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: var(--bg-dark)
}

.step-label {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 500
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 700
}

.progress-line {
    height: 3px;
    background: rgba(255, 255, 255, .1);
    flex: 1;
    min-width: 50px;
    margin: 0 -10px;
    margin-top: -42px
}

.progress-step.completed+.progress-line {
    background: var(--success)
}

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9000;
    max-width: 400px
}

.alert {
    background: rgba(255, 255, 255, .95);
    color: #333;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0
    }
}

.alert-success {
    border-left: 4px solid var(--success)
}

.alert-error {
    border-left: 4px solid var(--error)
}

.alert-warning {
    border-left: 4px solid var(--warning)
}

.alert-info {
    border-left: 4px solid var(--info)
}

.alert-icon {
    font-size: 1.5rem
}

.alert-message {
    flex: 1;
    font-weight: 500
}

.alert-close {
    background: 0 0;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: var(--transition)
}

.alert-close:hover {
    color: #000;
    transform: scale(1.2)
}

.step {
    display: none;
    animation: fadeIn .5s ease
}

.step.active {
    display: block
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.step-header {
    text-align: center;
    margin-bottom: 40px
}

.step-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-secondary)
}

.step-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap
}

.upload-area {
    background: rgba(255, 255, 255, .05);
    border: 3px dashed rgba(255, 255, 255, .2);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 auto;
    max-width: 700px
}

.upload-area:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, .2)
}

.upload-area.dragover {
    background: rgba(0, 255, 136, .1);
    border-color: var(--primary);
    transform: scale(1.02)
}

.upload-label {
    cursor: pointer;
    display: block
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-15px)
    }
}

.upload-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px
}

.upload-hint {
    font-size: .95rem;
    color: var(--text-muted)
}

.image-preview {
    max-width: 600px;
    margin: 40px auto;
    text-align: center
}

.image-preview.hidden {
    display: none
}

.image-preview img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-bottom: 20px
}

.btn-remove {
    background: var(--error);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition)
}

.btn-remove:hover {
    background: #cc0055;
    transform: translateY(-2px)
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0
}

.style-card {
    background: rgba(255, 255, 255, .05);
    border: 2px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer
}

.style-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, .3);
    border-color: var(--primary)
}

.style-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 136, .5)
}

.style-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .05) 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative
}

.style-preview.gamer {
    background: linear-gradient(135deg, #ff00ff 0%, #00d4ff 100%)
}

.style-preview.stadium {
    background: linear-gradient(135deg, #ff6b00 0%, #ffd700 100%)
}

.style-icon {
    font-size: 5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3))
}

.style-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase
}

.style-info {
    padding: 30px
}

.style-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 700
}

.style-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6
}

.style-features {
    list-style: none;
    margin-bottom: 25px
}

.style-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: .95rem
}

.btn-select-style {
    width: 100%;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition)
}

.btn-select-style:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, .4)
}

.style-card.selected .btn-select-style {
    background: var(--success)
}

.player-form {
    max-width: 700px;
    margin: 0 auto
}

.form-group {
    margin-bottom: 30px
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.05rem
}

.label-icon {
    font-size: 1.3rem
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .08);
    border: 2px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition)
}

.form-input:focus,
.form-select:focus {
    outline: 0;
    border-color: var(--primary);
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, .1)
}

.form-input::placeholder {
    color: var(--text-muted)
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: .85rem;
    color: var(--text-muted);
    font-style: italic
}

.form-select option {
    background: var(--bg-dark);
    color: var(--text-primary)
}

.customize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0
}

.customize-section {
    background: rgba(255, 255, 255, .05);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .1)
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700
}

.color-group {
    margin-bottom: 25px
}

.color-label {
    display: block;
    margin-bottom: 12px
}

.color-label span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px
}

.color-label small {
    color: var(--text-muted);
    font-size: .85rem
}

.color-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center
}

.color-picker {
    width: 80px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition)
}

.color-picker:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md)
}

.color-text {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .08);
    border: 2px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center
}

.color-presets {
    margin-top: 20px
}

.presets-title {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 12px
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px
}

.preset-btn {
    background: rgba(255, 255, 255, .08);
    border: 2px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition)
}

.preset-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-md)
}

.color-preview-box {
    display: flex;
    gap: 15px;
    margin-top: 20px
}

.preview-primary,
.preview-secondary {
    flex: 1;
    height: 150px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
    transition: var(--transition)
}

.preview-primary:hover,
.preview-secondary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg)
}

.preview-label {
    background: rgba(0, 0, 0, .5);
    padding: 8px 16px;
    border-radius: 20px
}

.generation-info p {
    margin: 8px 0;
    color: var(--info);
    font-size: .95rem
}

.result-container {
    max-width: 900px;
    margin: 0 auto
}

.result-image-wrapper {
    margin-bottom: 40px;
    text-align: center
}

.result-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: zoomIn .6s ease
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(.8)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px
}

.btn-download {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 18px 32px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-md)
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, .4)
}

.btn-share {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition)
}

.btn-share:hover {
    background: #cc0055;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md)
}

.result-info {
    background: rgba(255, 255, 255, .05);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px
}

.result-info h3 {
    margin-bottom: 20px;
    font-size: 1.4rem
}

.art-info-list {
    list-style: none
}

.art-info-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.art-info-list li:last-child {
    border-bottom: none
}

.art-info-list strong {
    color: var(--text-secondary)
}

.social-share {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, .05);
    border-radius: var(--radius-lg)
}

.social-share h4 {
    margin-bottom: 20px;
    font-size: 1.2rem
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap
}

.social-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.social-btn.twitter {
    background: #1DA1F2;
    color: #fff
}

.social-btn.facebook {
    background: #4267B2;
    color: #fff
}

.social-btn.whatsapp {
    background: #25D366;
    color: #fff
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1)
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md)
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, .4)
}

.btn-primary:active {
    transform: translateY(-1px)
}

.btn-primary.hidden {
    display: none
}

.btn-secondary {
    background: rgba(255, 255, 255, .1);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, .2);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .3);
    transform: translateY(-2px)
}

.btn-generate {
    font-size: 1.2rem;
    padding: 20px 40px;
    animation: pulse-glow 2s ease-in-out infinite
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, .4)
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, .8)
    }
}

.btn-icon {
    font-size: 1.3rem
}

.btn-arrow {
    font-size: 1.2rem
}

.footer {
    margin-top: 100px;
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, .1)
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary)
}

.footer-title {
    font-size: 1.5rem;
    font-family: 'Bebas Neue', sans-serif
}

.footer-subtitle {
    font-size: 1.1rem
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6
}

.footer-links {
    list-style: none
}

.footer-links li {
    margin-bottom: 10px
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition)
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px
}

.footer-tech {
    color: var(--text-secondary);
    margin-bottom: 10px
}

.footer-tech strong {
    color: var(--primary)
}

.footer-version {
    color: var(--text-muted);
    font-size: .85rem
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: var(--text-muted)
}

.footer-bottom p {
    margin: 5px 0
}

.footer-credits {
    font-size: .9rem
}

.hidden {
    display: none !important
}

.text-center {
    text-align: center
}

@media (max-width:768px) {
    .logo-text {
        font-size: 2.5rem
    }

    .tagline {
        font-size: 1rem
    }

    .progress-container {
        overflow-x: auto;
        padding: 0 10px
    }

    .step-label {
        font-size: .7rem
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem
    }

    .progress-line {
        min-width: 30px
    }

    .step-header h2 {
        font-size: 1.8rem
    }

    .styles-grid {
        grid-template-columns: 1fr
    }

    .customize-grid {
        grid-template-columns: 1fr
    }

    .step-actions {
        flex-direction: column
    }

    .btn-primary,
    .btn-secondary {
        width: 100%
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center
    }

    .presets-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .alert-container {
        left: 10px;
        right: 10px;
        max-width: 100%
    }

    .social-buttons {
        flex-direction: column
    }

    .social-btn {
        width: 100%
    }
}

@media (max-width:480px) {
    .logo-icon {
        font-size: 2.5rem
    }

    .logo-text {
        font-size: 2rem
    }

    .upload-area {
        padding: 40px 20px
    }

    .upload-icon {
        font-size: 3rem
    }

    .upload-text {
        font-size: 1.1rem
    }

    .style-icon {
        font-size: 3.5rem
    }

    .btn-generate {
        font-size: 1rem;
        padding: 16px 24px
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .05)
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, .5);
    border-radius: 5px
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary)
}

::selection {
    background: var(--primary);
    color: var(--bg-dark)
}

::-moz-selection {
    background: var(--primary);
    color: var(--bg-dark)
}

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px
}

button:disabled,
input:disabled,
select:disabled {
    opacity: .5;
    cursor: not-allowed
}