/* =============================================
   PayIndia - Premium Design System v2.0
   Professional Payment Gateway Dashboard
   ============================================= */

:root {
    /* Primary Colors */
    --pi-primary: #2563eb;
    --pi-primary-dark: #1d4ed8;
    --pi-primary-light: #3b82f6;
    --pi-primary-50: #eff6ff;
    --pi-primary-100: #dbeafe;
    --pi-primary-200: #bfdbfe;

    /* Secondary Colors */
    --pi-secondary: #10b981;
    --pi-secondary-dark: #059669;
    --pi-secondary-light: #34d399;

    /* Accent Colors */
    --pi-accent: #f59e0b;
    --pi-accent-dark: #d97706;

    /* Neutral Colors */
    --pi-dark: #0f172a;
    --pi-dark-secondary: #1e293b;
    --pi-dark-tertiary: #334155;
    --pi-gray-900: #111827;
    --pi-gray-800: #1f2937;
    --pi-gray-700: #374151;
    --pi-gray-600: #4b5563;
    --pi-gray-500: #6b7280;
    --pi-gray-400: #9ca3af;
    --pi-gray-300: #d1d5db;
    --pi-gray-200: #e5e7eb;
    --pi-gray-100: #f3f4f6;
    --pi-gray-50: #f9fafb;
    --pi-white: #ffffff;

    /* Status Colors */
    --pi-success: #10b981;
    --pi-warning: #f59e0b;
    --pi-danger: #ef4444;
    --pi-info: #3b82f6;

    /* Gradients */
    --pi-gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --pi-gradient-primary-soft: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --pi-gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --pi-gradient-sidebar: linear-gradient(180deg, #0f172a 0%, #1a2332 50%, #1e293b 100%);
    --pi-gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --pi-gradient-card: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --pi-gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --pi-gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --pi-gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --pi-gradient-info: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);

    /* Shadows */
    --pi-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --pi-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --pi-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --pi-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --pi-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --pi-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --pi-shadow-glow: 0 0 20px rgba(37, 99, 235, 0.25);
    --pi-shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Border Radius */
    --pi-radius-xs: 4px;
    --pi-radius-sm: 6px;
    --pi-radius-md: 8px;
    --pi-radius-lg: 12px;
    --pi-radius-xl: 16px;
    --pi-radius-2xl: 20px;
    --pi-radius-full: 9999px;

    /* Transitions */
    --pi-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --pi-transition-fast: all 0.15s ease;
    --pi-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pi-transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --pi-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Sidebar */
    --sidebar-width: 264px;
}

/* =============================================
   Base Styles
   ============================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--pi-font);
    font-size: 14px;
    color: var(--pi-gray-700);
    background-color: var(--pi-gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--pi-primary);
    text-decoration: none;
    transition: var(--pi-transition-fast);
}

a:hover {
    color: var(--pi-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--pi-gray-900);
    line-height: 1.4;
}

/* =============================================
   Scrollbar Styles
   ============================================= */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--pi-gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pi-gray-400);
}

/* Sidebar thin scrollbar */
.pi-sidebar::-webkit-scrollbar {
    width: 4px;
}

.pi-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.pi-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.pi-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* =============================================
   Button Styles
   ============================================= */

.btn-pi-primary {
    background: var(--pi-gradient-primary);
    color: var(--pi-white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--pi-radius-md);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: var(--pi-transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-pi-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    color: var(--pi-white);
}

.btn-pi-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-pi-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-pi-primary:active::after {
    width: 300px;
    height: 300px;
}

.btn-pi-outline {
    background: transparent;
    color: var(--pi-primary);
    border: 1.5px solid var(--pi-primary);
    padding: 9px 24px;
    border-radius: var(--pi-radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: var(--pi-transition);
}

.btn-pi-outline:hover {
    background: var(--pi-primary);
    color: var(--pi-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* =============================================
   Card Styles
   ============================================= */

.pi-card {
    background: var(--pi-white);
    border: 1px solid var(--pi-gray-200);
    border-radius: var(--pi-radius-lg);
    box-shadow: var(--pi-shadow-xs);
    transition: var(--pi-transition);
    overflow: hidden;
}

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

.pi-card-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--pi-radius-lg);
}

/* =============================================
   Stats Card (Dashboard)
   ============================================= */

.pi-stat-card {
    background: var(--pi-white);
    border-radius: var(--pi-radius-lg);
    padding: 20px;
    box-shadow: var(--pi-shadow-xs);
    border: 1px solid var(--pi-gray-200);
    border-left: 3px solid var(--pi-primary);
    transition: var(--pi-transition);
    position: relative;
    overflow: hidden;
}

.pi-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(37, 99, 235, 0.03) 50%);
    border-radius: 0 0 0 100%;
}

