/* Order Pages Shared CSS */
.order-page { min-height: 100vh; padding: 2rem 0 4rem; }
.back-button { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); text-decoration: none; margin-bottom: 2rem; transition: color 0.3s; }
.back-button:hover { color: var(--takemi-red); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; padding: 2rem; background: var(--bg-card); border-radius: 16px; }
.order-header h1 { font-size: 2.5rem; margin: 0; }
.order-header p { color: var(--text-muted); margin: 0.5rem 0 0; }
.btn-help { padding: 0.5rem 1rem; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6; border-radius: 8px; cursor: pointer; }
.order-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.order-form-section { background: var(--bg-card); border-radius: 24px; padding: 2.5rem; box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.method-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.method-tab { display: flex; gap: 1rem; padding: 1.5rem; background: var(--bg-secondary); border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: all 0.3s; }
.method-tab:hover, .method-tab.active { border-color: var(--takemi-red); }
.tab-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; }
.tab-info h4 { margin-bottom: 0.25rem; }
.tab-info p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.status-badge.success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.status-badge.warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.order-tabs { display: flex; gap: 1rem; margin-bottom: 2rem; border-bottom: 2px solid var(--border-secondary); }
.order-tab { padding: 1rem 2rem; background: none; border: none; color: var(--text-muted); font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.order-tab.active { color: var(--takemi-red); border-bottom-color: var(--takemi-red); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-input { width: 100%; padding: 1rem; background: var(--bg-secondary); border: 2px solid var(--border-secondary); border-radius: 12px; color: var(--text-primary); font-size: 1rem; }
.form-input:focus { outline: none; border-color: var(--takemi-red); }
.input-with-button { display: flex; gap: 0.5rem; }
.input-with-button .form-input { flex: 1; }
.btn-check { padding: 0.75rem 1.25rem; background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6; border-radius: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--takemi-red); }
.input-with-icon .form-input { padding-left: 3rem; }
.form-hint { display: block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.preset-btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.5rem; background: var(--bg-secondary); border: 2px solid var(--border-secondary); border-radius: 12px; cursor: pointer; transition: all 0.3s; }
.preset-btn:hover, .preset-btn.selected { border-color: var(--takemi-red); background: rgba(239, 68, 68, 0.1); }
.preset-btn i { font-size: 1.5rem; color: var(--takemi-red); }
.preset-btn .amount { font-weight: 700; font-size: 1.125rem; }
.preset-btn .price { font-size: 0.9375rem; color: var(--text-muted); }
.order-summary-bottom { margin-top: 2rem; padding-top: 2rem; border-top: 2px solid var(--border-secondary); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.price-highlight { font-size: 1.75rem; font-weight: 800; color: var(--takemi-red); }
.order-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: var(--bg-card); border-radius: 16px; padding: 1.5rem; }
.sidebar-card h3 { margin-bottom: 1rem; }
.total-display { font-size: 2rem; font-weight: 800; color: var(--takemi-red); margin-bottom: 1.5rem; }
.btn-submit { width: 100%; padding: 1.25rem; background: linear-gradient(135deg, var(--takemi-red), var(--takemi-red-dark)); color: white; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.75rem; transition: all 0.3s; }
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; background: var(--bg-hover); }
.sidebar-card.guarantee { background: rgba(16, 185, 129, 0.1); border: 2px solid rgba(16, 185, 129, 0.3); text-align: center; }
.sidebar-card.guarantee i { font-size: 2rem; color: var(--success); margin-bottom: 0.5rem; }
.sidebar-card.help { text-align: center; }
.sidebar-card.help p { font-size: 0.875rem; color: var(--text-muted); }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 3000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); }
.modal-content { position: relative; background: var(--bg-card); border-radius: 20px; padding: 2rem; max-width: 500px; width: 90%; z-index: 1; text-align: center; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-content.small { max-width: 400px; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(239, 68, 68, 0.2); border: none; color: var(--error); font-size: 1.25rem; cursor: pointer; }
.modal-icon { width: 80px; height: 80px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: white; }
.modal-icon.purple { background: linear-gradient(135deg, #a855f7, #9333ea); }
.modal-icon.red { background: linear-gradient(135deg, var(--takemi-red), var(--takemi-red-dark)); }
.modal-content h2 { margin-bottom: 1rem; }
.modal-content p { color: var(--text-secondary); margin-bottom: 1rem; }
.info-box { background: var(--bg-secondary); border-radius: 12px; padding: 1rem; margin: 1.5rem 0; }
.modal-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-shrink: 0; }
.btn-secondary { flex: 1; padding: 1rem; background: var(--bg-secondary); border: 2px solid var(--border-secondary); color: var(--text-primary); border-radius: 12px; font-weight: 600; cursor: pointer; }
.btn-primary { flex: 1; padding: 1rem; background: linear-gradient(135deg, var(--takemi-red), var(--takemi-red-dark)); color: white; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; }
@media (max-width: 768px) {
    .order-container { grid-template-columns: 1fr; }
    .method-tabs { grid-template-columns: 1fr; }
    .preset-grid { grid-template-columns: 1fr 1fr; }
    .order-sidebar { order: -1; }
}
@media (max-width: 480px) {
    .preset-grid { grid-template-columns: 1fr 1fr; }
    .checkout-steps { flex-wrap: wrap; gap: 0.5rem; }
    .step-line { width: 30px; }
}

/* Checkout Page */
.checkout-page { min-height: 100vh; padding: 2rem 0 4rem; }
.checkout-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 3rem; }
.step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border-secondary); display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all 0.3s; }
.step.done .step-number { background: var(--success); border-color: var(--success); color: white; }
.step.active .step-number { background: var(--takemi-red); border-color: var(--takemi-red); color: white; }
.step span { font-size: 0.875rem; color: var(--text-muted); }
.step.active span, .step.done span { color: var(--text-primary); font-weight: 600; }
.step-line { width: 100px; height: 2px; background: var(--border-secondary); margin: 0 1rem; }
.step.done + .step-line { background: var(--success); }
.checkout-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.checkout-left, .checkout-right { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-card { background: var(--bg-card); border-radius: 16px; padding: 2rem; }
.checkout-card h3, .checkout-card h4 { margin-bottom: 1.5rem; }
.product-summary { display: flex; gap: 1rem; padding: 1.5rem; background: var(--bg-secondary); border-radius: 12px; margin-bottom: 1.5rem; }
.product-icon { width: 60px; height: 60px; border-radius: 12px; background: linear-gradient(135deg, var(--takemi-red), var(--takemi-red-dark)); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.75rem; }
.product-info { flex: 1; }
.product-info h4 { margin: 0 0 0.25rem; }
.product-info p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.product-badge { display: inline-block; padding: 0.25rem 0.75rem; background: rgba(16, 185, 129, 0.2); color: var(--success); border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--takemi-red); }
.buyer-info { margin-bottom: 1.5rem; }
.buyer-info h4 { margin-bottom: 1rem; font-size: 1rem; }
.info-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--bg-secondary); border-radius: 12px; margin-bottom: 0.75rem; }
.info-row i { color: var(--takemi-red); font-size: 1.25rem; }
.info-row strong { display: block; margin-bottom: 0.25rem; }
.verified { color: var(--success); font-size: 0.875rem; margin-left: 0.5rem; }
.promo-card { background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.02)); border: 1px solid var(--border-primary); }
.promo-input-group { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.promo-input-group .form-input { flex: 1; }
.btn-apply { padding: 0.75rem 1.5rem; background: linear-gradient(135deg, var(--success), #059669); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-apply:disabled { opacity: 0.5; cursor: not-allowed; }
#promoResult { padding: 0.75rem; border-radius: 8px; font-size: 0.875rem; display: none; }
#promoResult.success { background: rgba(16, 185, 129, 0.2); color: var(--success); display: block; }
#promoResult.error { background: rgba(239, 68, 68, 0.2); color: var(--error); display: block; }
.price-summary { background: var(--bg-secondary); }
.price-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.price-row:last-child { border: none; }
.price-row.total { padding-top: 1rem; margin-top: 0.5rem; border-top: 2px solid var(--border-primary); }
.confirmation-details { background: var(--bg-secondary); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.detail-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.detail-row:last-child { border: none; }
.detail-row.total { padding-top: 1rem; margin-top: 0.5rem; border-top: 2px solid var(--border-primary); }
@media (max-width: 768px) {
    .checkout-container { grid-template-columns: 1fr; }
    .checkout-steps { flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
    .step-line { width: 40px; }
    .checkout-page { padding: 1rem 0 3rem; }
    .container { padding: 0 1rem; }
}

/* Improved UI Styling */
.validation-message { margin-top: 0.5rem; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; animation: slideIn 0.3s ease; }
.validation-message.success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--success); }
.validation-message.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--error); }
.validation-message.warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Better method cards */
.method-tab { position: relative; overflow: hidden; }
.method-tab::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.03) 100%); pointer-events: none; }
.method-tab.active { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2); }
.method-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--takemi-red), var(--takemi-red-light)); }

