:root {
    --bg-main: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --bg-input: #1a1a1a;
    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.1);
    
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --font-main: 'Source Sans 3', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    --glass: blur(10px) saturate(180%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
}

/* Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    background: var(--bg-main);
}

/* Sidebar Branding */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #000;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: -0.5px;
}

/* Nav Menu */
.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-link svg {
    width: 20px;
    height: 20px;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.03), transparent);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--accent);
    color: #000;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.stat-trend {
    font-size: 12px;
    margin-top: 8px;
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* Table Styles */
.card-table {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 16px 24px;
    background: rgba(255,255,255,0.02);
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

tr:hover td {
    background: rgba(255,255,255,0.01);
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--accent); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--info); }

/* Pipeline View */
.pipeline-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    min-height: calc(100vh - 200px);
}

.pipeline-column {
    flex: 0 0 300px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.column-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.lead-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: grab;
    transition: all 0.2s ease;
}

.lead-card:active {
    cursor: grabbing;
}

.lead-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.lead-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.lead-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Modal/Form Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Delete Confirmation Modal */
.modal-delete {
    max-width: 400px !important;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.delete-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    width: 100%;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 80px; padding: 24px 16px; }
    .brand-name, .nav-link span { display: none; }
    .main-content { margin-left: 80px; }
}

/* Leads Listing Styles */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-item {
    flex: 1;
    min-width: 200px;
}
.search-input {
    position: relative;
}
.search-input svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}
.search-input input {
    padding-left: 44px;
}

/* Product Management Styles */
.product-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.product-tab {
    padding: 12px 0;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    position: relative;
}
.product-tab.active {
    color: var(--accent);
}
.product-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.product-image {
    height: 180px;
    background: #222;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-content {
    padding: 20px;
}
.product-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
}

/* Login Illustration */
.login-illustration {
    margin-bottom: 30px;
    text-align: center;
}
.login-illustration svg {
    width: 80px;
    height: 80px;
    color: var(--accent);
}

 / *   P i p e l i n e   S t y l e s   * / 
 . p i p e l i n e - c o l u m n   { 
         m i n - w i d t h :   3 2 0 p x ; 
         h e i g h t :   1 0 0 % ; 
 } 
 . p i p e l i n e - l i s t   { 
         m i n - h e i g h t :   5 0 0 p x ; 
         p a d d i n g :   8 p x   0 ; 
 } 
 . l e a d - c a r d   { 
         m a r g i n - b o t t o m :   1 2 p x ; 
 } 
 . d r a g - g h o s t   { 
         o p a c i t y :   0 . 5 ; 
         b a c k g r o u n d :   v a r ( - - a c c e n t - s o f t ) ; 
 } 
  
 
 / *   F o r m   S t y l e s   * / 
 . f o r m - s e c t i o n   { 
         b a c k g r o u n d :   v a r ( - - b g - c a r d ) ; 
         p a d d i n g :   3 2 p x ; 
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s - m d ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ; 
         m a r g i n - b o t t o m :   2 4 p x ; 
 } 
 . i m a g e - u p l o a d - g r i d   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i l l ,   m i n m a x ( 1 2 0 p x ,   1 f r ) ) ; 
         g a p :   1 2 p x ; 
         m a r g i n - t o p :   1 2 p x ; 
 } 
 . i m a g e - u p l o a d - b o x   { 
         a s p e c t - r a t i o :   1 ; 
         b o r d e r :   2 p x   d a s h e d   v a r ( - - b o r d e r ) ; 
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s - s m ) ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
 } 
 . i m a g e - u p l o a d - b o x : h o v e r   { 
         b o r d e r - c o l o r :   v a r ( - - a c c e n t ) ; 
         c o l o r :   v a r ( - - a c c e n t ) ; 
 } 
 . t y p e - s p e c i f i c - s e c t i o n   { 
         d i s p l a y :   n o n e ; 
 } 
 . t y p e - s p e c i f i c - s e c t i o n . a c t i v e   { 
         d i s p l a y :   b l o c k ; 
 } 
  
 