.pi-stat-card:hover {
    box-shadow: var(--pi-shadow-md);
    transform: translateY(-2px);
    border-left-color: var(--pi-primary-dark);
}

.pi-stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--pi-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--pi-white);
    flex-shrink: 0;
}

.pi-stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--pi-gray-900);
    line-height: 1.2;
}

.pi-stat-card .stat-label {
    font-size: 12px;
    color: var(--pi-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-icon.bg-primary-gradient { background: var(--pi-gradient-primary); }
.stat-icon.bg-success { background: var(--pi-gradient-success); }
.stat-icon.bg-warning { background: var(--pi-gradient-warning); }
.stat-icon.bg-danger { background: var(--pi-gradient-danger); }
.stat-icon.bg-info { background: var(--pi-gradient-info); }

/* =============================================
   Navbar (Public Pages)
   ============================================= */

.pi-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--pi-shadow-xs);
    padding: 10px 0;
    transition: var(--pi-transition);
    border-bottom: 1px solid var(--pi-gray-100);
}

.pi-navbar.scrolled {
    box-shadow: var(--pi-shadow-md);
}

.pi-navbar .navbar-brand {
    font-weight: 800;
    font-size: 22px;
    background: var(--pi-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pi-navbar .nav-link {
    color: var(--pi-gray-600);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--pi-radius-sm);
    transition: var(--pi-transition-fast);
    font-size: 14px;
}

.pi-navbar .nav-link:hover,
.pi-navbar .nav-link.active {
    color: var(--pi-primary);
    background: var(--pi-primary-50);
}

/* =============================================
   Hero Section
   ============================================= */

.pi-hero {
    background: var(--pi-gradient-dark);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.pi-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 60%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.pi-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 60%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.pi-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--pi-white);
    line-height: 1.2;
}

.pi-hero .hero-highlight {
    background: var(--pi-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pi-hero p {
    font-size: 18px;
    color: var(--pi-gray-400);
    line-height: 1.7;
}

/* =============================================
   Sidebar (Admin & Merchant Panel)
   ============================================= */

.pi-sidebar {
    width: var(--sidebar-width);
    background: var(--pi-gradient-sidebar);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.pi-sidebar .sidebar-brand {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.pi-sidebar .sidebar-brand h4 {
    color: var(--pi-white);
    font-weight: 700;
    margin: 0;
    font-size: 20px;
}

.pi-sidebar .sidebar-brand img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.pi-sidebar .sidebar-brand small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.pi-sidebar .sidebar-menu {
    padding: 12px 10px 20px;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.pi-sidebar .menu-label {
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 16px 14px 6px;
}

.pi-sidebar .menu-label:first-child {
    padding-top: 4px;
}

.pi-sidebar .menu-item a {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--pi-radius-md);
    transition: var(--pi-transition-fast);
    font-weight: 500;
    font-size: 13.5px;
    margin-bottom: 1px;
    position: relative;
}

.pi-sidebar .menu-item a i {
    font-size: 17px;
    width: 22px;
    margin-right: 10px;
    text-align: center;
    opacity: 0.8;
}

.pi-sidebar .menu-item a:hover {
    color: var(--pi-white);
    background: rgba(255, 255, 255, 0.07);
}

.pi-sidebar .menu-item a:hover i {
    opacity: 1;
}

.pi-sidebar .menu-item a.active {
    color: var(--pi-white);
    background: var(--pi-primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    font-weight: 600;
}

.pi-sidebar .menu-item a.active i {
    opacity: 1;
}

/* Sidebar overlay (mobile) */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   Main Content (Dashboard)
   ============================================= */

.pi-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--pi-gray-50);
    transition: margin-left 0.3s ease;
}

.pi-topbar {
    background: var(--pi-white);
    padding: 0 24px;
    height: 56px;
    box-shadow: var(--pi-shadow-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid var(--pi-gray-100);
}

.pi-topbar .page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pi-gray-900);
    margin: 0;
}

/* Hamburger Menu Button */
.pi-hamburger {
    display: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: var(--pi-gray-50);
    border-radius: var(--pi-radius-md);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-right: 12px;
    transition: var(--pi-transition-fast);
}

.pi-hamburger:hover {
    background: var(--pi-gray-100);
}

.pi-hamburger .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--pi-gray-700);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pi-hamburger .bar:nth-child(1) { top: 11px; }
.pi-hamburger .bar:nth-child(2) { top: 17px; }
.pi-hamburger .bar:nth-child(3) { top: 23px; }

.pi-hamburger.active .bar:nth-child(1) {
    top: 17px;
    transform: translateX(-50%) rotate(45deg);
}

.pi-hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) translateX(10px);
}

