* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #121212;
    color: #E0E0E0;
    padding-top: 70px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    text-align: center;
}

main {
    flex: 1;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    text-align: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #50059c, #6232a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(80, 5, 156, 0.5);
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: #E0E0E0;
    cursor: pointer;
}

.nav ul {
    list-style: none;
    display: none;
    flex-direction: column;
    background: #1E1E1E;
    position: absolute;
    right: 0;
    top: 60px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav ul.active {
    display: flex;
}

.nav ul li {
    margin: 0.5rem 0;
}

.nav ul li a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #6232a8;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-text {
    text-align: center;
    padding: 2rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(80, 5, 156, 0.5);
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #50059c;
    color: #E0E0E0;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #6232a8;
}

/* Sections */
.features, .portfolio, .about, .admin-dashboard, .form-container {
    padding: 4rem 2rem;
}

.features h2, .portfolio h2, .about h2, .admin-dashboard h2, .form-container h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #50059c;
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card, .portfolio-item, .team-member, .category-item {
    background: #1E1E1E;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.feature-card:hover, .portfolio-item:hover, .team-member:hover, .category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(80, 5, 156, 0.2);
}

.team-grid, .portfolio-grid, .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    justify-items: stretch;
    box-sizing: border-box;
}

/* Grid gap replaces outer margins — margin + width:100% overflowed cells on mobile (cards drifted right) */
.team-grid > *,
.portfolio-grid > *,
.category-grid > * {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    box-sizing: border-box;
}

.team-member img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.portfolio-item img, .portfolio-item video, .category-item img, .category-item video {
    width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.category-item h3 {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #E0E0E0;
    text-align: center;
}

.category-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #50059c;
    color: #E0E0E0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.category-link:hover {
    background: #6232a8;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #1E1E1E;
    border-radius: 10px;
    padding: 2rem;
}

.form-container input,
.form-container textarea,
.form-container select,
.form-container input[type="datetime-local"] {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 5px;
    background: #2A2A2A;
    color: #E0E0E0;
    font-size: 1rem;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus,
.form-container input[type="datetime-local"]:focus {
    outline: none;
    box-shadow: 0 0 5px #42f5f5;
}

.form-container button {
    width: 100%;
    padding: 0.75rem;
    background: #50059c;
    border: none;
    color: #E0E0E0;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-container button:hover {
    background: #6232a8;
}

.form-container progress {
    width: 100%;
    height: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
    background: #2A2A2A;
}

.form-container progress::-webkit-progress-bar {
    background: #2A2A2A;
    border-radius: 5px;
}

.form-container progress::-webkit-progress-value {
    background: #42f5f5;
    border-radius: 5px;
}

.form-container progress::-moz-progress-bar {
    background: #42f5f5;
    border-radius: 5px;
}

/* Contact Messages Table */
.contact-messages-table, .categories-table, .portfolio-items-table, .users-table, .bookings-table, .sessions-table, .visitor-stats-table {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    border-collapse: collapse;
    background: #1E1E1E;
    border-radius: 10px;
    overflow: hidden;
}

.contact-messages-table th,
.contact-messages-table td,
.categories-table th,
.categories-table td,
.portfolio-items-table th,
.portfolio-items-table td,
.users-table th,
.users-table td,
.bookings-table th,
.bookings-table td,
.sessions-table th,
.sessions-table td,
.visitor-stats-table th,
.visitor-stats-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #2A2A2A;
}

.contact-messages-table th,
.categories-table th,
.portfolio-items-table th,
.users-table th,
.bookings-table th,
.sessions-table th,
.visitor-stats-table th {
    background: #50059c;
    color: #E0E0E0;
    font-weight: 600;
}

.contact-messages-table td,
.categories-table td,
.portfolio-items-table td,
.users-table td,
.bookings-table td,
.sessions-table td,
.visitor-stats-table td {
    color: #B0B0B0;
}

.contact-messages-table tr:hover,
.categories-table tr:hover,
.portfolio-items-table tr:hover,
.users-table tr:hover,
.bookings-table tr:hover,
.sessions-table tr:hover,
.visitor-stats-table tr:hover {
    background: #2A2A2A;
}

