:root {
    --primary-gradient: linear-gradient(135deg, #ff416c, #ff4b2b);
    --secondary-gradient: linear-gradient(120deg, #7f00ff, #e100ff);
    --dark-bg: #0f0c29;
    --darker-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --accent-color: #ff416c;
    --neon-shadow: 0 0 15px rgba(255, 65, 108, 0.5);
}

body {
    background: var(--dark-bg);
    background: linear-gradient(to bottom, #050505, #120e2e, #050505);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.navbar {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    text-shadow: 0 0 15px rgba(255, 65, 108, 0.3);
}

.navbar-brand:hover {
    transform: skewX(-5deg) scale(1.02);
}

.admin-nav-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    padding: 8px 15px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ff416c !important;
}

.admin-nav-link.active {
    background: rgba(255, 65, 108, 0.1);
    color: #ff416c !important;
}

.nav-glow {
    position: relative;
    overflow: hidden;
}

.nav-glow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 10px var(--accent-color);
}

.nav-link {
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 65, 108, 0.15) 0%, transparent 70%),
        linear-gradient(180deg, transparent 80%, rgba(255, 65, 108, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 65, 108, 0.3), transparent);
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.5);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    bottom: -100px;
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    animation: float-rise 18s infinite linear;
}

@keyframes float-rise {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.7);
        opacity: 0;
        filter: brightness(1) drop-shadow(0 0 0 white);
    }

    10% {
        opacity: 0.15;
    }

    25% {
        transform: translateY(-25vh) rotate(90deg) scale(1.2);
        filter: brightness(1.5) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }

    50% {
        transform: translateY(-50vh) rotate(180deg) scale(0.8);
        filter: brightness(2) drop-shadow(0 0 15px white);
    }

    75% {
        transform: translateY(-75vh) rotate(270deg) scale(1.3);
        filter: brightness(1.8) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg) scale(1);
        opacity: 0;
        filter: brightness(1) drop-shadow(0 0 0 white);
    }
}

.icon-1 {
    left: 5%;
    animation-delay: 0s;
    font-size: 2.2rem;
}

.icon-2 {
    left: 15%;
    animation-delay: 3s;
    font-size: 1.4rem;
}

.icon-3 {
    left: 25%;
    animation-delay: 6s;
    font-size: 2rem;
}

.icon-4 {
    left: 40%;
    animation-delay: 1s;
    font-size: 1.6rem;
}

.icon-5 {
    left: 55%;
    animation-delay: 8s;
    font-size: 2.5rem;
}

.icon-6 {
    left: 70%;
    animation-delay: 4s;
    font-size: 1.5rem;
}

.icon-7 {
    left: 85%;
    animation-delay: 10s;
    font-size: 2.1rem;
}

.icon-8 {
    left: 32%;
    animation-delay: 2s;
    font-size: 1.3rem;
}

.icon-9 {
    left: 45%;
    animation-delay: 5s;
    font-size: 1.9rem;
}

.icon-10 {
    left: 60%;
    animation-delay: 12s;
    font-size: 1.7rem;
}

.icon-11 {
    left: 75%;
    animation-delay: 9s;
    font-size: 2.3rem;
}

.icon-12 {
    left: 95%;
    animation-delay: 7s;
    font-size: 1.8rem;
}

.icon-13 {
    left: 12%;
    animation-delay: 5s;
    font-size: 1.5rem;
}

.icon-14 {
    left: 28%;
    animation-delay: 8s;
    font-size: 2.4rem;
}

.icon-15 {
    left: 42%;
    animation-delay: 2s;
    font-size: 1.3rem;
}

.icon-16 {
    left: 58%;
    animation-delay: 11s;
    font-size: 1.9rem;
}

.icon-17 {
    left: 68%;
    animation-delay: 6s;
    font-size: 2rem;
}

.icon-18 {
    left: 82%;
    animation-delay: 3s;
    font-size: 1.6rem;
}

.icon-19 {
    left: 3%;
    animation-delay: 14s;
    font-size: 2.1rem;
}

.icon-20 {
    left: 92%;
    animation-delay: 2s;
    font-size: 1.4rem;
}

.icon-21 {
    left: 38%;
    animation-delay: 9s;
    font-size: 1.8rem;
}

