/* ============================================
   TYREPLUS RHP MICROSITE — MODERN DESIGN SYSTEM
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --tp-green: #009944;
    --tp-green-light: #00b550;
    --tp-green-dark: #007a36;
    --tp-green-glow: rgba(0, 153, 68, 0.25);
    --tp-yellow: #FFE500;
    --tp-yellow-light: #fff176;
    --tp-yellow-dark: #e6cf00;
    --tp-blue: #004f9f;
    --tp-blue-light: #1a6fbf;
    --tp-blue-dark: #003d7a;
    --tp-dark: #0f1114;
    --tp-dark-card: #1a1d23;
    --tp-gray-50: #fafafa;
    --tp-gray-100: #f5f5f5;
    --tp-gray-200: #eeeeee;
    --tp-gray-300: #e0e0e0;
    --tp-gray-400: #bdbdbd;
    --tp-gray-500: #9e9e9e;
    --tp-gray-600: #757575;
    --tp-text: #1a1a2e;
    --tp-text-secondary: #64748b;
    --tp-white: #ffffff;
    --tp-radius-sm: 8px;
    --tp-radius: 12px;
    --tp-radius-lg: 16px;
    --tp-radius-xl: 24px;
    --tp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --tp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --tp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --tp-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --tp-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --tp-shadow-green: 0 4px 14px rgba(0, 153, 68, 0.3);
    --tp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tp-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --tp-transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Base & Typography ===== */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    font-size: 14px;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--tp-text);
    background: linear-gradient(180deg, #f0f7f2 0%, var(--tp-gray-50) 30%, var(--tp-gray-50) 70%, #f0f7f2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    color: var(--tp-blue);
    transition: var(--tp-transition-fast);
    text-decoration: none;
}

a:hover {
    color: var(--tp-green);
}

::selection {
    background-color: var(--tp-green);
    color: white;
}

/* ===== Scroll Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== Navbar ===== */
.navbar-tp {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--tp-shadow-xs);
    padding: 0.3rem 0;
    transition: var(--tp-transition);
    z-index: 1000;
}

.navbar-tp.scrolled {
    box-shadow: var(--tp-shadow-md);
    padding: 0.2rem 0;
}

.navbar-tp .navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: var(--tp-transition);
}

.navbar-tp .navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-tp .brand-separator {
    color: var(--tp-gray-300);
    font-weight: 200;
    font-size: 1.2rem;
    line-height: 1;
    user-select: none;
}

