/* ============================================
   MusaSoftTech - Modern Website Redesign
   ============================================ */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --secondary: #7c3aed;
    --secondary-dark: #6d28d9;
    --dark: #0f172a;
    --dark-700: #1e293b;
    --dark-600: #334155;
    --dark-500: #475569;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-600);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Navigation
   ============================================ */
.mst-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mst-navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.mst-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mst-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    color: var(--dark);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.mst-navbar-brand strong {
    font-weight: 700;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
}

.mst-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mst-nav-link {
    padding: 8px 16px;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--dark-500);
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.mst-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mst-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */
.mst-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-family);
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.mst-btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.mst-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.mst-btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--gray-300);
}

.mst-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.mst-btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.mst-btn-white:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.mst-btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.mst-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

.mst-btn-nav {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    padding: 8px 20px;
}

.mst-btn-nav:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.mst-btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.mst-btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Hero Section
   ============================================ */
.mst-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 100%);
}

.mst-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.mst-hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.mst-hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.mst-hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
}

.mst-hero-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mst-hero-content {
    position: relative;
    z-index: 2;
}

.mst-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--primary-100);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.mst-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

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

.mst-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--dark-500);
    margin-bottom: 36px;
    max-width: 520px;
}

.mst-hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.mst-hero-stats {
    display: flex;
    gap: 40px;
}

.mst-stat {
    display: flex;
    flex-direction: column;
}

.mst-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.mst-stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Hero Layout - 40/60 split */
.mst-hero-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mst-hero-left {
    width: 40%;
    flex-shrink: 0;
}

.mst-hero-right {
    width: 60%;
    position: relative;
    z-index: 2;
}

/* Hero Slideshow */
.mst-hero-slideshow {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    background: var(--dark);
}

.mst-slideshow-track {
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 5;
    overflow: hidden;
}

.mst-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.mst-slide.active {
    opacity: 1;
}

.mst-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mst-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mst-slide-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mst-slide-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.mst-slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.15);
}

.mst-slide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mst-slide-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.mst-slide-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mst-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.mst-slide-dot.active {
    background: var(--primary-light);
    width: 28px;
    border-radius: 5px;
}

/* ============================================
   Sections
   ============================================ */
.mst-section {
    padding: 100px 0;
}

.mst-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.mst-section-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--primary-100);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.mst-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.mst-section-title.text-left {
    text-align: left;
}

.mst-section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   Services
   ============================================ */
.mst-section-services {
    background: var(--gray-100);
}

.mst-service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.mst-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.mst-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.mst-service-icon-blue { background: #eff6ff; color: #2563eb; }
.mst-service-icon-purple { background: #f5f3ff; color: #7c3aed; }
.mst-service-icon-green { background: #ecfdf5; color: #10b981; }
.mst-service-icon-orange { background: #fff7ed; color: #f97316; }
.mst-service-icon-red { background: #fef2f2; color: #ef4444; }
.mst-service-icon-teal { background: #f0fdfa; color: #14b8a6; }

.mst-service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.mst-service-desc {
    font-size: 0.925rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.mst-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.mst-service-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ============================================
   About
   ============================================ */
.mst-about-visual {
    position: relative;
    padding: 40px;
}

.mst-about-card-main {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.mst-about-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.mst-about-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    transition: var(--transition);
}

.mst-about-icon-item:hover {
    background: var(--primary-50);
    transform: translateY(-4px);
}

.mst-about-icon-item svg {
    color: var(--primary);
}

.mst-about-icon-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-600);
}

.mst-about-accent {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    bottom: 20px;
    right: 20px;
    z-index: 1;
    opacity: 0.15;
}

.mst-about-content {
    padding-left: 40px;
}

.mst-about-text {
    font-size: 1.05rem;
    color: var(--dark-500);
    line-height: 1.8;
    margin-bottom: 20px;
}

.mst-about-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.mst-about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-600);
}

.mst-about-feature svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ============================================
   Features
   ============================================ */
.mst-section-features {
    background: var(--dark);
}

.mst-section-features .mst-section-tag {
    background: rgba(37, 99, 235, 0.2);
}

.mst-section-features .mst-section-title {
    color: var(--white);
}

.mst-section-features .mst-section-subtitle {
    color: var(--gray-400);
}

.mst-feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 24px;
}

.mst-feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.mst-feature-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.mst-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.mst-feature-desc {
    font-size: 0.925rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.mst-section-cta {
    padding: 60px 0;
}

.mst-cta-card {
    position: relative;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    overflow: hidden;
    text-align: center;
}

.mst-cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mst-cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.mst-cta-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.mst-cta-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
}

.mst-cta-content {
    position: relative;
    z-index: 2;
}

.mst-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.mst-cta-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mst-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Contact
   ============================================ */
.mst-contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-right: 40px;
}

.mst-contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mst-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.mst-contact-item h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.mst-contact-item p {
    font-size: 0.925rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

.mst-contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.mst-form-group {
    margin-bottom: 20px;
}

.mst-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-600);
    margin-bottom: 8px;
}

.mst-form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 0.925rem;
    color: var(--dark);
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.mst-form-control:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.mst-form-control::placeholder {
    color: var(--gray-400);
}

textarea.mst-form-control {
    resize: vertical;
    min-height: 120px;
}

select.mst-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============================================
   Footer
   ============================================ */
.mst-footer {
    background: var(--dark);
    padding: 80px 0 30px;
}

.mst-footer-brand {
    margin-bottom: 24px;
}

