@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

:root {
    --primary: #FF4B91;
    /* Vibrant Pink from Jersey */
    --secondary: #00A3A0;
    /* Teal/Cyan from Jersey */
    --accent: #FFFFFF;
    --dark: #1E293B;
    --text-body: #334155;
    /* slate-700 - harmonious, not harsh black */
    --text-muted: #64748B;
    /* slate-500 */
    --text-subtle: #94A3B8;
    /* slate-400 */
    --text-heading: #1E293B;
    /* slate-800 */
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --border: #E2E8F0;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --font-size-base: 14px;
    --font-size-sm: 13px;
    --font-size-xs: 12px;
    --font-size-label: 11px;
}

/* ===================== GLOBAL RESET ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    /* No italics, ever */
}

/* ===================== HTML & BODY — FIX SCROLL ISSUE ===================== */
html {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
    color: var(--text-body);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================== TYPOGRAPHY STANDARDIZATION ===================== */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
}

h5,
h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
}

p {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-body);
}

/* Label & small text standardization */
label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-style: normal !important;
}

/* Prevent italic anywhere */
em,
i:not([data-lucide]),
cite,
address {
    font-style: normal !important;
}

/* ===================== JERSEY MOTIF — HEXAGON PATTERN ===================== */
.pattern-hexagon {
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9l11-6.35 11 6.35v12.7l-11 6.35-11-6.35V17.9z' fill='%23ffffff' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Jersey diagonal brush stroke overlay - ENHANCED */
.pattern-brush {
    background-image:
        /* Diagonal brush strokes - main */
        linear-gradient(135deg, transparent 0%, transparent 45%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.08) 47%, transparent 47%, transparent 100%),
        linear-gradient(135deg, transparent 0%, transparent 48%, rgba(255, 255, 255, 0.05) 48%, rgba(255, 255, 255, 0.05) 50%, transparent 50%, transparent 100%),
        linear-gradient(135deg, transparent 0%, transparent 52%, rgba(255, 255, 255, 0.03) 52%, rgba(255, 255, 255, 0.03) 54%, transparent 54%, transparent 100%),
        /* Subtle dots pattern */
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 120px 120px, 140px 140px, 30px 30px, 40px 40px;
    background-position: 0 0, 10px 10px, 20px 20px, 0 0, 15px 15px;
    pointer-events: none;
}

/* Jersey diagonal brush stroke overlay - ALTERNATIVE (for cards) */
.pattern-jersey {
    background-image:
        /* Main diagonal sweep */
        linear-gradient(135deg, rgba(255, 75, 145, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, transparent 60%, rgba(0, 163, 160, 0.15) 100%),
        /* Brush texture lines */
        repeating-linear-gradient(135deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
        /* Hexagon subtle overlay */
        url("data:image/svg+xml,%3Csvg width='20' height='35' viewBox='0 0 20 35' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 5l8 4.5v9L10 23l-8-4.5v-9L10 5z' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 8px 8px, 20px 35px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    pointer-events: none;
}

/* ===================== SIDEBAR ===================== */
.sidebar-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 45%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.sidebar-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    /* Diagonal brush strokes like jersey */
    background-image:
        /* Main diagonal sweep from pink to teal */
        linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0.05) 52%, rgba(255, 255, 255, 0) 56%),
        /* Hexagon pattern */
        url("data:image/svg+xml,%3Csvg width='40' height='69.28' viewBox='0 0 40 69.28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'%3E%3Cpath d='M40 17.32l-20 11.55L0 17.32V-5.77l20-11.55L40-5.77V17.32zm-20 46.19l-20-11.55V28.87l20-11.55 20 11.55v23.09l-20 11.55zM20 51.96l10-5.77v-11.55l-10-5.77-10 5.77v11.55l10 5.77z'/%3E%3C/g%3E%3C/svg%3E"),
        /* Subtle dots for texture */
        radial-gradient(circle at 25% 40%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-position: 0 0, 0 0, 0 0, 0 0, 20px 20px;
    background-size: 100% 100%, 100% 100%, 40px 69.28px, 25px 25px, 35px 35px;
    background-repeat: no-repeat, no-repeat, repeat, repeat, repeat;
    pointer-events: none;
}



/* Accent stripe at sidebar top */
.sidebar-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* ===================== LAYOUT — FIX SCROLL ISSUE ===================== */
/*
 * The main layout is: html.h-full > body.h-full > div.min-h-full.flex
 * The sidebar is fixed. The main content column must fill the full height.
 * Setting the flex container and main column to min-h-screen prevents
 * the "need to scroll to see content" issue.
 */
.main-layout-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content area must stretch */
.main-content-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ===================== PAGE HEADER ===================== */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.025em;
    font-style: normal !important;
}