.contact-messages-table td:nth-child(4),
.categories-table td:nth-child(4),
.portfolio-items-table td:nth-child(4),
.users-table td:nth-child(4),
.bookings-table td:nth-child(4),
.bookings-table td:nth-child(7),
.bookings-table td:nth-child(8),
.visitor-stats-table td:nth-child(1) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sessions-table input[type="datetime-local"],
.sessions-table select {
    width: 100%;
    max-width: 200px;
    padding: 0.5rem;
    background: #2A2A2A;
    color: #E0E0E0;
    border: none;
    border-radius: 5px;
}

.sessions-table input[type="datetime-local"]:focus,
.sessions-table select:focus {
    outline: none;
    box-shadow: 0 0 5px #42f5f5;
}

/* Subheadings for Visitor Statistics */
h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #50059c;
    margin: 1.5rem 0 1rem;
}

/* Delete and Update Buttons */
.delete-button, .update-button {
    padding: 0.5rem 1rem;
    background: #50059c;
    color: #E0E0E0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-right: 0.5rem;
}

.delete-button:hover, .update-button:hover {
    background: #6232a8;
}

.delete-button {
    background: #0074cc;
}

.delete-button:hover {
    background: #42f5f5;
}

/* Portfolio Item Input */
.portfolio-items-table input[type="text"],
.users-table input[type="text"],
.users-table input[type="password"],
.users-table select,
.bookings-table input[type="text"],
.bookings-table input[type="email"],
.bookings-table input[type="tel"] {
    width: 100%;
    max-width: 200px;
    padding: 0.5rem;
    background: #2A2A2A;
    color: #E0E0E0;
    border: none;
    border-radius: 5px;
}

.portfolio-items-table input[type="text"]:focus,
.users-table input[type="text"]:focus,
.users-table input[type="password"]:focus,
.users-table select:focus,
.bookings-table input[type="text"]:focus,
.bookings-table input[type="email"]:focus,
.bookings-table input[type="tel"]:focus {
    outline: none;
    box-shadow: 0 0 5px #42f5f5;
}

/* Modal Styles */
.modal, #media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

#media-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #1E1E1E;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #E0E0E0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #6232a8;
}

#modal-image, #modal-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

#details-modal .modal-content {
    max-width: 600px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(80, 5, 156, 0.2);
    border: 1px solid #2A2A2A;
}

#details-modal h3 {
    font-size: 1.8rem;
    color: #50059c;
    margin-bottom: 1.5rem;
    text-align: center;
}

#modal-details p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #E0E0E0;
    display: flex;
    align-items: flex-start;
}

#modal-details p strong {
    color: #B0B0B0;
    font-weight: 600;
    min-width: 150px;
    text-align: left;
}

#modal-details .message-text {
    white-space: pre-wrap;
    background: #2A2A2A;
    padding: 1rem;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    color: #E0E0E0;
    font-size: 0.95rem;
    border: 1px solid #3A3A3A;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: #0A0A0A;
    color: #B0B0B0;
    font-size: 0.9rem;
}

.footer .social-links {
    margin-top: 1rem;
}

.footer .social-links a {
    color: #E0E0E0;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #6232a8;
}

/* Error and Success Messages */
.error {
    color: #FF3D00;
    font-weight: 600;
}

.success {
    color: #4CAF50;
    font-weight: 600;
}