.navbar-tp .nav-link {
    color: var(--tp-text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1rem !important;
    border-radius: var(--tp-radius-sm);
    transition: var(--tp-transition-fast);
    position: relative;
}

.navbar-tp .nav-link:hover {
    color: var(--tp-green) !important;
    background-color: rgba(0, 153, 68, 0.06);
}

.navbar-tp .nav-link.active {
    color: var(--tp-green) !important;
    background-color: rgba(0, 153, 68, 0.08);
}

.navbar-tp .nav-user {
    color: var(--tp-text-secondary) !important;
    font-size: 0.85rem;
    font-weight: 400;
}

/* ===== Resource / T&C document list ===== */
/* Single column on phones (stacked rows); two balanced columns from md up so the card
   fills the full width without leaving a lonely centered block. */
.resource-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .resource-list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.25rem;
    }
}
.resource-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.9rem 1rem;
    min-height: 60px;
    text-decoration: none;
    color: var(--tp-text-primary, #1a1a1a);
    border: 1px solid var(--tp-gray-200, #e5e9ec);
    border-radius: 12px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.resource-item:hover,
.resource-item:focus {
    background: var(--tp-gray-50, #f4f6f8);
    border-color: var(--tp-green, #1a9c47);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.resource-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
}
.resource-icon-green  { background: var(--tp-green, #1a9c47); }
.resource-icon-blue   { background: var(--tp-blue, #004f9f); }
.resource-icon-yellow { background: var(--tp-yellow, #f5c518); color: var(--tp-dark, #1a1a1a); }
.resource-icon-gray   { background: var(--tp-gray-400, #9aa5ad); }
.resource-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.resource-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}
.resource-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--tp-green, #1a9c47);
    background: rgba(26, 156, 71, 0.12);
    padding: 1px 8px;
    border-radius: 999px;
}
.resource-action {
    flex-shrink: 0;
    color: var(--tp-gray-400, #9aa5ad);
    font-size: 1.1rem;
}
.resource-item:hover .resource-action,
.resource-item:focus .resource-action {
    color: var(--tp-green, #1a9c47);
}
@media (max-width: 575.98px) {
    .resource-title { font-size: 0.9rem; }
    .resource-icon { width: 38px; height: 38px; font-size: 1rem; }
    .resource-item { gap: 0.75rem; }
}

/* ===== Buttons ===== */
.btn-tp-green {
    background: linear-gradient(135deg, var(--tp-green) 0%, var(--tp-green-light) 100%);
    color: var(--tp-white);
    border: none;
    border-radius: var(--tp-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.8rem;
    transition: var(--tp-transition);
    box-shadow: var(--tp-shadow-green);
    position: relative;
    overflow: hidden;
}

.btn-tp-green::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-tp-green:hover {
    background: linear-gradient(135deg, var(--tp-green-dark) 0%, var(--tp-green) 100%);
    color: var(--tp-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 68, 0.4);
}

.btn-tp-green:hover::after {
    left: 100%;
}

.btn-tp-green:active {
    transform: translateY(0);
}

.btn-tp-blue {
    background: linear-gradient(135deg, var(--tp-blue) 0%, var(--tp-blue-light) 100%);
    color: var(--tp-white);
    border: none;
    border-radius: var(--tp-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.8rem;
    transition: var(--tp-transition);
    box-shadow: 0 4px 14px rgba(0, 79, 159, 0.25);
}

.btn-tp-blue:hover {
    color: var(--tp-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 79, 159, 0.35);
}

.btn-tp-outline {
    background: transparent;
    color: var(--tp-green);
    border: 2px solid var(--tp-green);
    border-radius: var(--tp-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.8rem;
    transition: var(--tp-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-tp-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--tp-green);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-tp-outline:hover {
    color: var(--tp-white);
    transform: translateY(-2px);
}

.btn-tp-outline:hover::before {
    width: 100%;
}

.btn-tp-yellow {
    background: linear-gradient(135deg, var(--tp-yellow) 0%, var(--tp-yellow-light) 100%);
    color: var(--tp-dark);
    border: none;
    border-radius: var(--tp-radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 2rem;
    transition: var(--tp-transition);
    box-shadow: 0 4px 14px rgba(255, 229, 0, 0.35);
}

.btn-tp-yellow:hover {
    color: var(--tp-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 229, 0, 0.45);
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 3px var(--tp-green-glow);
    border-color: var(--tp-green);
    outline: none;
}

/* ===== Modern Cards ===== */
.card-tp {
    background: var(--tp-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-sm);
    transition: var(--tp-transition);
    overflow: hidden;
    position: relative;
}

.card-tp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tp-green), var(--tp-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-tp:hover {
    box-shadow: var(--tp-shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.card-tp:hover::before {
    opacity: 1;
}

.card-tp .card-header-tp {
    background: linear-gradient(135deg, var(--tp-green) 0%, var(--tp-green-light) 100%);
    color: var(--tp-white);
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border: none;
}

.card-tp .card-body {
    padding: 1.5rem;
}

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow);
}

/* ===== Hero Banner (simple image) ===== */
.hero-banner {
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    line-height: 0;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--tp-radius-lg);
}

/* ===== 3 Equal Action Cards ===== */
.action-row .col-md-4 {
    display: flex;
}

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    border-radius: 16px;
    padding: 1.5rem;
    color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.action-card:active {
    transform: translateY(-2px);
}

/* Background watermark icon */
.action-card-bg-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 7rem;
    opacity: 0.08;
    transform: rotate(-10deg);
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.action-card:hover .action-card-bg-icon {
    opacity: 0.14;
    transform: rotate(-5deg) scale(1.05);
}

.action-card-inner {
    position: relative;
    z-index: 1;
}

/* Icon circle */
.action-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    transition: background 0.2s;
}

.action-card:hover .action-card-icon {
    background: rgba(255, 255, 255, 0.3);
}

.action-card h5 {
    font-size: 1.1rem;
}

.action-card p {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Arrow */
.action-card-arrow {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
    z-index: 1;
}

.action-card:hover .action-card-arrow {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

/* Green card */
.action-card-green {
    background: linear-gradient(145deg, #00b341 0%, var(--tp-green) 50%, #005c22 100%);
    box-shadow: 0 6px 20px rgba(0, 153, 68, 0.2);
}

/* Blue card */
.action-card-blue {
    background: linear-gradient(145deg, #0069d9 0%, var(--tp-blue) 50%, #002d6b 100%);
    box-shadow: 0 6px 20px rgba(0, 79, 159, 0.2);
}

/* Yellow card */
.action-card-yellow {
    background: linear-gradient(145deg, #f5d000 0%, #e6bf00 50%, #c8a200 100%);
    color: var(--tp-dark);
    box-shadow: 0 6px 20px rgba(230, 191, 0, 0.25);
}

.action-card-yellow .action-card-icon {
    background: rgba(0, 0, 0, 0.1);
}

.action-card-yellow:hover .action-card-icon {
    background: rgba(0, 0, 0, 0.15);
}

.action-card-yellow .action-card-arrow {
    background: rgba(0, 0, 0, 0.1);
    color: var(--tp-dark);
}

.action-card-yellow:hover .action-card-arrow {
    background: rgba(0, 0, 0, 0.15);
}

.action-card-yellow:hover {
    color: var(--tp-dark);
}

.action-card-yellow p {
    opacity: 0.7;
}

/* Quick Stats Pills */
.stat-pill {
    background: var(--tp-white);
    border: 1px solid #e9ecef;
    border-radius: var(--tp-radius);
    padding: 0.85rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: border-color 0.2s;
}

.stat-pill strong {
    color: var(--tp-green);
    font-size: 1.25rem;
    font-weight: 800;
}

.stat-pill span {
    font-size: 0.78rem;
    color: var(--tp-text-secondary);
    font-weight: 500;
}

.stat-pill:hover {
    border-color: var(--tp-green);
}

/* ===== Main Action Blocks (Home) ===== */
.main-action-grid {
    min-height: 440px;
}

.action-block {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    cursor: pointer;
}

.action-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.action-block:active {
    transform: translateY(-2px);
}

/* Large watermark icon in background */
.action-block-bg-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 8rem;
    opacity: 0.08;
    transform: rotate(-10deg);
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.action-block:hover .action-block-bg-icon {
    opacity: 0.14;
    transform: rotate(-5deg) scale(1.05);
}

/* Content wrapper for z-index over bg */
.action-block-content {
    position: relative;
    z-index: 1;
}

/* Small icon in a circle */
.action-block-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: background 0.2s;
}

.action-block:hover .action-block-icon-wrap {
    background: rgba(255, 255, 255, 0.3);
}

/* Badge (e.g., "MOST POPULAR") */
.action-block-badge {
    display: inline-block;
    background: var(--tp-yellow);
    color: var(--tp-dark);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Feature chips */
.action-block-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-block-features span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* CTA text link */
.action-block-cta {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: opacity 0.2s, gap 0.2s;
}

.action-block:hover .action-block-cta {
    opacity: 1;
}

/* Arrow icon top-right */
.action-block-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.35;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 1;
}

.action-block:hover .action-block-arrow {
    opacity: 0.8;
    transform: translateX(4px);
}

.action-block p {
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Register — green (tall left block) */
.action-block-register {
    background: linear-gradient(160deg, #00b341 0%, var(--tp-green) 40%, #005c22 100%);
    min-height: 100%;
    box-shadow: 0 8px 24px rgba(0, 153, 68, 0.25);
}

.action-block-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Check Status — blue (top right) */
.action-block-status {
    background: linear-gradient(160deg, #0069d9 0%, var(--tp-blue) 40%, #002d6b 100%);
    box-shadow: 0 6px 20px rgba(0, 79, 159, 0.25);
}

.action-block-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 75% 25%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Find Outlets — dark with yellow accent (bottom right) */
.action-block-outlets {
    background: linear-gradient(160deg, #3d3d3d 0%, #2d3436 40%, #1a1a2e 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 229, 0, 0.15);
}

.action-block-outlets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 30%, rgba(255, 229, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.action-block-outlets .action-block-icon-wrap {
    background: rgba(255, 229, 0, 0.15);
    color: var(--tp-yellow);
}

.action-block-outlets .action-block-cta {
    color: var(--tp-yellow);
}

/* ===== Mobile — Action Cards & Hero ===== */
@media (max-width: 767.98px) {
    .hero-banner {
        border-radius: 12px;
    }

    /* Action cards: compact on mobile */
    .action-card {
        min-height: 130px;
        padding: 1.25rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .action-card-inner {
        flex: 1;
    }

    .action-card-bg-icon {
        font-size: 4.5rem;
    }

    .action-card h5 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem !important;
    }

    .action-card p {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .action-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .action-card-arrow {
        position: static;
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    /* Stat pills smaller on mobile */
    .stat-pill {
        padding: 0.6rem 0.5rem;
    }

    .stat-pill strong {
        font-size: 1.05rem;
    }

    /* Info cards stacked clean */
    .card-tp .card-body {
        padding: 1.25rem !important;
    }

    .section-header {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
    }

    .check-list li {
        font-size: 0.82rem;
        margin-bottom: 0.4rem;
    }

    .tyre-badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* ===== Feature Cards (Home) ===== */
.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    transition: var(--tp-transition-bounce);
}

.card-tp:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon-green {
    background: linear-gradient(135deg, rgba(0, 153, 68, 0.1) 0%, rgba(0, 153, 68, 0.05) 100%);
    color: var(--tp-green);
}

.feature-icon-blue {
    background: linear-gradient(135deg, rgba(0, 79, 159, 0.1) 0%, rgba(0, 79, 159, 0.05) 100%);
    color: var(--tp-blue);
}

.feature-icon-yellow {
    background: linear-gradient(135deg, rgba(255, 229, 0, 0.2) 0%, rgba(255, 229, 0, 0.08) 100%);
    color: #b8a200;
}

/* ===== Section Headers ===== */
.section-header {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.85rem;
    color: var(--tp-text);
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--tp-green), var(--tp-yellow));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-header:hover::after {
    width: 80px;
}

.section-header.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== Form Sections ===== */
.form-section {
    background: var(--tp-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--tp-transition);
}

.form-section:hover {
    box-shadow: var(--tp-shadow);
}

.form-section-header {
    background: linear-gradient(135deg, var(--tp-green) 0%, var(--tp-green-light) 100%);
    color: var(--tp-white);
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.form-section-body {
    padding: 1.5rem;
    background: var(--tp-white);
}

.form-control, .form-select {
    border-radius: var(--tp-radius-sm);
    border: 1.5px solid var(--tp-gray-300);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--tp-transition-fast);
    background-color: var(--tp-white);
}

.form-control:hover, .form-select:hover {
    border-color: var(--tp-gray-400);
}

.form-control:focus, .form-select:focus {
    border-color: var(--tp-green);
    box-shadow: 0 0 0 3px var(--tp-green-glow);
}

.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--tp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.35rem;
}

.form-label.required::after,
.form-check-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: 700;
}

.input-group-text {
    border-radius: 0 var(--tp-radius-sm) var(--tp-radius-sm) 0;
    background: var(--tp-gray-100);
    border: 1.5px solid var(--tp-gray-300);
    border-left: none;
    font-size: 0.85rem;
    color: var(--tp-text-secondary);
}

/* ===== Status Badges ===== */
.badge-status {
    padding: 0.4em 1em;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.badge-active {
    background: rgba(0, 153, 68, 0.1);
    color: var(--tp-green-dark);
}
.badge-active::before { background: var(--tp-green); }

.badge-pending {
    background: rgba(255, 152, 0, 0.1);
    color: #e65100;
}
.badge-pending::before { background: #ff9800; animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.badge-expired {
    background: rgba(158, 158, 158, 0.1);
    color: #616161;
}
.badge-expired::before { background: #9e9e9e; }

.badge-rejected {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}
.badge-rejected::before { background: #f44336; }

.badge-claimed {
    background: rgba(0, 79, 159, 0.1);
    color: var(--tp-blue-dark);
}
.badge-claimed::before { background: var(--tp-blue); }

/* ===== Login Card ===== */
.login-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--tp-white);
    border: none;
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-lg);
    overflow: hidden;
    animation: card-enter 0.6s ease-out;
}

@keyframes card-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card .login-header {
    background: linear-gradient(135deg, var(--tp-blue-dark) 0%, var(--tp-blue) 50%, var(--tp-blue-light) 100%);
    color: var(--tp-white);
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.login-card .login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.login-card .login-header h4 {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ===== Stat/Info Cards ===== */
.info-pill {
    background: var(--tp-gray-50);
    border: 1px solid var(--tp-gray-200);
    border-radius: var(--tp-radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--tp-transition-fast);
}

.info-pill:hover {
    background: var(--tp-white);
    border-color: var(--tp-green);
    box-shadow: var(--tp-shadow-xs);
}

.info-pill .info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tp-text-secondary);
    margin-bottom: 2px;
}

.info-pill .info-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--tp-text);
}

/* ===== Tables ===== */
.table-tp {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--tp-radius-sm);
    overflow: hidden;
    font-size: 0.88rem;
}

.table-tp thead th {
    background: var(--tp-gray-100);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tp-text-secondary);
    font-weight: 700;
    padding: 0.75rem;
    border-bottom: 2px solid var(--tp-gray-200);
}

.table-tp tbody tr {
    transition: var(--tp-transition-fast);
}

.table-tp tbody tr:hover {
    background-color: rgba(0, 153, 68, 0.03);
}

.table-tp tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--tp-gray-100);
}

/* ===== Footer ===== */
.footer-tp {
    background: var(--tp-dark);
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
    position: relative;
}

.footer-tp .footer-green-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--tp-green), var(--tp-yellow), var(--tp-green));
}

.footer-tp .footer-content {
    padding: 2.5rem 0 1rem;
}

.footer-tp h6 {
    color: var(--tp-white);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.footer-tp a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--tp-transition-fast);
    display: inline-block;
}

.footer-tp a:hover {
    color: var(--tp-green);
    transform: translateX(3px);
}

.footer-tp .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Comparison Cards ===== */
.compare-card {
    background: var(--tp-white);
    border: 1px solid var(--tp-gray-200);
    border-radius: var(--tp-radius);
    overflow: hidden;
    transition: var(--tp-transition);
    position: relative;
}

.compare-card:hover {
    box-shadow: var(--tp-shadow-md);
    transform: translateY(-4px);
}

.compare-card.featured {
    border-color: var(--tp-green);
    box-shadow: 0 0 0 1px var(--tp-green), var(--tp-shadow);
}

.compare-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 12px;
    right: -32px;
    background: var(--tp-yellow);
    color: var(--tp-dark);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 36px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    z-index: 2;
}

.compare-header {
    padding: 1.25rem;
    text-align: center;
}

.compare-body {
    padding: 1.25rem;
}

.compare-body li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--tp-text-secondary);
}

.compare-body li i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== Warranty Detail Card ===== */
.warranty-detail-card {
    background: var(--tp-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-sm);
    overflow: hidden;
    transition: var(--tp-transition);
    animation: card-enter 0.5s ease-out;
}

.warranty-summary {
    background: linear-gradient(135deg, var(--tp-gray-50) 0%, var(--tp-white) 100%);
    border-bottom: 1px solid var(--tp-gray-200);
    padding: 1.25rem;
}

/* ===== Tyre Position Badge ===== */
.tyre-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    background: var(--tp-green);
    color: white;
}

/* ===== Alert overrides ===== */
.alert {
    border-radius: var(--tp-radius-sm);
    border: none;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(0, 153, 68, 0.08);
    color: var(--tp-green-dark);
    border-left: 4px solid var(--tp-green);
}

.alert-danger {
    border-left: 4px solid #f44336;
}

/* ===== Checklist ===== */
.check-list li {
    padding: 0.45rem 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
}

.check-list li i {
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===== Floating label effect on scroll ===== */
.instructions-box {
    background: linear-gradient(135deg, var(--tp-gray-50) 0%, rgba(0, 153, 68, 0.03) 100%);
    border: 1px solid var(--tp-gray-200);
    border-radius: var(--tp-radius-sm);
    padding: 1rem 1.25rem;
}

/* ===== Loading Skeleton (for future use) ===== */
.skeleton {
    background: linear-gradient(90deg, var(--tp-gray-200) 25%, var(--tp-gray-100) 50%, var(--tp-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--tp-radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Counter animation (for stats) ===== */
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tp-green);
    line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .navbar-tp .navbar-collapse {
        background: var(--tp-white);
        border-radius: var(--tp-radius);
        box-shadow: var(--tp-shadow-md);
        padding: 1rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-tp {
        border-radius: var(--tp-radius);
        min-height: 180px;
    }

    .hero-tp h1 {
        font-size: 1.7rem;
    }
    .hero-tp p {
        font-size: 0.9rem;
    }

    /* Navbar - smaller logos on mobile */
    .navbar-tp .navbar-brand img:first-child {
        height: 32px !important;
    }
    .navbar-tp .navbar-brand img:last-child {
        height: 50px !important;
    }
    .navbar-tp .brand-separator {
        font-size: 0.9rem;
    }

    /* Hide the duplicate phone number in the top bar on phones — it's already shown
       inside the hamburger menu. This frees enough width for the logout button to stay
       on the brand row instead of wrapping below. */
    .navbar-tp .navbar-mobile-phone {
        display: none;
    }

    /* Buttons - full width & touch-friendly on mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Stats bar */
    .stat-number {
        font-size: 1.5rem;
    }

    /* Cards - reduce padding */
    .card-tp .card-body {
        padding: 1rem;
    }

    /* Feature icons */
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Footer compact on mobile */
    .footer-tp .footer-content {
        padding: 1.5rem 0 0.5rem;
    }
    .footer-tp h6 {
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
    }
    .footer-tp a, .footer-tp .small, .footer-tp p {
        font-size: 0.8rem;
    }
    .footer-bottom {
        font-size: 0.7rem !important;
    }

    .compare-card.featured::before {
        display: none;
    }

    /* Section spacing */
    .mt-5 {
        margin-top: 2rem !important;
    }
    .section-header {
        font-size: 1.2rem;
    }
}

/* ===== Wizard Stepper ===== */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.25rem 1.5rem;
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-sm);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: default;
}

.wizard-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--tp-gray-200);
    color: var(--tp-gray-500);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.wizard-step.active .wizard-step-circle {
    background: var(--tp-green);
    color: white;
    border-color: var(--tp-green);
    box-shadow: 0 0 0 4px var(--tp-green-glow);
    transform: scale(1.1);
}

.wizard-step.completed .wizard-step-circle {
    background: var(--tp-green);
    color: white;
    border-color: var(--tp-green);
    transform: scale(1);
    box-shadow: none;
}

.wizard-step-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--tp-gray-400);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.wizard-step.active .wizard-step-label {
    color: var(--tp-green);
}

.wizard-step.completed .wizard-step-label {
    color: var(--tp-green-dark);
}

.wizard-step-line {
    flex: 1;
    height: 3px;
    background: var(--tp-gray-200);
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    min-width: 30px;
}

.wizard-step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--tp-green);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Wizard Panels */
.wizard-panel {
    display: none;
    opacity: 0;
    transform: translateX(0);
}

.wizard-panel.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Preparing next panel off-screen */
.wizard-panel.wizard-ready {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 2;
}

.wizard-panel.wizard-from-right {
    transform: translateX(60px);
}

.wizard-panel.wizard-from-left {
    transform: translateX(-60px);
}

/* Slide in */
.wizard-panel.wizard-sliding-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade out current going left (forward) */
.wizard-panel.wizard-exit-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.3s ease-in,
                transform 0.3s ease-in;
}

/* Fade out current going right (backward) */
.wizard-panel.wizard-exit-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.3s ease-in,
                transform 0.3s ease-in;
}

.wizard-shake {
    animation: wizardShake 0.4s ease-in-out;
}

@@keyframes wizardShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Wizard Nav Buttons */
.wizard-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Wizard Summary Sidebar */
.wizard-summary .form-section {
    margin-bottom: 0;
}

.summary-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tp-gray-100);
    transition: all 0.3s ease;
}

.summary-row.summary-active {
    background: rgba(0, 153, 68, 0.04);
    border-left: 3px solid var(--tp-green);
}

.summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--tp-gray-100);
    color: var(--tp-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.summary-active .summary-icon {
    background: var(--tp-green);
    color: white;
}

.summary-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--tp-text-secondary);
}

.summary-value {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--tp-text);
    word-break: break-word;
}

