/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-gold: #b3872c;
    --primary-blue: #000000;
    --dark-blue: #0a1a33;
    --light-gold: #d4af37;
    --dark-gold: #9a7324;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #333333;
    --text-light: #666666;
    
    /* Functional Colors */
    --success-green: #28a745;
    --error-red: #dc3545;
    --warning-orange: #ffc107;
    --pending-yellow: #e68a00;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #b3872c 0%, #d4af37 100%);
    --gradient-blue: linear-gradient(135deg, #000000 0%, #0a1a33 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 58, 108, 0.9) 0%, rgba(10, 26, 51, 0.8) 100%);
    
    /* Shadows */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Transitions & Effects */
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 12px;
    
    /* Responsive Breakpoints */
    --breakpoint-xs: 480px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    body {
        overscroll-behavior-y: contain;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }
}

@media (max-width: 768px) {
    .hero {
        height: calc(100vh - 56px);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-gold);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    min-width: 44px;
}

@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(179, 135, 44, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(179, 135, 44, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ===== HEADER & NAVIGATION ===== */
.public-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
}

.public-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
}

/* Default desktop layout - single line */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: nowrap;
}

/* Logo on the left */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 15px rgba(179, 135, 44, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover .logo-image {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(179, 135, 44, 0.4);
}

.logo-text {
    font-weight: 800;
    font-size: 22px;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text span {
    color: var(--primary-gold);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* Navigation menu on the right */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-gray);
    margin: 0 12px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

@media (hover: none) and (pointer: coarse) {
    .main-nav a {
        padding: 15px;
        font-size: 16px;
    }
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.main-nav a:hover::before,
.main-nav a.active::before {
    left: 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    transform: translateY(-2px);
}

.staff-login {
    background: var(--gradient-gold);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 25px;
    margin-left: 15px !important;
    box-shadow: 0 4px 15px rgba(179, 135, 44, 0.3);
    transition: var(--transition);
    border: none;
}

.staff-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(179, 135, 44, 0.4);
}

.staff-login::before {
    display: none;
}

/* Enhanced Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.dropdown-content a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: var(--transition);
    border-bottom: 1px solid var(--medium-gray);
    margin: 0;
    border-radius: 0;
    white-space: normal;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a::before {
    display: none;
}

.dropdown-content a:hover {
    background: var(--gradient-gold);
    color: var(--white);
    transform: translateX(5px);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(179, 135, 44, 0.1);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== PAGE CONTENT ===== */
.page-content {
    margin-top: 90px;
    min-height: calc(100vh - 180px);
}

.page {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.page.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.8);
    transform: scale(1.1);
    transition: transform 10s ease;
}

.hero-slide.active .slide-image {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    padding-top: 35vh;
    transform: translateY(20px);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--white) 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== DIGITAL CLOCK ===== */
.digital-clock {
    position: absolute;
    top: 130px;
    right: 30px;
    color: var(--white);
    text-align: right;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 20px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInRight 0.8s ease 0.4s both;
}

.clock-time {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clock-date {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== CARDS GRID ===== */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.area-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.area-card:hover::before {
    transform: scaleX(1);
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.area-card i {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.3s ease;
}

.area-card:hover i {
    transform: scale(1.1);
}

.area-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-weight: 700;
}

.area-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== TEAM SECTION ===== */
.team-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.team-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-gold);
}

/* ===== PRINCIPAL PARTNER SECTION ===== */
.principal-partner-img-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.principal-partner-img-container::before {
    content: '👑';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    z-index: 10;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: gentleBounce 3s infinite ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-8px) scale(1.1); }
}

.principal-partner-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 30px;
    border: 5px solid #8B4513;
    box-shadow: 
        0 0 0 8px #D4AF37,
        0 0 30px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(212, 175, 55, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    transition: var(--transition);
    filter: brightness(1.05) contrast(1.1);
    animation: float 6s ease-in-out infinite;
}

