* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --accent-color: #00d4ff;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --glow-soft: 0 0 0 1px rgba(46, 204, 113, 0.2), 0 10px 30px rgba(46, 204, 113, 0.12);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 5% 10%, rgba(46, 204, 113, 0.08), transparent 35%),
        radial-gradient(circle at 90% 5%, rgba(0, 212, 255, 0.06), transparent 30%);
    background-attachment: fixed;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

body.page-ready {
    opacity: 1;
    transform: translateY(0);
}

/* Header and Navigation */
header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 24px;
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.14), 0 10px 25px rgba(39, 174, 96, 0.25);
    animation: pulseGlow 3.5s ease-in-out infinite;
}

.site-title h1 {
    color: var(--dark-color);
    font-size: 28px;
}

.site-title p {
    color: var(--primary-color);
    font-size: 14px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(46, 204, 113, 0.35);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--dark-color);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(46, 204, 113, 0.35);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(46, 204, 113, 0.2);
}

[data-theme="dark"] {
    --primary-color: #39d98a;
    --secondary-color: #28b972;
    --accent-color: #4cc9f0;
    --dark-color: #d9e6ef;
    --light-color: #1a2430;
    --text-color: #d6e3eb;
    --border-color: #334352;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.45);
    --glow-soft: 0 0 0 1px rgba(57, 217, 138, 0.35), 0 12px 28px rgba(57, 217, 138, 0.16);
}

[data-theme="dark"] body {
    background-color: #101820;
    background-image:
        radial-gradient(circle at 5% 10%, rgba(57, 217, 138, 0.12), transparent 35%),
        radial-gradient(circle at 90% 5%, rgba(76, 201, 240, 0.1), transparent 30%);
}

[data-theme="dark"] header,
[data-theme="dark"] .card,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .dashboard-section,
[data-theme="dark"] .member-sidebar,
[data-theme="dark"] .admin-header,
[data-theme="dark"] .member-header,
[data-theme="dark"] table {
    background-color: #16222d;
    color: var(--text-color);
}

[data-theme="dark"] .top-bar {
    background-color: #1f7e57;
}

[data-theme="dark"] .site-title h1,
[data-theme="dark"] .card-title,
[data-theme="dark"] section h2,
[data-theme="dark"] .member-profile h3,
[data-theme="dark"] .admin-header h1,
[data-theme="dark"] .member-header h1,
[data-theme="dark"] label,
[data-theme="dark"] .info-row label {
    color: #e7f2f9;
}

[data-theme="dark"] .card-text,
[data-theme="dark"] .info-row span,
[data-theme="dark"] .site-title p {
    color: #9cb0c0;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="phone"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: #0f1922;
    color: #d7e4ec;
    border-color: #2d3d4c;
}

[data-theme="dark"] tbody tr:hover {
    background-color: #1f2d39;
}