/* Better form inputs */
.form-input { transition: all 0.3s ease; }
.form-input:hover { border-color: rgba(239, 68, 68, 0.5); }
.form-input:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }

/* Better buttons */
.btn-check { transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2); }
.btn-check:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

/* Better sidebar cards */
.sidebar-card { position: relative; overflow: hidden; }
.sidebar-card::before { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(239,68,68,0.05) 0%, transparent 70%); pointer-events: none; }

/* Better total display */
.total-display { position: relative; }
.total-display::before { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--takemi-red), transparent); }

/* Loading spinner */
.fa-spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Better preset buttons */
.preset-btn { position: relative; overflow: hidden; }
.preset-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(239, 68, 68, 0.3); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; }
.preset-btn:hover::before { width: 300px; height: 300px; }
.preset-btn > * { position: relative; z-index: 1; }

/* Premium Badge Styling */
.preset-btn.premium-badge { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 179, 8, 0.1)); border-color: rgba(245, 158, 11, 0.4); }
.preset-btn.premium-badge:hover, .preset-btn.premium-badge.selected { background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 179, 8, 0.15)); border-color: #f59e0b; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3); }
.preset-btn.premium-badge i { color: #f59e0b; }
.preset-btn.premium-badge .amount { color: #fbbf24; font-weight: 800; }

/* Premium Tab Special Styling */
.premium-tab { position: relative; color: #f59e0b !important; }
.premium-tab.active { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 179, 8, 0.1)) !important; border-bottom-color: #f59e0b !important; }
.premium-tab i { cursor: pointer; transition: all 0.3s; }
.premium-tab i:hover { color: #fbbf24; transform: scale(1.2); }

/* Bold tabs */
.order-tab strong { font-weight: 700; letter-spacing: 0.025em; }

/* Premium Button Special Styling */
.premium-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%) !important;
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: scale(1);
    transition: all 0.3s ease !important;
}

.premium-btn:hover {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: #fcd34d !important;
}

.premium-btn.selected {
    transform: scale(1.08) translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
    border-width: 3px !important;
    animation: premiumPulse 2s infinite;
}

@keyframes premiumPulse {
    0%, 100% { box-shadow: 0 12px 40px rgba(245, 158, 11, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 12px 50px rgba(245, 158, 11, 1), inset 0 2px 4px rgba(255, 255, 255, 0.5); }
}

.premium-btn i {
    color: #fef3c7 !important;
    font-size: 2rem !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: crownFloat 3s ease-in-out infinite;
}

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

.premium-btn .amount {
    color: #fef3c7 !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.125rem !important;
}

.premium-btn .price {
    color: #fde68a !important;
    font-weight: 700 !important;
}

.premium-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
    animation: labelPulse 2s infinite;
}

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

.premium-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Make premium buttons taller */
.premium-btn {
    min-height: 140px !important;
}
/* ─── Roblox User Card ──────────────────────────────────────── */
.roblox-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    animation: slideIn 0.3s ease;
    border: 1px solid transparent;
}
.roblox-user-card.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}
.roblox-user-card.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}
.roblox-user-card.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