.pi-hamburger.active .bar:nth-child(3) {
    top: 17px;
    transform: translateX(-50%) rotate(-45deg);
}

.pi-content {
    padding: 24px;
}

/* =============================================
   Topbar User Dropdown
   ============================================= */

.pi-topbar .dropdown-toggle {
    border: 1px solid var(--pi-gray-200);
    border-radius: var(--pi-radius-full);
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pi-gray-700);
    background: var(--pi-white);
    transition: var(--pi-transition-fast);
}

.pi-topbar .dropdown-toggle:hover {
    border-color: var(--pi-gray-300);
    background: var(--pi-gray-50);
}

.pi-topbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: 1px;
}

.pi-topbar .dropdown-menu {
    border: 1px solid var(--pi-gray-200);
    border-radius: var(--pi-radius-md);
    box-shadow: var(--pi-shadow-lg);
    padding: 6px;
    margin-top: 6px !important;
    min-width: 200px;
}

.pi-topbar .dropdown-item {
    border-radius: var(--pi-radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--pi-transition-fast);
}

.pi-topbar .dropdown-item:hover {
    background: var(--pi-gray-50);
}

/* =============================================
   Auth Pages
   ============================================= */

.pi-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pi-gradient-dark);
    position: relative;
    overflow: hidden;
}

.pi-auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 60%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    animation: pulse-slow 4s ease-in-out infinite;
}

.pi-auth-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06), transparent 60%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
    animation: pulse-slow 5s ease-in-out infinite reverse;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.pi-auth-card {
    background: var(--pi-white);
    border-radius: var(--pi-radius-xl);
    box-shadow: var(--pi-shadow-2xl);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pi-auth-card .auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.pi-auth-card .auth-brand h2 {
    font-weight: 700;
    font-size: 26px;
    background: var(--pi-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pi-auth-card .auth-brand p {
    color: var(--pi-gray-500);
    margin-top: 4px;
    font-size: 14px;
}

.pi-auth-card .form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--pi-gray-600);
    margin-bottom: 5px;
}

.pi-auth-card .form-control {
    border: 1.5px solid var(--pi-gray-200);
    border-radius: var(--pi-radius-md);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--pi-transition-fast);
    background: var(--pi-gray-50);
}

.pi-auth-card .form-control:focus {
    border-color: var(--pi-primary);
    box-shadow: 0 0 0 3px var(--pi-primary-50);
    background: var(--pi-white);
}

/* =============================================
   OTP Input
   ============================================= */

.pi-otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pi-otp-inputs input {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1.5px solid var(--pi-gray-200);
    border-radius: var(--pi-radius-md);
    transition: var(--pi-transition-fast);
    background: var(--pi-gray-50);
}

.pi-otp-inputs input:focus {
    border-color: var(--pi-primary);
    box-shadow: 0 0 0 3px var(--pi-primary-50);
    outline: none;
    background: var(--pi-white);
}

/* =============================================
   Table Styles
   ============================================= */

.table {
    margin-bottom: 0;
    font-size: 13.5px;
}

.table > thead > tr > th {
    background: var(--pi-gray-50);
    color: var(--pi-gray-500);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--pi-gray-200);
    white-space: nowrap;
}

.table > tbody > tr > td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--pi-gray-100);
    color: var(--pi-gray-700);
}

.table > tbody > tr:last-child > td {
    border-bottom: none;
}

.table-hover > tbody > tr:hover > td {
    background: var(--pi-primary-50);
}

.pi-table {
    background: var(--pi-white);
    border-radius: var(--pi-radius-lg);
    overflow: hidden;
    box-shadow: var(--pi-shadow-xs);
    border: 1px solid var(--pi-gray-200);
}

/* =============================================
   Status Badges
   ============================================= */

.pi-badge {
    padding: 4px 10px;
    border-radius: var(--pi-radius-full);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}

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