.summary-sub {
    font-size: 0.78rem;
    color: var(--tp-text-secondary);
}

/* Invalid field highlight */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.is-invalid ~ .invalid-feedback,
.is-invalid + .invalid-feedback {
    display: block;
}

.invalid-feedback {
    display: none;
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
    font-weight: 500;
}

@media (max-width: 991px) {
    .wizard-summary {
        position: static !important;
    }

    .wizard-stepper {
        padding: 0.75rem 0.5rem;
        gap: 0;
    }

    .wizard-step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .wizard-step-label {
        font-size: 0.58rem;
    }

    .wizard-step-line {
        min-width: 16px;
    }
}

@media (max-width: 767px) {
    .wizard-stepper {
        padding: 0.6rem 0.25rem;
    }

    .wizard-step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .wizard-step-label {
        font-size: 0.5rem;
        letter-spacing: 0.3px;
    }

    .wizard-step-line {
        margin: 0 4px;
        margin-bottom: 22px;
        min-width: 12px;
    }

    .wizard-nav {
        flex-wrap: wrap;
    }

    .wizard-nav .btn {
        flex: 1;
        min-width: 120px;
        /* Keep label + arrow on one line and let flex/padding give a comfy tap target.
           Without this, "Next →" wraps to two lines on narrow viewports because the
           bootstrap `.btn` doesn't force `white-space:nowrap`. */
        white-space: nowrap;
        padding-left: 1rem;
        padding-right: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .35rem;
        min-height: 44px;
    }

    /* Inline icons inside wizard-nav buttons — kill the ms-1 / me-1 margins so the
       flex `gap` is the only source of spacing (avoids icon getting bumped to a new line). */
    .wizard-nav .btn i { margin: 0 !important; }
}

