/* FitMove+ - Design System PHP
 * Migração do React para PHP mantendo o mesmo layout
 * Sistema de design roxo e moderno
 */

/* ============================================
   CSS Reset & Base
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

/* Esconder scrollbars mantendo funcionalidade */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* ============================================
   CSS Variables - Theme System
   ============================================ */
:root {
    /* Modo Claro - Padrão */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(0, 0%, 8%);

    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 8%);

    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(0, 0%, 8%);

    --primary: hsl(270, 85%, 44%);
    --primary-foreground: hsl(0, 0%, 98%);
    --primary-glow: hsl(270, 85%, 44%);

    --secondary: hsl(0, 0%, 96%);
    --secondary-foreground: hsl(0, 0%, 8%);

    --muted: hsl(0, 0%, 96%);
    --muted-foreground: hsl(0, 0%, 45%);

    --accent: hsl(270, 85%, 44%);
    --accent-foreground: hsl(0, 0%, 98%);

    --gold: hsl(45, 93%, 58%);
    --gold-foreground: hsl(0, 0%, 5%);

    --success: hsl(142, 76%, 36%);
    --warning: hsl(38, 92%, 50%);
    --danger: hsl(0, 84%, 60%);

    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 98%);

    --border: hsl(0, 0%, 90%);
    --input: hsl(0, 0%, 96%);
    --ring: hsl(270, 85%, 44%);

    --radius: 0.75rem;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, hsl(270, 85%, 44%), hsl(270, 85%, 55%));
    --gradient-accent: linear-gradient(135deg, hsl(270, 85%, 44%), hsl(270, 85%, 55%));
    --gradient-gold: linear-gradient(135deg, hsl(45, 93%, 58%), hsl(38, 92%, 50%));
    --gradient-background: linear-gradient(180deg, hsl(0, 0%, 98%), hsl(0, 0%, 95%));

    /* Sombras */
    --shadow-glow: 0 0 20px hsla(270, 85%, 44%, 0.2);
    --shadow-card: 0 8px 32px hsla(0, 0%, 0%, 0.1);
    --shadow-elegant: 0 4px 20px hsla(0, 0%, 0%, 0.08);

    /* Transições */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo Escuro */
.dark {
    --background: hsl(0, 0%, 5%);
    --foreground: hsl(0, 0%, 98%);

    --card: hsl(0, 0%, 8%);
    --card-foreground: hsl(0, 0%, 98%);

    --popover: hsl(0, 0%, 8%);
    --popover-foreground: hsl(0, 0%, 98%);

    --secondary: hsl(0, 0%, 12%);
    --secondary-foreground: hsl(0, 0%, 98%);

    --muted: hsl(0, 0%, 12%);
    --muted-foreground: hsl(0, 0%, 64%);

    --border: hsl(0, 0%, 15%);
    --input: hsl(0, 0%, 12%);

    --gradient-background: linear-gradient(180deg, hsl(0, 0%, 5%), hsl(0, 0%, 8%));
    --shadow-glow: 0 0 20px hsla(270, 85%, 44%, 0.3);
    --shadow-card: 0 8px 32px hsla(0, 0%, 0%, 0.6);
}

/* ============================================
   Base Styles
   ============================================ */
