/* Shein-inspired Design System */
:root {
    --shein-black: #111111;
    --shein-red: #FA3E3E;
    --shein-white: #ffffff;
    --shein-bg: #F5F5F5;
    --shein-gray-text: #707070;
    --shein-light-gray: #E8E8E8;
    --shein-border: #EEEEEE;
    
    --primary-color: var(--shein-black);
    --secondary-color: var(--shein-gray-text);
    --accent-color: var(--shein-red);
    --background-color: var(--shein-bg);
    --card-bg: var(--shein-white);
    
    --font-family: 'Roboto', 'Inter', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--background-color);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}

.checkout-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: var(--card-bg);
    position: relative;
    padding-bottom: 90px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Header */
.tiktok-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--shein-border);
    position: sticky;
    top: 0;
    background: var(--shein-white);
    z-index: 10;
}

.tiktok-header h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--shein-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--shein-black);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.header-right {
    width: 32px;
}

/* Content */
.checkout-content {
    padding: 20px 16px;
}

.hidden {
    display: none !important;
}

.center-content {
    text-align: center;
    padding: 60px 20px;
}

.divider {
    height: 1px;
    background-color: var(--shein-border);
    margin: 24px 0;
}

/* Loading state */
.spinner {
    width: 30px;
    height: 30px;
    border: 2px solid var(--shein-light-gray);
    border-top-color: var(--shein-black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* Error state */
.error-icon {
    color: var(--shein-red);
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

/* Pix Section */
.pix-info-section {
    text-align: center;
}

.pix-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--shein-black);
}

.pix-subtitle {
    font-size: 14px;
    color: var(--shein-gray-text);
    margin-bottom: 24px;
    line-height: 1.5;
}

.qr-code-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border: 1px solid var(--shein-border);
    padding: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code {
    max-width: 100%;
    height: auto;
}

.expiration-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #FFF0F5;
    padding: 10px 20px;
    border-radius: 2px;
    font-size: 14px;
    color: var(--shein-red);
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid var(--shein-red);
}

.pix-code-box {
    background: #F9F9F9;
    border: 1px solid var(--shein-border);
    padding: 16px;
    text-align: left;
}

.pix-hash {
    font-family: monospace;
    font-size: 12px;
    color: var(--shein-black);
    word-break: break-all;
    line-height: 1.4;
}

/* Success state */
.success-icon {
    color: #4CAF50;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

/* Instructions */
.instructions-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.instruction-steps li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    width: 22px;
    height: 22px;
    background-color: var(--shein-black);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: var(--shein-black);
    line-height: 1.5;
}

/* Bottom Actions */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--shein-white);
    border-top: 1px solid var(--shein-border);
    display: flex;
    justify-content: center;
    z-index: 100;
}

@media (min-width: 481px) {
    .bottom-action-bar {
        max-width: 480px;
        margin: 0 auto;
    }
}

.btn-primary {
    width: 100%;
    background-color: var(--shein-black);
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    border-radius: 2px;
}

.btn-primary:active {
    background-color: #000;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}