/* ===== Mobile Summary Bottom Bar ===== */
.mobile-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--tp-white);
    border-top: 2px solid var(--tp-green);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

/* Two-tab row at the bottom of screen */
.mob-tab-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--tp-gray-100);
}

.mob-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tp-text-secondary);
    background: var(--tp-gray-100);
    border: 1.5px solid transparent;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.15s ease,
                color 0.15s ease,
                box-shadow 0.15s ease;
    will-change: transform;
}

.mob-tab-btn:active {
    transform: scale(0.93);
}

.mob-tab-btn.active-tab {
    color: var(--tp-white);
    background: var(--tp-green);
    border-color: var(--tp-green);
    box-shadow: 0 4px 12px rgba(0, 153, 68, 0.35);
    animation: mob-tab-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes mob-tab-pop {
    0%   { transform: scale(0.88); }
    60%  { transform: scale(1.06); }
    100% { transform: scale(1);    }
}

.mobile-summary-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mobile-summary-step-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mobile-summary-step-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tp-gray-300);
    transition: all 0.3s ease;
}

.mobile-summary-step-dots .dot.active {
    background: var(--tp-green);
}

.mobile-summary-step-dots .dot.current {
    width: 20px;
    border-radius: 4px;
    background: var(--tp-green);
    box-shadow: 0 0 0 3px var(--tp-green-glow);
}