.page-subtitle {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-muted);
    font-style: normal !important;
}

/* ===================== CARDS ===================== */
.card-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.card-premium:hover {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 163, 160, 0.2);
}

.card-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 45%, #FF6BAD 100%);
    border-radius: var(--radius-2xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(255, 75, 145, 0.3);
}

.card-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 45%, #00BDB8 100%);
    border-radius: var(--radius-2xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 163, 160, 0.3);
}

/* ===================== FORM CONTROLS ===================== */
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
    font-family: 'Inter', 'Source Sans 3', sans-serif !important;
    font-style: normal !important;
    font-size: var(--font-size-base) !important;
    font-weight: 500 !important;
    color: var(--text-heading) !important;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    background-color: #F8FAFC;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--secondary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 163, 160, 0.08);
}

/* Placeholder styling */
::placeholder {
    color: var(--text-subtle) !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 50%, #FF6BAD 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-style: normal !important;
    box-shadow: 0 4px 15px rgba(255, 75, 145, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 75, 145, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 50%, #00BDB8 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-style: normal !important;
    box-shadow: 0 4px 15px rgba(0, 163, 160, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-secondary:hover::before {
    transform: translateX(100%);
}

.btn-secondary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 160, 0.4);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 50%, #FF6BAD 100%);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 1.25rem;
    border: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 75, 145, 0.3);
    font-style: normal !important;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-custom:hover::after {
    opacity: 1;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 75, 145, 0.4);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 50%, #00BDB8 100%);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 1.25rem;
    border: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 163, 160, 0.3);
    font-style: normal !important;
    position: relative;
    overflow: hidden;
}

.btn-secondary-custom::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary-custom:hover::after {
    opacity: 1;
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 163, 160, 0.4);
}

/* ===================== TABLES ===================== */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    font-size: var(--font-size-label) !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-style: normal !important;
}

table td {
    font-size: var(--font-size-sm) !important;
    font-weight: 500 !important;
    color: var(--text-body) !important;
    font-style: normal !important;
}

/* Scrollable table container — no overflow-x on body */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===================== LOGIN PAGE ===================== */
.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.login-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Diagonal brush strokes like jersey */
        linear-gradient(135deg, transparent 0%, transparent 45%, rgba(255, 75, 145, 0.03) 48%, rgba(255, 75, 145, 0.05) 50%, rgba(255, 75, 145, 0.03) 52%, transparent 55%),
        linear-gradient(135deg, transparent 0%, transparent 55%, rgba(0, 163, 160, 0.03) 58%, rgba(0, 163, 160, 0.05) 60%, rgba(0, 163, 160, 0.03) 62%, transparent 65%),
        /* Hexagon pattern */
        url("data:image/svg+xml,%3Csvg width='40' height='69.28' viewBox='0 0 40 69.28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2300A3A0' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M40 17.32l-20 11.55L0 17.32V-5.77l20-11.55L40-5.77V17.32zm-20 46.19l-20-11.55V28.87l20-11.55 20 11.55v23.09l-20 11.55zM20 51.96l10-5.77v-11.55l-10-5.77-10 5.77v11.55l10 5.77z'/%3E%3C/g%3E%3C/svg%3E"),
        /* Dots texture */
        radial-gradient(circle at 20% 30%, rgba(255, 75, 145, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(0, 163, 160, 0.04) 1px, transparent 1px);
    background-position: 0 0, 0 0, 0 0, 0 0, 30px 30px;
    background-size: 100% 100%, 100% 100%, 40px 69.28px, 25px 25px, 35px 35px;
    background-repeat: no-repeat, no-repeat, repeat, repeat, repeat;
    pointer-events: none;
    z-index: 0;
    animation: subtleMove 20s ease-in-out infinite;
}