.principal-partner-img:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 
        0 0 0 8px #D4AF37,
        0 0 40px rgba(0, 0, 0, 0.5),
        0 0 70px rgba(212, 175, 55, 0.8),
        inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.principal-name {
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.principal-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    animation: widthPulse 2s infinite ease-in-out;
}

@keyframes widthPulse {
    0%, 100% { width: 120px; }
    50% { width: 150px; }
}

/* ===== PARTNERS SECTION ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0.1;
    transition: left 0.4s ease;
}

.partner-card:hover::before {
    left: 0;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    max-width: 180px;
    max-height: 100px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    filter: grayscale(0.3);
}

.partner-card:hover .partner-logo {
    transform: scale(1.1);
    filter: grayscale(0);
}

.partner-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(179, 135, 44, 0.1);
}

.partner-website:hover {
    background: var(--gradient-gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== FIRM HISTORY SECTION ===== */
.firm-history {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f0f6ff 100%);
    position: relative;
    overflow: hidden;
}

.firm-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.history-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: justify;
}

.history-section {
    margin-bottom: 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    border-left: 5px solid var(--primary-gold);
}

.history-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.history-section h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.history-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.history-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark-gray);
    font-size: 16px;
}

.history-section ul, .history-section ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.history-section li {
    margin-bottom: 12px;
    color: var(--dark-gray);
    line-height: 1.7;
    position: relative;
}

.history-section li::before {
    content: '⚖️';
    position: absolute;
    left: -25px;
    top: 2px;
}

/* ===== CASE HIGHLIGHTS ===== */
.case-columns-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.case-column {
    flex: 1;
}

.case-category {
    margin-bottom: 50px;
}

.case-category h4 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.case-category h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
}

.case-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-gold);
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(179, 135, 44, 0.1), transparent);
    transition: left 0.5s ease;
}