.icon-22 {
    left: 52%;
    animation-delay: 4s;
    font-size: 2.2rem;
}

.icon-23 {
    left: 18%;
    animation-delay: 12s;
    font-size: 1.7rem;
}

.icon-24 {
    left: 63%;
    animation-delay: 5s;
    font-size: 2.0rem;
}

.btn-premium {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--neon-shadow);
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 65, 108, 0.8);
    color: white;
}

.companion-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    position: relative;
}

.companion-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 65, 108, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 65, 108, 0.2);
}

.companion-img-container {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.companion-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.companion-card:hover .companion-img-container img {
    transform: scale(1.15);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    transition: all 0.4s ease;
}

.companion-info {
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
}

.companion-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.companion-meta {
    font-size: 0.95rem;
    color: #ff416c;
    font-weight: 600;
    margin-bottom: 12px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-accent {
    color: #ff416c;
}

.pagination-premium {
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
}

.pagination-premium .page-item {
    margin: 0 4px;
}

.pagination-premium .page-item .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 45px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make Previous/Next buttons wider */
.pagination-premium .page-item:first-child .page-link,
.pagination-premium .page-item:last-child .page-link {
    padding: 10px 24px;
    min-width: auto;
}

/* Make page number buttons more square (but not ellipsis) */
.pagination-premium .page-item:not(:first-child):not(:last-child):not(.disabled) .page-link {
    min-width: 45px;
    width: 45px;
    padding: 10px;
}

/* Ellipsis styling */
.pagination-premium .page-item.disabled .page-link:not(.active) {
    background: transparent;
    border: none;
    padding: 10px 8px;
    min-width: auto;
    width: auto;
}

.pagination-premium .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: var(--neon-shadow);
    color: white;
}

.pagination-premium .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-premium .page-item .page-link:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 65, 108, 0.3);
    color: white;
}

.pagination-premium .page-item .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 65, 108, 0.25);
    outline: none;
}

/* Admin Dashboard Enhancements */
.admin-stat-card {
    position: relative;
    overflow: hidden;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
    z-index: -1;
}

.admin-stat-card:hover::before {
    left: 100%;
}

.admin-stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 65, 108, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 65, 108, 0.1);
}

.admin-stat-icon {
    position: absolute;
    right: 30px;
    bottom: 30px;
    font-size: 4rem;
    opacity: 0.05;
    color: var(--accent-color);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: rotate(15deg);
}

.admin-stat-card:hover .admin-stat-icon {
    opacity: 0.15;
    transform: scale(1.2) rotate(0deg) translateY(-10px);
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.admin-stat-card:hover .stat-value {
    letter-spacing: 1px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.admin-table thead th {
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0 20px 15px;
}

.admin-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.005) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.admin-table td {
    padding: 20px !important;
    border: none !important;
}

.admin-table td:first-child {
    border-radius: 18px 0 0 18px;
}

.admin-table td:last-child {
    border-radius: 0 18px 18px 0;
}

.admin-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.admin-badge-active {
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.admin-badge-inactive {
    background: rgba(255, 65, 108, 0.1);
    color: #ff416c;
    border: 1px solid rgba(255, 65, 108, 0.2);
}

.action-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.action-btn:hover {
    transform: translateY(-4px) rotate(8deg);
    color: white;
}

.action-btn-edit:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.action-btn-delete:hover {
    background: rgba(255, 65, 108, 0.15);
    border-color: rgba(255, 65, 108, 0.3);
    color: #ff416c;
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.2);
}

/* Premium Form Enhancements */
.admin-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 40px;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-section-header h5 {
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.form-section-header i {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.premium-input-group {
    position: relative;
    margin-bottom: 25px;
}

.premium-input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.premium-input-group:focus-within label {
    color: var(--accent-color);
}

.premium-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    color: white !important;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.premium-input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 65, 108, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.1) !important;
    outline: none !important;
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.15) !important;
}

/* File Input Specifics */
input[type="file"].premium-input {
    padding: 10px !important;
}

input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 4px 12px;
    margin-right: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type="file"]:hover::file-selector-button {
    background: var(--primary-gradient);
    border-color: transparent;
}