@keyframes subtleMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, 10px);
    }
}

.login-bg>* {
    position: relative;
    z-index: 1;
}

/* ===================== STATUS BADGES ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-style: normal !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.badge:hover::before {
    transform: translateX(100%);
}

.badge-primary {
    background: linear-gradient(135deg, rgba(255, 75, 145, 0.15) 0%, rgba(255, 75, 145, 0.1) 100%);
    color: var(--primary);
    border: 1px solid rgba(255, 75, 145, 0.2);
    box-shadow: 0 2px 8px rgba(255, 75, 145, 0.15);
}

.badge-secondary {
    background: linear-gradient(135deg, rgba(0, 163, 160, 0.15) 0%, rgba(0, 163, 160, 0.1) 100%);
    color: var(--secondary);
    border: 1px solid rgba(0, 163, 160, 0.2);
    box-shadow: 0 2px 8px rgba(0, 163, 160, 0.15);
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.badge-neutral {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.12) 0%, rgba(100, 116, 139, 0.08) 100%);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.15);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.1);
}

/* ===================== JERSEY CARD HEADERS ===================== */
.card-header-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 50%, #FF6BAD 100%);
    position: relative;
    overflow: hidden;
}

.card-header-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Diagonal brush sweep */
        linear-gradient(135deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.05) 50%, transparent 55%),
        linear-gradient(135deg, transparent 0%, transparent 48%, rgba(255, 255, 255, 0.05) 52%, transparent 56%),
        /* Hexagon pattern */
        url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9l11-6.35 11 6.35v12.7l-11 6.35-11-6.35V17.9z' fill='%23ffffff' fill-opacity='0.12' fill-rule='evenodd'/%3E%3C/svg%3E"),
        /* Dots texture */
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 49px, 20px 20px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    pointer-events: none;
}

.card-header-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 50%, #00BDB8 100%);
    position: relative;
    overflow: hidden;
}

.card-header-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Diagonal brush sweep */
        linear-gradient(135deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.05) 50%, transparent 55%),
        linear-gradient(135deg, transparent 0%, transparent 48%, rgba(255, 255, 255, 0.05) 52%, transparent 56%),
        /* Hexagon pattern */
        url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9l11-6.35 11 6.35v12.7l-11 6.35-11-6.35V17.9z' fill='%23ffffff' fill-opacity='0.12' fill-rule='evenodd'/%3E%3C/svg%3E"),
        /* Dots texture */
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 49px, 20px 20px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    pointer-events: none;
}

.card-header-dark {
    background: linear-gradient(135deg, #1E293B 0%, #1E293B 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.card-header-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Diagonal brush sweep */
        linear-gradient(135deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.03) 50%, transparent 55%),
        /* Hexagon pattern */
        url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9l11-6.35 11 6.35v12.7l-11 6.35-11-6.35V17.9z' fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 100% 100%, 28px 49px;
    background-position: 0 0, 0 0;
    pointer-events: none;
}

/* ===================== MODAL ===================== */
.modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================== INVOICE PRINT ===================== */
.invoice-preview {
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 1.5rem;
    background: white;
}

.invoice-preview iframe {
    border: none;
    width: 100%;
    height: 600px;
    border-radius: 1.5rem;
}

/* ===================== UTILITY ===================== */
.motif-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Ensure no italic anywhere including form placeholders */
input::placeholder,
textarea::placeholder,
select::placeholder {
    font-style: normal !important;
}

/* Tailwind italic override */
.italic {
    font-style: normal !important;
}

