* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Anti Auto Zoom Mobile */
input, select, textarea {
    font-size: 16px !important;
}

.container {
    max-width: 480px;
    margin: 0 auto;
}

/* Header Styles - Modern & Clean with White Card */
.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 12px 20px;
    margin-bottom: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 
                0 0 0 1px rgba(255,255,255,0.1);
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.logo > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo > span {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    max-width: 48px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo-icon {
    font-size: 42px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.logo p,
.header > p {
    opacity: 0.85;
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
    color: #6b7280;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Styles - Enhanced Glassmorphism */
.order-card,
.confirm-card,
.success-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 
                0 0 0 1px rgba(255,255,255,0.1);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-header,
.confirm-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.order-header h2,
.confirm-header h2 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.order-header p,
.confirm-header p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Card with Icon and Code Box - Improved */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.card .icon {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.card .icon:hover {
    transform: scale(1.05);
}

.code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.code-box:hover {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.code-box .code {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 2px;
    text-align: center;
    font-family: 'Monaco', 'Courier New', monospace;
}

.code-box .copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.code-box .copy-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.code-box .copy-btn:active {
    transform: scale(0.95);
}

/* Form Styles - Modern Input Design */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: -0.2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: #1a1a1a;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Custom Select with Icon - Enhanced */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.select-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.select-display::after {
    content: '▼';
    position: absolute;
    right: 16px;
    color: #667eea;
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.select-wrapper select:focus + .select-display::after {
    transform: rotate(180deg);
}

.select-wrapper select:focus + .select-display {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.select-display img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

.select-display span {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Price Display - Eye-catching */
.price-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 20px;
    border-radius: 20px;
    margin: 24px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.price-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Button Styles - Modern & Tactile */
.btn-submit,
.btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before,
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:active::before,
.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.btn-submit:active,
.btn:active {
    transform: translateY(0);
}

/* Trust Badges - Modern Card Style */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 14px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* Steps Indicator - Enhanced */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
    padding: 0 20px;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.step.active .step-circle {
    background: white;
    color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.step-label {
    color: white;
    font-size: 12px;
    opacity: 0.8;
    font-weight: 600;
}

.step.active .step-label,
.step.completed .step-label {
    opacity: 1;
}

/* Product Info - Card Style */
.product-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 18px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-info img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-details h3 {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.product-details p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Order Details - Clean Layout */
.order-details {
    border-top: 2px dashed #e5e7eb;
    border-bottom: 2px dashed #e5e7eb;
    padding: 20px 0;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 14px;
    gap: 16px;
}

.detail-label {
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    color: #1a1a1a;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

.detail-row.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 20px;
    border-radius: 16px;
    margin: 16px 0;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.detail-row.highlight .detail-label,
.detail-row.highlight .detail-value {
    color: white;
}

.detail-row.highlight .detail-value {
    font-size: 22px;
    font-weight: 800;
}

/* Button Group - Responsive */
.button-group {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
}

.btn-back {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 16px;
}

.btn-back:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Success Page - Celebration Style */
.success-card {
    padding: 32px 24px;
    text-align: center;
}

.success-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    color: white;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.success-title {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.success-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 28px;
    font-weight: 500;
}

.order-id-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.order-id-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-id-value {
    font-size: 22px;
    font-weight: 800;
    color: #667eea;
    letter-spacing: 1px;
    font-family: 'Monaco', 'Courier New', monospace;
}

.info-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.info-box-title {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.info-box-text {
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
    font-weight: 500;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20ba5a 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #1fa952 100%);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.btn-home {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
}

/* Responsive Design - Mobile First */
@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .order-card,
    .confirm-card,
    .success-card {
        padding: 20px;
        border-radius: 20px;
    }

    .logo {
        font-size: 24px;
    }

    .logo-img {
        max-width: 40px;
    }

    .header p {
        font-size: 14px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .success-card {
        padding: 28px 20px;
    }

    .steps {
        padding: 0 10px;
        margin-bottom: 24px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    .price-amount {
        font-size: 32px;
    }

    .detail-row {
        padding: 12px 0;
        font-size: 13px;
    }

    .detail-row.highlight .detail-value {
        font-size: 20px;
    }

    .card .icon {
        width: 160px;
        height: 160px;
    }

    .badge {
        font-size: 12px;
        padding: 12px 10px;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 22px;
    }

    .order-header h2,
    .confirm-header h2 {
        font-size: 22px;
    }

    .success-title {
        font-size: 24px;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
        padding: 12px 14px;
    }

    .btn-submit,
    .btn {
        font-size: 15px;
        padding: 14px 20px;
    }
}