:root {
    --gold: #d4af37;
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.5);
    --text: #f0f0f0;
    --muted: #a0a0a0;
    --error: #ef4444;
    --dark: #1a1a1a;
    --gray-700: #374151;
    --primary-gold: #d4af37;
    --dark-bg: #0f0f0f;
    --dark-card: rgba(30, 30, 30, 0.3);
    --text-light: #ffffff;
    --text-muted: #94a3b8;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Glass Cards */
.glass-card {
    backdrop-filter: blur(24px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.backdrop-blur-xl, .backdrop-blur-md {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
}

.form-label {
    position: absolute;
    left: 1.25rem;
    top: -0.75rem;
    padding: 0 0.5rem;
    background: linear-gradient(to right, transparent, var(--dark), transparent);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    transition: all 0.3s;
    pointer-events: none;
}

.form-input::placeholder ~ .form-label,
.form-textarea::placeholder ~ .form-label {
    top: 1rem;
    font-size: 1rem;
    color: var(--muted);
}

.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--gold);
}

.select-group .form-label {
    position: static;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    background: none;
}

/* Form Elements - Dark Theme */
.form-control, .form-select {
    background-color: var(--dark-card);
    border: 1px solid #333;
    color: var(--text-light);
}

.form-control:focus, .form-select:focus {
    background-color: var(--dark-card);
    border-color: var(--primary-gold);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(249, 168, 38, 0.25);
}

.form-input-dark {
    background-color: #0F0F0F !important;
    border: 1px solid #333 !important;
    color: #E5E5E5 !important;
}

.form-input-dark:focus {
    background-color: #0F0F0F !important;
    border-color: #F9A826 !important;
    color: #E5E5E5 !important;
    box-shadow: 0 0 0 2px rgba(249, 168, 38, 0.2) !important;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Button Styles */
.btn-gold {
    background: linear-gradient(to right, var(--gold), #f59e0b);
    color: #1a1a1a;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--gold);
    color: #1a1a1a;
    border-color: var(--gold);
}

.btn-gold-primary {
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(249, 168, 38, 0.4);
}

.btn-gold-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(249, 168, 38, 0.6);
}

/* Step Progress */
.step {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #f0f0f0;
    transition: all 0.3s;
}

.step.active {
    background: var(--gold);
    color: #1a1a1a;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: scale(1.1);
}

.line {
    width: 5rem;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 0 0.5rem;
}

/* Form Validation */
.form-error {
    position: absolute;
    left: 0;
    bottom: -1.25rem;
    font-size: 0.75rem;
    color: var(--error);
    opacity: 0;
    transition: opacity 0.3s;
}

.field-validation-error ~ .form-error {
    opacity: 1;
}

.field-validation-error ~ .form-input,
.field-validation-error ~ .form-textarea {
    border-color: var(--error);
    animation: shake 0.4s ease-in-out;
}

/* Image Styles */
.profile-image {
    width: 10rem;
    height: 10rem;
    border-radius: 9999px;
    object-fit: cover;
    border-width: 4px;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease-in-out;
}

.profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.8);
}

.document-preview {
    width: 12rem;
    height: 12rem;
    border-radius: 1rem;
    object-fit: cover;
    border: 4px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease-in-out;
}

.document-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

/* Cards & Components */
.service-card, .contractor-card {
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.service-card:hover, .contractor-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 25px rgba(249, 168, 38, 0.15);
}

.stat-card {
    background: linear-gradient(135deg, #1C1C1C 0%, #2D2D2D 100%);
    border-left: 4px solid var(--primary-gold);
}

.card {
    background-color: var(--dark-card);
    border: 1px solid #333;
    border-radius: 0.75rem;
}

/* Header & Navigation */
.header-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    backdrop-filter: blur(10px);
    background-color: rgba(15, 15, 15, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 40;
    overflow-y: auto;
    background-color: #1C1C1C;
}

#mobile-menu.open {
    transform: translateX(0);
}

#backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

#backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