/* Avatar */
.roblox-avatar-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.roblox-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.roblox-avatar-wrap.error-icon {
    background: rgba(239, 68, 68, 0.15);
    font-size: 1.5rem;
    color: #ef4444;
}
.roblox-avatar-wrap.warning-icon {
    background: rgba(245, 158, 11, 0.15);
    font-size: 1.4rem;
    color: #f59e0b;
}

/* Info text */
.roblox-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.roblox-display-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary, #f1f5f9);
}
.roblox-display-name.error-title {
    color: #ef4444;
}
.roblox-username {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
}
.roblox-valid-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.roblox-invalid-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.roblox-offline-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Fallback icon jika avatar tidak ada */
.roblox-avatar-wrap .fa-user-circle {
    font-size: 2.5rem;
    color: #10b981;
}

/* Buyer info di checkout */
.buyer-info h4 { margin-bottom: 0.75rem; }
.buyer-info .roblox-user-card { margin-top: 0; }
/* ═══════════════════════════════════════════════════════════════════
   GAMEPASS MODAL — order-gamepass.html
═══════════════════════════════════════════════════════════════════ */

/* Backdrop & wrapper */
.gp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.gp-modal.active {
    display: flex;
}
.gp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: gpBackdropIn 0.3s ease forwards;
}
@keyframes gpBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal card */
.gp-modal-content {
    position: relative;
    z-index: 1;
    width: min(480px, 92vw);
    background: var(--bg-card, #1e2132);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(168, 85, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: gpModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    text-align: center;
    overflow: hidden;
}
/* Decorative top gradient streak */
.gp-modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #ef4444, #f59e0b);
}
@keyframes gpModalIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes gpModalOut {
    from { opacity: 1; transform: scale(1)    translateY(0); }
    to   { opacity: 0; transform: scale(0.9)  translateY(10px); }
}