/* Booking Page Styles */
.sessions-by-date {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.date-group {
    margin-bottom: 1.5rem;
}

.date-header {
    cursor: pointer;
    background: #1E1E1E;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #E0E0E0;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.date-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(80, 5, 156, 0.2);
}

.date-header::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.date-header.active::after {
    transform: rotate(180deg);
}

.time-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.time-list.active {
    display: block;
}

.time-list li {
    padding: 0.75rem;
    background: #2A2A2A;
    margin: 0.25rem 0;
    border-radius: 5px;
    cursor: pointer;
    color: #E0E0E0;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.time-list li:hover {
    background: #3A3A3A;
    transform: scale(1.02);
}

.booking-form {
    display: none;
    background: #1E1E1E;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.booking-form.active {
    display: block;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 5px;
    background: #2A2A2A;
    color: #E0E0E0;
    font-size: 1rem;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    outline: none;
    box-shadow: 0 0 5px #42f5f5;
}

.booking-form button {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(45deg, #50059c, #6232a8);
    border: none;
    color: #E0E0E0;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.booking-form button:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #6232a8, #50059c);
}

/* Responsive Navigation */
.nav-toggle {
    display: block;
}

@media (max-width: 576px) {
    .nav-logo {
        font-size: 1.5rem;
    }

    .nav ul li a {
        font-size: 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .features h2, .portfolio h2, .about h2, .admin-dashboard h2, .form-container h2 {
        font-size: 1.8rem;
    }

    .team-grid, .portfolio-grid, .category-grid {
        grid-template-columns: 1fr;
    }

    .team-member img {
        max-height: 200px;
    }

    .form-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-messages-table, .categories-table, .portfolio-items-table, .users-table, .bookings-table, .sessions-table, .visitor-stats-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 1.5rem auto;
    }

    .contact-messages-table th, .contact-messages-table td,
    .categories-table th, .categories-table td,
    .portfolio-items-table th, .portfolio-items-table td,
    .users-table th, .users-table td,
    .bookings-table th, .bookings-table td,
    .sessions-table th, .sessions-table td,
    .visitor-stats-table th, .visitor-stats-table td {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .contact-messages-table td:nth-child(4),
    .categories-table td:nth-child(4),
    .portfolio-items-table td:nth-child(4),
    .users-table td:nth-child(4),
    .bookings-table td:nth-child(4),
    .bookings-table td:nth-child(7),
    .bookings-table td:nth-child(8),
    .visitor-stats-table td:nth-child(1) {
        max-width: 150px;
    }

    .category-item h3 {
        font-size: 1rem;
    }

    .category-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .portfolio-items-table input[type="text"],
    .users-table input[type="text"],
    .users-table input[type="password"],
    .users-table select,
    .bookings-table input[type="text"],
    .bookings-table input[type="email"],
    .bookings-table input[type="tel"],
    .form-container input[type="datetime-local"],
    .sessions-table input[type="datetime-local"],
    .sessions-table select {
        max-width: 180px;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .footer .social-links a {
        font-size: 1rem;
        margin: 0 0.3rem;
    }

    .hero-text img {
        width: 300px;
        height: 300px;
    }

    .h4 {
        font-size: 1.2rem;
        margin: 1rem 0 0.75rem;
    }

    #details-modal .modal-content {
        max-width: 90%;
        padding: 1.5rem;
    }

    #details-modal h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #modal-details p {
        font-size: 0.9rem;
    }

    #modal-details p strong {
        min-width: 120px;
        font-size: 0.9rem;
    }

    #modal-details .message-text {
        max-height: 200px;
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .modal-close {
        font-size: 1.5rem;
        top: 0.75rem;
        right: 1rem;
    }

    /* Admin Dashboard Mobile Spacing */
    .admin-dashboard h3 {
        margin: 1.5rem 0 1rem;
    }

    .admin-dashboard p {
        margin-bottom: 1rem;
    }

    .form-container input,
    .form-container select,
    .form-container textarea,
    .form-container button {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }

    .delete-button, .update-button {
        padding: 0.75rem 1rem;
        margin: 0.5rem 0.5rem 0.5rem 0;
        display: inline-block;
    }

    .contact-messages-table th, .contact-messages-table td,
    .categories-table th, .categories-table td,
    .portfolio-items-table th, .portfolio-items-table td,
    .users-table th, .users-table td,
    .bookings-table th, .bookings-table td,
    .sessions-table th, .sessions-table td,
    .visitor-stats-table th, .visitor-stats-table td {
        padding: 0.75rem;
    }

    /* Booking Page Mobile Styles */
    .sessions-by-date {
        max-width: 100%;
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .date-group {
        margin-bottom: 2rem;
        background: #1E1E1E;
        border-radius: 10px;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .date-header {
        font-size: 1.1rem;
        padding: 1rem;
        margin: 0;
        3A3A3A;
        background: linear-gradient(45deg, #50059c, #6232a8);
        border-radius: 5px;
        color: #E0E0E0;
        font-weight: 600;
        cursor: pointer;
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .date-header:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 10px rgba(80, 5, 156, 0.3);
    }

    .date-header::after {
        content: '▼';
        position: absolute;
        right: 1rem;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .date-header.active::after {
        transform: rotate(180deg);
    }

    .time-list {
        margin: 1rem 0;
        padding: 0 0.5rem;
    }

    .time-list li {
        font-size: 0.9rem;
        padding: 0.75rem;
        margin: 0.5rem 0;
        background: #2A2A2A;
        border-radius: 5px;
        cursor: pointer;
        color: #E0E0E0;
        text-align: center;
        transition: background 0.3s ease, transform 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .time-list li:hover {
        background: #3A3A3A;
        transform: scale(1.03);
    }

    .booking-form {
        padding: 1.5rem;
        margin: 1.5rem auto;
        max-width: 100%;
        background: #1E1E1E;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        padding: 0.75rem;
        margin: 0.75rem 0;
        font-size: 0.9rem;
        background: #2A2A2A;
        border: none;
        border-radius: 5px;
        color: #E0E0E0;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .booking-form button {
        padding: 0.75rem;
        margin: 0.75rem 0;
        font-size: 1rem;
        background: linear-gradient(45deg, #50059c, #6232a8);
        border-radius: 5px;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .booking-form button:hover {
        transform: translateY(-3px);
        background: linear-gradient(45deg, #6232a8, #50059c);
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .nav-logo {
        font-size: 1.6rem;
    }

    .hero-text img {
        width: 300px;
        height: 300px;
    }

    .nav ul li a {
        font-size: 1.05rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .team-grid, .portfolio-grid, .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .team-member img {
        max-height: 250px;
    }

    .contact-messages-table th, .contact-messages-table td,
    .categories-table th, .categories-table td,
    .portfolio-items-table th, .portfolio-items-table td,
    .users-table th, .users-table td,
    .bookings-table th, .bookings-table td,
    .sessions-table th, .sessions-table td,
    .visitor-stats-table th, .visitor-stats-table td {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .contact-messages-table td:nth-child(4),
    .categories-table td:nth-child(4),
    .portfolio-items-table td:nth-child(4),
    .users-table td:nth-child(4),
    .bookings-table td:nth-child(4),
    .bookings-table td:nth-child(7),
    .bookings-table td:nth-child(8),
    .visitor-stats-table td:nth-child(1) {
        max-width: 180px;
    }

    .category-item h3 {
        font-size: 1.1rem;
    }

    .category-link {
        font-size: 0.95rem;
    }

    .portfolio-items-table input[type="text"],
    .users-table input[type="text"],
    .users-table input[type="password"],
    .users-table select,
    .bookings-table input[type="text"],
    .bookings-table input[type="email"],
    .bookings-table input[type="tel"],
    .form-container input[type="datetime-local"],
    .sessions-table input[type="datetime-local"],
    .sessions-table select {
        max-width: 180px;
    }

    .footer .social-links a {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1.3rem;
        margin: 1.25rem 0 0.85rem;
    }

    #details-modal .modal-content {
        max-width: 80%;
        padding: 1.75rem;
    }

    #details-modal h3 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    #modal-details p {
        font-size: 0.95rem;
    }

    #modal-details p strong {
        min-width: 130px;
        font-size: 0.95rem;
    }

    #modal-details .message-text {
        max-height: 250px;
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .modal-close {
        font-size: 1.75rem;
        top: 0.85rem;
        right: 1.25rem;
    }
}

@media (min-width: 768px) {
    .nav-logo {
        font-size: 1.8rem;
    }

    .hero-text img {
        width: 80%;
        height: 80%;
    }

    .nav ul li a {
        font-size: 1.1rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .team-grid, .portfolio-grid, .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-messages-table th, .contact-messages-table td,
    .categories-table th, .categories-table td,
    .portfolio-items-table th, .portfolio-items-table td,
    .users-table th, .users-table td,
    .bookings-table th, .bookings-table td,
    .sessions-table th, .sessions-table td,
    .visitor-stats-table th, .visitor-stats-table td {
        font-size: 1rem;
    }

    h4 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem;
    }

    #details-modal .modal-content {
        max-width: 600px;
        padding: 2rem;
    }

    #details-modal h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    #modal-details p {
        font-size: 1rem;
    }

    #modal-details p strong {
        min-width: 150px;
        font-size: 1rem;
    }

    #modal-details .message-text {
        max-height: 300px;
        padding: 1rem;
        font-size: 0.95rem;
    }

    .modal-close {
        font-size: 2rem;
        top: 1rem;
        right: 1.5rem;
    }
}

/* Pricing Section for Pricing Page */
.pricing-section {
    padding: 4rem 2rem;
}

.pricing-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #50059c;
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    justify-items: stretch;
    box-sizing: border-box;
}

.pricing-grid > * {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    box-sizing: border-box;
}

.pricing-item {
    background: #1E1E1E;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.pricing-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(80, 5, 156, 0.2);
}

.pricing-item h3 {
    font-size: 1.4rem;
    color: #E0E0E0;
    margin-bottom: 1rem;
}

.pricing-item p {
    font-size: 1rem;
    color: #B0B0B0;
    margin: 0.5rem 0;
}

.pricing-item .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #42f5f5;
    margin: 1rem 0;
}

.pricing-item .cta-button {
    margin-top: 1rem;
}

/* Pricing Table for Admin Dashboard */
.pricing-table {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    border-collapse: collapse;
    background: #1E1E1E;
    border-radius: 10px;
    overflow: hidden;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #2A2A2A;
}

.pricing-table th {
    background: #50059c;
    color: #E0E0E0;
    font-weight: 600;
}

.pricing-table td {
    color: #B0B0B0;
}

.pricing-table tr:hover {
    background: #2A2A2A;
}

.pricing-table input[type="number"],
.pricing-table input[type="text"] {
    width: 100%;
    max-width: 200px;
    padding: 0.5rem;
    background: #2A2A2A;
    color: #E0E0E0;
    border: none;
    border-radius: 5px;
}

.pricing-table input[type="number"]:focus,
.pricing-table input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 5px #42f5f5;
}

.pricing-table td:nth-child(2) {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pricing-table td:nth-child(5),
.pricing-table td:nth-child(6) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pricing Form for Admin Dashboard */
.pricing-form {
    max-width: 1200px;
    margin: 2rem auto;
    background: #1E1E1E;
    border-radius: 10px;
    padding: 2rem;
}

.pricing-form button {
    width: 100%;
    max-width: 200px;
    margin: 1rem auto;
    padding: 0.75rem;
    background: linear-gradient(45deg, #50059c, #6232a8);
    border: none;
    color: #E0E0E0;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    display: block;
}

.pricing-form button:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #6232a8, #50059c);
}

/* Responsive Pricing Styles */
@media (max-width: 576px) {
    .pricing-section h2 {
        font-size: 1.8rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-item h3 {
        font-size: 1.2rem;
    }

    .pricing-item p {
        font-size: 0.9rem;
    }

    .pricing-item .price {
        font-size: 1.1rem;
    }

    .pricing-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 1.5rem auto;
    }

    .pricing-table th,
    .pricing-table td {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .pricing-table input[type="number"],
    .pricing-table input[type="text"] {
        max-width: 180px;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .pricing-table td:nth-child(2),
    .pricing-table td:nth-child(5),
    .pricing-table td:nth-child(6) {
        max-width: 150px;
    }

    .pricing-form {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .pricing-form button {
        max-width: 180px;
        padding: 0.75rem;
        margin: 0.75rem auto;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .pricing-section h2 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .pricing-item h3 {
        font-size: 1.3rem;
    }

    .pricing-item p {
        font-size: 0.95rem;
    }

    .pricing-item .price {
        font-size: 1.15rem;
    }

    .pricing-table th,
    .pricing-table td {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .pricing-table input[type="number"],
    .pricing-table input[type="text"] {
        max-width: 180px;
    }

    .pricing-table td:nth-child(2),
    .pricing-table td:nth-child(5),
    .pricing-table td:nth-child(6) {
        max-width: 180px;
    }

    .pricing-form button {
        max-width: 180px;
    }
}

@media (min-width: 768px) {
    .pricing-section h2 {
        font-size: 2.5rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .pricing-item h3 {
        font-size: 1.4rem;
    }

    .pricing-item p {
        font-size: 1rem;
    }

    .pricing-item .price {
        font-size: 1.2rem;
    }

    .pricing-table th,
    .pricing-table td {
        font-size: 1rem;
    }

    .pricing-table input[type="number"],
    .pricing-table input[type="text"] {
        max-width: 200px;
    }
}

/* ===== 2026 Visual Refresh ===== */
:root {
    --bg-main: #090b14;
    --bg-surface: #121729;
    --bg-elevated: #181f35;
    --text-main: #eef2ff;
    --text-muted: #b9c1e5;
    --accent-a: #7c4dff;
    --accent-b: #17e6ff;
    --accent-c: #ff4fd8;
    --line: rgba(151, 170, 255, 0.2);
    --glow: 0 0 30px rgba(124, 77, 255, 0.3);
}

body {
    background:
        radial-gradient(circle at 20% 10%, rgba(124, 77, 255, 0.2), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(23, 230, 255, 0.2), transparent 35%),
        linear-gradient(180deg, #070913 0%, #090b14 100%);
    color: var(--text-main);
}

p, li, td, input, textarea, select {
    color: var(--text-muted);
}

.nav {
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    background: rgba(9, 11, 20, 0.85);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: 1200px;
    padding: 0.85rem 1.25rem;
}

.nav-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(124, 77, 255, 0.6));
}

.nav ul {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.nav ul li a {
    color: var(--text-main);
    font-weight: 600;
}

.nav ul li a:hover {
    color: var(--accent-b);
}

.hero {
    height: auto;
    min-height: calc(100vh - 70px);
    padding: 1rem 0 2rem;
    overflow: visible;
}

.hero-text {
    background: rgba(10, 14, 27, 0.7);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--glow);
    width: min(94vw, 1100px);
    margin: 0 auto;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.hero-brand-logo {
    width: min(300px, 55vw);
    max-width: 300px;
    max-height: 300px;
    height: min(300px, 55vw);
    max-width: 100%;
    margin: 0 auto 0.6rem;
    display: block;
    object-fit: contain;
}

.cta-button {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-c));
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0.4rem;
    box-shadow: 0 8px 20px rgba(124, 77, 255, 0.35);
}

.hero-text .cta-button {
    white-space: nowrap;
}

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

.home-title {
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.home-section {
    max-width: 1250px;
    margin: 0 auto;
}

.home-section .portfolio-item h3,
.home-section .category-item h3,
.home-section .feature-card h3 {
    margin-top: 0.8rem;
}

.cta-button:hover {
    background: linear-gradient(90deg, var(--accent-b), var(--accent-a));
}

.section-subtitle {
    text-align: center;
    margin: -0.75rem auto 2rem;
    max-width: 760px;
}

.feature-card, .portfolio-item, .team-member, .category-item, .pricing-item, .form-container, .quote-card, .quote-summary {
    background: linear-gradient(180deg, rgba(24, 31, 53, 0.98), rgba(16, 21, 38, 0.98));
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-card:hover, .portfolio-item:hover, .team-member:hover, .category-item:hover, .pricing-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 28px rgba(23, 230, 255, 0.18);
}

.portfolio-item img, .portfolio-item video, .category-item img, .category-item video {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-link {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    color: #05060d;
    font-weight: 700;
}

.category-link:hover {
    background: linear-gradient(90deg, var(--accent-b), var(--accent-c));
}

.pricing-item .price {
    color: var(--accent-b);
    font-size: 1.35rem;
}

.form-container {
    max-width: 760px;
}

.form-container input,
.form-container textarea,
.form-container select,
.form-container input[type="datetime-local"],
.booking-form input,
.booking-form textarea,
.booking-form select {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f1528;
    color: var(--text-main);
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus,
.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    box-shadow: 0 0 0 2px rgba(23, 230, 255, 0.35);
}

.form-container button,
.booking-form button,
.update-button,
.delete-button {
    border-radius: 10px;
    font-weight: 700;
}

.update-button {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-c));
}

.delete-button {
    background: linear-gradient(90deg, #ff5f7a, #ff855f);
}

.contact-messages-table, .categories-table, .portfolio-items-table, .users-table, .bookings-table, .sessions-table, .visitor-stats-table, .pricing-table {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #10162a;
}

.contact-messages-table th,
.categories-table th,
.portfolio-items-table th,
.users-table th,
.bookings-table th,
.sessions-table th,
.visitor-stats-table th,
.pricing-table th {
    background: linear-gradient(90deg, rgba(124, 77, 255, 0.9), rgba(23, 230, 255, 0.55));
    color: #f8faff;
}

.contact-messages-table tr:hover,
.categories-table tr:hover,
.portfolio-items-table tr:hover,
.users-table tr:hover,
.bookings-table tr:hover,
.sessions-table tr:hover,
.visitor-stats-table tr:hover,
.pricing-table tr:hover {
    background: rgba(124, 77, 255, 0.12);
}

.modal, #media-modal {
    backdrop-filter: blur(8px);
}

.modal-content {
    border: 1px solid var(--line);
    box-shadow: var(--glow);
}

.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #05060d;
    background: linear-gradient(135deg, var(--accent-b), #ffffff);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.media-nav.prev {
    left: 12px;
}

.media-nav.next {
    right: 12px;
}

.media-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.footer {
    background: #070a14;
    border-top: 1px solid var(--line);
}

.footer p {
    font-size: 1rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--accent-b);
}

.footer i {
    transition: transform 0.2s ease;
}

.footer i:hover {
    transform: translateY(-2px) scale(1.2);
}

/* Quote Estimator */
.quote-page {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 1.25rem;
}

.quote-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.quote-hero h2 {
    font-size: 2.6rem;
    margin-bottom: 0.7rem;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.quote-card {
    padding: 1.1rem;
}

.quote-card.active {
    border-color: rgba(23, 230, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(23, 230, 255, 0.5);
}

.quote-card label {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.quote-rate {
    color: var(--accent-b);
    font-weight: 700;
}

.quote-extra {
    font-size: 0.9rem;
}

.quote-qty {
    width: 100%;
    margin-top: 0.7rem;
}

.quote-summary {
    margin-top: 1.5rem;
    padding: 1.2rem;
}

.quote-summary h3 {
    text-align: left;
    margin-bottom: 1rem;
}

.quote-summary ul {
    list-style: none;
    margin-bottom: 1rem;
}

.quote-summary li {
    margin-bottom: 0.45rem;
}

.quote-total {
    font-size: 1.45rem;
    color: var(--text-main);
}

#quote-total {
    color: var(--accent-b);
    font-weight: 800;
}

/* Admin polish */
.admin-dashboard {
    max-width: 1280px;
    margin: 0 auto;
}

.admin-dashboard > p {
    max-width: 880px;
    margin: 0 auto 1rem;
}

.admin-dashboard h3 {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 1rem;
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--accent-b);
    background: rgba(124, 77, 255, 0.12);
    border-radius: 8px;
    text-align: left;
}

.admin-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.admin-quick-links .category-link {
    margin-top: 0;
}

.pricing-form, .form-container {
    border: 1px solid var(--line);
}

.ticket-list {
    display: grid;
    gap: 0.8rem;
}

.ticket-item {
    background: #0f1528;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.8rem 1rem;
}

.ticket-item summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
}

.ticket-item p {
    margin: 0.75rem 0;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.ticket-modal-content {
    width: min(900px, 94vw);
    max-height: 86vh;
    overflow: auto;
}

#ticket-modal-body {
    display: grid;
    gap: 0.8rem;
}

.ticket-bubble {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem;
    background: #10162a;
}

.ticket-bubble.admin {
    border-color: rgba(23, 230, 255, 0.4);
}

.ticket-bubble.user {
    border-color: rgba(124, 77, 255, 0.45);
}

.ticket-bubble p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 0.4rem;
}

.ticket-reply-form {
    margin-top: 0.4rem;
}

.ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.ticket-actions form {
    margin: 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0.8rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-a);
}

.cookie-consent {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    width: min(940px, calc(100vw - 2rem));
    z-index: 3000;
    background: #10162a;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.cookie-consent p {
    margin: 0;
    color: var(--text-main);
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-consent button {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
}

#cookie-accept {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-c));
    color: #fff;
}

#cookie-essential {
    background: #1f2a47;
    color: #fff;
}

@media (max-width: 640px) {
    .cookie-consent {
        flex-direction: column;
        align-items: stretch;
        width: calc(100vw - 1rem);
        left: 0.5rem;
        right: 0.5rem;
        transform: none;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero-text {
        width: min(95vw, 760px);
    }
}

@media (max-width: 576px) {
    .hero-text {
        padding: 1.25rem;
        width: min(96vw, 540px);
    }

    .hero-brand-logo {
        width: min(220px, 55vw);
        height: auto;
        max-height: 220px;
    }

    .hero-text p {
        font-size: 0.98rem;
    }

    .media-nav {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}

@media (min-width: 1800px) {
    .hero {
        min-height: calc(100vh - 70px);
    }

    .hero-text {
        width: min(78vw, 1280px);
        padding: 2.5rem 3rem;
    }

    .hero-brand-logo {
        width: min(300px, 18vw);
        height: auto;
        max-height: 300px;
    }
}

html {
    overflow-y: scroll;
}

.nav-toggle {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(24, 31, 53, 0.9);
    color: var(--text-main);
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.nav-toggle:hover {
    color: var(--accent-b);
}

#three-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-item img,
.portfolio-item video,
.category-item img,
.category-item video {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
}

.portfolio-grid,
.category-grid,
.team-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.footer .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(16, 22, 42, 0.9);
}

.modal-close {
    border: 0;
    background: transparent;
    line-height: 1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-b);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