.mst-footer .mst-navbar-brand {
    color: var(--white);
    margin-bottom: 16px;
    display: inline-flex;
}

.mst-footer-desc {
    font-size: 0.925rem;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 320px;
}

.mst-footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.mst-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mst-footer-links li {
    margin-bottom: 10px;
}

.mst-footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.mst-footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.mst-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.mst-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-400);
    transition: var(--transition);
}

.mst-social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.mst-footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.mst-footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* ============================================
   Internal App Styles (home.php)
   ============================================ */
.mst-app-layout {
    display: flex;
    min-height: 100vh;
}

.mst-sidebar {
    width: 280px;
    background: var(--dark);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
}

.mst-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mst-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 400;
}

.mst-sidebar-brand strong {
    font-weight: 700;
}

.mst-sidebar-nav {
    padding: 16px 0;
}

.mst-sidebar-section {
    padding: 0 16px;
    margin-bottom: 8px;
}

.mst-sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    padding: 12px 12px 8px;
}

.mst-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--gray-400);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.mst-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.mst-sidebar-link.active {
    background: var(--primary);
    color: var(--white);
}

.mst-sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mst-sidebar-submenu {
    list-style: none;
    padding: 0 0 0 44px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mst-sidebar-submenu.open {
    max-height: 200px;
}

.mst-sidebar-submenu li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mst-sidebar-submenu li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.mst-sidebar-toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mst-sidebar-toggle-icon.rotated {
    transform: rotate(180deg);
}

.mst-app-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--gray-100);
}

.mst-app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mst-app-topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.mst-app-body {
    padding: 32px;
}

.mst-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--dark);
}

/* ============================================
   Form Styles (Registration)
   ============================================ */
.mst-page-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mst-page-card-header {
    background: var(--gradient-primary);
    padding: 28px 36px;
    color: var(--white);
}

.mst-page-card-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.mst-page-card-body {
    padding: 36px;
}

.mst-form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.mst-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mst-form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mst-form-section-title svg {
    color: var(--primary);
}

.mst-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mst-form-col {
    flex: 1;
    min-width: 200px;
}

.mst-form-col label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-600);
    margin-bottom: 6px;
}

.mst-form-col .form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.mst-form-col .form-control:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.mst-form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 24px;
}

/* ============================================
   Table Styles (Search)
   ============================================ */
.mst-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mst-table-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.mst-table-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.mst-table-body {
    padding: 20px 28px;
}

.mst-table-body table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
}

.mst-table-body .table thead th {
    background: var(--gray-100);
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dark-500);
    padding: 14px 16px;
}

.mst-table-body .table thead th:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.mst-table-body .table thead th:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.mst-table-body .table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    color: var(--dark-600);
    vertical-align: middle;
}

.mst-table-body .table tbody tr:hover {
    background: var(--primary-50);
}

.mst-table-body .table tbody td a {
    color: var(--primary);
    font-weight: 600;
}

.mst-table-body .table tbody td a:hover {
    color: var(--primary-dark);
}

/* DataTables overrides */
.mst-table-body .dataTables_wrapper .dataTables_filter input {
    padding: 8px 14px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

.mst-table-body .dataTables_wrapper .dataTables_filter input:focus {
    background: var(--white);
    border-color: var(--primary);
}

.mst-table-body .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--radius) !important;
    font-family: var(--font-family) !important;
}

.mst-table-body .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

/* ============================================
   Animations
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
    .mst-nav-toggle {
        display: flex;
    }

    .mst-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 4px;
        box-shadow: var(--shadow-2xl);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .mst-nav-menu.open {
        right: 0;
    }

    .mst-nav-link {
        padding: 12px 16px;
    }

    .mst-btn-nav {
        text-align: center;
        justify-content: center;
        margin-top: 16px;
    }

    .mst-hero-title {
        font-size: 2.5rem;
    }

    .mst-hero-row {
        flex-direction: column;
        gap: 36px;
    }

    .mst-hero-left,
    .mst-hero-right {
        width: 100%;
    }

    .mst-hero-stats {
        gap: 24px;
    }

    .mst-section-title {
        font-size: 2rem;
    }

    .mst-about-content {
        padding-left: 0;
        margin-top: 40px;
    }

    .mst-cta-card {
        padding: 48px 28px;
    }

    .mst-cta-title {
        font-size: 1.75rem;
    }

    .mst-contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    /* App layout responsive */
    .mst-sidebar {
        transform: translateX(-100%);
    }

    .mst-sidebar.open {
        transform: translateX(0);
    }

    .mst-app-content {
        margin-left: 0;
    }

    .mst-mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 767px) {
    .mst-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .mst-hero-title {
        font-size: 2rem;
    }

    .mst-hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .mst-stat {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .mst-hero-actions {
        flex-direction: column;
    }

    .mst-hero-actions .mst-btn {
        justify-content: center;
    }

    .mst-section {
        padding: 60px 0;
    }

    .mst-feature-card {
        text-align: center;
    }

    .mst-contact-form {
        padding: 24px;
    }

    .mst-footer {
        padding: 48px 0 24px;
    }

    .mst-form-row {
        flex-direction: column;
    }

    .mst-form-col {
        min-width: 100%;
    }

    .mst-app-topbar {
        padding: 12px 16px;
    }

    .mst-app-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .mst-hero-title {
        font-size: 1.75rem;
    }

    .mst-section-title {
        font-size: 1.5rem;
    }

    .mst-cta-title {
        font-size: 1.35rem;
    }
}

/* ============================================
   Utility classes
   ============================================ */
.mst-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mst-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

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

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