.pi-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.pi-badge-success::before { background: #10b981; }

.pi-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.pi-badge-danger::before { background: #ef4444; }

.pi-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}
.pi-badge-warning::before { background: #f59e0b; }

.pi-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
.pi-badge-info::before { background: #3b82f6; }

/* =============================================
   Pagination (Laravel)
   ============================================= */

.pagination {
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    border: 1px solid var(--pi-gray-200);
    border-radius: var(--pi-radius-md) !important;
    color: var(--pi-gray-600);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    transition: var(--pi-transition-fast);
    line-height: 1.4;
    min-width: 36px;
    text-align: center;
}

.pagination .page-item .page-link:hover {
    background: var(--pi-primary-50);
    border-color: var(--pi-primary-200);
    color: var(--pi-primary);
}

.pagination .page-item.active .page-link {
    background: var(--pi-primary);
    border-color: var(--pi-primary);
    color: var(--pi-white);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.pagination .page-item.disabled .page-link {
    background: var(--pi-gray-50);
    border-color: var(--pi-gray-100);
    color: var(--pi-gray-400);
}

/* Pagination text "Showing X to Y of Z" */
.pi-card .p-3 nav + div,
.pi-card .p-3 .pagination + small,
.pi-card .p-3 > p.small {
    color: var(--pi-gray-500);
    font-size: 12.5px;
}

/* Laravel default pagination wrapper fix */
nav[role="navigation"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

nav[role="navigation"] .flex.justify-between {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

nav[role="navigation"] p.text-sm {
    font-size: 12.5px !important;
    color: var(--pi-gray-500);
}

nav[role="navigation"] span[aria-current="page"] span {
    background: var(--pi-primary) !important;
    border-color: var(--pi-primary) !important;
    color: white !important;
    border-radius: var(--pi-radius-md);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

nav[role="navigation"] a {
    border-radius: var(--pi-radius-md) !important;
    transition: var(--pi-transition-fast);
    font-weight: 500;
}

nav[role="navigation"] a:hover {
    background: var(--pi-primary-50) !important;
    border-color: var(--pi-primary-200) !important;
    color: var(--pi-primary) !important;
}

/* =============================================
   Form Controls (Global)
   ============================================= */

.form-control, .form-select {
    border: 1.5px solid var(--pi-gray-200);
    border-radius: var(--pi-radius-md);
    font-size: 13.5px;
    padding: 8px 12px;
    transition: var(--pi-transition-fast);
    color: var(--pi-gray-700);
}

.form-control:focus, .form-select:focus {
    border-color: var(--pi-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--pi-gray-600);
    margin-bottom: 4px;
}

.form-text {
    font-size: 12px;
    color: var(--pi-gray-400);
}

/* =============================================
   Alert Styles
   ============================================= */

.alert {
    border: none;
    border-radius: var(--pi-radius-md);
    font-size: 13.5px;
    font-weight: 500;
    padding: 12px 16px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #065f46;
    border-left: 3px solid #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

/* =============================================
   Section Styles (Public Pages)
   ============================================= */

.pi-section {
    padding: 80px 0;
}

.pi-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.pi-section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pi-section-title .title-line {
    width: 48px;
    height: 3px;
    background: var(--pi-gradient-primary);
    border-radius: 2px;
    margin: 0 auto 14px;
}

.pi-section-title p {
    color: var(--pi-gray-500);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

/* =============================================
   Feature Cards (Landing Page)
   ============================================= */

.pi-feature-card {
    background: var(--pi-white);
    border-radius: var(--pi-radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--pi-shadow-xs);
    border: 1px solid var(--pi-gray-200);
    transition: var(--pi-transition);
    height: 100%;
}

.pi-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pi-shadow-lg);
    border-color: var(--pi-primary-200);
}

.pi-feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--pi-radius-lg);
    background: var(--pi-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--pi-primary);
    transition: var(--pi-transition);
}

.pi-feature-card:hover .feature-icon {
    background: var(--pi-gradient-primary);
    color: var(--pi-white);
    transform: scale(1.08);
}

.pi-feature-card h5 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.pi-feature-card p {
    color: var(--pi-gray-500);
    font-size: 13.5px;
    line-height: 1.6;
}

/* =============================================
   Footer
   ============================================= */

.pi-footer {
    background: var(--pi-gradient-dark);
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 0 30px;
}

.pi-footer h5 {
    color: var(--pi-white);
    font-weight: 600;
    margin-bottom: 18px;
    font-size: 16px;
}

.pi-footer a {
    color: rgba(255, 255, 255, 0.55);
    transition: var(--pi-transition-fast);
    font-size: 14px;
}

.pi-footer a:hover {
    color: var(--pi-primary-light);
    padding-left: 3px;
}

.pi-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    margin-top: 40px;
}

/* =============================================
   Loading Overlay
   ============================================= */

.pi-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pi-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--pi-primary-100);
    border-top-color: var(--pi-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   Payment Page
   ============================================= */

.pi-payment-page {
    min-height: 100vh;
    background: var(--pi-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pi-payment-card {
    background: var(--pi-white);
    border-radius: var(--pi-radius-xl);
    box-shadow: var(--pi-shadow-xl);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
}

.pi-payment-header {
    background: var(--pi-gradient-primary);
    padding: 20px 24px;
    text-align: center;
    color: var(--pi-white);
}

.pi-payment-amount {
    font-size: 32px;
    font-weight: 800;
}

.pi-qr-container {
    padding: 24px;
    text-align: center;
}

.pi-qr-container img {
    border-radius: var(--pi-radius-md);
    box-shadow: var(--pi-shadow-md);
    max-width: 200px;
}

.pi-upi-apps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 20px 20px;
}

.pi-upi-app {
    text-align: center;
    padding: 10px 6px;
    border: 1px solid var(--pi-gray-200);
    border-radius: var(--pi-radius-md);
    cursor: pointer;
    transition: var(--pi-transition);
}

.pi-upi-app:hover {
    border-color: var(--pi-primary);
    background: var(--pi-primary-50);
    transform: translateY(-1px);
}

.pi-upi-app img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.pi-upi-app span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--pi-gray-600);
}

/* =============================================
   Empty State
   ============================================= */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--pi-gray-400);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* =============================================
   Badge Overrides
   ============================================= */

.badge {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
    padding: 4px 10px;
}

.badge.bg-success {
    background: var(--pi-gradient-success) !important;
}

.badge.bg-primary {
    background: var(--pi-gradient-primary) !important;
}

.badge.bg-danger {
    background: var(--pi-gradient-danger) !important;
}

/* =============================================
   Code Block Styling
   ============================================= */

code {
    font-size: 12.5px;
    padding: 2px 6px;
    background: var(--pi-gray-100);
    border-radius: var(--pi-radius-xs);
    color: var(--pi-primary-dark);
}

pre {
    margin: 0;
}

.bg-dark code,
.bg-dark pre {
    background: transparent;
    color: #a5f3fc;
}

/* =============================================
   Form Switch
   ============================================= */

.form-check-input:checked {
    background-color: var(--pi-primary);
    border-color: var(--pi-primary);
}

.form-check-input:focus {
    border-color: var(--pi-primary-200);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =============================================
   Responsive Design
   ============================================= */

@media (max-width: 991px) {
    .pi-sidebar {
        transform: translateX(-100%);
    }

    .pi-sidebar.show {
        transform: translateX(0);
        box-shadow: var(--pi-shadow-2xl);
    }

    .pi-main {
        margin-left: 0;
    }

    .pi-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pi-hero h1 {
        font-size: 2.2rem;
    }

    .pi-topbar {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .pi-content {
        padding: 16px;
    }

    .pi-stat-card {
        padding: 16px;
    }

    .pi-stat-card .stat-value {
        font-size: 20px;
    }

    .pi-stat-card .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .table > thead > tr > th {
        padding: 8px 10px;
        font-size: 10.5px;
    }

    .table > tbody > tr > td {
        padding: 10px;
        font-size: 12.5px;
    }

    .pi-topbar .page-title {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .pi-auth-card {
        padding: 28px 20px;
        margin: 16px;
        border-radius: var(--pi-radius-lg);
    }

    .pi-hero h1 {
        font-size: 1.8rem;
    }

    .pi-content {
        padding: 12px;
    }

    .pi-otp-inputs input {
        width: 42px;
        height: 46px;
        font-size: 18px;
    }

    .pi-topbar {
        height: 50px;
        padding: 0 12px;
    }

    .pi-topbar .page-title {
        font-size: 14px;
    }

    .btn-pi-primary {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* =============================================
   Utility Classes
   ============================================= */

.text-gradient {
    background: var(--pi-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary { background: var(--pi-gradient-primary) !important; }
.bg-gradient-dark { background: var(--pi-gradient-dark) !important; }

.hover-lift { transition: var(--pi-transition); }
.hover-lift:hover { transform: translateY(-3px); }

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =============================================
   Dashboard Chart Container
   ============================================= */

.pi-card canvas {
    max-height: 280px;
}

/* =============================================
   Smooth Transition for Sidebar Links
   ============================================= */

.pi-sidebar .menu-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--pi-primary-light);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.pi-sidebar .menu-item a:hover::before {
    height: 60%;
}

.pi-sidebar .menu-item a.active::before {
    height: 0;
}

/* =============================================
   Landing-Matched Authenticated Theme Overrides
   ============================================= */

@font-face {
    font-family: 'Diagramm';
    src: url('../zerogateway-mirror/fonts/Diagramm-Regular.woff') format('woff');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Diagramm';
    src: url('../zerogateway-mirror/fonts/Diagramm-Medium.woff') format('woff');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Diagramm';
    src: url('../zerogateway-mirror/fonts/Diagramm-SemiBold.woff') format('woff');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Diagramm';
    src: url('../zerogateway-mirror/fonts/Diagramm-Bold.woff') format('woff');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --pi-primary: #d6eb5b;
    --pi-primary-dark: #bfd748;
    --pi-primary-light: #eef7aa;
    --pi-primary-50: #f7fae7;
    --pi-primary-100: #edf4c7;
    --pi-primary-200: #e1eb98;
    --pi-secondary: #0d4a40;
    --pi-secondary-dark: #08362f;
    --pi-secondary-light: #15665a;
    --pi-accent: #9fd86d;
    --pi-accent-dark: #6ea846;
    --pi-dark: #062f28;
    --pi-dark-secondary: #0b3b33;
    --pi-dark-tertiary: #145247;
    --pi-gray-900: #132320;
    --pi-gray-800: #233833;
    --pi-gray-700: #3e544d;
    --pi-gray-600: #61736d;
    --pi-gray-500: #7f8c87;
    --pi-gray-400: #a0aaa6;
    --pi-gray-300: #d2d9d4;
    --pi-gray-200: #e5ebe7;
    --pi-gray-100: #eff3ef;
    --pi-gray-50: #f7f8f4;
    --pi-success: #1d7c61;
    --pi-warning: #d69b2a;
    --pi-danger: #d25e56;
    --pi-info: #2d8b87;
    --pi-gradient-primary: linear-gradient(135deg, #dced6b 0%, #c5df4f 100%);
    --pi-gradient-primary-soft: linear-gradient(135deg, #edf6b9 0%, #d7eb72 100%);
    --pi-gradient-dark: linear-gradient(180deg, #062f28 0%, #0a3c34 100%);
    --pi-gradient-sidebar: linear-gradient(180deg, #062f28 0%, #0b3b33 46%, #115449 100%);
    --pi-gradient-hero: linear-gradient(135deg, #07372f 0%, #0e4a40 56%, #0a312b 100%);
    --pi-gradient-card: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(245,248,241,0.96) 100%);
    --pi-gradient-success: linear-gradient(135deg, #15755c 0%, #28a27d 100%);
    --pi-gradient-warning: linear-gradient(135deg, #d39a31 0%, #ebbc5e 100%);
    --pi-gradient-danger: linear-gradient(135deg, #cd655b 0%, #e58a7d 100%);
    --pi-gradient-info: linear-gradient(135deg, #0d706f 0%, #3ea8a4 100%);
    --pi-font: 'Diagramm', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.pi-shell {
    background:
        radial-gradient(circle at top right, rgba(214, 235, 91, 0.22), transparent 24%),
        radial-gradient(circle at bottom left, rgba(16, 84, 73, 0.10), transparent 22%),
        linear-gradient(180deg, #eef1e6 0%, #f7f8f4 260px, #f7f8f4 100%);
}

.pi-main {
    background: transparent;
    min-width: 0;
}

.pi-card,
.pi-stat-card,
.pi-topbar .dropdown-menu,
.pi-sidebar .sidebar-brand {
    backdrop-filter: blur(10px);
}

.pi-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(19, 35, 32, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(8, 34, 29, 0.06);
}

.pi-card:hover {
    box-shadow: 0 24px 52px rgba(8, 34, 29, 0.09);
}

.pi-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 20px 0 50px rgba(4, 19, 17, 0.18);
}

.pi-sidebar .sidebar-brand {
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
}

.pi-sidebar .sidebar-brand small {
    color: rgba(255, 255, 255, 0.52);
}

.pi-sidebar .menu-label {
    color: rgba(255, 255, 255, 0.46);
}

.pi-sidebar .menu-item a {
    color: rgba(255, 255, 255, 0.78);
    border-radius: 16px;
}

.pi-sidebar .menu-item a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.pi-sidebar .menu-item a.active {
    color: #12241d;
    background: var(--pi-gradient-primary);
    box-shadow: 0 16px 30px rgba(214, 235, 91, 0.24);
}

.pi-sidebar .menu-item a.active i,
.pi-sidebar .menu-item a.active::before {
    color: #12241d;
}

.pi-topbar {
    height: 74px;
    min-height: 74px;
    padding: 0 24px;
    margin: 14px 14px 0;
    border: 1px solid rgba(19, 35, 32, 0.06);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 32px rgba(7, 30, 26, 0.05);
    gap: 16px;
    flex-wrap: wrap;
}

.pi-topbar.scrolled {
    box-shadow: 0 18px 40px rgba(7, 30, 26, 0.10);
}

.pi-topbar-main {
    min-width: 0;
    flex: 1 1 240px;
}

.pi-topbar .page-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    min-width: 0;
}

.pi-topbar-actions {
    min-width: 0;
    flex: 1 1 380px;
    margin-left: auto;
}

.pi-topbar-dropdown {
    flex-shrink: 0;
}

.pi-content {
    padding: 24px;
}

.pi-topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(247, 248, 244, 0.92);
    border: 1px solid rgba(19, 35, 32, 0.08);
    color: var(--pi-gray-800);
    font-weight: 500;
    white-space: nowrap;
}

.pi-topbar-link:hover {
    background: var(--pi-white);
    color: var(--pi-secondary);
    transform: translateY(-1px);
}

.pi-topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(19, 35, 32, 0.08);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    padding: 8px 12px 8px 8px;
    color: var(--pi-gray-900);
    font-weight: 500;
    cursor: pointer;
    transition: var(--pi-transition-fast);
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
}

.pi-topbar-user:hover {
    background: var(--pi-white);
    color: var(--pi-gray-900);
}

.pi-topbar-user::after {
    display: none !important;
}

.pi-topbar-user:focus,
.pi-topbar-user:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 235, 91, 0.22);
}

.pi-user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pi-gradient-dark);
    color: var(--pi-white);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(7, 30, 26, 0.14);
}

.pi-user-info {
    text-align: left;
    line-height: 1.15;
    min-width: 0;
    max-width: 148px;
}

.pi-user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pi-user-role {
    font-size: 11px;
    color: var(--pi-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pi-user-chevron {
    font-size: 12px;
    color: var(--pi-gray-500);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pi-topbar-user[aria-expanded="true"] .pi-user-chevron {
    transform: rotate(180deg);
}

.pi-user-dropdown {
    min-width: 230px;
}

.pi-topbar .dropdown-item:hover {
    background: var(--pi-primary-50);
    color: var(--pi-secondary);
}

.btn-pi-primary {
    background: var(--pi-gradient-primary);
    color: #14231e;
    box-shadow: 0 16px 28px rgba(214, 235, 91, 0.26);
}

.btn-pi-primary:hover,
.btn-pi-primary:focus {
    color: #14231e;
    box-shadow: 0 20px 34px rgba(214, 235, 91, 0.32);
}

.btn-pi-outline {
    border-color: rgba(19, 35, 32, 0.14);
    color: var(--pi-secondary);
    background: rgba(255, 255, 255, 0.72);
}

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

.pi-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
}

.pi-status-pill-success {
    background: rgba(29, 124, 97, 0.10);
    color: #16644f;
    border-color: rgba(29, 124, 97, 0.14);
}

.pi-status-pill-danger {
    background: rgba(210, 94, 86, 0.10);
    color: #b2453e;
    border-color: rgba(210, 94, 86, 0.16);
}

.pi-status-pill-warning {
    background: rgba(214, 155, 42, 0.12);
    color: #9b6e1a;
    border-color: rgba(214, 155, 42, 0.16);
}

.pi-status-pill-info {
    background: rgba(45, 139, 135, 0.10);
    color: #196c69;
    border-color: rgba(45, 139, 135, 0.16);
}

.pi-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 34px;
    color: #f4f7f1;
    background: var(--pi-gradient-hero);
    box-shadow: 0 28px 60px rgba(7, 30, 26, 0.18);
}

.pi-hero-card::before,
.pi-hero-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.pi-hero-card::before {
    width: 280px;
    height: 280px;
    right: -90px;
    top: -120px;
    background: radial-gradient(circle, rgba(214, 235, 91, 0.30), transparent 68%);
}

.pi-hero-card::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.pi-hero-card > * {
    position: relative;
    z-index: 1;
}

.pi-hero-card h2 {
    color: #f5f7ef;
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.pi-hero-card p {
    color: rgba(245, 247, 239, 0.78);
    max-width: 700px;
    margin-bottom: 0;
}

.pi-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(214, 235, 91, 0.92);
}

.pi-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pi-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 247, 239, 0.88);
    font-size: 12px;
}

.pi-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.pi-hero-summary {
    display: grid;
    gap: 14px;
}

.pi-hero-summary-item {
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.pi-hero-summary-item span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(245, 247, 239, 0.64);
}

.pi-hero-summary-item strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    color: #f5f7ef;
    line-height: 1;
}

.pi-hero-summary-item small {
    display: block;
    margin-top: 8px;
    color: rgba(245, 247, 239, 0.68);
    font-size: 12px;
}

.pi-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--pi-primary-50);
    border: 1px solid rgba(19, 35, 32, 0.08);
    color: var(--pi-gray-800);
    font-size: 12px;
    font-weight: 500;
}

.pi-inline-code {
    padding: 8px 12px;
    border-radius: 16px;
    background: rgba(247, 248, 244, 0.94);
    border: 1px solid rgba(19, 35, 32, 0.08);
    color: var(--pi-gray-800);
    font-size: 12px;
    word-break: break-word;
}

.pi-feature-list-admin,
.pi-list-compact,
.pi-health-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pi-feature-list-admin li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    color: var(--pi-gray-700);
    border-bottom: 1px solid rgba(19, 35, 32, 0.06);
}

.pi-feature-list-admin li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pi-feature-list-admin i {
    color: var(--pi-success);
    margin-top: 2px;
}

.pi-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pi-action-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(19, 35, 32, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,248,244,0.95) 100%);
    color: var(--pi-gray-800);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.pi-action-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(7, 30, 26, 0.08);
    color: var(--pi-secondary);
}

.pi-action-tile i {
    font-size: 20px;
    color: var(--pi-secondary);
}

.pi-action-tile strong {
    font-size: 15px;
    font-weight: 600;
}

.pi-action-tile span {
    color: var(--pi-gray-500);
    font-size: 12px;
    line-height: 1.5;
}

.pi-list-compact-item,
.pi-health-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(19, 35, 32, 0.06);
}

.pi-list-compact-item:last-child,
.pi-health-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pi-list-compact-item:first-child,
.pi-health-item:first-child {
    padding-top: 0;
}

.pi-list-compact-item {
    color: var(--pi-gray-800);
    font-weight: 500;
}

.pi-list-compact-item:hover {
    color: var(--pi-secondary);
}

.pi-health-label {
    color: var(--pi-gray-500);
    font-size: 12px;
}

.pi-health-item strong {
    color: var(--pi-gray-900);
    font-size: 14px;
    text-align: right;
}

.plan-admin-card {
    display: flex;
    flex-direction: column;
}

.plan-admin-preview {
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,248,244,0.95) 100%);
    border: 1px solid rgba(19, 35, 32, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.48);
}