body {
    background-color: var(--background);
    color: var(--foreground);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ============================================
   Colors
   ============================================ */
.text-foreground {
    color: var(--foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-primary {
    color: var(--primary);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-white {
    color: white;
}

.text-gold {
    color: var(--gold);
}

.text-destructive {
    color: var(--destructive);
}

.text-success {
    color: var(--success);
}

.bg-background {
    background-color: var(--background);
}

.bg-card {
    background-color: var(--card);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-muted {
    background-color: var(--muted);
}

.bg-destructive {
    background-color: var(--destructive);
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.min-h-screen {
    min-height: 100vh;
}

.h-screen {
    height: 100vh;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

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

.items-center {
    align-items: center;
}

.items-start {
    align-items: start;
}

.items-end {
    align-items: end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Gap */
.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Spacing */
.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pb-24 {
    padding-bottom: 6rem;
}

.pb-32 {
    padding-bottom: 8rem;
}

.m-auto {
    margin: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.top-4 {
    top: 1rem;
}

.left-4 {
    left: 1rem;
}

.right-3 {
    right: 0.75rem;
}

.right-4 {
    right: 1rem;
}

.top-1\/2 {
    top: 50%;
}

.bottom-32 {
    bottom: 8rem;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background-color: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.card-glass {
    background-color: rgba(var(--card), 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--primary), 0.3);
    box-shadow: var(--shadow-elegant);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: var(--muted);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

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

.btn-destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}

.btn-destructive:hover {
    opacity: 0.9;
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--secondary);
}

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

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Button Sizes */
.btn-sm {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
}

.btn-md {
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 3rem;
    padding: 0 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    height: 2.5rem;
    width: 2.5rem;
    padding: 0;
}

.btn-icon-lg {
    height: 4rem;
    width: 4rem;
    padding: 0;
}

.btn-rounded {
    border-radius: 9999px;
}

/* ============================================
   Inputs
   ============================================ */
.input {
    display: block;
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-color: var(--input);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    transition: var(--transition-smooth);
}

.input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(var(--ring), 0.2);
}

.input::placeholder {
    color: var(--muted-foreground);
}

.input-icon {
    padding-left: 2.5rem;
}

.input-glass {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.input-glass::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-glass:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.label-white {
    color: white;
}

.input-wrapper {
    position: relative;
}

.input-icon-left {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--muted-foreground);
}

.input-white .input-icon-left {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Navigation Bar (Bottom)
   ============================================ */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-top: 1px solid var(--border);
    z-index: 50;
    padding: 0.5rem;
}

.nav-bottom-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    max-width: 28rem;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--foreground);
}

.nav-item.active {
    color: var(--primary);
    background-color: rgba(var(--primary), 0.1);
}

.nav-item-center {
    padding: 0.75rem;
    transform: scale(1.25);
}

.nav-item svg {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-tracking-indicator {
    background-color: rgba(var(--primary), 0.1);
    border-bottom: 1px solid rgba(var(--primary), 0.2);
    padding: 0.5rem 1rem;
}

.nav-tracking-indicator .dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary);
    border-radius: 9999px;
    animation: pulse 2s infinite;
}

/* ============================================
   Auth Layout
   ============================================ */
.auth-layout {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-glow));
}

.auth-circles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-circle {
    position: absolute;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    animation: pulse 3s infinite;
}

.auth-circle-1 {
    width: 20rem;
    height: 20rem;
    top: -5rem;
    left: -5rem;
}

.auth-circle-2 {
    width: 15rem;
    height: 15rem;
    top: 33%;
    right: -4rem;
    background: rgba(255, 255, 255, 0.1);
    animation-delay: 0.7s;
}

.auth-circle-3 {
    width: 24rem;
    height: 24rem;
    bottom: -4rem;
    left: 25%;
    animation-delay: 1s;
}

.auth-circle-4 {
    width: 10rem;
    height: 10rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    animation-delay: 0.5s;
}

.auth-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 255, 0.25);
}

.auth-logo {
    width: 10rem;
    height: 7.5rem;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-align: center;
}

.auth-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
    padding-top: 1rem;
}

.auth-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-size: 0.875rem;
}

.auth-link:hover {
    color: white;
}

