/* ============================================
   CHEAPYET - PROFESSIONAL CHATGPT STYLE
   ============================================ */

:root {
    --primary: #10a37f;
    --primary-dark: #0d8a6a;
    --primary-light: #13b589;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f8;
    --bg-tertiary: #ececf1;
    
    --text-primary: #2d2d2d;
    --text-secondary: #5f5f5f;
    --text-tertiary: #8e8ea0;
    
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    
    --success: #10a37f;
    --error: #ef4146;
    --warning: #ffb020;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
/* FORCE LOGO TO EXTREME LEFT */
.header {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.header .container {
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.language-selector {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: var(--bg-primary);
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lang-btn:hover {
    background: var(--bg-secondary);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.lang-btn .flag {
    font-size: 18px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.header .container {
    max-width: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-link {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.admin-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    padding: 48px 0 40px;
    flex: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.chatgpt-icon-container {
    margin-bottom: 24px;
}

.chatgpt-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   ACTIVATION CARD
   ============================================ */

.activation-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* ============================================
   PROGRESS STEPS
   ============================================ */

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    gap: 16px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
}

.step-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.step.active .step-number,
.step.completed .step-number {
    color: white;
}

.step-check {
    position: absolute;
    width: 24px;
    height: 24px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.step.completed .step-check {
    opacity: 1;
    transform: scale(1);
}

.step.completed .step-number {
    opacity: 0;
    transform: scale(0);
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-primary);
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.5s ease;
}

.step-line.filled::after {
    width: 100%;
}

/* ============================================
   STEP CONTENT
   ============================================ */

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    resize: vertical;
    min-height: 180px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.error-message,
.success-message {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.error-message {
    color: var(--error);
    background: #fef2f2;
}

.success-message {
    color: var(--success);
    background: #ecfdf5;
}

.error-message.show,
.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    font-family: inherit;
    position: relative;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-secondary);
}

.btn-success {
    background: var(--success);
    color: white;
    width: 100%;
}

.btn-success:hover {
    background: var(--primary-dark);
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    display: block;
    position: absolute;
}

.button-group {
    display: flex;
    gap: 12px;
}

.button-group .btn {
    flex: 1;
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.info-box-instructions {
    background: #fefce8;
    border-color: #fef08a;
}

.info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #0284c7;
}

.info-box-instructions .info-icon {
    color: #ca8a04;
}

.info-content {
    flex: 1;
}

.info-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 500;
}

.info-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.info-link:hover {
    text-decoration: underline;
}

/* ============================================
   RESULT STATES
   ============================================ */

.result-state {
    text-align: center;
    padding: 20px 0;
}

.result-state.hidden {
    display: none;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

.success-icon-circle,
.error-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon-circle {
    background: #ecfdf5;
}

.error-icon-circle {
    background: #fef2f2;
}

.success-icon,
.error-icon {
    width: 32px;
    height: 32px;
}

.success-icon {
    color: var(--success);
    stroke-width: 3;
}

.error-icon {
    color: var(--error);
    stroke-width: 2.5;
}

.result-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.result-title.success {
    color: var(--success);
}

.result-title.error {
    color: var(--error);
}

.result-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.result-time {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
}

/* ============================================
   ORDER DETAILS
   ============================================ */

.order-details,
.error-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Monaco', monospace;
}

.detail-value.error {
    color: var(--error);
}

.status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-processing {
    background: #fef3c7;
    color: #92400e;
}

/* ============================================
   REVIEW REQUEST
   ============================================ */

.review-request {
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid #fbbf24;
}

.review-icon {
    font-size: 40px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.review-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.review-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-review {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    width: 100%;
    font-size: 16px;
    padding: 16px 24px;
    margin-bottom: 16px;
}

.btn-review:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
}

.review-reminder {
    font-size: 14px;
    color: #92400e;
    margin: 16px 0 0 0;
    font-weight: 600;
}

/* ============================================
   TRACK LINK
   ============================================ */

.track-link-container {
    text-align: center;
    margin-top: 32px;
}

.track-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.track-link:hover {
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg-primary);
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ============================================
   SUCCESS MODAL
   ============================================ */

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.modal-details-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
}

.modal-tracking-code {
    font-family: 'Monaco', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    letter-spacing: 2px;
}

.modal-close-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .language-selector {
        top: 70px;
        right: 12px;
        padding: 4px;
        gap: 4px;
    }
    
    .lang-btn {
        padding: 8px 12px;
    }
    
    .lang-btn .lang-text {
        display: none;
    }
    
    .lang-btn .flag {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .chatgpt-icon {
        width: 64px;
        height: 64px;
    }
    
    .activation-card {
        padding: 24px;
        border-radius: var(--radius-lg);
    }
    
    .progress-steps {
        gap: 8px;
    }
    
    .step-line {
        width: 40px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .button-group {
        flex-direction: column;
    }
   .footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg-primary);
    margin-top: auto;
}
    .modal-content {
        padding: 32px 24px;
    }
}