/* ===================== PRINT STYLES ===================== */
@media print {
    body {
        background-color: white;
    }

    .no-print {
        display: none !important;
    }

    .print-shadow-none {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }

    * {
        font-family: 'Inter', sans-serif !important;
        font-style: normal !important;
    }
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF6BAD 0%, #00BDB8 100%);
    background-clip: padding-box;
}

/* Custom scrollbar for specific containers */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.2);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 75, 145, 0.6) 0%, rgba(0, 163, 160, 0.6) 100%);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ===================== ALPINE x-cloak ===================== */
[x-cloak] {
    display: none !important;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

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

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Shimmer effect for loading states */
.shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Jersey-inspired gradient text */
.text-gradient-jersey {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Glow effect */
.glow-primary {
    box-shadow: 0 0 20px rgba(255, 75, 145, 0.3);
}

.glow-secondary {
    box-shadow: 0 0 20px rgba(0, 163, 160, 0.3);
}

/* Border gradient animation */
@keyframes borderGlow {

    0%,
    100% {
        border-color: var(--primary);
    }

    50% {
        border-color: var(--secondary);
    }
}

.border-animate {
    animation: borderGlow 3s ease-in-out infinite;
}

/* ===================== MOBILE BOTTOM NAV SPACING ===================== */
@media (max-width: 768px) {
    main {
        padding-bottom: 5rem !important;
    }
}

/* ===================== MOBILE HEADER BAR ===================== */
.mobile-header-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 40%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 75, 145, 0.25);
}

.mobile-header-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Jersey hexagon pattern */
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9l11-6.35 11 6.35v12.7l-11 6.35-11-6.35V17.9z' fill='%23ffffff' fill-opacity='0.07' fill-rule='evenodd'/%3E%3C/svg%3E"),
        /* Diagonal brush */
        linear-gradient(135deg, transparent 0%, transparent 55%, rgba(255, 255, 255, 0.05) 60%, transparent 65%);
    background-size: 28px 49px, 100% 100%;
    pointer-events: none;
}

/* ===================== MOBILE BOTTOM NAV ===================== */
.mobile-bottom-nav {
    background: transparent;
    border-top: none;
    padding: 0 10px calc(env(safe-area-inset-bottom, 0px) + 10px) 10px;
    pointer-events: none;
}

/* The actual card container */
.mobile-nav-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 -4px 0px 0px rgba(255, 75, 145, 0.12),
        0 -8px 32px rgba(0, 0, 0, 0.10),
        0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    pointer-events: auto;
    position: relative;
}

/* Jersey accent stripe on top of card */
.mobile-nav-accent-line {
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: navAccentSlide 4s ease-in-out infinite;
}

@keyframes navAccentSlide {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 0% !important;
    padding: 10px 6px 8px !important;
    gap: 4px !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    color: #94a3b8 !important;
    font-family: 'Inter', sans-serif !important;
    min-width: 0 !important;
    min-height: 56px !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto !important;
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-nav-icon {
    width: 22px !important;
    height: 22px !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.mobile-nav-label {
    font-size: 9px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Active state */
.mobile-nav-item.is-active {
    color: var(--primary);
}

.mobile-nav-item.is-active .mobile-nav-icon {
    transform: translateY(-2px) scale(1.1);
    color: var(--primary);
    filter: drop-shadow(0 2px 6px rgba(255, 75, 145, 0.35));
}

.mobile-nav-item.is-active .mobile-nav-label {
    color: var(--primary);
    font-weight: 800 !important;
}

/* Active indicator dot */
.mobile-nav-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

/* Hover on non-touch */
@media (hover: hover) {
    .mobile-nav-item:not(.is-active):hover {
        color: var(--secondary);
    }

    .mobile-nav-item:not(.is-active):hover .mobile-nav-icon {
        transform: translateY(-2px);
        color: var(--secondary);
    }
}

/* ===================== RESPONSIVE OVERRIDES ===================== */
@media (max-width: 768px) {
    main {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Table scroll fix */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .mobile-nav-label {
        font-size: 8px !important;
        letter-spacing: 0.03em;
    }

    .mobile-nav-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .mobile-nav-item {
        padding: 8px 2px 6px !important;
    }
}