.btn-sign-in, .btn-register {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-sign-in {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-sign-in:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-register {
    background-color: var(--primary-color);
    color: white;
}

.btn-register:hover {
    background-color: var(--secondary-color);
}

/* Navigation Menu */
.site-nav,
header nav {
    background-color: var(--primary-color);
}

.site-nav ul,
header nav ul {
    list-style: none;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.site-nav ul li,
header nav ul li {
    flex: 1;
}

.site-nav ul li a,
header nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.site-nav ul li a:hover,
.site-nav ul li a.active,
header nav ul li a:hover,
header nav ul li a.active {
    background-color: var(--secondary-color);
    border-bottom-color: white;
}

.site-nav ul li a::after,
header nav ul li a::after {
    content: '';
    position: absolute;
    left: 20%;
    bottom: 6px;
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.65);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.site-nav ul li a:hover::after,
.site-nav ul li a.active::after,
header nav ul li a:hover::after,
header nav ul li a.active::after {
    transform: scaleX(1);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: min(80vw, 1280px);
    height: 400px;
    overflow: hidden;
    background-color: var(--dark-color);
    border-radius: 18px;
    margin: 22px auto 0;
    box-shadow: var(--shadow-lg);
}

.gallery-grid-frontend {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-tile {
    appearance: none;
    border: none;
    padding: 0;
    text-align: left;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-tile-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eef7f2, #eaf5ff);
    overflow: hidden;
}

.gallery-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-tile-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.gallery-tile-body {
    padding: 15px;
}

.gallery-tile-title {
    margin: 0;
    color: var(--dark-color);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox.hidden {
    display: none;
}

.gallery-lightbox img {
    max-width: min(92vw, 1200px);
    max-height: 75vh;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    object-fit: contain;
    background: #fff;
}

.gallery-lightbox-caption {
    color: #fff;
    margin-top: 16px;
    font-size: 16px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
}

.contact-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #5f6f7b;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info-card {
    margin-bottom: 30px;
}

.contact-info-card h3,
.contact-info-card p {
    color: var(--dark-color);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
}

[data-theme="dark"] .contact-intro {
    color: #c1d0db;
}

[data-theme="dark"] .contact-card {
    background-color: #16222d;
    color: var(--text-color);
}

[data-theme="dark"] .contact-info-card h3,
[data-theme="dark"] .contact-info-card p,
[data-theme="dark"] .contact-info-card strong,
[data-theme="dark"] .contact-card label {
    color: #e7f2f9;
}

[data-theme="dark"] .contact-link {
    color: #59e2a5;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 40px 20px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #5f6f7b;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

[data-theme="dark"] .login-box {
    background-color: #16222d;
    color: var(--text-color);
}

[data-theme="dark"] .login-footer {
    color: #c1d0db;
}

[data-theme="dark"] .login-footer a {
    color: #59e2a5;
}

.register-container {
    padding: 40px 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 250px);
}

.register-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.register-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.btn-register-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.register-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #5f6f7b;
}

.register-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

[data-theme="dark"] .register-container {
    background-color: transparent;
}

[data-theme="dark"] .register-box {
    background-color: #16222d;
    color: var(--text-color);
}

[data-theme="dark"] .register-footer {
    color: #c1d0db;
}

[data-theme="dark"] .register-footer a {
    color: #59e2a5;
}

.membership-intro {
    text-align: center;
    font-size: 16px;
    color: #5f6f7b;
    max-width: 800px;
    margin: 0 auto 40px;
}

.membership-grid {
    margin-top: 40px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.membership-list {
    margin: 20px 0;
    padding-left: 20px;
    color: #5f6f7b;
    font-size: 14px;
    line-height: 2;
}

[data-theme="dark"] .membership-intro,
[data-theme="dark"] .membership-list {
    color: #c1d0db;
}

.about-visual {
    width: 100%;
    min-height: 320px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(70px, 10vw, 130px);
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.36)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, #3498db, #2ecc71);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 8s ease;
}

.slide-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(72px, 12vw, 150px);
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, #2ecc71, #1f7e57);
}

.slide-visual-blue {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, #3498db, #284b75);
}

.slide-visual-red {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, #e74c3c, #7f2f45);
}

.slide-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    box-shadow: var(--glow-soft);
}

.slide.active img {
    transform: scale(1.12);
}

.slide-content h2 {
    margin-bottom: 10px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.slider-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.25);
}

.slider-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px) scale(1.04);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Container and Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: clamp(42px, 6vw, 72px) 0;
    animation: fadeIn 0.7s ease;
}

section h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Cards and Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border: 1px solid rgba(46, 204, 113, 0.08);
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--glow-soft);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.card-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 100%);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 120%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(46, 204, 113, 0.25);
}

.btn-secondary {
    background-color: var(--dark-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1a252f;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 8px 15px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="phone"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="phone"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12), 0 8px 20px rgba(46, 204, 113, 0.12);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Alerts and Messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: 5px;
    overflow: hidden;
}

thead {
    background-color: var(--primary-color);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: #f8f9fa;
}

/* Homepage stats strip */
.stats-strip {
    margin-top: -20px;
    position: relative;
    z-index: 20;
}

.stats-strip-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-pill {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.92), rgba(39, 174, 96, 0.92));
    color: #fff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.28);
}

.stat-pill i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 18px;
}

.stat-pill h3 {
    font-size: 28px;
    line-height: 1;
}

.stat-pill p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 13px;
}

/* Floating contact action buttons */
.floating-contact {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-contact-btn.call {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.floating-contact-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
}

.floating-contact-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo-section {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
    }

    .site-title h1 {
        font-size: 22px;
    }

    .auth-buttons {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        order: -1;
    }

    .site-nav {
        display: none;
    }

    .site-nav.nav-open {
        display: block;
    }

    .site-nav ul,
    header nav ul {
        flex-direction: column;
    }

    .site-nav ul li a,
    header nav ul li a {
        padding: 12px 16px;
    }

    .hero-slider {
        width: calc(100% - 24px);
        height: 250px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 24px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .stats-strip-inner {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* Loading and Animations */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.14), 0 10px 25px rgba(39, 174, 96, 0.25); }
    50% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0.12), 0 15px 30px rgba(39, 174, 96, 0.3); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-40 {
    padding-top: 40px;
}

.pb-40 {
    padding-bottom: 40px;
}

.hidden {
    display: none;
}

.text-muted {
    color: #999;
}

.small {
    font-size: 12px;
}

.large {
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
