/* =========================================================
   TallerPro · Estilos
   Paleta tomada de la referencia: azul petróleo oscuro + naranja
   ========================================================= */
:root {
  --navy-900: #0b1c27;
  --navy-800: #0f2431;
  --navy-700: #14303f;
  --navy-600: #1b3d50;
  --navy-500: #2a5168;
  --orange: #f47c20;
  --orange-600: #e06a10;
  --orange-100: #fdeedf;
  --ink: #142430;
  --muted: #6b7b87;
  --line: #e6ebef;
  --bg: #f3f5f8;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(15, 36, 49, .06);
  --shadow: 0 12px 32px rgba(15, 36, 49, .10);
  --shadow-lg: 0 24px 60px rgba(8, 22, 32, .22);
  --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--bs-body-font-family); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.min-w-0 { min-width: 0; }
.text-orange { color: var(--orange) !important; }
.bg-navy { background: var(--navy-800) !important; }

/* ---------- Botones ---------- */
.btn { font-weight: 500; border-radius: 8px; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-orange {
  --bs-btn-color: #fff; --bs-btn-bg: var(--orange); --bs-btn-border-color: var(--orange);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--orange-600); --bs-btn-hover-border-color: var(--orange-600);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--orange-600); --bs-btn-active-border-color: var(--orange-600);
  --bs-btn-disabled-bg: var(--orange); --bs-btn-disabled-border-color: var(--orange);
  box-shadow: 0 8px 20px rgba(244, 124, 32, .28);
}
.btn-navy {
  --bs-btn-color: #fff; --bs-btn-bg: var(--navy-700); --bs-btn-border-color: var(--navy-700);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--navy-600); --bs-btn-hover-border-color: var(--navy-600);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--navy-800);
}
.tp-btn-ghost { border-color: rgba(255,255,255,.35); }
.tp-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #f8b07a; box-shadow: 0 0 0 .2rem rgba(244, 124, 32, .18); }
.form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }

/* ---------- Marca ---------- */
.tp-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.tp-brand:hover { color: #fff; }
.tp-brand-mark {
  width: 40px; height: 40px; border-radius: 11px 11px 11px 3px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(135deg, #ff9a3d, var(--orange) 55%, #d95f08); color: #fff; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(244,124,32,.35); transform: rotate(-8deg);
}
.tp-brand-mark i { transform: rotate(8deg); }
.tp-brand-logo { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.tp-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.tp-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.tp-brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.tp-brand-tag { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; opacity: .65; margin-top: 3px; }

/* =========================================================
   SITIO PÚBLICO
   ========================================================= */
.tp-public { background: var(--bg); }
.tp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; padding: 1.1rem 0; transition: background .25s, padding .25s, box-shadow .25s; }
.tp-nav.scrolled, .tp-nav.open { background: rgba(11, 28, 39, .96); padding: .65rem 0; box-shadow: 0 8px 30px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.tp-nav .nav-link { color: rgba(255,255,255,.85); font-weight: 500; font-size: .93rem; padding: .5rem .85rem !important; }
.tp-nav .nav-link:hover, .tp-nav .nav-link:focus { color: #fff; }
.tp-toggler { color: #fff; border: 1px solid rgba(255,255,255,.3); padding: .45rem .7rem; }
.tp-toggler:focus { box-shadow: none; }

.tp-hero { position: relative; background: var(--navy-800); color: #fff; overflow: hidden; min-height: 680px; padding: 170px 0 190px; }
.tp-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background-size: cover; background-position: center; }
.tp-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy-800) 0%, var(--navy-800) 36%, rgba(15,36,49,.82) 48%, rgba(15,36,49,.25) 72%, rgba(15,36,49,.15) 100%),
    linear-gradient(0deg, rgba(11,28,39,.65) 0%, rgba(11,28,39,0) 35%),
    linear-gradient(180deg, rgba(11,28,39,.6) 0%, rgba(11,28,39,0) 25%);
}
.tp-hero-copy { position: relative; z-index: 2; }
.tp-eyebrow { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ffb27a; background: rgba(244,124,32,.12); border: 1px solid rgba(244,124,32,.3); padding: .4rem .85rem; border-radius: 50px; margin-bottom: 1.4rem; }
.tp-hero h1 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 1.4rem; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.tp-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 400; color: rgba(255,255,255,.86); max-width: 560px; line-height: 1.55; }
.tp-hero-rule { width: 72%; max-width: 420px; border: 0; border-top: 1px solid rgba(255,255,255,.28); opacity: 1; margin: 1.8rem 0 2rem; }
.tp-hero-points { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 2rem; font-size: .88rem; color: rgba(255,255,255,.78); }
.tp-hero-points i { color: var(--orange); margin-right: .45rem; }

.tp-features { position: relative; z-index: 3; padding-bottom: 80px; }
.tp-features-grid { margin-top: -120px; }
.tp-feature-card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem 1.6rem 1.5rem; height: 100%;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; border: 1px solid rgba(15,36,49,.04);
}
.tp-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tp-feature-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.tp-feature-icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--orange-100); color: var(--orange); font-size: 1.15rem; box-shadow: inset 0 0 0 2px rgba(244,124,32,.18); }
.tp-feature-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.3; }
.tp-feature-card p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.6; }
.tp-service-img { display: block; margin: -1.6rem -1.6rem 1.2rem; height: 170px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.tp-service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tp-service-card:hover .tp-service-img img { transform: scale(1.05); }

.tp-kicker { display: inline-block; color: var(--orange); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.tp-section-title { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.02em; color: var(--navy-800); }
.tp-section { padding: 90px 0; }

.tp-steps { padding: 30px 0 100px; }
.tp-step { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem; height: 100%; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.tp-step-num { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; margin-bottom: 1.1rem; box-shadow: 0 0 0 5px rgba(15,36,49,.08); }
.tp-step h4 { font-weight: 700; font-size: 1.1rem; }
.tp-step p { color: var(--muted); margin: 0; font-size: .92rem; }

.tp-cta { position: relative; padding: 110px 0; color: #fff; background-size: cover; background-position: center; }
.tp-cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,28,39,.95), rgba(15,36,49,.85)); }
.tp-cta h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.02em; }
.tp-cta p { color: rgba(255,255,255,.78); font-size: 1.1rem; margin: 1rem 0 2rem; }

.tp-footer { background: var(--navy-900); color: rgba(255,255,255,.68); padding: 70px 0 0; font-size: .9rem; }
.tp-footer h6 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.tp-footer li { margin-bottom: .55rem; }
.tp-footer a { color: rgba(255,255,255,.68); text-decoration: none; }
.tp-footer a:hover { color: var(--orange); }
.tp-footer-text { max-width: 380px; line-height: 1.7; }
.tp-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; font-size: .82rem; text-align: center; }

.tp-page-head { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 140px 0 60px; }
.tp-page-head h1 { font-weight: 800; letter-spacing: -.02em; }