.mobile-summary-detail {
    display: none;
    padding: 0.6rem 1rem 0.75rem;
    max-height: 40vh;
    overflow-y: auto;
}

.mobile-summary-bar.expanded .mobile-summary-detail:not(.d-none) {
    display: block;
}

.mobile-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 0.75rem;
}

.mobile-sum-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--tp-text);
}

.mobile-sum-item i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Add bottom padding to body on mobile so content isn't hidden behind bar */
@media (max-width: 991px) {
    body {
        padding-bottom: 64px;
    }
}

/* ===== Invoice Dropzone ===== */
.invoice-dropzone {
    border: 2px dashed var(--tp-gray-300);
    border-radius: var(--tp-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--tp-gray-50);
}

.invoice-dropzone:hover {
    border-color: var(--tp-green);
    background: rgba(0, 153, 68, 0.03);
}

.invoice-dropzone.dragover {
    border-color: var(--tp-green);
    background: rgba(0, 153, 68, 0.06);
    transform: scale(1.01);
    box-shadow: 0 0 0 4px var(--tp-green-glow);
}

.invoice-dropzone.has-file {
    border-style: solid;
    border-color: var(--tp-green);
    background: rgba(0, 153, 68, 0.04);
    text-align: left;
    padding: 1.25rem 1.5rem;
}