/* Animated icon */
.gp-modal-icon-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
}
.gp-modal-icon-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(#a855f7, #ef4444, #f59e0b, #a855f7);
    animation: gpRingSpin 3s linear infinite;
}
.gp-modal-icon-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-card, #1e2132);
}
@keyframes gpRingSpin {
    to { transform: rotate(360deg); }
}
.gp-modal-icon {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(239, 68, 68, 0.2));
    color: #a855f7;
    z-index: 1;
    animation: gpIconPulse 2s ease-in-out infinite;
}
@keyframes gpIconPulse {
    0%, 100% { transform: scale(1);    color: #a855f7; }
    50%       { transform: scale(1.08); color: #ef4444; }
}

/* Close button */
.gp-modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #94a3b8);
    font-size: 0.875rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.gp-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

/* Title & description */
.gp-modal-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary, #f1f5f9);
    margin: 0 0 0.625rem;
    line-height: 1.3;
}
.gp-modal-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

/* Required price badge */
.gp-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}
.gp-price-badge i { font-size: 0.8rem; }

/* Steps */
.gp-steps {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    text-align: left;
}
.gp-step {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: background 0.2s;
}
.gp-step:hover {
    background: rgba(168, 85, 247, 0.06);
    border-color: rgba(168, 85, 247, 0.15);
}
.gp-step-num {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}
.gp-step-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.5;
    padding-top: 2px;
}
.gp-step-text strong {
    color: var(--text-primary, #f1f5f9);
}
.gp-price-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #f59e0b;
    font-weight: 700;
}
.gp-price-inline i { font-size: 0.75rem; }