/* Página pública del taller */
.tp-hero-tenant { min-height: 640px; }
.tp-job-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; height: 100%; }
.tp-job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.tp-job-media { position: relative; display: grid; place-items: center; aspect-ratio: 4/3; background: var(--navy-700); color: rgba(255,255,255,.35); font-size: 2.4rem; overflow: hidden; }
.tp-job-media img { width: 100%; height: 100%; object-fit: cover; }
.tp-job-tag { position: absolute; left: 12px; top: 12px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 600; padding: .3rem .65rem; border-radius: 50px; }
.tp-job-body { display: block; padding: 1.1rem 1.2rem 1.25rem; }
.tp-job-title { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: .4rem; }
.tp-job-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .82rem; }
.tp-job-meta-light { color: rgba(255,255,255,.75); margin-top: .5rem; }
.tp-contact { background: var(--navy-800); color: rgba(255,255,255,.85); }
.tp-contact-list { list-style: none; padding: 0; margin: 0; }
.tp-contact-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem; }
.tp-contact-list i { width: 40px; height: 40px; border-radius: 10px; background: rgba(244,124,32,.14); color: var(--orange); display: grid; place-items: center; flex: 0 0 auto; }
.tp-contact-list a { color: #fff; text-decoration: none; }
.tp-contact-list span, .tp-contact-list a { padding-top: .5rem; }
.tp-map { height: 100%; min-height: 340px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.tp-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.tp-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 25px rgba(37,211,102,.45); text-decoration: none; }
.tp-wa-float:hover { color: #fff; transform: scale(1.06); }
.tp-back { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9rem; }
.tp-back:hover { color: var(--orange); }
.tp-back-light { color: rgba(255,255,255,.7); }

/* =========================================================
   AUTENTICACIÓN
   ========================================================= */
.tp-auth { background: var(--navy-900); min-height: 100vh; }
.tp-auth-bg { position: fixed; inset: 0; background-size: cover; background-position: center; opacity: .22; filter: grayscale(.3); }
.tp-auth-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11,28,39,.97) 25%, rgba(15,36,49,.75)); }
.tp-auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.tp-auth-top { display: flex; justify-content: space-between; align-items: center; padding-top: 1.4rem; }
.tp-auth-back { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; font-weight: 500; }
.tp-auth-back:hover { color: var(--orange); }
.tp-auth-card { background: #fff; width: 100%; max-width: 460px; border-radius: 18px; padding: 2.4rem 2.2rem; box-shadow: var(--shadow-lg); }
.tp-auth-card-wide { max-width: 760px; }
.tp-auth-icon { width: 58px; height: 58px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--orange-100); color: var(--orange); font-size: 1.4rem; margin-bottom: 1rem; }
.tp-auth-title { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; color: var(--navy-800); margin-bottom: .35rem; }
.tp-auth .form-label, .tp-panel .form-label { font-weight: 500; font-size: .86rem; color: #34495a; margin-bottom: .35rem; }
.tp-auth .input-group-text, .tp-panel .input-group-text { background: #f6f8fa; color: #8a9aa6; border-color: #dde3e8; min-width: 42px; justify-content: center; }
.form-control, .form-select { border-color: #dde3e8; padding: .6rem .8rem; border-radius: 8px; }
.input-group > .form-control { border-radius: 0 8px 8px 0; }
.tp-form-section { border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.tp-form-section h3 { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 700; color: var(--navy-800); margin-bottom: 1rem; }
.tp-form-section h3 span { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.tp-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tp-error-code { font-size: 4.5rem; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: .5rem; }

/* =========================================================
   PANEL ADMINISTRATIVO
   ========================================================= */
.tp-panel { background: var(--bg); }
.tp-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; width: 264px; z-index: 1045; background: var(--navy-800); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto; transition: transform .25s ease;
  background-image: radial-gradient(circle at 0% 100%, rgba(244,124,32,.12), transparent 45%);
}
.tp-sidebar-head { padding: 1.4rem 1.4rem 1.1rem; }
.tp-sidebar-tenant { display: flex; align-items: center; gap: .75rem; margin: 0 1rem 1rem; padding: .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; }
.tp-tenant-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--orange); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: 0 0 auto; }
.tp-tenant-avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.tp-tenant-name { font-weight: 600; font-size: .9rem; }
.tp-tenant-role { font-size: .74rem; color: rgba(255,255,255,.55); }
.tp-menu { padding: 0 .9rem; flex: 1; }
.tp-menu-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.4); padding: .5rem .75rem; }
.tp-menu-item {
  display: flex; align-items: center; gap: .85rem; padding: .72rem .9rem; border-radius: 10px; color: rgba(255,255,255,.75);
  text-decoration: none; font-weight: 500; font-size: .92rem; margin-bottom: 3px; border: 0; background: transparent; text-align: left;
}
.tp-menu-item i { width: 20px; text-align: center; opacity: .85; }
.tp-menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.tp-menu-item.active { background: var(--orange); color: #fff; box-shadow: 0 8px 18px rgba(244,124,32,.3); }
.tp-menu-logout { color: rgba(255,255,255,.6); }
.tp-menu-logout:hover { background: rgba(220,53,69,.15); color: #ff8e98; }
.tp-sidebar-cta { display: flex; align-items: center; gap: .8rem; margin: 1rem; padding: .9rem 1rem; border-radius: 12px; background: rgba(244,124,32,.12); border: 1px dashed rgba(244,124,32,.45); color: #fff; text-decoration: none; font-size: .86rem; font-weight: 600; }
.tp-sidebar-cta i { color: var(--orange); font-size: 1.1rem; }
.tp-sidebar-cta small { display: block; font-weight: 400; color: rgba(255,255,255,.55); font-size: .74rem; word-break: break-all; }
.tp-sidebar-cta:hover { background: rgba(244,124,32,.2); color: #fff; }
.tp-backdrop { display: none; }

.tp-main { margin-left: 264px; min-height: 100vh; display: flex; flex-direction: column; }
.tp-support-bar { background: linear-gradient(90deg, var(--orange), #ff9a3d); color: #fff; padding: .6rem 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; font-size: .88rem; }
.tp-topbar { position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .85rem 1.8rem; display: flex; align-items: center; gap: 1rem; }
.tp-topbar h1 { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--navy-800); }
.tp-icon-btn { width: 40px; height: 40px; border-radius: 10px; background: #f1f4f7; }
.tp-user-btn { display: flex; align-items: center; gap: .65rem; background: transparent; border: 0; padding: .25rem .4rem; border-radius: 10px; }
.tp-user-btn:hover { background: #f3f6f8; }
.tp-user-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-700); color: #fff; display: inline-grid; place-items: center; font-weight: 600; flex: 0 0 auto; }
.tp-user-name { font-weight: 600; font-size: .88rem; line-height: 1.1; }
.tp-user-role { font-size: .74rem; color: var(--muted); }
.tp-content { padding: 1.8rem; flex: 1; }

.tp-welcome {
  position: relative; overflow: hidden; border-radius: 18px; padding: 1.8rem 2rem; margin-bottom: 1.6rem; color: #fff;
  background: linear-gradient(115deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; box-shadow: var(--shadow);
}
.tp-welcome::after { content: '\f0ad'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: -10px; bottom: -40px; font-size: 10rem; color: rgba(255,255,255,.04); transform: rotate(-20deg); }
.tp-welcome-kicker { color: #ffb27a; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.tp-welcome h2 { font-weight: 800; font-size: 1.7rem; margin: .2rem 0 .3rem; letter-spacing: -.02em; }
.tp-welcome p { color: rgba(255,255,255,.7); font-size: .9rem; }
.tp-welcome-actions { display: flex; flex-wrap: wrap; gap: .6rem; position: relative; z-index: 1; }

.tp-stat { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius); padding: 1.25rem 1.3rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; height: 100%; }
a.tp-stat[href]:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.tp-stat-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--orange-100); color: var(--orange); display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }
.tp-stat-value { display: block; font-size: 1.65rem; font-weight: 800; line-height: 1; color: var(--navy-800); }
.tp-stat-label { display: block; color: var(--muted); font-size: .84rem; margin-top: .3rem; }
.tp-mini-stat { background: var(--bg); border-radius: 10px; padding: .75rem; text-align: center; font-size: .78rem; color: var(--muted); }
.tp-mini-stat span { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy-800); }

.tp-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.tp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.tp-card-head h3 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--navy-800); }
.tp-subhead { font-size: .95rem; font-weight: 700; color: var(--navy-800); padding-top: 1.2rem; border-top: 1px solid var(--line); margin-bottom: 1rem; }

.tp-list { display: flex; flex-direction: column; }
.tp-list-item { display: flex; align-items: center; gap: 1rem; padding: .8rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: 10px; }
.tp-list-item:last-child { border-bottom: 0; }
.tp-list-item:hover { background: #f8fafb; color: var(--ink); }
.tp-list-title { font-weight: 600; font-size: .93rem; }
.tp-list-meta { font-size: .8rem; color: var(--muted); }
.tp-thumb { width: 52px; height: 52px; border-radius: 10px; background: #eef2f5; color: #a5b3bd; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.tp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-thumb-letter { background: var(--navy-700); color: #fff; font-weight: 700; font-size: 1.1rem; }
.tp-thumb-lg { width: 70px; height: 70px; font-size: 1.6rem; }

.tp-quick { display: grid; gap: .55rem; }
.tp-quick a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9rem; transition: background .2s, color .2s; }
.tp-quick a i { color: var(--orange); width: 20px; text-align: center; }
.tp-quick a:hover { background: var(--orange-100); color: var(--orange-600); }

.tp-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border-radius: 50px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.tp-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tp-badge-success { background: #e3f6ec; color: #1a8a50; }
.tp-badge-warning { background: #fff3dc; color: #b7790b; }
.tp-badge-secondary { background: #edf0f3; color: #67788a; }
.tp-badge-info { background: #e3f0fb; color: #2471b5; }

.tp-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.tp-filters { display: flex; flex-wrap: wrap; gap: .6rem; flex: 1; max-width: 760px; }
.tp-filters .input-group { flex: 1 1 260px; }
.tp-filters .form-select { flex: 0 1 200px; }

.tp-table thead th { background: #f7f9fb; color: #6b7b87; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); padding: .9rem 1.1rem; white-space: nowrap; }
.tp-table tbody td { padding: .85rem 1.1rem; border-color: var(--line); font-size: .9rem; }
.tp-table tbody tr:hover { background: #fafbfc; }

.tp-item-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.tp-item-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tp-item-card.is-muted .tp-item-media { filter: grayscale(.85); opacity: .7; }
.tp-item-media { position: relative; height: 160px; background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); }
.tp-item-media img { width: 100%; height: 100%; object-fit: cover; }
.tp-item-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.25); font-size: 2.6rem; }
.tp-item-badge { position: absolute; top: 10px; left: 10px; }
.tp-item-badge .tp-badge { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.tp-item-body { padding: 1.1rem 1.2rem .6rem; flex: 1; }
.tp-item-body h4 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; }
.tp-item-body p { font-size: .86rem; color: var(--muted); margin-bottom: .6rem; }
.tp-item-meta { font-size: .78rem; color: var(--muted); }
.tp-item-actions { display: flex; gap: .4rem; padding: .8rem 1.2rem 1.1rem; }
.tp-price { font-weight: 700; color: var(--orange-600); white-space: nowrap; }

.tp-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.tp-empty-icon { width: 66px; height: 66px; border-radius: 50%; background: var(--bg); display: inline-grid; place-items: center; font-size: 1.6rem; color: #b5c1ca; margin-bottom: .8rem; }

.tp-dl { display: grid; grid-template-columns: 100px 1fr; gap: .55rem .8rem; margin: 0; font-size: .9rem; }
.tp-dl dt { color: var(--muted); font-weight: 500; }
.tp-dl dd { margin: 0; font-weight: 500; word-break: break-word; }

.tp-logo-box { aspect-ratio: 16/9; border-radius: 12px; background: var(--bg); border: 2px dashed #d6dee4; display: grid; place-items: center; overflow: hidden; }
.tp-logo-box img { max-width: 80%; max-height: 80%; object-fit: contain; }
.tp-logo-box span { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: #a5b3bd; font-size: 2rem; }
.tp-logo-box small { font-size: .8rem; }
.tp-url-box { display: flex; align-items: center; gap: .5rem; }
.tp-url-box > i { color: var(--orange); }

.tp-dropzone { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border: 2px dashed #f3c49c; border-radius: 12px; background: #fffaf5; }
.tp-dropzone > i { font-size: 1.8rem; color: var(--orange); }
.tp-dropzone-v { flex-direction: column; text-align: center; width: 100%; cursor: pointer; }
.tp-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.tp-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-sm); }

.tp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.tp-gallery-item { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eef2f5; box-shadow: var(--shadow-sm); }
.tp-gallery-item a { display: block; width: 100%; height: 100%; }
.tp-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tp-gallery-item:hover img { transform: scale(1.06); }
.tp-gallery-item form { position: absolute; top: 8px; right: 8px; margin: 0; }
.tp-gallery-del { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(220,53,69,.92); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; font-size: .85rem; }
.tp-gallery-item form .tp-gallery-del { position: static; }
.tp-gallery-item:hover .tp-gallery-del, .tp-gallery-del:focus { opacity: 1; }
@media (hover: none) { .tp-gallery-del { opacity: 1; } }

.tp-lightbox-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(6,15,22,.94); display: flex; align-items: center; justify-content: center; padding: 3rem 4rem; }
.tp-lightbox-overlay img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.tp-lightbox-overlay .lb-btn { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; }
.tp-lightbox-overlay .lb-btn:hover { background: var(--orange); }
.tp-lightbox-overlay .lb-close { top: 18px; right: 18px; }
.tp-lightbox-overlay .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.tp-lightbox-overlay .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.tp-lightbox-overlay .lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }

.tp-radio-cards { display: grid; gap: .6rem; }
.tp-radio-cards label { cursor: pointer; }
.tp-radio-cards input { position: absolute; opacity: 0; }
.tp-radio-cards span { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .7rem; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .92rem; transition: border-color .2s, background .2s; }
.tp-radio-cards span i { color: var(--muted); }
.tp-radio-cards span small { width: 100%; padding-left: 1.7rem; font-weight: 400; color: var(--muted); font-size: .78rem; }
.tp-radio-cards input:checked + span { border-color: var(--orange); background: #fffaf5; }
.tp-radio-cards input:checked + span i { color: var(--orange); }
.tp-radio-cards input:focus-visible + span { box-shadow: 0 0 0 .2rem rgba(244,124,32,.25); }
.tp-sticky-actions { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; padding: .9rem 0; background: linear-gradient(0deg, var(--bg) 70%, rgba(243,245,248,0)); }

.tp-timeline { list-style: none; padding: 0; margin: 0; }
.tp-timeline li { display: flex; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.tp-timeline li:last-child { border-bottom: 0; }
.tp-timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: .4rem; flex: 0 0 auto; box-shadow: 0 0 0 4px var(--orange-100); }
.tp-scroll { max-height: 620px; overflow-y: auto; padding-right: .3rem; }

.confirm-icon { width: 60px; height: 60px; border-radius: 50%; background: #fdecee; color: #dc3545; display: grid; place-items: center; font-size: 1.5rem; }

.tp-toast { border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 300px; font-size: .9rem; font-weight: 500; }
.tp-toast-success { background: #fff; border-left: 4px solid #1a8a50; }
.tp-toast-success i.fa-circle-check { color: #1a8a50; }
.tp-toast-danger { background: #fff; border-left: 4px solid #dc3545; }
.tp-toast-danger i.fa-circle-exclamation { color: #dc3545; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .tp-nav .navbar-collapse { padding: 1rem 0; }
  .tp-nav .btn-orange { margin-top: .5rem; }
  .tp-hero { padding: 130px 0 170px; min-height: 0; }
  .tp-hero-photo { width: 100%; opacity: .45; }
  .tp-hero-shade { background: linear-gradient(180deg, rgba(15,36,49,.75), rgba(15,36,49,.92)); }
  .tp-features-grid { margin-top: -100px; }

  .tp-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .tp-sidebar.show { transform: translateX(0); }
  .tp-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(6,15,22,.5); z-index: 1040; }
  .tp-main { margin-left: 0; }
  .tp-content { padding: 1.2rem; }
  .tp-topbar { padding: .7rem 1.2rem; }
}
@media (max-width: 575.98px) {
  .tp-auth-card { padding: 1.8rem 1.3rem; }
  .tp-form-section { padding: 1rem; }
  .tp-welcome { padding: 1.4rem; }
  .tp-welcome h2 { font-size: 1.35rem; }
  .tp-stat { padding: 1rem; gap: .75rem; }
  .tp-stat-icon { width: 42px; height: 42px; font-size: 1rem; }
  .tp-stat-value { font-size: 1.35rem; }
  .tp-lightbox-overlay { padding: 3.5rem .8rem; }
  .tp-gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .tp-filters .form-select { flex: 1 1 140px; }
  .tp-brand-tag { display: none; }
}