.invoice-dropzone-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 153, 68, 0.1), rgba(0, 153, 68, 0.05));
    color: var(--tp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
    transition: transform 0.3s ease;
}

.invoice-dropzone:hover .invoice-dropzone-icon {
    transform: translateY(-3px);
}

.invoice-file-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 153, 68, 0.1);
    color: var(--tp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ===== Find Outlets Page ===== */
.outlet-page-header {
    padding: 1.5rem 0 0.5rem;
}

.outlet-page-header h2 {
    font-size: 1.6rem;
    color: var(--tp-text);
}

/* Search Bar */
.outlet-search-wrapper {
    margin: 1rem 0 1.5rem;
}

.outlet-search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--tp-white);
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-md);
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    border: 2px solid var(--tp-gray-200);
    transition: var(--tp-transition);
}

.outlet-search-bar:focus-within {
    border-color: var(--tp-green);
    box-shadow: var(--tp-shadow-md), 0 0 0 4px var(--tp-green-glow);
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.search-icon {
    color: var(--tp-gray-400);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-field {
    border: none !important;
    box-shadow: none !important;
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
    background: transparent;
    flex: 1;
}

.search-field:focus {
    border: none !important;
    box-shadow: none !important;
}

.btn-search {
    padding: 0.5rem 1.25rem;
    border-radius: var(--tp-radius-sm) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-divider {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    flex-shrink: 0;
}

.search-divider span {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--tp-gray-400);
    letter-spacing: 1px;
}

.btn-locate {
    padding: 0.6rem 1.5rem;
    border-radius: var(--tp-radius-sm) !important;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Map */
.outlet-map-container {
    position: relative;
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    box-shadow: var(--tp-shadow-md);
    border: 2px solid var(--tp-gray-200);
}

#outletMap {
    height: 420px;
    width: 100%;
    z-index: 1;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tp-gray-50);
    z-index: 2;
}

/* Custom Map Markers */
.custom-marker {
    background: none;
    border: none;
}

.marker-pin {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.marker-pin i {
    transform: rotate(45deg);
    font-size: 0.9rem;
    color: white;
}

.marker-green {
    background: linear-gradient(135deg, var(--tp-green), var(--tp-green-light));
}

.marker-yellow {
    background: linear-gradient(135deg, #e6a800, var(--tp-yellow));
}

.marker-yellow i {
    color: var(--tp-dark);
}

.marker-blue {
    background: linear-gradient(135deg, var(--tp-blue-dark), var(--tp-blue-light));
}

.map-popup {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* Filter Buttons */
.filter-btn {
    font-size: 0.82rem !important;
    padding: 0.35rem 1rem !important;
}

.filter-btn.active {
    background: var(--tp-green) !important;
    color: white !important;
    border-color: var(--tp-green) !important;
}

/* Outlet Cards */
.outlet-card {
    background: var(--tp-white);
    border: 1px solid var(--tp-gray-200);
    border-radius: var(--tp-radius);
    padding: 1.25rem;
    transition: var(--tp-transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.outlet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tp-green), var(--tp-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.outlet-card:hover {
    box-shadow: var(--tp-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--tp-green);
}

.outlet-card:hover::before {
    opacity: 1;
}

.outlet-card-header {
    display: flex;
    gap: 6px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.outlet-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-tyreplus {
    background: linear-gradient(135deg, rgba(255, 229, 0, 0.2), rgba(255, 229, 0, 0.1));
    color: #9a7b00;
}

.badge-dealer {
    background: rgba(0, 153, 68, 0.08);
    color: var(--tp-green-dark);
}

.badge-rhp {
    background: rgba(0, 79, 159, 0.08);
    color: var(--tp-blue);
}

.outlet-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--tp-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.outlet-card-details {
    flex: 1;
    margin-bottom: 1rem;
}

.outlet-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--tp-text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.outlet-detail i {
    color: var(--tp-green);
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.outlet-distance {
    color: var(--tp-green-dark);
    font-weight: 600;
}

.outlet-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.outlet-card-actions .btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    flex: 1;
    text-align: center;
}

/* Responsive Outlet Page */
@media (max-width: 767px) {
    .outlet-search-bar {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.5rem;
        border-radius: var(--tp-radius);
    }

    .search-input-group {
        width: 100%;
    }

    .search-divider {
        padding: 0.25rem 0;
    }

    .btn-locate {
        width: 100%;
    }

    #outletMap {
        height: 280px;
    }

    .outlet-page-header h2 {
        font-size: 1.3rem;
    }
}

/* ===== Payment Page ===== */
.payment-page {
    max-width: 800px;
    margin: 0 auto;
}

.payment-header-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tp-green), #34d399);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.payment-summary {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-left: 4px solid var(--tp-green);
}

.payment-method-card {
    position: relative;
    background: var(--tp-white);
    border: 2px solid var(--tp-gray-200);
    border-radius: var(--tp-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    border-color: var(--tp-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.12);
}

.payment-method-card.selected {
    border-color: var(--tp-green);
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.15);
}

.payment-method-card .payment-method-check {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.3rem;
    color: var(--tp-green);
    opacity: 0;
    transition: opacity 0.3s;
}

.payment-method-card.selected .payment-method-check {
    opacity: 1;
}

.payment-method-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.payment-method-icon.qr-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.payment-method-icon.billplz-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.qr-container {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: var(--tp-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.qr-image {
    max-width: 280px;
    width: 100%;
    height: auto;
}

/* ===== Payment Success ===== */
.payment-success-page {
    max-width: 600px;
    margin: 0 auto;
}

.payment-success-card {
    max-width: 400px;
}

.thank-you-banner {
    max-width: 480px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(0, 153, 68, 0.08);
    border: 1px solid rgba(0, 153, 68, 0.25);
    border-radius: 12px;
}
.thank-you-banner i {
    font-size: 1.4rem;
    flex: 0 0 auto;
}

.success-checkmark {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tp-green), #34d399);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== AI Invoice Extract ===== */
.ai-filled {
    border-color: var(--tp-green) !important;
    background-color: rgba(0, 153, 68, 0.04) !important;
}

.ai-highlight {
    animation: aiPulse 0.6s ease-in-out 2;
}

@keyframes aiPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 153, 68, 0); }
    50% { box-shadow: 0 0 0 4px rgba(0, 153, 68, 0.2); }
}

.invoice-extract-status {
    padding: 10px 14px;
    background: var(--tp-gray-50);
    border-radius: 8px;
    border: 1px solid var(--tp-gray-200);
}

/* Full-page extraction overlay */
.extract-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.extract-overlay.show {
    opacity: 1;
    visibility: visible;
}
.extract-overlay-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    max-width: 360px;
    width: 90%;
}
.extract-overlay-card .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}
.extract-overlay-card .overlay-icon {
    font-size: 3rem;
}
.extract-overlay-card .btn-skip {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}
.extract-overlay-card .btn-skip:hover {
    color: #333;
}

/* ===== Outlet Picker (Wizard Step 4) ===== */
.outlet-picker-container {
    display: flex;
    gap: 0;
    border: 1px solid var(--tp-gray-200);
    border-radius: 12px;
    overflow: hidden;
    height: 380px;
}
.outlet-picker-map {
    flex: 1;
    min-width: 0;
    position: relative;
}
.outlet-picker-map #outletPickerMap {
    width: 100%;
    height: 100%;
}
.outlet-picker-list {
    width: 340px;
    overflow-y: auto;
    border-left: 1px solid var(--tp-gray-200);
    background: #fff;
}
.outlet-picker-item {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid var(--tp-gray-100);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.outlet-picker-item:hover {
    background: rgba(0, 153, 68, 0.04);
}
.outlet-picker-item.selected {
    background: rgba(0, 153, 68, 0.12);
    border-left: 4px solid var(--tp-green);
    box-shadow: inset 0 0 0 1px rgba(0, 153, 68, 0.35);
    padding-right: 96px; /* room for the badge */
}
.outlet-picker-item.selected::after {
    content: "\2713 Selected";
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--tp-green);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1;
}
.outlet-picker-item .outlet-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--tp-dark);
}
.outlet-picker-item .outlet-item-addr {
    font-size: 0.78rem;
    color: #666;
    margin-top: 2px;
}
.outlet-picker-item .outlet-item-dist {
    font-size: 0.72rem;
    color: var(--tp-green);
    font-weight: 600;
    margin-top: 2px;
}
.outlet-selected-banner {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background: rgba(0, 153, 68, 0.06);
    border: 1px solid rgba(0, 153, 68, 0.2);
    border-radius: 8px;
}
@media (max-width: 768px) {
    .outlet-picker-container {
        flex-direction: column;
        height: auto;
    }
    .outlet-picker-map {
        height: 240px;
        flex: none;
    }
    .outlet-picker-map #outletPickerMap {
        height: 240px;
    }
    .outlet-picker-list {
        width: 100%;
        max-height: 250px;
        border-left: none;
        border-top: 1px solid var(--tp-gray-200);
    }
}