footer {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Mobile Responsiveness Overhaul */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(25px);
        margin-top: 15px;
        padding: 20px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link,
    .admin-nav-link {
        margin: 10px 0;
        text-align: center;
        font-size: 1.1rem;
        width: 100%;
    }

    .admin-nav-link.active {
        background: rgba(255, 65, 108, 0.15);
        box-shadow: 0 0 15px rgba(255, 65, 108, 0.1);
    }

    .btn-premium.btn-sm {
        width: 100%;
        margin-top: 10px;
        padding: 15px !important;
    }

    .hero-section {
        padding: 120px 0 80px;
    }

    .display-3 {
        font-size: 3rem;
    }

    .login-card {
        padding: 30px !important;
        border-radius: 20px !important;
    }

    .login-card .navbar-brand {
        font-size: 1.5rem !important;
        letter-spacing: 1.5px !important;
    }
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 25px;
        border-radius: 20px;
    }

    .hero-section {
        min-height: auto;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    .companion-img-container {
        height: 300px;
    }

    .carousel-inner {
        height: 400px !important;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .admin-stat-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .admin-table {
        min-width: 800px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .companion-img-container {
        height: 350px;
    }

    .carousel-inner {
        height: 350px !important;
    }

    .admin-form-container {
        padding: 20px;
    }

    .form-section-header h5 {
        font-size: 0.8rem;
    }

    .admin-stat-icon {
        font-size: 3rem;
        right: 15px;
        bottom: 15px;
    }

    .badge {
        font-size: 0.7rem;
    }

    /* Hero Search Refinement */
    .hero-section form.glass-panel {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 15px !important;
        gap: 15px !important;
        height: auto !important;
    }

    .hero-section form.glass-panel select {
        width: 100% !important;
        text-align: center !important;
        padding: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
    }
}

.premium-input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 65, 108, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.1) !important;
    outline: none !important;
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.15) !important;
}

/* File Input Specifics */
input[type="file"].premium-input {
    padding: 10px !important;
}

input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 4px 12px;
    margin-right: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type="file"]:hover::file-selector-button {
    background: var(--primary-gradient);
    border-color: transparent;
}

footer {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Mobile Responsiveness Overhaul */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(25px);
        margin-top: 15px;
        padding: 20px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link,
    .admin-nav-link {
        margin: 10px 0;
        text-align: center;
        font-size: 1.1rem;
        width: 100%;
    }

    .admin-nav-link.active {
        background: rgba(255, 65, 108, 0.15);
        box-shadow: 0 0 15px rgba(255, 65, 108, 0.1);
    }

    .btn-premium.btn-sm {
        width: 100%;
        margin-top: 10px;
        padding: 15px !important;
    }

    .hero-section {
        padding: 120px 0 80px;
    }

    .display-3 {
        font-size: 3rem;
    }

    .login-card {
        padding: 30px !important;
        border-radius: 20px !important;
    }

    .login-card .navbar-brand {
        font-size: 1.5rem !important;
        letter-spacing: 1.5px !important;
    }
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 25px;
        border-radius: 20px;
    }

    .hero-section {
        min-height: auto;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    .companion-img-container {
        height: 300px;
    }

    .carousel-inner {
        height: 400px !important;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .admin-stat-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .admin-table {
        min-width: 800px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .companion-img-container {
        height: 350px;
    }

    .carousel-inner {
        height: 350px !important;
    }

    .admin-form-container {
        padding: 20px;
    }

    .form-section-header h5 {
        font-size: 0.8rem;
    }

    .admin-stat-icon {
        font-size: 3rem;
        right: 15px;
        bottom: 15px;
    }

    .badge {
        font-size: 0.7rem;
    }

    /* Hero Search Refinement */
    .hero-section form.glass-panel {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 15px !important;
        gap: 15px !important;
        height: auto !important;
    }

    .hero-section form.glass-panel select {
        width: 100% !important;
        text-align: center !important;
        padding: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
    }

    .hero-section form.glass-panel button {
        width: 100% !important;
        padding: 12px !important;
    }

    /* Footer Mobile Refinement */
    footer {
        padding: 40px 0 !important;
        margin-top: 50px !important;
    }

    footer .navbar-brand {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
        display: inline-block !important;
    }
}