/* Status feedback */
.gp-modal-status {
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0;
}
.gp-modal-status.checking,
.gp-modal-status.found,
.gp-modal-status.notfound {
    padding: 0.75rem 1rem;
    max-height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gp-modal-status.checking {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}
.gp-modal-status.found {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}
.gp-modal-status.notfound {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Action buttons */
.gp-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.gp-btn-tutorial {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1.5px solid rgba(168, 85, 247, 0.35);
    color: #a855f7;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.gp-btn-tutorial:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.25);
}
.gp-btn-mengerti {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.gp-btn-mengerti::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.12));
    opacity: 0;
    transition: opacity 0.2s;
}
.gp-btn-mengerti:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.45);
}
.gp-btn-mengerti:hover:not(:disabled)::after { opacity: 1; }
.gp-btn-mengerti:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Footer note */
.gp-modal-note {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
}
.gp-modal-note i { color: #a855f7; font-size: 0.75rem; }

/* Mobile */
@media (max-width: 480px) {
    .gp-modal-content { padding: 2rem 1.25rem 1.5rem; }
    .gp-modal-actions { grid-template-columns: 1fr; }
    .gp-modal-title { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   GROUP MODAL EXTENSIONS — order-group.html
═══════════════════════════════════════════════════════════════════ */

/* Icon colour variants */
.gp-modal-icon.warning {
    background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.08));
    color: #f59e0b;
}
.gp-modal-icon.waiting {
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.08));
    color: #60a5fa;
}

/* Spinning ring colour for group modal */
.gp-modal-icon-ring.grp {
    background: conic-gradient(#f59e0b, #10b981, #3b82f6, #f59e0b);
}

/* ─── Progress bar ──────────────────────────────────────────────── */
.grp-progress-wrap {
    margin: 0 0 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 1rem 1.125rem;
    text-align: left;
}
.grp-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
}
.grp-progress-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.grp-progress-title i { color: #60a5fa; }
.grp-progress-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary, #94a3b8);
}
.prog-days-done {
    color: #10b981;
    font-weight: 800;
}
.grp-progress-track {
    position: relative;
    height: 10px;
    background: rgba(255,255,255,0.07);
    border-radius: 99px;
    overflow: visible;
    margin-bottom: 0.5rem;
}
.grp-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.grp-progress-bar::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16,185,129,0.6);
    border: 2px solid var(--bg-card, #1e2132);
}
.grp-progress-target {
    position: absolute;
    right: 0;
    top: -22px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f59e0b;
}
.grp-progress-info {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.4;
    margin-top: 0.375rem;
}
.grp-progress-info i { color: #60a5fa; flex-shrink: 0; margin-top: 2px; }

/* ─── Requirements checklist ────────────────────────────────────── */
.grp-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
}
.grp-check-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: all 0.25s;
}
.grp-check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}
.grp-check-icon.ok {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    box-shadow: 0 0 10px rgba(16,185,129,0.3);
}
.grp-check-icon.fail {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    box-shadow: 0 0 10px rgba(239,68,68,0.3);
}
.grp-check-icon.warn {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    box-shadow: 0 0 10px rgba(245,158,11,0.3);
    animation: gpIconPulse 1.5s ease-in-out infinite;
}
.grp-check-icon.pending {
    background: rgba(100,116,139,0.15);
    color: #64748b;
}
.grp-check-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.grp-check-text strong {
    font-size: 0.875rem;
    color: var(--text-primary, #f1f5f9);
    font-weight: 700;
}
.grp-check-text span {
    font-size: 0.775rem;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
}

/* ─── Group primary button (orange-amber) ───────────────────────── */
.gp-btn-tutorial.grp-primary {
    background: rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.4);
    color: #f59e0b;
}
.gp-btn-tutorial.grp-primary:hover {
    background: rgba(245,158,11,0.2);
    border-color: rgba(245,158,11,0.7);
    box-shadow: 0 6px 20px rgba(245,158,11,0.25);
}

/* Mobile */
@media (max-width: 480px) {
    .grp-progress-target { display: none; }
    .gp-modal-actions { grid-template-columns: 1fr; }
}