.case-card:hover::before {
    left: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-card h4 {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.case-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #e6f7ee 0%, #d4f1e4 100%);
    color: #0c9952;
    border: 1px solid #0c9952;
}

.status-pending {
    background: linear-gradient(135deg, #fef5e6 0%, #fdebd0 100%);
    color: #e68a00;
    border: 1px solid #e68a00;
}

.status-closed {
    background: linear-gradient(135deg, #f2f2f2 0%, #e6e6e6 100%);
    color: #666;
    border: 1px solid #666;
}

/* Case Actions for PDF Downloads */
.case-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.purchase-case-btn {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 12px 20px;
}

/* Payment Info Banner */
.payment-info-banner {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--primary-gold);
}

.payment-info-banner i {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-info-banner p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.contact-form h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--light-gray);
    min-height: 44px;
}

@media (max-width: 768px) {
    .form-control {
        font-size: 16px;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(179, 135, 44, 0.1);
    transform: translateY(-2px);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-success {
    background: linear-gradient(135deg, #e6f7ee 0%, #d4f1e4 100%);
    color: #0c9952;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    display: none;
    border: 1px solid #0c9952;
    font-weight: 600;
}

.contact-info {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-right: 20px;
    margin-top: 5px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-item h3 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.social-media {
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(179, 135, 44, 0.3);
    min-height: 44px;
    min-width: 44px;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(179, 135, 44, 0.4);
}

.map-container {
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--white);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.footer-bottom {
    flex: 1;
}

.footer-bottom p {
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icons a {
    color: var(--white);
    font-size: 1.6rem;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-height: 44px;
    min-width: 44px;
}

.footer-social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--gradient-gold);
    box-shadow: 0 8px 25px rgba(179, 135, 44, 0.4);
}

/* ===== PAYMENT GATEWAY STYLES ===== */

/* Payment Status Indicator */
.payment-status {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.payment-status-success {
    background: linear-gradient(135deg, #e6f7ee 0%, #d4f1e4 100%);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.payment-status-pending {
    background: linear-gradient(135deg, #fef5e6 0%, #fdebd0 100%);
    color: var(--pending-yellow);
    border: 1px solid var(--pending-yellow);
}

.payment-status-failed {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

/* Customer Information Section */
.customer-info-section {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid var(--medium-gray);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.customer-info-section h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
}

.customer-info-section .form-group {
    margin-bottom: 20px;
}

.customer-info-section .form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* Enhanced Case Summary */
.case-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.case-summary h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.case-summary p {
    margin: 8px 0;
    color: var(--dark-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-summary strong {
    color: var(--primary-blue);
    min-width: 80px;
    display: inline-block;
}

/* Enhanced Payment Methods */
.payment-methods h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    min-width: 44px;
}

.payment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0.1;
    transition: left 0.3s ease;
}

.payment-option:hover::before {
    left: 0;
}

.payment-option:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.payment-option.active {
    border-color: var(--primary-gold);
    background: rgba(179, 135, 44, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(179, 135, 44, 0.15);
}

.payment-option i {
    font-size: 2.2rem;
    color: var(--primary-gold);
    margin-bottom: 12px;
    display: block;
    transition: var(--transition);
}

.payment-option.active i,
.payment-option:hover i {
    transform: scale(1.1);
}

.payment-option span {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.payment-option.active span {
    color: var(--primary-blue);
}

/* Enhanced Payment Forms */
.payment-form {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    border: 2px solid var(--medium-gray);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease;
}

.payment-form.active {
    display: block;
}

.payment-form h4 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
}

.payment-instruction {
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
    font-size: 0.95rem;
}

/* Card Payment Specific Styles */
.card-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.card-icons i {
    font-size: 1.8rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.card-icons i:hover {
    color: var(--primary-gold);
}

/* Form Row for Card Inputs */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.4s ease;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
}

@keyframes modalopen {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.close {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    min-height: 44px;
    min-width: 44px;
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

/* ===== STAFF LOGIN PAGE ===== */
.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--gradient-blue);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-container {
    display: flex;
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.firm-logo {
    text-align: center;
    margin-bottom: 40px;
}

.firm-logo img {
    max-width: 120px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.firm-logo:hover img {
    transform: scale(1.05);
}

.firm-logo h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.login-form {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.role-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 15px;
}

.role-option {
    text-align: center;
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 15px;
    transition: var(--transition);
    flex: 1;
    border: 2px solid transparent;
    min-width: 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    min-width: 44px;
}

.role-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: left 0.4s ease;
    opacity: 0.1;
}

.role-option:hover::before {
    left: 0;
}

.role-option:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.role-option.active {
    background: var(--white);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 15px 40px rgba(179, 135, 44, 0.15);
    transform: translateY(-3px);
}

.role-option i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
    display: block;
    transition: var(--transition);
}

.role-option.active i,
.role-option:hover i {
    transform: scale(1.1);
}

.role-option h3 {
    font-size: 1rem;
    color: var(--dark-gray);
    margin: 0;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}

.role-option.active h3,
.role-option:hover h3 {
    color: var(--primary-blue);
}

.error-message {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #d32f2f;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: none;
    font-size: 0.95rem;
    word-wrap: break-word;
    border: 1px solid #d32f2f;
    font-weight: 600;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.login-footer a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.login-footer a:hover {
    color: var(--dark-gold);
    text-decoration: underline;
}

/* ===== STAFF DASHBOARD ===== */
.dashboard-header {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.dashboard-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.user-profile:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 280px;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    padding: 30px 0;
    border-right: 1px solid var(--medium-gray);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.05);
}

.sidebar h2 {
    padding: 0 25px 25px;
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-gold);
    margin: 0 25px 20px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu a {
    padding: 16px 25px;
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    min-height: 44px;
    min-width: 44px;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: left 0.3s ease;
    opacity: 0.1;
}

.sidebar-menu a:hover::before {
    left: 0;
}

.sidebar-menu a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border-right: 4px solid var(--primary-gold);
}

.sidebar-menu a.active::before {
    display: none;
}

.sidebar-menu a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover i {
    transform: scale(1.1);
}

.main-content {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.dashboard-section {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.dashboard-section.active {
    display: block;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.election-case {
    border-left: 5px solid var(--primary-gold);
}

.card-actions {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.activity-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
    border-radius: 10px;
    padding-left: 15px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    color: var(--primary-gold);
    margin-right: 15px;
    font-size: 1.2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.activity-item p {
    flex: 1;
    margin: 0;
    font-weight: 500;
}

.activity-item small {
    color: var(--text-light);
    font-weight: 500;
}

.search-container {
    display: flex;
    margin-bottom: 25px;
    gap: 15px;
}

.search-container input {
    flex: 1;
    margin-right: 0;
}

.form-container {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-gold);
}

.form-container h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch;
}

.cases-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.cases-table th,
.cases-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.cases-table th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cases-table tr:last-child td {
    border-bottom: none;
}

.cases-table tr:hover td {
    background: rgba(179, 135, 44, 0.05);
    transform: translateX(5px);
}

.hearing-item,
.deadline-item {
    padding: 20px;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.hearing-item:hover,
.deadline-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
    border-radius: 10px;
}

.hearing-item:last-child,
.deadline-item:last-child {
    border-bottom: none;
}

.deadline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deadline-date {
    background: var(--gradient-gold);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(179, 135, 44, 0.3);
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.records-table th,
.records-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.records-table th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.records-table tr:last-child td {
    border-bottom: none;
}

.records-table tr:hover td {
    background: rgba(179, 135, 44, 0.05);
    transform: translateX(5px);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.spinner-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.4s ease;
}

.spinner-content i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    display: block;
}

.spinner-content p {
    color: var(--dark-gray);
    font-weight: 600;
    margin: 0;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(179, 135, 44, 0.4);
    transition: var(--transition);
    z-index: 1000;
    min-height: 44px;
    min-width: 44px;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(179, 135, 44, 0.5);
}

.scroll-to-top.visible {
    display: flex;
}

/* ===== RESPONSIVE STYLES ===== */

/* Large devices (desktops, 992px and up) */
@media (max-width: 1200px) {
    .hero-content {
        padding-top: 30vh;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .digital-clock {
        top: 100px;
        right: 20px;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .logo {
        margin-bottom: 20px;
        justify-content: center;
        width: 100%;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .digital-clock {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin: 30px auto;
        width: auto;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .case-columns-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .payment-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .login-container {
        flex-direction: column;
        max-width: 600px;
        min-height: auto;
    }
    
    .login-form {
        padding: 30px;
    }
}

/* Mobile layout - two lines with clear division */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    /* First line: Logo and company name */
    .logo {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--medium-gray);
        margin-bottom: 10px;
        justify-content: flex-start;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    /* Second line: Navigation menu */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 1000;
        justify-content: flex-start;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 5px 0;
        width: 100%;
    }
    
    .main-nav a {
        margin: 10px 0;
        padding: 15px;
        font-size: 1rem;
        background-color: var(--light-gray);
        border-radius: var(--radius);
        width: 100%;
        display: block;
    }
    
    .main-nav a:hover {
        background-color: var(--primary-gold);
        color: white;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        margin: 10px 0 10px 20px;
        background: rgba(179, 135, 44, 0.05);
        width: calc(100% - 20px);
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .hero-content {
        padding-top: 25vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* Adjust main content margin for two-line header */
    .page-content {
        margin-top: 130px;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .sidebar.active {
        max-height: 500px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cases-table, .records-table {
        min-width: 600px;
    }
}

/* Small devices (phones, 576px and up) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-carousel {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .main-nav ul {
        gap: 8px;
    }
    
    .main-nav a {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .principal-partner-img {
        width: 200px;
        height: 200px;
    }
    
    .team-photo {
        width: 160px;
        height: 160px;
    }
    
    .history-section {
        padding: 30px 20px;
    }
    
    .case-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .role-selector {
        flex-direction: column;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .customer-info-section,
    .case-summary,
    .payment-form {
        padding: 20px;
    }
    
    .page-content {
        margin-top: 120px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .public-header,
    .footer,
    .btn,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .page-content {
        margin-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .area-card,
    .partner-card,
    .case-card,
    .history-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}