.auth-link-strong {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.auth-link-strong:hover {
    color: rgba(255, 255, 255, 0.8);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.auth-version {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 1.5rem;
}

/* ============================================
   Dashboard & Stats
   ============================================ */
.dashboard-bg {
    background: linear-gradient(135deg, var(--background), var(--secondary));
}

.stats-card {
    padding: 0.75rem;
    text-align: center;
    background-color: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stats-card svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin: 0 auto 0.25rem;
}

.stats-card .label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.stats-card .value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
}

.stats-card-large .value {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ============================================
   Tabs
   ============================================ */
.tabs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    background-color: var(--muted);
    padding: 0.25rem;
    border-radius: calc(var(--radius) - 2px);
}

.tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: transparent;
    border-radius: calc(var(--radius) - 4px);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.tab-trigger:hover {
    color: var(--foreground);
}

.tab-trigger.active {
    background-color: var(--background);
    color: var(--foreground);
    box-shadow: var(--shadow-card);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   Rides & Activity
   ============================================ */
.ride-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: rgba(var(--secondary), 0.5);
    border-radius: var(--radius);
}

.ride-distance {
    font-weight: 700;
}

.ride-coins {
    color: var(--gold);
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--muted-foreground);
}

.empty-state svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.5rem;
    opacity: 0.5;
}

/* Weekly Goal Progress */
.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--secondary);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 9999px;
    transition: width 0.5s ease-out;
}

.goal-card {
    padding: 1rem;
    background: linear-gradient(to right, rgba(var(--primary), 0.2), rgba(var(--accent), 0.2));
    border-radius: var(--radius);
    border: 1px solid rgba(var(--primary), 0.3);
}

/* ============================================
   Tracking Screen
   ============================================ */
.tracking-screen {
    position: relative;
    height: 100vh;
    background-color: var(--background);
}

.tracking-map {
    position: absolute;
    inset: 0;
}

.tracking-stats {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.tracking-stat-card {
    padding: 0.5rem 0.75rem;
    text-align: center;
    background-color: rgba(var(--card), 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--primary), 0.3);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
}

.tracking-stat-card svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    margin: 0 auto 0.25rem;
}

.tracking-controls {
    position: absolute;
    bottom: 8rem;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
}

.tracking-btn-start {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-smooth);
}

.tracking-btn-start:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.tracking-btn-pause {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: rgba(var(--card), 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.tracking-btn-pause:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.tracking-btn-stop {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.tracking-btn-stop:hover {
    transform: scale(1.1);
}

.tracking-total-badge {
    position: absolute;
    bottom: 7rem;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
}

.tracking-total-inner {
    display: inline-block;
    background-color: rgba(var(--card), 0.95);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-elegant);
}

/* Status Cards */
.status-card {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 20;
    padding: 0.75rem;
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
}

.status-card-error {
    background-color: rgba(var(--destructive), 0.1);
    border: 1px solid rgba(var(--destructive), 0.2);
}

.status-card-info {
    background-color: rgba(var(--primary), 0.1);
    border: 1px solid rgba(var(--primary), 0.3);
}

/* ============================================
   Merchant Button
   ============================================ */
.merchant-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.merchant-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================
   Animations
   ============================================ */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.2s ease-out;
}

/* ============================================
   Loading States
   ============================================ */
.loading-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border-bottom: 2px solid var(--primary);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* ============================================
   Utilities
   ============================================ */
.rounded {
    border-radius: var(--radius);
}

.rounded-lg {
    border-radius: calc(var(--radius) + 0.25rem);
}

.rounded-xl {
    border-radius: calc(var(--radius) + 0.5rem);
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-80 {
    opacity: 0.8;
}

.pointer-events-none {
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

.underline {
    text-decoration: underline;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow {
    box-shadow: var(--shadow-card);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.shadow-elegant {
    box-shadow: var(--shadow-elegant);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.drop-shadow-2xl {
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

.backdrop-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.border {
    border: 1px solid var(--border);
}

.border-t {
    border-top: 1px solid var(--border);
}

.border-b {
    border-bottom: 1px solid var(--border);
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.transition-all {
    transition: var(--transition-smooth);
}

.transform {
    transform: translateZ(0);
}

.scale-125 {
    transform: scale(1.25);
}

.translate-y-center {
    transform: translateY(-50%);
}

.translate-center {
    transform: translate(-50%, -50%);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
    .sm\:p-3 {
        padding: 0.75rem;
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {

    .nav-bottom,
    .tracking-controls {
        display: none;
    }
}