:root {
    --nequi-pink: #ff007f;
    --nequi-purple: #240034;
    --nequi-light-pink: #f9f2f6;
    --text-dark: #222;
    --text-muted: #666;
    --white: #ffffff;
    --bg-light: #f4f6f9;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px rgba(36, 0, 52, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #e0e5ec;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.nequi-app-container {
    width: 100%;
    max-width: 450px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

/* Header */
.main-header {
    padding: 25px;
    display: flex;
    justify-content: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.nequi-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-square {
    width: 8px;
    height: 8px;
    background-color: var(--nequi-pink);
    margin-top: -15px;
}

.nequi-brand {
    font-size: 32px;
    font-weight: 800;
    color: var(--nequi-purple);
    letter-spacing: -1.5px;
}

/* App Content & Steps */
#app-content {
    flex: 1;
    padding: 30px 25px;
    overflow-y: auto;
}

.step-container {
    display: flex;
    flex-direction: column;
    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hidden {
    display: none !important;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Landing Page / Hero */
.card-hero {
    text-align: center;
    margin-bottom: 40px;
}

.card-visual-container {
    perspective: 1200px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.physical-card-mockup {
    width: 280px;
    height: 170px;
    background: linear-gradient(135deg, #240034 0%, #4a0068 50%, #240034 100%);
    border-radius: 16px;
    margin: 0 auto;
    position: relative;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    color: white;
    transform: rotateX(15deg) rotateY(-20deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.physical-card-mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255,255,255,0.05) 45%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.05) 55%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: all 0.6s;
}

.physical-card-mockup:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.05);
}

.physical-card-mockup:hover::before {
    left: 100%;
    top: 100%;
}

.chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffae00 100%);
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.card-logo {
    font-size: 24px;
    font-weight: 800;
    position: absolute;
    top: 25px;
    right: 25px;
    letter-spacing: -1px;
}

.visa-logo {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    position: absolute;
    bottom: 25px;
    right: 25px;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--nequi-purple);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Promo Styles */
.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--nequi-pink) 0%, #ff4d94 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 0, 127, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 127, 0); }
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 18px;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.benefit-item:hover {
    background-color: var(--nequi-light-pink);
    transform: translateX(5px);
}

.benefit-item i {
    color: var(--nequi-pink);
    font-size: 22px;
    width: 35px;
    text-align: center;
}

.benefit-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--nequi-purple);
}

/* Forms */
.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.back-btn {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--nequi-purple);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #e0e0e0;
}

.step-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--nequi-purple);
}

.step-instruction {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.nequi-form .input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--nequi-purple);
    margin-bottom: 10px;
}

.input-group input {
    width: 100%;
    padding: 18px;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    font-size: 16px;
    background-color: #fdfdfd;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--nequi-pink);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(255, 0, 127, 0.1);
}

/* Payment Section */
.pse-container {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.payment-amount-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.amount-label {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
}

.price-container {
    text-align: right;
}

.amount-old {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
    margin-bottom: 4px;
    display: block;
}

.amount-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--nequi-purple);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--nequi-pink) 0%, #ff4d94 100%);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(255, 0, 127, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 0, 127, 0.35);
}

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

.btn-secondary {
    width: 100%;
    background-color: white;
    color: var(--nequi-purple);
    border: 2px solid var(--nequi-purple);
    padding: 18px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

/* Success Page */
.success-content {
    text-align: center;
    padding: 50px 0;
}

.success-icon-animated {
    font-size: 90px;
    color: #00c853;
    margin-bottom: 30px;
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.order-summary {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: left;
    border: 1px solid #eee;
}

.order-summary p {
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
}

.order-summary p strong {
    color: var(--text-muted);
    font-weight: 600;
}

/* Footer */
.app-footer {
    padding: 25px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.app-footer p {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nequi-loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid var(--nequi-pink);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-top: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 380px) {
    .physical-card-mockup {
        width: 240px;
        height: 150px;
    }
    .hero-title {
        font-size: 22px;
    }
}