/* Tables */
.table {
    color: var(--text-light);
}

.table th {
    background-color: var(--dark-card);
    border-color: #333;
    color: var(--text-light);
}

.table td {
    border-color: #333;
    background-color: var(--dark-bg);
}

/* Modals */
.modal-content {
    background-color: var(--dark-card);
    color: var(--text-light);
}

.modal-header, .modal-footer {
    border-color: #333;
}

/* Tabs */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary-gold);
    color: var(--primary-gold);
}

.nav-tabs .nav-link {
    transition: all 0.3s ease;
}

/* Badges */
.badge.bg-success {
    background-color: var(--primary-gold) !important;
    color: var(--dark-bg) !important;
}

/* Text & Background Utilities */
.text-primary { color: var(--primary-gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-light { background-color: var(--dark-card) !important; }
.border-gold { border-color: var(--primary-gold) !important; }
.bg-gold { background-color: var(--primary-gold) !important; }
.text-gold { color: var(--primary-gold) !important; }
.bg-dark-bg { background-color: var(--dark-bg); }
.text-primary-gold { color: var(--primary-gold); }
.text-text-light { color: var(--text-light); }
.text-text-muted { color: var(--text-muted); }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Custom Form Elements */
.custom-radio:checked, .custom-checkbox:checked {
    background-color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
}

/* Password Strength */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.strength-0 { background-color: #ef4444; width: 20%; }
.strength-1 { background-color: #f97316; width: 40%; }
.strength-2 { background-color: #eab308; width: 60%; }
.strength-3 { background-color: #84cc16; width: 80%; }
.strength-4 { background-color: #22c55e; width: 100%; }

/* 3D Effects */
.perspective-1000 { perspective: 1000px; }
.preserve-3d { transform-style: preserve-3d; }
.backface-hidden { backface-visibility: hidden; }
.rotate-y-180 { transform: rotateY(180deg); }
.group-hover\:rotate-y-180:hover { transform: rotateY(180deg); }

/* Floating Labels */
.peer:focus ~ label,
.peer:not(:placeholder-shown) ~ label {
    top: -0.625rem;
    font-size: 0.75rem;
    color: var(--primary-gold);
}

/* Remove Button */
.remove-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background-color: rgba(209, 213, 219, 0.8);
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
}

.group:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background-color: rgba(248, 113, 113, 0.8);
    color: white;
}

/* Pagination & Slider */
.pagination-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255,255,255,0.1);
    color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

/* Scrollbar */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Text Utilities */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dropdown */
.dropdown-menu {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.dropdown-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Spacing Utilities */
.mt-50 { margin-top: 500px; }
.pt-20 { padding-top: 200px; }
.pt-30 { padding-top: 300px; }

/* Animation Keyframes */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoom-in-95 {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

/* Animation Classes */
.animate-slide-in {
    animation: slideInRight 0.4s ease-out forwards;
}

.animate-slide-out {
    animation: slideOutRight 0.4s ease-in forwards;
}

.animate-kenburns {
    animation: kenburns 20s ease-in-out infinite alternate;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-slide-in-right {
    animation: slide-in-right 0.5s ease-out;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.animate-in {
    animation-duration: 0.2s;
    animation-fill-mode: both;
}

.zoom-in-95 {
    animation-name: zoom-in-95;
}

/* Particle Effect */
.particle {
    position: absolute;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

/* Toast Notification */
.toast-notification {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    h1, h2, h3 {
        font-size: calc(1.5rem + 1vw);
    }
}


/* === CUSTOM SCROLLBAR – REUSABLE CLASS === */
.custom-scrollbar {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #facc15 #1a1a1a; /* thumb + track */
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px; /* Chrome/Safari/Edge */
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #facc15;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #fde047;
}

/* Optional: Hide scrollbar when not hovering (cleaner look) */
.custom-scrollbar {
    overflow-y: auto;
}

.custom-scrollbar:not(:hover)::-webkit-scrollbar-thumb {
    background: rgba(250, 204, 21, 0.3);
}


.hide-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}