/* ==========================================
   TPOINT TIENPHAM ULTIMATE CSS
   ========================================== */
.tp-app-card { background: #ffffff; border-radius: 20px; padding: 25px 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; max-width: 500px; margin: 0 auto; }
.tp-streak-alert { background: #d4edda; color: #155724; padding: 10px 15px; border-radius: 10px; font-weight: bold; font-size: 13px; text-align: center; margin-bottom: 20px; }
.tp-app-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tp-app-item { background: #f1f5f9; border-radius: 12px; padding: 10px 4px; text-align: center; position: relative; transition: 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 85px; }
.tp-app-img { width: 32px; height: 32px; object-fit: contain; margin-bottom: 4px; }
.tp-app-text { font-size: 11px; font-weight: 800; color: #334155; }
.tp-app-sub { font-size: 10px; color: #64748b; font-weight: 500; }
.tp-row-top .tp-app-item::after { content: ""; position: absolute; bottom: -8px; left: 25%; transform: translateX(-50%); border-width: 8px 6px 0; border-style: solid; border-color: #f1f5f9 transparent; display: block; width: 0; z-index: 3; transition: 0.3s; }
.tp-row-bottom .tp-app-item::after { content: ""; position: absolute; top: -8px; left: 75%; transform: translateX(-50%); border-width: 0 6px 8px; border-style: solid; border-color: transparent transparent #f1f5f9; display: block; width: 0; z-index: 3; transition: 0.3s; }
.tp-app-item.tp-active { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }
.tp-row-top .tp-app-item.tp-active::after { border-color: #4f46e5 transparent; }
.tp-row-bottom .tp-app-item.tp-active::after { border-color: transparent transparent #4f46e5; }
.tp-app-item.tp-active .tp-app-text, .tp-app-item.tp-active .tp-app-sub { color: #ffffff !important; }
.tp-app-item.tp-done { background: #e2e8f0; }
.tp-row-top .tp-app-item.tp-done::after { border-color: #e2e8f0 transparent; }
.tp-row-bottom .tp-app-item.tp-done::after { border-color: transparent transparent #e2e8f0; }
.tp-app-done-check { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.65); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #4338ca; font-size: 11px; font-weight: 900; text-transform: uppercase; z-index: 2; }
.tp-progress-bar-wrapper { position: relative; margin: 30px 0; height: 4px; z-index: 1; }
.tp-progress-bar-track { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #e2e8f0; border-radius: 4px; }
.tp-progress-bar-fill { position: absolute; top: 0; left: 0; height: 4px; background: linear-gradient(90deg, #6366f1, #4f46e5); border-radius: 4px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.tp-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background: #cbd5e1; border-radius: 50%; z-index: 2; transition: 0.3s; }
.tp-dot.tp-dot-active { width: 14px; height: 14px; background: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2); }
.tp-btn-action { width: 100%; background: linear-gradient(135deg, #6366f1, #4f46e5); color: #ffffff; border: none; padding: 16px; border-radius: 16px; font-size: 15px; font-weight: bold; cursor: pointer; box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35); transition: 0.2s; margin-top: 20px; text-transform: uppercase; }
.tp-btn-action:hover { opacity: 0.95; transform: translateY(-1px); }
.tp-btn-disabled { width: 100%; background: #94a3b8; color: #ffffff; border: none; padding: 16px; border-radius: 16px; font-size: 15px; font-weight: bold; cursor: not-allowed; text-align: center; margin-top: 20px; }
.tp-history-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; }
.tp-history-table th { background: #f8fafc; padding: 12px; text-align: left; border-bottom: 2px solid #e2e8f0; }
.tp-history-table td { padding: 12px; border-bottom: 1px solid #e2e8f0; }
.tp-plus { color: #16a34a !important; font-weight: bold; }
.tp-minus { color: #dc2626 !important; font-weight: bold; }
.tienpham-total-points { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16px; color: #334155; }
.tienpham-total-points strong { font-size: 24px; color: #4f46e5; font-weight: 900; }