/* ===== Print ===== */
@media print {
    .navbar-tp, .footer-tp, .btn { display: none !important; }
    .hero-tp { background: white !important; color: black !important; }
    .card-tp { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ============================================================
   Tom Select — Theme overrides to match TYREPLUS green palette
   Applies globally wherever initTpSearchableSelect() is used.
   ============================================================ */
.ts-wrapper {
    font-family: inherit;
}
.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
    border-radius: var(--tp-radius-sm);
    border: 1px solid var(--tp-gray-300);
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background-color: #fff;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ts-wrapper.single.focus .ts-control,
.ts-wrapper.multi.focus .ts-control {
    border-color: var(--tp-green);
    box-shadow: 0 0 0 0.15rem var(--tp-green-glow);
}
.ts-wrapper.single .ts-control::after {
    border-color: var(--tp-green) transparent transparent transparent;
}
.ts-dropdown {
    border-radius: var(--tp-radius-sm);
    border: 1px solid var(--tp-gray-300);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-size: 0.875rem;
    margin-top: 4px;
    overflow: hidden;
}
.ts-dropdown .option {
    padding: 0.5rem 0.75rem;
    line-height: 1.3;
    border-bottom: 1px solid var(--tp-gray-100);
}
.ts-dropdown .option:last-child { border-bottom: none; }
.ts-dropdown .active {
    background-color: var(--tp-green-glow);
    color: var(--tp-green-dark);
}
.ts-dropdown .option.selected,
.ts-dropdown .option.selected.active {
    background-color: var(--tp-green);
    color: #fff;
}
.ts-dropdown .no-results {
    padding: 0.75rem;
    color: var(--tp-gray-600);
    font-style: italic;
    text-align: center;
}
.ts-dropdown-content { padding: 0; }
.ts-wrapper.disabled .ts-control {
    background-color: var(--tp-gray-100);
    opacity: 0.7;
}
/* "Required" invalid state to blend with Bootstrap validation */
.ts-wrapper.invalid .ts-control,
select.is-invalid + .ts-wrapper .ts-control {
    border-color: #dc3545;
}