.pi-check-card {
    height: 100%;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(19, 35, 32, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,248,244,0.95) 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pi-check-card i {
    font-size: 18px;
    color: var(--pi-success);
}

.pi-check-card strong {
    font-size: 15px;
    color: var(--pi-gray-900);
}

.pi-check-card span {
    font-size: 12px;
    color: var(--pi-gray-500);
    line-height: 1.6;
}

.pi-stat-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    border-left: 0;
    border: 1px solid rgba(19, 35, 32, 0.08);
    box-shadow: 0 18px 36px rgba(7, 30, 26, 0.05);
}

.pi-stat-card::after {
    background: linear-gradient(135deg, transparent 46%, rgba(214, 235, 91, 0.18) 100%);
}

.pi-stat-card .stat-value {
    letter-spacing: -0.03em;
}

.pi-badge {
    border-radius: 999px;
}

.table-hover > tbody > tr:hover > td {
    background: rgba(214, 235, 91, 0.10);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(13, 74, 64, 0.30);
    box-shadow: 0 0 0 3px rgba(214, 235, 91, 0.18);
}

nav[role="navigation"] span[aria-current="page"] span,
.pagination .page-item.active .page-link {
    background: var(--pi-secondary) !important;
    border-color: var(--pi-secondary) !important;
}

@media (max-width: 991px) {
    .pi-topbar {
        margin: 10px 10px 0;
        min-height: 62px;
        height: auto;
        padding: 12px 14px;
        align-items: center;
    }

    .pi-topbar-main,
    .pi-topbar-actions {
        flex-basis: 100%;
    }

    .pi-topbar-actions {
        justify-content: space-between;
    }

    .pi-hero-card {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .pi-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pi-topbar .page-title {
        font-size: 18px;
    }

    .pi-topbar-actions {
        gap: 10px;
    }

    .pi-topbar-link,
    .pi-status-pill,
    .pi-topbar-user {
        min-height: 42px;
    }

    .pi-content {
        padding: 16px 12px 20px;
    }

    .pi-hero-card h2 {
        font-size: 26px;
    }

    .pi-hero-meta,
    .pi-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pi-hero-summary {
        grid-template-columns: 1fr;
    }

    .pi-health-item,
    .pi-list-compact-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .pi-topbar {
        padding: 12px;
        gap: 12px;
    }

    .pi-topbar-main {
        width: 100%;
    }

    .pi-topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .pi-topbar-user {
        margin-left: auto;
    }

    .pi-status-pill {
        order: 2;
    }

    .pi-topbar-dropdown {
        order: 3;
    }
}
