/* ============================================
   TemplateMo 3D Glassmorphism Dashboard
   https://templatemo.com
   CSS Stylesheet
============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
============================================ */
:root {
    /* Primary Colors - Emerald & Gold Luxury */
    --emerald: #059669;
    --emerald-light: #34d399;
    --gold: #d4a574;
    --gold-light: #e8c9a0;
    --amber: #b45309;
    --cream: #fef3e2;
    
    /* Accent Colors */
    --coral: #e07a5f;
    --slate: #475569;
    
    /* Glass Colors */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Background - Deep Forest */
    --bg-dark: #0a0f0d;
    --bg-gradient-1: #0d1a14;
    --bg-gradient-2: #132419;
    --bg-gradient-3: #1a2e23;
    
    /* Text */
    --text-primary: #f5f5f4;
    --text-secondary: rgba(245, 245, 244, 0.7);
    --text-muted: rgba(245, 245, 244, 0.4);
    
    /* Status Colors */
    --success: #22c55e;
    --warning: #eab308;
    --danger: #dc2626;
    --info: #0ea5e9;
    
    /* Spacing */
    --sidebar-width: 280px;
    --navbar-height: 70px;
    --border-radius: 20px;
    --card-padding: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Light Mode */
[data-theme="light"] {
    /* Glass Colors - Light */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.8);
    
    /* Background - Light */
    --bg-dark: #f5f5f0;
    --bg-gradient-1: #e8f5e9;
    --bg-gradient-2: #f1f8e9;
    --bg-gradient-3: #fefefe;
    
    /* Text - Light */
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.7);
    --text-muted: rgba(26, 26, 26, 0.5);
}

[data-theme="light"] .orb {
    opacity: 0.15;
}

[data-theme="light"] .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

[data-theme="light"] .stat-value {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chart-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .activity-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
}

/* ============================================
   RESET & BASE STYLES
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   ANIMATED BACKGROUND
============================================ */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(120, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(255, 0, 200, 0.1) 0%, transparent 50%);
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--emerald);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--gold);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--coral);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ============================================
   LAYOUT STRUCTURE
============================================ */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 24px;
    z-index: 100;
    transition: all var(--transition-normal);
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-light);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
}

.logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--emerald-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section {
    margin-bottom: 25px;
    list-style: none;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 15px;
}

.nav-item {
    margin-bottom: 5px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.nav-icon {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

/* Sidebar User Profile */
.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-profile:hover {
    background: var(--glass-hover);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
}

/* ============================================
   TOP NAVBAR
============================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 280px;
    padding: 12px 20px 12px 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.nav-btn {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--coral);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--coral);
}

/* ============================================
   GLASS CARD BASE
============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 50px -12px var(--glass-shadow),
        0 0 40px rgba(52, 211, 153, 0.1);
}

/* 3D Tilt Effect */
.glass-card-3d {
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.glass-card-3d:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

/* ============================================
   STATS CARDS
============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    position: relative;
}

.stat-card-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-change.positive {
    color: var(--success);
    background: rgba(34, 197, 94, 0.15);
}

.stat-change.negative {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.cyan {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.05));
    box-shadow: 0 8px 32px rgba(52, 211, 153, 0.2);
}

.stat-icon.magenta {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.05));
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.2);
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.2), rgba(224, 122, 95, 0.05));
    box-shadow: 0 8px 32px rgba(224, 122, 95, 0.2);
}

.stat-icon.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2);
}

.stat-icon svg {
    width: 26px;
    height: 26px;
}

/* Sparkline in stat card */
.stat-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    opacity: 0.3;
}

/* ============================================
   CONTENT GRID
============================================ */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* ============================================
   CHART CARD
============================================ */
.chart-card {
    min-height: 380px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-btn {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-btn:hover,
.card-btn.active {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
    color: var(--text-primary);
}

/* Chart Container */
.chart-wrapper {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.chart-wrapper::-webkit-scrollbar {
    height: 8px;
}

.chart-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.chart-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
}

.chart-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--emerald-light), var(--gold-light));
}

.chart-container {
    height: 250px;
    position: relative;
    display: flex;
    min-width: 500px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    padding-right: 12px;
    text-align: right;
}

.y-value {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.chart-placeholder {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 20px 0;
    border-left: 1px solid var(--glass-border);
    padding-left: 12px;
}

.chart-bar-group {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--emerald-light), var(--emerald));
    transition: all var(--transition-normal);
    position: relative;
    min-height: 10px;
}

.chart-bar.bar-emerald {
    background: linear-gradient(180deg, #6db897, #3d8b6e);
}

.chart-bar.bar-gold {
    background: linear-gradient(180deg, #c9b896, #a89068);
}

.chart-bar.bar-coral {
    background: linear-gradient(180deg, #d4a090, #b87a68);
}

.chart-bar.bar-teal {
    background: linear-gradient(180deg, #7ac4b8, #4a9e92);
}

.chart-bar.bar-amber {
    background: linear-gradient(180deg, #d4b06a, #a88542);
}

.chart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 8px 8px 0 0;
}

.chart-bar:hover {
    filter: brightness(1.15);
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.chart-bar.bar-emerald:hover {
    box-shadow: 0 0 16px rgba(61, 139, 110, 0.4);
}

.chart-bar.bar-gold:hover {
    box-shadow: 0 0 16px rgba(168, 144, 104, 0.4);
}

.chart-bar.bar-coral:hover {
    box-shadow: 0 0 16px rgba(184, 122, 104, 0.4);
}

.chart-bar.bar-teal:hover {
    box-shadow: 0 0 16px rgba(74, 158, 146, 0.4);
}

.chart-bar.bar-amber:hover {
    box-shadow: 0 0 16px rgba(168, 133, 66, 0.4);
}

.chart-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   ACTIVITY FEED
============================================ */
.activity-card {
    max-height: 380px;
    display: flex;
    flex-direction: column;
}

.activity-list {
    flex: 1;
    overflow-y: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-track {
    background: transparent;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.activity-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   DATA TABLE
============================================ */
.table-card {
    grid-column: span 2;
}

.table-wrapper {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--emerald-light), var(--gold-light));
}

.data-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.data-table tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--glass-hover);
}

.data-table td {
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.table-user-info {
    display: flex;
    flex-direction: column;
}

.table-user-name {
    color: var(--text-primary);
    font-weight: 500;
}

.table-user-email {
    font-size: 12px;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge.completed::before {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-badge.pending::before {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.status-badge.processing::before {
    background: var(--info);
    box-shadow: 0 0 8px var(--info);
}

.table-amount {
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   PROGRESS BARS
============================================ */
.progress-card {
    padding: var(--card-padding);
}

.progress-item {
    margin-bottom: 24px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label {
    font-size: 14px;
    font-weight: 500;
}

.progress-value {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
}

.progress-fill.cyan {
    background: linear-gradient(90deg, var(--emerald-light), var(--emerald));
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

.progress-fill.magenta {
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

.progress-fill.purple {
    background: linear-gradient(90deg, var(--coral), var(--amber));
    box-shadow: 0 0 20px rgba(224, 122, 95, 0.4);
}

/* ============================================
   BOTTOM GRID
============================================ */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================
   CALENDAR WIDGET
============================================ */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.calendar-nav-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-day:hover {
    background: var(--glass-hover);
}

.calendar-day.other-month {
    color: var(--text-muted);
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

/* ============================================
   DONUT CHART
============================================ */
.donut-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.donut-chart {
    width: 140px;
    height: 140px;
    position: relative;
}

.donut-chart svg {
    transform: rotate(-90deg);
}

.donut-chart circle {
    fill: none;
    stroke-width: 20;
}

.donut-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.donut-segment {
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-value {
    font-family: 'Space Mono', monospace;
    font-size: 28px;
    font-weight: 700;
}

.donut-label {
    font-size: 12px;
    color: var(--text-muted);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-color.cyan { background: var(--emerald-light); }
.legend-color.magenta { background: var(--gold); }
.legend-color.purple { background: var(--coral); }

/* ============================================
   WEATHER WIDGET
============================================ */
.weather-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.weather-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(212, 165, 116, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon svg {
    width: 45px;
    height: 45px;
    color: var(--emerald-light);
}

.weather-temp {
    font-family: 'Space Mono', monospace;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.weather-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.weather-detail {
    text-align: center;
    padding: 12px;
    background: var(--glass-bg);
    border-radius: 12px;
}

.weather-detail-value {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.weather-detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================
   MOBILE MENU TOGGLE
============================================ */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    border: none;
    border-radius: 16px;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* ============================================
   LOGIN PAGE STYLES
============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    margin: 0 auto 20px;
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.3);
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--emerald);
}

.forgot-link {
    font-size: 14px;
    color: var(--emerald-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    font-size: 13px;
    color: var(--text-muted);
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.login-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--emerald-light);
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--gold);
}

/* ============================================
   PAGE HEADER (for inner pages)
============================================ */
.page-header {
    margin-bottom: 30px;
}

.page-header .page-title {
    margin-bottom: 8px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.page-breadcrumb a:hover {
    color: var(--emerald-light);
}

.page-breadcrumb span {
    color: var(--text-muted);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    text-align: center;
    padding: 20px;
    margin-left: var(--sidebar-width);
    color: var(--text-muted);
    font-size: 14px;
}

.site-footer a {
    color: var(--emerald-light);
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--gold);
}

/* Login/Register page footer */
.login-page .site-footer {
    margin-left: 0;
    position: relative;
    padding: 30px 20px;
    text-align: center;
    margin-top: 30px;
}

/* Floating Theme Toggle for Login/Register */
.theme-toggle-float {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all var(--transition-fast);
}

.theme-toggle-float:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.theme-toggle-float svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* ============================================
   SETTINGS PAGE
============================================ */
.settings-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.settings-nav {
    list-style: none;
}

.settings-nav-item {
    margin-bottom: 8px;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.settings-nav-link:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.settings-nav-link.active {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.settings-nav-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.settings-nav-link.active svg,
.settings-nav-link:hover svg {
    opacity: 1;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-label-title {
    font-weight: 500;
    color: var(--text-primary);
}

.settings-label-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    border-color: var(--emerald);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background: white;
}

/* Settings Select Dropdown */
.settings-select {
    padding: 10px 16px;
    background: rgba(19, 36, 25, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    min-width: 150px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.settings-select:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.15);
}

.settings-select option {
    background: rgba(19, 36, 25, 0.98);
    color: var(--text-primary);
    padding: 10px;
}

[data-theme="light"] .settings-select {
    background-color: rgba(245, 245, 240, 0.95);
}

[data-theme="light"] .settings-select option {
    background: rgba(245, 245, 240, 0.98);
    color: #1a1a1a;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 36px;
    position: relative;
}

.profile-avatar-edit {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-avatar-edit:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.profile-avatar-edit svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Settings Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-settings.full-width {
    grid-column: span 2;
}

.form-group-settings label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group-settings input,
.form-group-settings textarea {
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.form-group-settings input:focus,
.form-group-settings textarea:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.15);
}

.form-group-settings textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Settings Tab Content */
.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
    animation: settingsFadeIn 0.3s ease;
}

@keyframes settingsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .table-card {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-left: 0;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-nav-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .donut-container {
        flex-direction: column;
    }

    .login-card {
        padding: 36px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-settings.full-width {
        grid-column: span 1;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }
    
    .glass-card {
        padding: 18px;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }

    .social-login {
        flex-direction: column;
    }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.stats-grid .glass-card:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .glass-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .glass-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .glass-card:nth-child(4) { animation-delay: 0.4s; }

.content-grid .glass-card:nth-child(1) { animation-delay: 0.5s; }
.content-grid .glass-card:nth-child(2) { animation-delay: 0.6s; }
.content-grid .glass-card:nth-child(3) { animation-delay: 0.7s; }

.bottom-grid .glass-card:nth-child(1) { animation-delay: 0.8s; }
.bottom-grid .glass-card:nth-child(2) { animation-delay: 0.9s; }
.bottom-grid .glass-card:nth-child(3) { animation-delay: 1s; }

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   diamonds.html css started
============================================ */
/* ============================================
   TemplateMo 607 Glass Admin
   Diamond Search Page Styles
   Add these rules to templatemo-glass-admin-style.css
   OR keep as separate file linked in diamonds.html
============================================ */

/* ============================================
   TemplateMo 607 Glass Admin
   Diamond Search Page Styles
   Add these rules to templatemo-glass-admin-style.css
   OR keep as separate file linked in diamonds.html
============================================ */

/* ── Filter Card ── */
.diamond-filter-card {
    padding: 28px 28px 20px;
}

/* ── Filter Label ── */
.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-info {
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.filter-info:hover { opacity: 1; color: var(--emerald-light); }

/* ── Shape Grid ── */
.filter-section { margin-bottom: 24px; }
.shape-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.shape-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 14px;
    padding: 10px 14px 8px;
    cursor: pointer;
    transition: all 0.22s ease;
    color: var(--text-secondary);
    min-width: 72px;
}
.shape-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
    color: var(--emerald-light);
    transform: translateY(-2px);
}
.shape-btn.active {
    background: rgba(52, 211, 153, 0.12);
    border-color: var(--emerald-light);
    color: var(--emerald-light);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.15);
}
.shape-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shape-icon svg {
    width: 100%;
    height: 100%;
}
.shape-name {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Filter Row Grids ── */
.filter-row-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}
.filter-row-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}
.filter-row-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}
.filter-row-lw-lab {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    margin-bottom: 20px;
}

/* ── Dual Range Slider ── */
.filter-field { position: relative; }
.range-track-wrap {
    position: relative;
    height: 22px;
    margin-bottom: 10px;
}
.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}
.range-track::after {
    content: '';
    position: absolute;
    top: -1px;
    left: var(--track-left, 0%);
    width: var(--track-width, 100%);
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
}
.diamond-range {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 1;
    outline: none;
}
.diamond-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--emerald-light);
    border: 2px solid var(--bg-dark);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
    transition: box-shadow 0.2s;
}
.diamond-range::-webkit-slider-thumb:hover,
.diamond-range::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.3);
}
.diamond-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--emerald-light);
    border: 2px solid var(--bg-dark);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

/* ── Range Numeric Inputs ── */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.range-num-input {
    width: 80px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 5px 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Space Mono', monospace;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
}
.range-num-input:focus { border-color: var(--emerald-light); }
/* Chrome number input arrows */
.range-num-input::-webkit-outer-spin-button,
.range-num-input::-webkit-inner-spin-button { opacity: 0.4; }

/* ── Range Tick Labels ── */
.range-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 2px;
}
.range-ticks span {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

/* ── Custom Checkbox ── */
.diamond-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
    transition: color 0.2s;
}
.diamond-check-label:hover { color: var(--text-primary); }
.diamond-checkbox { display: none; }
.diamond-check-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--glass-border);
    border-radius: 5px;
    background: var(--glass-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}
.diamond-check-box::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0) translateY(-1px);
    transition: transform 0.15s;
    display: block;
}
.diamond-checkbox:checked ~ .diamond-check-box {
    background: var(--emerald);
    border-color: var(--emerald);
}
.diamond-checkbox:checked ~ .diamond-check-box::after { transform: rotate(-45deg) scale(1) translateY(-1px); }

/* ── Lab Badges ── */
.lab-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    border: 1px solid;
}
.lab-badge.gia { background: rgba(52, 211, 153, 0.1); color: var(--emerald-light); border-color: rgba(52, 211, 153, 0.3); }
.lab-badge.igi { background: rgba(212, 165, 116, 0.1); color: var(--gold); border-color: rgba(212, 165, 116, 0.3); }
.lab-badge.gcal { background: rgba(14, 165, 233, 0.1); color: var(--info); border-color: rgba(14, 165, 233, 0.3); }

/* ── Filter Action Buttons ── */
.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
    margin-top: 8px;
}
.diamond-btn-clear {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s;
}
.diamond-btn-clear:hover { border-color: var(--danger); color: #f87171; background: rgba(220, 38, 38, 0.07); }
.diamond-btn-more {
    background: var(--glass-bg);
    border: 1.5px solid var(--emerald-light);
    color: var(--emerald-light);
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s;
}
.diamond-btn-more:hover { background: rgba(52, 211, 153, 0.12); }

/* ── More Filters Panel ── */
.more-filters-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 28px;
    margin-bottom: 0 !important;
    border: none;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                margin 0.3s ease;
    opacity: 0;
}
.more-filters-panel.open {
    max-height: 700px;
    padding: 28px 28px 20px;
    margin-bottom: 16px !important;
    opacity: 1;
}
.more-filters-inner { animation: fadeSlideIn 0.3s ease; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Results Card ── */
.diamond-results-card { padding: 20px 24px 24px; }

/* ── Results Header ── */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}
.results-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.result-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}
.result-tab:hover { color: var(--text-primary); background: var(--glass-bg); }
.result-tab.active { background: var(--glass-bg); color: var(--text-primary); border: 1px solid var(--glass-border); }
.result-count {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
}
.result-tab.active .result-count { background: rgba(52, 211, 153, 0.12); color: var(--emerald-light); border-color: rgba(52, 211, 153, 0.25); }

.results-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Stock Search */
.diamond-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 7px 12px;
    min-width: 160px;
    transition: border-color 0.2s;
}
.diamond-search-wrap:focus-within { border-color: var(--emerald-light); }
.diamond-search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    width: 100%;
}
.diamond-search-input::placeholder { color: var(--text-muted); }

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
}
.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 7px 11px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    line-height: 1;
}
.view-btn.active { background: var(--emerald); color: #fff; }
.view-btn:hover:not(.active) { color: var(--emerald-light); }

/* Sort Select */
.diamond-sort-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.2s;
}
.diamond-sort-select:focus { border-color: var(--emerald-light); }
.diamond-sort-select option { background: var(--bg-gradient-2); }

/* ── Diamond Grid ── */
.diamond-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    padding: 4px 0;
}
.diamond-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}
.diamond-card:hover {
    border-color: var(--emerald-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.diamond-card.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.25);
}
.diamond-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.diamond-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.diamond-card:hover .diamond-card-img img { transform: scale(1.05); }
.diamond-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    gap: 8px;
}
.diamond-card:hover .diamond-card-overlay { opacity: 1; }
.diamond-overlay-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Outfit', sans-serif;
}
.diamond-overlay-btn:hover { background: rgba(255,255,255,0.25); }
.diamond-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}
.badge-360 { background: rgba(52,211,153,0.2); color: var(--emerald-light); border: 1px solid rgba(52,211,153,0.3); }
.badge-fast { background: rgba(14,165,233,0.2); color: var(--info); border: 1px solid rgba(14,165,233,0.3); }
.diamond-compare-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    border: 1.5px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    color: #fff;
}
.diamond-compare-check.checked { background: var(--gold); border-color: var(--gold); }
.diamond-card-body {
    padding: 12px 14px 14px;
}
.diamond-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}
.diamond-card-specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.diamond-spec-badge {
    font-size: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Space Mono', monospace;
}
.diamond-card-price {
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--emerald-light);
}
.diamond-card-old-price {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}
.diamond-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.diamond-action-btn {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Outfit', sans-serif;
}
.diamond-action-btn:hover { border-color: var(--emerald-light); color: var(--emerald-light); }
.diamond-action-btn.wishlist:hover { border-color: var(--coral); color: var(--coral); }

/* ── Table header nowrap + sort indicator ── */
.th-nowrap {
    white-space: nowrap;
}
.sortable.th-nowrap { cursor: pointer; user-select: none; }
.sortable.th-nowrap:hover { color: var(--emerald-light); }
.sortable.th-nowrap::after {
    content: ' ⇅';
    font-size: 10px;
    opacity: 0.4;
    margin-left: 2px;
}
.sortable.th-nowrap.sort-asc::after  { content: ' ↑'; opacity: 1; color: var(--emerald-light); }
.sortable.th-nowrap.sort-desc::after { content: ' ↓'; opacity: 1; color: var(--emerald-light); }

/* ── Table View — Fix left-bleed on horizontal scroll ── */
#listView .table-wrapper {
    margin: 0;
    padding: 0;
    border-radius: 10px;
    overflow-x: auto;
    max-width: 100%;
}
#listView .data-table {
    min-width: 900px;
    width: 100%;
}
/* Prevent the results card itself from pushing body width */
.diamond-results-card {
    min-width: 0;
    overflow: hidden;
}
#listView {
    min-width: 0;
    width: 100%;
}

/* ── Table View — Override Bootstrap white backgrounds ── */
.data-table.table,
.data-table.table > :not(caption) > * > *,
.data-table.table > thead,
.data-table.table > tbody,
.data-table.table > thead > tr,
.data-table.table > tbody > tr,
.data-table.table > thead > tr > th,
.data-table.table > tbody > tr > td {
    background-color: transparent !important;
    color: inherit;
}
.data-table.table-hover > tbody > tr:hover > * {
    background-color: var(--glass-hover) !important;
    color: var(--text-secondary);
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
}
/* Kill Bootstrap's internal CSS vars that inject white */
.data-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-striped-color: inherit;
    --bs-table-active-bg: transparent;
    --bs-table-active-color: inherit;
    --bs-table-hover-bg: transparent;
    --bs-table-hover-color: inherit;
    color: var(--text-secondary);
}
.data-table.table-hover tbody tr { transition: background 0.15s; }
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--emerald-light); }

/* ── Compare Tray ── */
.compare-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.compare-tray-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.compare-slots { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.compare-slot {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}
.compare-slot-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.compare-slot-remove:hover { color: var(--danger); }

/* ── Loading Skeleton ── */
.skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(255,255,255,0.04) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Page-level overflow containment ── */
.main-content {
    overflow-x: hidden;
    min-width: 0;
}

/* ── Stats Bar View Toggle ── */
.stats-view-toggle {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.stats-view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 11px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stats-view-btn:hover:not(.active) {
    color: var(--emerald-light);
    background: rgba(52, 211, 153, 0.07);
}
.stats-view-btn.active {
    background: var(--emerald);
    color: #fff;
}

/* ── Diamond Stats Bar ── */
.diamond-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 20px;
}
.diamond-stats-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.diamond-stats-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.diamond-stats-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--emerald-light);
    flex-shrink: 0;
}
.diamond-stats-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.diamond-stats-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}
.diamond-stats-count {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    transition: color 0.3s;
}
.diamond-stats-count.updated {
    color: var(--emerald-light);
}
.diamond-stats-divider {
    width: 1px;
    height: 32px;
    background: var(--glass-border);
    flex-shrink: 0;
}
.diamond-mini-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.diamond-mini-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.diamond-mini-stat-val {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}
.diamond-stats-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.diamond-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    background: rgba(52, 211, 153, 0.08);
    color: var(--emerald-light);
    border: 1px solid rgba(52, 211, 153, 0.2);
    transition: all 0.2s;
    animation: badgePop 0.25s ease;
}
@keyframes badgePop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.diamond-filter-badge .badge-remove {
    background: none;
    border: none;
    padding: 0;
    color: var(--emerald-light);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.diamond-filter-badge .badge-remove:hover { opacity: 1; }
.diamond-active-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .filter-row-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .diamond-filter-card { padding: 18px 16px 14px; }
    .filter-row-grid { grid-template-columns: 1fr; }
    .filter-row-3col { grid-template-columns: 1fr; }
    .filter-row-2col { grid-template-columns: 1fr; }
    .filter-row-lw-lab { grid-template-columns: 1fr; }
    .shape-grid { gap: 8px; }
    .shape-btn { min-width: 64px; padding: 8px 10px 6px; }
    .shape-icon { width: 34px; height: 34px; }
    .results-header { flex-direction: column; align-items: flex-start; }
    .results-controls { width: 100%; justify-content: space-between; }
    .diamond-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .compare-tray-inner { padding: 12px 16px; }
    .diamond-results-card { padding: 16px 14px; }
    .diamond-stats-bar { padding: 14px 16px; gap: 12px; }
    .diamond-stats-count { font-size: 18px; }
    .diamond-stats-divider { display: none; }
}
@media (max-width: 480px) {
    .diamond-grid { grid-template-columns: 1fr; }
    .shape-btn { min-width: 58px; }
}

/* ── Light Mode Overrides ── */
[data-theme="light"] .diamond-range::-webkit-slider-thumb { border-color: #f5f5f0; }
[data-theme="light"] .diamond-sort-select option { background: #f1f8e9; }
[data-theme="light"] .compare-tray { background: rgba(255,255,255,0.85); }
/* ============================================
   diamonds.html css End here
============================================ */
/* ============================================================
   REGISTER PAGE CSS START
   ============================================================ */

/* ── Wider card for 2-column layout ── */
.register-container {
    max-width: 760px;
}
.register-card {
    padding: 44px 44px 36px;
}

/* ── Step Progress Bar ── */
.reg-steps-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}
.reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.reg-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.35s ease;
}
.reg-step-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.35s;
}
.reg-step.active .reg-step-dot {
    background: rgba(52, 211, 153, 0.15);
    border-color: var(--emerald-light);
    color: var(--emerald-light);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}
.reg-step.active .reg-step-label {
    color: var(--emerald-light);
}
.reg-step.done .reg-step-dot {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #fff;
}
.reg-step.done .reg-step-label {
    color: var(--emerald-light);
}
.reg-step-line {
    flex: 1;
    height: 2px;
    min-width: 60px;
    max-width: 100px;
    background: var(--glass-border);
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 2px;
    transition: background 0.35s;
    position: relative;
    top: -10px;
}
.reg-step.done + .reg-step-line {
    background: var(--emerald);
}

/* ── 2-column form grid ── */
.register-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

/* ── Field label icon ── */
.reg-field-icon {
    font-size: 13px;
    color: var(--emerald-light);
    margin-right: 4px;
}

/* ── Optional tag ── */
.reg-optional-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1px 8px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── Input wrapper (for status icons, prefix, eye button) ── */
.reg-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* ── Status icon (✓ / ✗) ── */
.reg-input-status {
    position: absolute;
    right: 12px;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
    transition: color 0.2s;
}
.reg-input-status.valid   { color: var(--emerald-light); }
.reg-input-status.invalid { color: #f87171; }

/* Status icon pushed left when eye button present */
.reg-confirm-status {
    right: 44px;
}

/* ── Phone prefix ── */
.reg-input-has-prefix-wrap {
    position: relative;
}
.reg-phone-prefix {
    position: absolute;
    left: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald-light);
    font-family: 'Space Mono', monospace;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}
.reg-input-with-prefix {
    padding-left: 46px !important;
}

/* ── Eye button wrapper ── */
.reg-input-has-eye-wrap {
    position: relative;
}
.reg-input-with-eye {
    padding-right: 44px !important;
}
.reg-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reg-eye-btn:hover { color: var(--emerald-light); }

/* ── Password strength bar ── */
.reg-strength-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.reg-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}
.reg-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
    background: var(--text-muted);
}
.reg-strength-fill.weak    { background: #f87171; }
.reg-strength-fill.fair    { background: var(--gold); }
.reg-strength-fill.good    { background: #34d399; }
.reg-strength-fill.strong  { background: var(--emerald-light); }
.reg-strength-fill.perfect { background: linear-gradient(90deg, var(--emerald), var(--gold)); }
.reg-strength-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 56px;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

/* ── Field hint text ── */
.reg-field-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

/* ── Terms row ── */
.reg-terms-row {
    margin-top: 4px;
    margin-bottom: 20px;
}
.reg-link {
    color: var(--emerald-light);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.reg-link:hover { opacity: 0.8; text-decoration: underline; }

/* ── Submit button full width ── */
.reg-submit-btn {
    width: 100%;
    justify-content: center;
    gap: 10px;
}

/* ── Bootstrap Alert override for glass theme ── */
#registerAlert.alert-danger {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    border-radius: 10px;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
#registerAlert .btn-close { filter: invert(1); opacity: 0.6; }
#registerAlert .btn-close:hover { opacity: 1; }

/* ── Terms Modal override for glass theme ── */
.reg-modal-content {
    background: var(--bg-gradient-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-secondary);
}
.reg-modal-header {
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 18px 24px;
}
.reg-modal-header .modal-title { font-size: 16px; font-weight: 600; }
.reg-modal-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.reg-modal-body h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.reg-modal-body p { margin-bottom: 0; }
.reg-modal-footer {
    border-top: 1px solid var(--glass-border);
    padding: 16px 24px;
    gap: 10px;
}
.reg-modal-close-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 8px 20px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
}
.reg-modal-close-btn:hover { border-color: var(--emerald-light); color: var(--emerald-light); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .register-container { max-width: 100%; }
    .register-card { padding: 28px 20px 24px; }
    .register-form-grid { grid-template-columns: 1fr; }
    .reg-steps-wrap { gap: 0; }
    .reg-step-line { min-width: 30px; }
}
/* ============================================================
   REGISTER PAGE CSS END
   ============================================================ */
   /* ============================================================
   BRANCH PAGE CSS START
   ============================================================ */

/* ── Branch Form Card ── */
.branch-form-card {
    padding: 0;
    overflow: hidden;
}

/* ── Card Header ── */
.branch-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--glass-border);
}
.branch-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}
.branch-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--emerald-light);
    flex-shrink: 0;
}
.branch-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px;
    line-height: 1.2;
}
.branch-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}
.branch-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.branch-required-note {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.branch-required-star {
    color: #f87171;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

/* ── Section Divider ── */
.branch-section {
    padding: 24px 32px 8px;
    border-bottom: 1px solid var(--glass-border);
}
.branch-section:last-of-type {
    border-bottom: none;
}
.branch-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}
.branch-section-icon {
    font-size: 14px;
    color: var(--emerald-light);
}

/* ── Form Grids ── */
.branch-form-grid {
    margin-bottom: 4px;
}
.branch-grid-1col {
    display: grid;
    grid-template-columns: 1fr;
}
.branch-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

/* ── Select input styling ── */
.branch-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px !important;
}
.branch-select-arrow {
    position: absolute;
    right: 14px;
    font-size: 12px;
    color: var(--text-muted);
    pointer-events: none;
}
.branch-select option {
    background: var(--bg-gradient-2);
    color: var(--text-primary);
}

/* ── Form Action Buttons ── */
.branch-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 20px 32px 28px;
    border-top: 1px solid var(--glass-border);
}
.branch-btn-reset {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}
.branch-btn-reset:hover {
    border-color: #f87171;
    color: #f87171;
    background: rgba(220, 38, 38, 0.07);
}
.branch-btn-save {
    background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
    border: none;
    color: #fff;
    border-radius: 12px;
    padding: 11px 32px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
.branch-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: #fff;
}
.branch-btn-save:disabled {
    opacity: 0.75;
    transform: none;
    cursor: not-allowed;
}

/* ── Toast Notification ── */
.branch-toast-wrap {
    margin: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    pointer-events: none;
}
.branch-toast-wrap.show {
    max-height: 80px;
    pointer-events: all;
}
.branch-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--emerald-light);
    font-weight: 500;
    margin-bottom: 16px;
    animation: toastSlide 0.3s ease;
}
.branch-toast.branch-toast-error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}
.branch-toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.branch-toast span {
    flex: 1;
}
.branch-toast-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}
.branch-toast-close:hover { opacity: 1; }
@keyframes toastSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .branch-card-header { padding: 20px 20px 18px; }
    .branch-section { padding: 20px 20px 8px; }
    .branch-form-actions { padding: 16px 20px 22px; flex-direction: column-reverse; }
    .branch-btn-reset,
    .branch-btn-save { width: 100%; justify-content: center; }
    .branch-toast-wrap { margin: 0 20px; }
    .branch-grid-2col { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
    .branch-card-title-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
    .branch-card-icon { width: 40px; height: 40px; font-size: 18px; }
}
 /* ============================================================
   BRANCH PAGE CSS END
   ============================================================ */
   /* ============================================================
   MY DIAMOND PAGE CSS START
   ============================================================ */

/* ── My Diamond grid — full width 4-col ── */
.mydiamond-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Nav Card base ── */
.mydiamond-nav-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
    padding: 28px 24px 24px;
    will-change: transform;
}
.mydiamond-nav-card:hover {
    text-decoration: none;
}

/* ── Card inner layout ── */
.mydiamond-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

/* ── Icon wrap ── */
.mydiamond-card-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.mydiamond-nav-card:hover .mydiamond-card-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
}
.mydiamond-card-icon-wrap.cyan {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(52, 211, 153, 0.06));
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.mydiamond-card-icon-wrap.magenta {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(212, 165, 116, 0.06));
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.2);
}
.mydiamond-card-icon-wrap.purple {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.25), rgba(224, 122, 95, 0.06));
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.2);
    border: 1px solid rgba(224, 122, 95, 0.2);
}
.mydiamond-card-icon-wrap.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.06));
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ── Card main icon ── */
.mydiamond-card-icon {
    font-size: 26px;
}
.mydiamond-card-icon-wrap.cyan    .mydiamond-card-icon { color: var(--emerald-light); }
.mydiamond-card-icon-wrap.magenta .mydiamond-card-icon { color: var(--gold); }
.mydiamond-card-icon-wrap.purple  .mydiamond-card-icon { color: var(--coral); }
.mydiamond-card-icon-wrap.success .mydiamond-card-icon { color: var(--success); }

/* ── Card body text ── */
.mydiamond-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mydiamond-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.mydiamond-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}
.mydiamond-card-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald-light);
    margin-top: 4px;
    transition: gap 0.2s ease;
    letter-spacing: 0.02em;
}
.mydiamond-nav-card:hover .mydiamond-card-link { gap: 6px; }

/* ── Arrow top-right ── */
.mydiamond-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    color: var(--text-muted);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all 0.25s ease;
    z-index: 2;
}
.mydiamond-nav-card:hover .mydiamond-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── Hover glow backgrounds ── */
.mydiamond-card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.mydiamond-nav-card:hover .mydiamond-card-glow { opacity: 1; }
.cyan-glow    { background: radial-gradient(ellipse at 20% 20%, rgba(52, 211, 153, 0.08) 0%, transparent 70%); }
.magenta-glow { background: radial-gradient(ellipse at 20% 20%, rgba(212, 165, 116, 0.08) 0%, transparent 70%); }
.purple-glow  { background: radial-gradient(ellipse at 20% 20%, rgba(224, 122, 95, 0.08) 0%, transparent 70%); }
.success-glow { background: radial-gradient(ellipse at 20% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 70%); }

/* ── Hover border tints per card ── */
.mydiamond-nav-card:has(.cyan-glow):hover    { border-color: rgba(52, 211, 153, 0.4) !important; }
.mydiamond-nav-card:has(.magenta-glow):hover { border-color: rgba(212, 165, 116, 0.4) !important; }
.mydiamond-nav-card:has(.purple-glow):hover  { border-color: rgba(224, 122, 95, 0.4) !important; }
.mydiamond-nav-card:has(.success-glow):hover { border-color: rgba(34, 197, 94, 0.4) !important; }

/* ── Staggered entrance animations (reuse stats-grid delay) ── */
.mydiamond-grid .mydiamond-nav-card:nth-child(1) { animation-delay: 0.1s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(2) { animation-delay: 0.2s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(3) { animation-delay: 0.3s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(4) { animation-delay: 0.4s; }

/* ── My Diamond responsive (tablet) ── */
@media (max-width: 1100px) and (min-width: 769px) {
    .mydiamond-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mydiamond-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .mydiamond-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .mydiamond-nav-card {
        padding: 20px 16px 18px;
    }
    .mydiamond-card-icon-wrap {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    .mydiamond-card-icon { font-size: 20px; }
    .mydiamond-card-title { font-size: 14px; }
    .mydiamond-card-desc { display: none; }
}
/* ============================================================
   MY DIAMOND PAGE CSS END
   ============================================================ */
   /* ============================================================
   SETTINGS PAGE CSS for PROFILE AND KYC
   ============================================================ */

/* ── Shared: field label (no inline style needed) ── */
.settings-field-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* ── Shared: form input glass override ── */
.settings-form-input {
    background: var(--glass-bg) !important;
    border-color: var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.settings-form-input:focus {
    background: var(--glass-bg) !important;
    border-color: var(--emerald-light) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12) !important;
}
.settings-form-input::placeholder { color: var(--text-muted) !important; }
.settings-form-input option { background: var(--bg-gradient-2); color: var(--text-primary); }

/* Input group prefix */
.settings-input-prefix {
    background: var(--glass-bg) !important;
    border-color: var(--glass-border) !important;
    color: var(--text-muted) !important;
    border-radius: 10px 0 0 10px !important;
}
.settings-input-no-left-border {
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
}

/* Textarea */
.settings-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ── Shared: tab action buttons ── */
.settings-tab-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    flex-wrap: wrap;
}
.settings-btn-save {
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
}
.settings-btn-save:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.settings-btn-save:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.settings-btn-cancel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s, color 0.2s;
}
.settings-btn-cancel:hover { border-color: #f87171; color: #f87171; }

/* ══════════════════════════════════════════
   KYC UPLOAD TAB
══════════════════════════════════════════ */

/* ── KYC Status Banner ── */
.kyc-status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.kyc-status-banner.kyc-pending {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
}
.kyc-status-banner.kyc-verified {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.kyc-status-banner.kyc-rejected {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
}
.kyc-status-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.kyc-status-banner.kyc-pending  .kyc-status-icon { color: var(--gold); }
.kyc-status-banner.kyc-verified .kyc-status-icon { color: var(--emerald-light); }
.kyc-status-banner.kyc-rejected .kyc-status-icon { color: #f87171; }
.kyc-status-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kyc-status-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.kyc-status-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.kyc-status-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}
.kyc-pending  .kyc-status-badge { background: rgba(212,165,116,0.15); color: var(--gold); border: 1px solid rgba(212,165,116,0.3); }
.kyc-verified .kyc-status-badge { background: rgba(52,211,153,0.15); color: var(--emerald-light); border: 1px solid rgba(52,211,153,0.3); }
.kyc-rejected .kyc-status-badge { background: rgba(220,38,38,0.1); color: #f87171; border: 1px solid rgba(220,38,38,0.3); }

/* ── KYC Required / Optional tags ── */
.kyc-required-star {
    color: #f87171;
    font-weight: 700;
    margin-left: 3px;
}
.kyc-optional-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1px 8px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── Upload Zone ── */
.kyc-upload-zone {
    position: relative;
    border: 2px dashed var(--glass-border);
    border-radius: 14px;
    background: var(--glass-bg);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
    overflow: hidden;
}
.kyc-upload-zone:hover {
    border-color: var(--emerald-light);
    background: rgba(52, 211, 153, 0.04);
}
.kyc-upload-zone.kyc-drag-over {
    border-color: var(--emerald-light);
    background: rgba(52, 211, 153, 0.08);
    transform: scale(1.01);
}
.kyc-upload-zone.kyc-zone-uploaded {
    border-color: var(--emerald-light);
    border-style: solid;
    background: rgba(52, 211, 153, 0.05);
}
.kyc-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.kyc-upload-content { pointer-events: none; }
.kyc-upload-icon {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1;
    display: block;
    transition: color 0.2s;
}
.kyc-upload-zone:hover .kyc-upload-icon { color: var(--emerald-light); }
.kyc-upload-zone.kyc-zone-uploaded .kyc-upload-icon { color: var(--emerald-light); }
.kyc-upload-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.kyc-upload-browse {
    color: var(--emerald-light);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.kyc-upload-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── File Preview Chip ── */
.kyc-file-preview { margin-top: 8px; }
.kyc-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 100%;
    animation: chipIn 0.2s ease;
}
@keyframes chipIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.kyc-chip-icon { font-size: 16px; flex-shrink: 0; }
.kyc-chip-icon.pdf { color: #f87171; }
.kyc-chip-icon.img { color: var(--emerald-light); }
.kyc-chip-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
    font-weight: 500;
    color: var(--text-primary);
}
.kyc-chip-size {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    font-family: 'Space Mono', monospace;
}
.kyc-chip-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.kyc-chip-remove:hover { color: #f87171; }
.kyc-file-error {
    font-size: 12px;
    color: #f87171;
    display: flex;
    align-items: center;
}

/* ── Declaration checkbox ── */
.kyc-declaration-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.kyc-declaration-check { display: none; }
.kyc-declaration-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid var(--glass-border);
    border-radius: 6px;
    background: var(--glass-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
    position: relative;
}
.kyc-declaration-box::after {
    content: '';
    width: 11px;
    height: 7px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0) translateY(-1px);
    transition: transform 0.15s;
    display: block;
}
.kyc-declaration-check:checked ~ .kyc-declaration-box {
    background: var(--emerald);
    border-color: var(--emerald);
}
.kyc-declaration-check:checked ~ .kyc-declaration-box::after {
    transform: rotate(-45deg) scale(1) translateY(-1px);
}
.kyc-declaration-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .kyc-status-banner { flex-direction: column; align-items: flex-start; }
    .settings-tab-actions { flex-direction: column; }
    .settings-btn-save,
    .settings-btn-cancel { width: 100%; justify-content: center; }
}
 /* ============================================================
   SETTINGS PAGE CSS for PROFILE AND KYC END
   ============================================================ */
   
   /* ── Sidebar Market Strip  start── */
.sidebar-market-strip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(52, 211, 153, 0.07);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.sidebar-market-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-light);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.3);
    animation: pulseDot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.3); }
    50%       { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.08); }
}
.sidebar-market-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--emerald-light);
    letter-spacing: 0.04em;
    flex: 1;
}
.sidebar-market-price {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}
.sidebar-market-change {
    font-size: 10px;
    font-weight: 700;
    margin-left: 3px;
}
.sidebar-market-change.up   { color: var(--emerald-light); }
.sidebar-market-change.down { color: #f87171; }
 /* ── Sidebar Market Strip  end── */
 
 /* ── Site Footer Started── */
.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 7px;
}
.site-footer-gem {
    font-size: 15px;
    color: var(--emerald-light);
}
.site-footer-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}
.site-footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.site-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-footer-version {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.site-footer-divider {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.4;
}
.site-footer-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer-link:hover { color: var(--emerald-light); }
/* ── Site Footer End── */

/* ============================================================
   EXCEL UPLOAD PAGE CSS STARED
   ============================================================ */

/* ══════════════════════════════════════════
   STEP PROGRESS BAR
══════════════════════════════════════════ */
.xup-steps-card { padding: 24px 32px; }
.xup-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.xup-step {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.xup-step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.35s ease;
    flex-shrink: 0;
}
.xup-step-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.xup-step-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
}
.xup-step-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s;
}
.xup-step.active .xup-step-circle {
    background: rgba(52,211,153,0.15);
    border-color: var(--emerald-light);
    color: var(--emerald-light);
    box-shadow: 0 0 0 4px rgba(52,211,153,0.12);
}
.xup-step.active .xup-step-num,
.xup-step.active .xup-step-name  { color: var(--emerald-light); }
.xup-step.done .xup-step-circle  { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.xup-step.done .xup-step-num,
.xup-step.done .xup-step-name    { color: var(--emerald-light); }

.xup-step-connector {
    flex: 1;
    min-width: 60px;
    max-width: 120px;
    height: 2px;
    background: var(--glass-border);
    margin: 0 8px;
    border-radius: 2px;
    margin-bottom: 0;
    transition: background 0.4s;
    position: relative;
    top: 0;
}
.xup-step-connector.done { background: var(--emerald); }

/* ══════════════════════════════════════════
   INFO CARDS ROW
══════════════════════════════════════════ */
.xup-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.xup-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}
.xup-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.xup-info-icon.cyan    { background: rgba(52,211,153,0.12); color:var(--emerald-light); border:1px solid rgba(52,211,153,0.2); }
.xup-info-icon.magenta { background: rgba(212,165,116,0.12); color:var(--gold);         border:1px solid rgba(212,165,116,0.2); }
.xup-info-icon.purple  { background: rgba(224,122,95,0.12);  color:var(--coral);        border:1px solid rgba(224,122,95,0.2); }
.xup-info-icon.success { background: rgba(34,197,94,0.12);   color:var(--success);      border:1px solid rgba(34,197,94,0.2); }
.xup-info-text { display: flex; flex-direction: column; gap: 2px; }
.xup-info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.xup-info-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
}

/* ══════════════════════════════════════════
   UPLOAD CARD
══════════════════════════════════════════ */
.xup-card { padding: 28px 28px 24px; }
.xup-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.xup-card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(52,211,153,0.12);
    border: 1px solid rgba(52,211,153,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.xup-card-icon-wrap.magenta { background: rgba(212,165,116,0.12); border-color: rgba(212,165,116,0.25); }
.xup-card-icon { font-size: 22px; color: var(--emerald-light); }
.xup-card-icon-wrap.magenta .xup-card-icon { color: var(--gold); }
.xup-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.xup-card-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.xup-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   DROP ZONE
══════════════════════════════════════════ */
.xup-drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 18px;
    background: var(--glass-bg);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.xup-drop-zone:hover {
    border-color: var(--emerald-light);
    background: rgba(52,211,153,0.04);
}
.xup-drop-zone.xup-drag-over {
    border-color: var(--emerald-light);
    background: rgba(52,211,153,0.08);
    transform: scale(1.01);
}
.xup-drop-zone.xup-zone-has-file {
    border-color: var(--emerald-light);
    border-style: solid;
    min-height: 90px;
}
.xup-drop-zone.xup-zone-error { border-color: #f87171; background: rgba(220,38,38,0.04); }
.xup-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.xup-drop-content {
    text-align: center;
    padding: 32px 24px;
    pointer-events: none;
    z-index: 1;
}

/* Animated icon with rings */
.xup-drop-anim {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.xup-drop-icon {
    font-size: 36px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: color 0.2s;
}
.xup-drop-zone:hover .xup-drop-icon { color: var(--emerald-light); }
.xup-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--emerald-light);
    opacity: 0;
    animation: ringPulse 2.4s ease-out infinite;
}
.xup-ring-1 { width: 50px; height: 50px; animation-delay: 0s; }
.xup-ring-2 { width: 65px; height: 65px; animation-delay: 0.6s; }
.xup-ring-3 { width: 80px; height: 80px; animation-delay: 1.2s; }
@keyframes ringPulse {
    0%   { transform: scale(0.6); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}
.xup-drop-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.xup-drop-or {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.xup-browse-btn {
    background: linear-gradient(135deg, var(--emerald), #059669);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    pointer-events: all;
    margin-bottom: 10px;
}
.xup-browse-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.xup-drop-hint { font-size: 12px; color: var(--text-muted); }

/* File selected state */
.xup-file-selected {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    width: 100%;
    z-index: 1;
}
.xup-file-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.xup-file-icon { font-size: 24px; }
.xup-file-icon.xlsx { color: #1d6f42; }
.xup-file-icon.csv  { color: var(--emerald-light); }
.xup-file-meta { flex: 1; }
.xup-file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    word-break: break-all;
}
.xup-file-size { font-size: 12px; color: var(--text-muted); font-family: 'Space Mono', monospace; }
.xup-file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    pointer-events: all;
    z-index: 2;
    position: relative;
}
.xup-file-remove:hover { color: #f87171; background: rgba(220,38,38,0.08); }

/* ══════════════════════════════════════════
   UPLOAD OPTIONS
══════════════════════════════════════════ */
.xup-options { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.xup-option-group {}
.xup-option-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
/* Radio */
.xup-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
    transition: color 0.2s;
}
.xup-radio-label:hover { color: var(--text-primary); }
.xup-radio { display: none; }
.xup-radio-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--glass-border);
    background: var(--glass-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}
.xup-radio-box::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-light);
    transform: scale(0);
    transition: transform 0.15s;
    display: block;
}
.xup-radio:checked ~ .xup-radio-box { border-color: var(--emerald-light); }
.xup-radio:checked ~ .xup-radio-box::after { transform: scale(1); }
/* Checkbox */
.xup-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
}
.xup-check-label:hover { color: var(--text-primary); }
.xup-checkbox { display: none; }
.xup-check-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--glass-border);
    background: var(--glass-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}
.xup-check-box::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0) translateY(-1px);
    transition: transform 0.15s;
    display: block;
}
.xup-checkbox:checked ~ .xup-check-box { background: var(--emerald); border-color: var(--emerald); }
.xup-checkbox:checked ~ .xup-check-box::after { transform: rotate(-45deg) scale(1) translateY(-1px); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.xup-btn-next {
    background: linear-gradient(135deg, var(--emerald), #059669);
    border: none;
    color: #fff;
    border-radius: 12px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s, transform 0.2s;
}
.xup-btn-next:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.xup-btn-next:disabled { opacity: 0.45; cursor: not-allowed; }
.xup-btn-back {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.2s, color 0.2s;
}
.xup-btn-back:hover { border-color: var(--emerald-light); color: var(--emerald-light); }

/* ══════════════════════════════════════════
   TEMPLATE DOWNLOAD CARD
══════════════════════════════════════════ */
.xup-template-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.xup-template-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: default;
    transition: border-color 0.2s;
}
.xup-template-item:hover { border-color: rgba(52,211,153,0.3); }
.xup-template-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--emerald-light);
    flex-shrink: 0;
}
.xup-template-icon.magenta { background: rgba(212,165,116,0.1); border-color: rgba(212,165,116,0.2); color: var(--gold); }
.xup-template-icon.purple  { background: rgba(224,122,95,0.1);  border-color: rgba(224,122,95,0.2);  color: var(--coral); }
.xup-template-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xup-template-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.xup-template-cols {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xup-dl-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.xup-dl-btn:hover { border-color: var(--emerald-light); color: var(--emerald-light); }

/* Tips */
.xup-tips { background: rgba(52,211,153,0.05); border: 1px solid rgba(52,211,153,0.15); border-radius: 12px; padding: 14px 16px; }
.xup-tips-title { font-size: 12px; font-weight: 700; color: var(--emerald-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.xup-tips-list { margin: 0; padding-left: 16px; }
.xup-tips-list li { font-size: 12px; color: var(--text-muted); line-height: 1.7; }

/* Upload History */
.xup-history-list { display: flex; flex-direction: column; gap: 10px; }
.xup-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}
.xup-hist-icon { font-size: 20px; flex-shrink: 0; }
.xup-hist-icon.success { color: var(--emerald-light); }
.xup-hist-icon.error   { color: #f87171; }
.xup-hist-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.xup-hist-name { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xup-hist-meta { font-size: 11px; color: var(--text-muted); font-family: 'Space Mono', monospace; }
.xup-hist-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; letter-spacing: 0.05em; white-space: nowrap; flex-shrink: 0; }
.xup-hist-badge.success { background: rgba(52,211,153,0.12); color:var(--emerald-light); border:1px solid rgba(52,211,153,0.25); }
.xup-hist-badge.error   { background: rgba(220,38,38,0.1);   color:#f87171;             border:1px solid rgba(220,38,38,0.25); }

/* ══════════════════════════════════════════
   STEP 2: VALIDATION
══════════════════════════════════════════ */
.xup-stat-chip {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    gap: 4px;
    white-space: nowrap;
}
.xup-stat-chip.valid { background: rgba(52,211,153,0.12); color:var(--emerald-light); border:1px solid rgba(52,211,153,0.25); }
.xup-stat-chip.error { background: rgba(220,38,38,0.1);   color:#f87171;             border:1px solid rgba(220,38,38,0.25); }
.xup-stat-chip.total { background: var(--glass-bg);       color:var(--text-secondary); border:1px solid var(--glass-border); }

.xup-validation-bar {
    height: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}
.xup-vbar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}
.xup-vbar-fill.excellent { background: linear-gradient(90deg, var(--emerald), var(--gold)); }
.xup-vbar-fill.good      { background: var(--gold); }
.xup-vbar-fill.poor      { background: #f87171; }

.xup-validation-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.xup-vmeta-pct   { font-weight: 700; color: var(--emerald-light); }
.xup-vmeta-sep   { opacity: 0.4; }
.xup-vmeta-skip  { color: var(--gold); font-style: italic; }

/* Row status badges in table */
.xup-row-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.xup-row-badge.valid { background: rgba(52,211,153,0.12); color:var(--emerald-light); border:1px solid rgba(52,211,153,0.25); }
.xup-row-badge.error { background: rgba(220,38,38,0.1);   color:#f87171;             border:1px solid rgba(220,38,38,0.25); }
.xup-row-error td   { opacity: 0.8; }

/* ══════════════════════════════════════════
   STEP 3: IMPORT PROGRESS
══════════════════════════════════════════ */
.xup-result-card { text-align: center; padding: 48px 32px; }
.xup-result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.xup-result-icon.importing {
    background: rgba(52,211,153,0.1);
    border: 2px solid rgba(52,211,153,0.25);
    color: var(--emerald-light);
    animation: spinIcon 1.2s linear infinite;
}
.xup-result-icon.success {
    background: rgba(52,211,153,0.15);
    border: 2px solid rgba(52,211,153,0.4);
    color: var(--emerald-light);
    animation: popIn 0.4s ease;
}
@keyframes spinIcon { to { transform: rotate(360deg); } }
@keyframes popIn { 0% { transform: scale(0.5); opacity:0; } 100% { transform: scale(1); opacity:1; } }
.xup-result-title  { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.xup-result-sub    { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.xup-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 20px;
}
.xup-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}
.xup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 8px;
    width: 0%;
    transition: width 0.4s ease;
}
.xup-progress-pct {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald-light);
    min-width: 42px;
    text-align: right;
}
.xup-import-log {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    max-width: 500px;
    margin: 0 auto;
    max-height: 160px;
    overflow-y: auto;
    text-align: left;
    font-size: 12px;
    font-family: 'Space Mono', monospace;
}
.xup-log-line {
    color: var(--text-secondary);
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    animation: logFade 0.3s ease;
}
@keyframes logFade { from { opacity:0; transform: translateX(-6px); } to { opacity:1; transform: translateX(0); } }

.xup-result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 24px 0 8px;
    flex-wrap: wrap;
}
.xup-res-stat { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.xup-res-val {
    font-family: 'Space Mono', monospace;
    font-size: 36px;
    font-weight: 700;
    color: var(--emerald-light);
    line-height: 1;
}
.xup-res-val.skipped { color: var(--gold); }
.xup-res-val.error   { color: #f87171; }
.xup-res-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .xup-info-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .xup-steps-card { padding: 18px 16px; }
    .xup-step-name { font-size: 12px; }
    .xup-step-connector { min-width: 24px; }
    .xup-info-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .xup-card { padding: 18px 16px 16px; }
    .xup-result-stats { gap: 24px; }
    .xup-res-val { font-size: 28px; }
}
@media (max-width: 480px) {
    .xup-info-row { grid-template-columns: 1fr 1fr; }
    .xup-step-info { display: none; }
    .xup-step-connector { min-width: 16px; }
}
/* ============================================================
   EXCEL UPLOAD PAGE CSS END
   ============================================================ */
   
   /* ============================================================
   MY DIAMOND PAGE + MOBILE BOTTOM NAV  addon css 
   ============================================================ */

/* ── My Diamond grid — 2-col layout ── */
.mydiamond-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ── Nav Card base ── */
.mydiamond-nav-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
    padding: 40px 36px 36px;
    will-change: transform;
    min-height: 220px;
}
.mydiamond-nav-card:hover {
    text-decoration: none;
}

/* ── Card inner layout ── */
.mydiamond-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

/* ── Icon wrap ── */
.mydiamond-card-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.mydiamond-nav-card:hover .mydiamond-card-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
}
.mydiamond-card-icon-wrap.cyan {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(52, 211, 153, 0.06));
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.mydiamond-card-icon-wrap.magenta {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(212, 165, 116, 0.06));
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.2);
}
.mydiamond-card-icon-wrap.purple {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.25), rgba(224, 122, 95, 0.06));
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.2);
    border: 1px solid rgba(224, 122, 95, 0.2);
}
.mydiamond-card-icon-wrap.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.06));
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ── Card main icon ── */
.mydiamond-card-icon {
    font-size: 32px;
}
.mydiamond-card-icon-wrap.cyan    .mydiamond-card-icon { color: var(--emerald-light); }
.mydiamond-card-icon-wrap.magenta .mydiamond-card-icon { color: var(--gold); }
.mydiamond-card-icon-wrap.purple  .mydiamond-card-icon { color: var(--coral); }
.mydiamond-card-icon-wrap.success .mydiamond-card-icon { color: var(--success); }

/* ── Card body text ── */
.mydiamond-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mydiamond-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.mydiamond-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}
.mydiamond-card-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald-light);
    margin-top: 4px;
    transition: gap 0.2s ease;
    letter-spacing: 0.02em;
}
.mydiamond-nav-card:hover .mydiamond-card-link { gap: 6px; }

/* ── Arrow top-right ── */
.mydiamond-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    color: var(--text-muted);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all 0.25s ease;
    z-index: 2;
}
.mydiamond-nav-card:hover .mydiamond-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── Hover glow backgrounds ── */
.mydiamond-card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.mydiamond-nav-card:hover .mydiamond-card-glow { opacity: 1; }
.cyan-glow    { background: radial-gradient(ellipse at 20% 20%, rgba(52, 211, 153, 0.08) 0%, transparent 70%); }
.magenta-glow { background: radial-gradient(ellipse at 20% 20%, rgba(212, 165, 116, 0.08) 0%, transparent 70%); }
.purple-glow  { background: radial-gradient(ellipse at 20% 20%, rgba(224, 122, 95, 0.08) 0%, transparent 70%); }
.success-glow { background: radial-gradient(ellipse at 20% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 70%); }

/* ── Hover border tints per card ── */
.mydiamond-nav-card:has(.cyan-glow):hover    { border-color: rgba(52, 211, 153, 0.4) !important; }
.mydiamond-nav-card:has(.magenta-glow):hover { border-color: rgba(212, 165, 116, 0.4) !important; }
.mydiamond-nav-card:has(.purple-glow):hover  { border-color: rgba(224, 122, 95, 0.4) !important; }
.mydiamond-nav-card:has(.success-glow):hover { border-color: rgba(34, 197, 94, 0.4) !important; }

/* ── Staggered entrance animations (reuse stats-grid delay) ── */
.mydiamond-grid .mydiamond-nav-card:nth-child(1) { animation-delay: 0.1s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(2) { animation-delay: 0.2s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(3) { animation-delay: 0.3s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(4) { animation-delay: 0.4s; }

/* ── Excel Download card states ── */
.mydiamond-nav-card.downloading { pointer-events: none; opacity: 0.85; }
.mydiamond-nav-card.downloaded .mydiamond-card-icon { color: var(--success) !important; }
.mydiamond-nav-card.downloaded .mydiamond-card-link { color: var(--success); }
.mydiamond-spin {
    display: inline-block;
    animation: iconSpin 0.9s linear infinite;
}
@keyframes iconSpin { to { transform: rotate(360deg); } }

/* ── My Diamond responsive ── */
@media (max-width: 1100px) and (min-width: 769px) {
    .mydiamond-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mydiamond-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .mydiamond-nav-card {
        padding: 28px 22px 24px;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .mydiamond-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .mydiamond-nav-card {
        padding: 24px 18px 20px;
        min-height: 160px;
    }
    .mydiamond-card-icon-wrap {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }
    .mydiamond-card-icon { font-size: 24px; }
    .mydiamond-card-title { font-size: 17px; }
}
/* ============================================================
   REPORT PAGE CSS Start
   ============================================================ */

/* ── Navbar extras ── */
.rpt-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 7px 12px;
    transition: border-color 0.2s;
}
.rpt-date-range:focus-within { border-color: var(--emerald-light); }
.rpt-date-icon { font-size: 14px; color: var(--emerald-light); }
.rpt-date-select {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
}
.rpt-date-select option { background: var(--bg-gradient-2); }

.rpt-export-btn {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.rpt-export-btn:hover { border-color: var(--emerald-light); color: var(--emerald-light); }

/* ── Second content row ── */
.rpt-second-row { grid-template-columns: 2fr 1fr; }

/* ── Donut Chart ── */
.rpt-donut-card { display: flex; flex-direction: column; }
.rpt-donut-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 4px;
    flex: 1;
}
.rpt-donut {
    width: 170px;
    height: 170px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
}
.rpt-donut-seg { transition: stroke-dasharray 0.8s ease, opacity 0.2s; }
.rpt-donut-seg:hover { opacity: 0.8; }
.seg-1 { stroke: var(--emerald-light); }
.seg-2 { stroke: var(--gold); }
.seg-3 { stroke: var(--coral); }
.seg-4 { stroke: #26a69a; }
.seg-5 { stroke: rgba(255,255,255,0.2); }
.rpt-donut-center-num {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    fill: var(--text-primary);
    transform: rotate(90deg);
    transform-box: fill-box;
    transform-origin: center;
}
.rpt-donut-center-lbl {
    font-size: 9px;
    fill: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(90deg);
    transform-box: fill-box;
    transform-origin: center;
}
.rpt-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 6px;
}
.rpt-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.rpt-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-1 { background: var(--emerald-light); }
.dot-2 { background: var(--gold); }
.dot-3 { background: var(--coral); }
.dot-4 { background: #26a69a; }
.dot-5 { background: rgba(255,255,255,0.2); border: 1px solid var(--glass-border); }
.rpt-legend-label { flex: 1; color: var(--text-secondary); }
.rpt-legend-pct {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Progress Bars (Clarity / Color) ── */
.rpt-progress-card { min-height: auto; }
.rpt-progress-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 4px; }
.rpt-progress-item { display: flex; flex-direction: column; gap: 5px; }
.rpt-progress-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.rpt-progress-label { color: var(--text-primary); font-weight: 600; min-width: 90px; }
.rpt-progress-count { color: var(--text-muted); font-size: 12px; flex: 1; }
.rpt-progress-pct {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald-light);
    min-width: 32px;
    text-align: right;
}
.rpt-progress-track {
    height: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
}
.rpt-progress-fill {
    height: 100%;
    border-radius: 6px;
    width: 0%;
}
.rpt-fill-1 { background: linear-gradient(90deg, var(--emerald-light), #a7f3d0); }
.rpt-fill-2 { background: linear-gradient(90deg, var(--emerald), var(--emerald-light)); }
.rpt-fill-3 { background: linear-gradient(90deg, var(--gold), var(--emerald-light)); }
.rpt-fill-4 { background: linear-gradient(90deg, var(--gold), var(--amber)); }
.rpt-fill-5 { background: linear-gradient(90deg, var(--coral), var(--gold)); }

.rpt-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 16px 0;
}

/* Color Grade grid */
.rpt-color-grid { display: flex; flex-direction: column; gap: 8px; }
.rpt-color-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.rpt-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}
.rpt-color-bar-wrap {
    flex: 1;
    height: 5px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}
.rpt-color-bar {
    height: 100%;
    border-radius: 4px;
    width: 0%;
}
.rpt-color-pct {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 28px;
    text-align: right;
}

/* ── Rank Badges ── */
.rpt-rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg,#ffd700,#ffa500); color:#000; box-shadow: 0 3px 8px rgba(255,165,0,0.4); }
.rank-2 { background: linear-gradient(135deg,#c0c0c0,#a0a0a0); color:#000; }
.rank-3 { background: linear-gradient(135deg,#cd7f32,#a0522d); color:#fff; }
.rank-4 { background: var(--glass-bg); color: var(--text-muted); border: 1px solid var(--glass-border); }
.rank-5 { background: var(--glass-bg); color: var(--text-muted); border: 1px solid var(--glass-border); }

/* ── Transactions filter select ── */
.rpt-filter-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.rpt-filter-select:focus { border-color: var(--emerald-light); }
.rpt-filter-select option { background: var(--bg-gradient-2); }

/* ── Branch Performance ── */
.rpt-branch-list { display: flex; flex-direction: column; gap: 16px; }
.rpt-branch-item { display: flex; align-items: center; gap: 12px; }
.rpt-branch-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.rpt-branch-info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rpt-branch-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rpt-branch-bar-wrap {
    height: 5px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}
.rpt-branch-bar { height: 100%; border-radius: 4px; width: 0%; }
.rpt-branch-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.rpt-branch-val {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.rpt-branch-pct { font-size: 11px; font-weight: 600; }
.rpt-branch-pct.positive { color: var(--emerald-light); }
.rpt-branch-pct.negative { color: #f87171; }

/* ── Lab & Cut Card ── */
.rpt-lab-list { display: flex; flex-direction: column; gap: 14px; }
.rpt-lab-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rpt-lab-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.rpt-lab-name { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpt-lab-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rpt-lab-count {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 36px;
    text-align: right;
}
.rpt-lab-bar-wrap {
    width: 80px;
    height: 5px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}
.rpt-lab-bar { height: 100%; border-radius: 4px; width: 0%; }
.rpt-lab-pct { font-size: 11px; font-weight: 700; color: var(--text-muted); min-width: 28px; }

/* Cut Grade Grid */
.rpt-cut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.rpt-cut-item {
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--glass-border);
}
.rpt-cut-ideal    { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.2); }
.rpt-cut-excellent{ background: rgba(212,165,116,0.08); border-color: rgba(212,165,116,0.2); }
.rpt-cut-verygood { background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.2); }
.rpt-cut-good     { background: rgba(224,122,95,0.08); border-color: rgba(224,122,95,0.2); }
.rpt-cut-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.rpt-cut-val {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.rpt-cut-pct { font-size: 12px; color: var(--text-muted); }
.rpt-cut-ideal     .rpt-cut-val { color: var(--emerald-light); }
.rpt-cut-excellent .rpt-cut-val { color: var(--gold); }
.rpt-cut-verygood  .rpt-cut-val { color: var(--info); }
.rpt-cut-good      .rpt-cut-val { color: var(--coral); }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .rpt-second-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .rpt-date-range { display: none; }
    .rpt-cut-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================================
   REPORT PAGE CSS END
   ============================================================ */
   /* ============================================================
    FIND PARCEL PAGES CSS STARED
   ============================================================ */

/* ── Sidebar brand sub-text wrapper (no inline style needed) ── */
.sidebar-brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sidebar-brand-sub {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 2px;
}
/* ============================================
   TemplateMo 607 Glass Admin
   Diamond Search Page Styles
  
============================================ */

/* ── Filter Card ── */
.diamond-filter-card {
    padding: 28px 28px 20px;
}

/* ── Filter Label ── */
.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-info {
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.filter-info:hover { opacity: 1; color: var(--emerald-light); }

/* ── Shape Grid ── */
.filter-section { margin-bottom: 24px; }
.shape-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.shape-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 14px;
    padding: 10px 14px 8px;
    cursor: pointer;
    transition: all 0.22s ease;
    color: var(--text-secondary);
    min-width: 72px;
}
.shape-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
    color: var(--emerald-light);
    transform: translateY(-2px);
}
.shape-btn.active {
    background: rgba(52, 211, 153, 0.12);
    border-color: var(--emerald-light);
    color: var(--emerald-light);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.15);
}
.shape-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shape-icon svg {
    width: 100%;
    height: 100%;
}
.shape-name {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Filter Row Grids ── */
.filter-row-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}
.filter-row-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}
.filter-row-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}
.filter-row-lw-lab {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    margin-bottom: 20px;
}

/* ── Dual Range Slider ── */
.filter-field { position: relative; }
.range-track-wrap {
    position: relative;
    height: 22px;
    margin-bottom: 10px;
}
.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}
.range-track::after {
    content: '';
    position: absolute;
    top: -1px;
    left: var(--track-left, 0%);
    width: var(--track-width, 100%);
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
}
.diamond-range {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 1;
    outline: none;
}
.diamond-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--emerald-light);
    border: 2px solid var(--bg-dark);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
    transition: box-shadow 0.2s;
}
.diamond-range::-webkit-slider-thumb:hover,
.diamond-range::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.3);
}
.diamond-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--emerald-light);
    border: 2px solid var(--bg-dark);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

/* ── Range Numeric Inputs ── */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.range-num-input {
    width: 80px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 5px 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Space Mono', monospace;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
}
.range-num-input:focus { border-color: var(--emerald-light); }
/* Chrome number input arrows */
.range-num-input::-webkit-outer-spin-button,
.range-num-input::-webkit-inner-spin-button { opacity: 0.4; }

/* ── Range Tick Labels ── */
.range-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 2px;
}
.range-ticks span {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

/* ── Custom Checkbox ── */
.diamond-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
    transition: color 0.2s;
}
.diamond-check-label:hover { color: var(--text-primary); }
.diamond-checkbox { display: none; }
.diamond-check-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--glass-border);
    border-radius: 5px;
    background: var(--glass-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}
.diamond-check-box::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0) translateY(-1px);
    transition: transform 0.15s;
    display: block;
}
.diamond-checkbox:checked ~ .diamond-check-box {
    background: var(--emerald);
    border-color: var(--emerald);
}
.diamond-checkbox:checked ~ .diamond-check-box::after { transform: rotate(-45deg) scale(1) translateY(-1px); }

/* ── Lab Badges ── */
.lab-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    border: 1px solid;
}
.lab-badge.gia { background: rgba(52, 211, 153, 0.1); color: var(--emerald-light); border-color: rgba(52, 211, 153, 0.3); }
.lab-badge.igi { background: rgba(212, 165, 116, 0.1); color: var(--gold); border-color: rgba(212, 165, 116, 0.3); }
.lab-badge.gcal { background: rgba(14, 165, 233, 0.1); color: var(--info); border-color: rgba(14, 165, 233, 0.3); }

/* ── Filter Action Buttons ── */
.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
    margin-top: 8px;
}
.diamond-btn-clear {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s;
}
.diamond-btn-clear:hover { border-color: var(--danger); color: #f87171; background: rgba(220, 38, 38, 0.07); }
.diamond-btn-more {
    background: var(--glass-bg);
    border: 1.5px solid var(--emerald-light);
    color: var(--emerald-light);
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s;
}
.diamond-btn-more:hover { background: rgba(52, 211, 153, 0.12); }

/* ── More Filters Panel ── */
.more-filters-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 28px;
    margin-bottom: 0 !important;
    border: none;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                margin 0.3s ease;
    opacity: 0;
}
.more-filters-panel.open {
    max-height: 700px;
    padding: 28px 28px 20px;
    margin-bottom: 16px !important;
    opacity: 1;
}
.more-filters-inner { animation: fadeSlideIn 0.3s ease; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Results Card ── */
.diamond-results-card { padding: 20px 24px 24px; }

/* ── Results Header ── */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}
.results-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.result-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}
.result-tab:hover { color: var(--text-primary); background: var(--glass-bg); }
.result-tab.active { background: var(--glass-bg); color: var(--text-primary); border: 1px solid var(--glass-border); }
.result-count {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
}
.result-tab.active .result-count { background: rgba(52, 211, 153, 0.12); color: var(--emerald-light); border-color: rgba(52, 211, 153, 0.25); }

.results-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Stock Search */
.diamond-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 7px 12px;
    min-width: 160px;
    transition: border-color 0.2s;
}
.diamond-search-wrap:focus-within { border-color: var(--emerald-light); }
.diamond-search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    width: 100%;
}
.diamond-search-input::placeholder { color: var(--text-muted); }

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
}
.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 7px 11px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    line-height: 1;
}
.view-btn.active { background: var(--emerald); color: #fff; }
.view-btn:hover:not(.active) { color: var(--emerald-light); }

/* Sort Select */
.diamond-sort-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.2s;
}
.diamond-sort-select:focus { border-color: var(--emerald-light); }
.diamond-sort-select option { background: var(--bg-gradient-2); }

/* ── Diamond Grid ── */
.diamond-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    padding: 4px 0;
}
.diamond-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}
.diamond-card:hover {
    border-color: var(--emerald-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.diamond-card.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.25);
}
.diamond-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.diamond-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.diamond-card:hover .diamond-card-img img { transform: scale(1.05); }
.diamond-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    gap: 8px;
}
.diamond-card:hover .diamond-card-overlay { opacity: 1; }
.diamond-overlay-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Outfit', sans-serif;
}
.diamond-overlay-btn:hover { background: rgba(255,255,255,0.25); }
.diamond-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}
.badge-360 { background: rgba(52,211,153,0.2); color: var(--emerald-light); border: 1px solid rgba(52,211,153,0.3); }
.badge-fast { background: rgba(14,165,233,0.2); color: var(--info); border: 1px solid rgba(14,165,233,0.3); }
.diamond-compare-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    border: 1.5px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    color: #fff;
}
.diamond-compare-check.checked { background: var(--gold); border-color: var(--gold); }
.diamond-card-body {
    padding: 12px 14px 14px;
}
.diamond-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}
.diamond-card-specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.diamond-spec-badge {
    font-size: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Space Mono', monospace;
}
.diamond-card-price {
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--emerald-light);
}
.diamond-card-old-price {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}
.diamond-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.diamond-action-btn {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Outfit', sans-serif;
}
.diamond-action-btn:hover { border-color: var(--emerald-light); color: var(--emerald-light); }
.diamond-action-btn.wishlist:hover { border-color: var(--coral); color: var(--coral); }

/* ── Table header nowrap + sort indicator ── */
.th-nowrap {
    white-space: nowrap;
}
.sortable.th-nowrap { cursor: pointer; user-select: none; }
.sortable.th-nowrap:hover { color: var(--emerald-light); }
.sortable.th-nowrap::after {
    content: ' ⇅';
    font-size: 10px;
    opacity: 0.4;
    margin-left: 2px;
}
.sortable.th-nowrap.sort-asc::after  { content: ' ↑'; opacity: 1; color: var(--emerald-light); }
.sortable.th-nowrap.sort-desc::after { content: ' ↓'; opacity: 1; color: var(--emerald-light); }

/* ── Table View — Fix left-bleed on horizontal scroll ── */
#listView .table-wrapper {
    margin: 0;
    padding: 0;
    border-radius: 10px;
    overflow-x: auto;
    max-width: 100%;
}
#listView .data-table {
    min-width: 900px;
    width: 100%;
}
/* Prevent the results card itself from pushing body width */
.diamond-results-card {
    min-width: 0;
    overflow: hidden;
}
#listView {
    min-width: 0;
    width: 100%;
}

/* ── Table View — Override Bootstrap white backgrounds ── */
.data-table.table,
.data-table.table > :not(caption) > * > *,
.data-table.table > thead,
.data-table.table > tbody,
.data-table.table > thead > tr,
.data-table.table > tbody > tr,
.data-table.table > thead > tr > th,
.data-table.table > tbody > tr > td {
    background-color: transparent !important;
    color: inherit;
}
.data-table.table-hover > tbody > tr:hover > * {
    background-color: var(--glass-hover) !important;
    color: var(--text-secondary);
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
}
/* Kill Bootstrap's internal CSS vars that inject white */
.data-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-striped-color: inherit;
    --bs-table-active-bg: transparent;
    --bs-table-active-color: inherit;
    --bs-table-hover-bg: transparent;
    --bs-table-hover-color: inherit;
    color: var(--text-secondary);
}
.data-table.table-hover tbody tr { transition: background 0.15s; }
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--emerald-light); }

/* ── Compare Tray ── */
.compare-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.compare-tray-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.compare-slots { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.compare-slot {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}
.compare-slot-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.compare-slot-remove:hover { color: var(--danger); }

/* ── Loading Skeleton ── */
.skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(255,255,255,0.04) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Page-level overflow containment ── */
.main-content {
    overflow-x: hidden;
    min-width: 0;
}

/* ── Stats Bar View Toggle ── */
.stats-view-toggle {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.stats-view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 11px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stats-view-btn:hover:not(.active) {
    color: var(--emerald-light);
    background: rgba(52, 211, 153, 0.07);
}
.stats-view-btn.active {
    background: var(--emerald);
    color: #fff;
}

/* ── Diamond Stats Bar ── */
.diamond-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 20px;
}
.diamond-stats-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.diamond-stats-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.diamond-stats-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--emerald-light);
    flex-shrink: 0;
}
.diamond-stats-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.diamond-stats-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}
.diamond-stats-count {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    transition: color 0.3s;
}
.diamond-stats-count.updated {
    color: var(--emerald-light);
}
.diamond-stats-divider {
    width: 1px;
    height: 32px;
    background: var(--glass-border);
    flex-shrink: 0;
}
.diamond-mini-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.diamond-mini-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.diamond-mini-stat-val {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}
.diamond-stats-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.diamond-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    background: rgba(52, 211, 153, 0.08);
    color: var(--emerald-light);
    border: 1px solid rgba(52, 211, 153, 0.2);
    transition: all 0.2s;
    animation: badgePop 0.25s ease;
}
@keyframes badgePop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.diamond-filter-badge .badge-remove {
    background: none;
    border: none;
    padding: 0;
    color: var(--emerald-light);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.diamond-filter-badge .badge-remove:hover { opacity: 1; }
.diamond-active-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .filter-row-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .diamond-filter-card { padding: 18px 16px 14px; }
    .filter-row-grid { grid-template-columns: 1fr; }
    .filter-row-3col { grid-template-columns: 1fr; }
    .filter-row-2col { grid-template-columns: 1fr; }
    .filter-row-lw-lab { grid-template-columns: 1fr; }
    .shape-grid { gap: 8px; }
    .shape-btn { min-width: 64px; padding: 8px 10px 6px; }
    .shape-icon { width: 34px; height: 34px; }
    .results-header { flex-direction: column; align-items: flex-start; }
    .results-controls { width: 100%; justify-content: space-between; }
    .diamond-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .compare-tray-inner { padding: 12px 16px; }
    .diamond-results-card { padding: 16px 14px; }
    .diamond-stats-bar { padding: 14px 16px; gap: 12px; }
    .diamond-stats-count { font-size: 18px; }
    .diamond-stats-divider { display: none; }
}
@media (max-width: 480px) {
    .diamond-grid { grid-template-columns: 1fr; }
    .shape-btn { min-width: 58px; }
}

/* ── Light Mode Overrides ── */
[data-theme="light"] .diamond-range::-webkit-slider-thumb { border-color: #f5f5f0; }
[data-theme="light"] .diamond-sort-select option { background: #f1f8e9; }
[data-theme="light"] .compare-tray { background: rgba(255,255,255,0.85); }

/* ── Parcel Non-Cert badge ── */
.prcl-badge-noncert {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}
/* ============================================================
   FIND PARCEL PAGES CSS END
   ============================================================ */
   
   /* ============================================================
   MY DIAMOND FORM PAGE CSS STARED
   ============================================================ */

/* ── 3-column grid ── */
.dform-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
}

/* ── 4-column grid ── */
.dform-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 20px;
}

/* ── 5-column grid for measurements ── */
.dform-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 16px;
}

/* ── Unit badge inside input (% etc.) ── */
.dform-unit-badge {
    position: absolute;
    right: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    pointer-events: none;
}

/* ── INR / % prefix styling ── */
.dform-inr-prefix {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: var(--emerald-light);
}
.dform-pct-prefix {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: var(--gold);
}

/* ── Auto-calculated (readonly) fields ── */
.dform-auto-field {
    background: rgba(52, 211, 153, 0.05) !important;
    color: var(--emerald-light) !important;
    font-family: 'Space Mono', monospace !important;
    font-weight: 700 !important;
    cursor: default;
    border-color: rgba(52, 211, 153, 0.2) !important;
}
.dform-auto-field:focus {
    border-color: rgba(52, 211, 153, 0.35) !important;
    box-shadow: none !important;
}
.dform-auto-field::placeholder {
    color: var(--text-muted) !important;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Outfit', sans-serif !important;
}

/* ── Upload Zone ── */
.dform-upload-zone {
    position: relative;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
    overflow: hidden;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dform-upload-zone:hover {
    border-color: var(--emerald-light);
    background: rgba(52, 211, 153, 0.04);
}
.dform-upload-zone.dform-drag-over {
    border-color: var(--emerald-light);
    background: rgba(52, 211, 153, 0.08);
    transform: scale(1.01);
}
.dform-upload-zone.dform-zone-uploaded {
    border-color: var(--emerald-light);
    border-style: solid;
}
.dform-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.dform-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}
.dform-upload-icon {
    font-size: 24px;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}
.dform-upload-zone:hover .dform-upload-icon { color: var(--emerald-light); }
.dform-upload-text {
    font-size: 13px;
    color: var(--text-secondary);
}
.dform-upload-browse {
    color: var(--emerald-light);
    font-weight: 600;
    text-decoration: underline;
}
.dform-upload-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── File chip (after upload) ── */
.dform-file-chip-wrap { margin-top: 6px; }
.dform-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 100%;
    animation: chipFadeIn 0.2s ease;
}
@keyframes chipFadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
.dform-chip-icon { font-size: 16px; flex-shrink: 0; }
.dform-chip-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    font-weight: 500;
    color: var(--text-primary);
}
.dform-chip-size {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    white-space: nowrap;
}
.dform-chip-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.dform-chip-remove:hover { color: #f87171; }
.dform-chip-error {
    font-size: 12px;
    color: #f87171;
    display: flex;
    align-items: center;
}

/* ── Save Draft button (gold style) ── */
.dform-btn-draft {
    background: linear-gradient(135deg, var(--gold), var(--amber)) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3) !important;
}
.dform-btn-draft:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4) !important;
    color: #fff !important;
}

/* ── Rotate icon utility ── */
.dform-rotate90 { transform: rotate(90deg); display: inline-block; }

/* ── Responsive ── */
@media (max-width: 1200px) {
    .dform-grid-5col { grid-template-columns: repeat(3, 1fr); }
    .dform-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .dform-grid-3col { grid-template-columns: repeat(2, 1fr); }
    .dform-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .dform-grid-3col,
    .dform-grid-4col,
    .dform-grid-5col { grid-template-columns: 1fr; }
}
/* ============================================================
   MY DIAMOND FORM PAGE CSS END
   ============================================================ */
   /* ============================================================
   MY DIAMOND PAGE add on CSS for Add new diamond card
   ============================================================ */

/* ── My Diamond grid — 2-col layout ── */
.mydiamond-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ── Nav Card base ── */
.mydiamond-nav-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
    padding: 40px 36px 36px;
    will-change: transform;
    min-height: 220px;
}
.mydiamond-nav-card:hover {
    text-decoration: none;
}

/* ── Card inner layout ── */
.mydiamond-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

/* ── Icon wrap ── */
.mydiamond-card-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.mydiamond-nav-card:hover .mydiamond-card-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
}
.mydiamond-card-icon-wrap.cyan {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(52, 211, 153, 0.06));
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.mydiamond-card-icon-wrap.magenta {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(212, 165, 116, 0.06));
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.2);
}
.mydiamond-card-icon-wrap.purple {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.25), rgba(224, 122, 95, 0.06));
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.2);
    border: 1px solid rgba(224, 122, 95, 0.2);
}
.mydiamond-card-icon-wrap.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.06));
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ── Card main icon ── */
.mydiamond-card-icon {
    font-size: 32px;
}
.mydiamond-card-icon-wrap.cyan    .mydiamond-card-icon { color: var(--emerald-light); }
.mydiamond-card-icon-wrap.magenta .mydiamond-card-icon { color: var(--gold); }
.mydiamond-card-icon-wrap.purple  .mydiamond-card-icon { color: var(--coral); }
.mydiamond-card-icon-wrap.success .mydiamond-card-icon { color: var(--success); }

/* ── Card body text ── */
.mydiamond-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mydiamond-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.mydiamond-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}
.mydiamond-card-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald-light);
    margin-top: 4px;
    transition: gap 0.2s ease;
    letter-spacing: 0.02em;
}
.mydiamond-nav-card:hover .mydiamond-card-link { gap: 6px; }

/* ── Arrow top-right ── */
.mydiamond-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    color: var(--text-muted);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all 0.25s ease;
    z-index: 2;
}
.mydiamond-nav-card:hover .mydiamond-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── Hover glow backgrounds ── */
.mydiamond-card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.mydiamond-nav-card:hover .mydiamond-card-glow { opacity: 1; }
.cyan-glow    { background: radial-gradient(ellipse at 20% 20%, rgba(52, 211, 153, 0.08) 0%, transparent 70%); }
.magenta-glow { background: radial-gradient(ellipse at 20% 20%, rgba(212, 165, 116, 0.08) 0%, transparent 70%); }
.purple-glow  { background: radial-gradient(ellipse at 20% 20%, rgba(224, 122, 95, 0.08) 0%, transparent 70%); }
.success-glow { background: radial-gradient(ellipse at 20% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 70%); }

/* ── Hover border tints per card ── */
.mydiamond-nav-card:has(.cyan-glow):hover    { border-color: rgba(52, 211, 153, 0.4) !important; }
.mydiamond-nav-card:has(.magenta-glow):hover { border-color: rgba(212, 165, 116, 0.4) !important; }
.mydiamond-nav-card:has(.purple-glow):hover  { border-color: rgba(224, 122, 95, 0.4) !important; }
.mydiamond-nav-card:has(.success-glow):hover { border-color: rgba(34, 197, 94, 0.4) !important; }

/* ── Staggered entrance animations ── */
.mydiamond-grid .mydiamond-nav-card:nth-child(1) { animation-delay: 0.1s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(2) { animation-delay: 0.2s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(3) { animation-delay: 0.3s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(4) { animation-delay: 0.4s; }
.mydiamond-grid .mydiamond-nav-card:nth-child(5) { animation-delay: 0.5s; }

/* ── Excel Download card states ── */
.mydiamond-nav-card.downloading { pointer-events: none; opacity: 0.85; }
.mydiamond-nav-card.downloaded .mydiamond-card-icon { color: var(--success) !important; }
.mydiamond-nav-card.downloaded .mydiamond-card-link { color: var(--success); }
.mydiamond-spin {
    display: inline-block;
    animation: iconSpin 0.9s linear infinite;
}
@keyframes iconSpin { to { transform: rotate(360deg); } }

/* ── My Diamond responsive ── */
@media (max-width: 1100px) and (min-width: 769px) {
    .mydiamond-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mydiamond-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .mydiamond-nav-card {
        padding: 28px 22px 24px;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .mydiamond-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .mydiamond-nav-card {
        padding: 24px 18px 20px;
        min-height: 160px;
    }
    .mydiamond-card-icon-wrap {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }
    .mydiamond-card-icon { font-size: 24px; }
    .mydiamond-card-title { font-size: 17px; }
}
/* ============================================================
   FORGOT PASSWORD PAGE CSS STARED
     ============================================================ */

/* ── Full-width button ── */
.fp-btn-full {
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

/* ── Icon wrap (step 2 & 3 header) ── */
.fp-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.12);
    border: 2px solid rgba(52, 211, 153, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: fpIconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fpIconPop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.fp-icon {
    font-size: 28px;
    color: var(--emerald-light);
}

/* ── Email display in step 2 ── */
.fp-email-display {
    color: var(--emerald-light);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    word-break: break-all;
}

/* ── OTP Input Row ── */
.fp-otp-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 20px;
}
.fp-otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    caret-color: var(--emerald-light);
}
.fp-otp-input:focus {
    border-color: var(--emerald-light);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
    background: rgba(52, 211, 153, 0.04);
}
.fp-otp-input.fp-otp-filled {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.06);
}
.fp-otp-input.fp-otp-success {
    border-color: var(--emerald-light);
    background: rgba(52, 211, 153, 0.12);
    color: var(--emerald-light);
}
.fp-otp-sep {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1;
    margin: 0 2px;
}

/* ── Timer & Resend ── */
.fp-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.fp-timer-label {
    font-size: 13px;
    color: var(--text-muted);
}
.fp-timer {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--emerald-light);
    min-width: 44px;
    text-align: center;
    transition: color 0.3s;
}
.fp-timer.fp-timer-urgent {
    color: #f87171;
    animation: timerPulse 1s ease-in-out infinite;
}
@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
.fp-resend-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--emerald-light);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}
.fp-resend-btn:hover:not(:disabled) {
    background: rgba(52, 211, 153, 0.1);
    border-color: var(--emerald-light);
}
.fp-resend-btn:disabled {
    color: var(--text-muted);
    border-color: var(--glass-border);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ── Back button ── */
.fp-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: color 0.2s;
    gap: 4px;
}
.fp-back-btn:hover { color: var(--emerald-light); }

/* ── Success Panel ── */
.fp-success-wrap {
    text-align: center;
    padding: 8px 0 4px;
}
.fp-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.12);
    border: 2px solid rgba(52, 211, 153, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--emerald-light);
    margin: 0 auto 20px;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1);   opacity: 1; }
}
.fp-success-title { margin-bottom: 10px; }
.fp-btn-signin { margin-top: 24px; }
.fp-auto-redirect {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
}
.fp-auto-redirect span {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: var(--emerald-light);
}

/* ── Bootstrap Alert override ── */
.alert-danger {
    background: rgba(220, 38, 38, 0.12) !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    color: #fca5a5 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    margin-bottom: 18px !important;
    display: flex !important;
    align-items: center !important;
}
.alert-danger .btn-close { filter: invert(1); opacity: 0.6; }
.alert-danger .btn-close:hover { opacity: 1; }

/* ── Responsive: smaller OTP on mobile ── */
@media (max-width: 400px) {
    .fp-otp-input { width: 40px; height: 48px; font-size: 18px; border-radius: 10px; }
    .fp-otp-wrap  { gap: 7px; }
}
/* ============================================================
   FORGOT PASSWORD PAGE CSS END
     ============================================================ */
	 /* ============================================================
   DIAMONDDESK v2.0 — MULTI-SELECT COMPONENT
   Inline accordion — panel expands IN PLACE pushing content
   below it downward. No fixed/absolute, no clipping issues.
   Paste to bottom of templatemo-glass-admin-style.css
   ============================================================ */

/* ── Shape row — horizontal scroll with themed scrollbar ── */
.shape-scroll-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--emerald) rgba(52,211,153,.1);
}
.shape-scroll-wrap::-webkit-scrollbar { height: 5px; border-radius: 4px; }
.shape-scroll-wrap::-webkit-scrollbar-track {
    background: rgba(52,211,153,.08);
    border-radius: 4px;
}
.shape-scroll-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
}
.shape-scroll-wrap::-webkit-scrollbar-thumb:hover { background: var(--emerald-light); }
.shape-scroll-wrap .shape-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: max-content;
    min-width: 100%;
}

/* ══════════════════════════════════════════════════════
   MULTI-SELECT WRAPPER
   display:flex + flex-direction:column means the panel
   sits directly below the trigger in normal flow.
   When it expands via max-height, everything below shifts
   down naturally — no z-index, no overflow:hidden fight.
══════════════════════════════════════════════════════ */
.ms-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ── Trigger ── */
.ms-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    padding: 7px 12px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, border-radius .55s;
    user-select: none;
    box-sizing: border-box;
}
.ms-trigger:hover { border-color: rgba(52,211,153,.45); }
.ms-wrap.ms-open .ms-trigger {
    border-color: var(--emerald-light);
    box-shadow: 0 0 0 3px rgba(52,211,153,.1);
    border-radius: 12px 12px 0 0;
}

/* ── Tags inside trigger ── */
.ms-tags {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    align-items: center;
}
.ms-ph { font-size: 13px; color: var(--text-muted); }

/* ── Tag pill ── */
.ms-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(52,211,153,.15);
    border: 1px solid rgba(52,211,153,.3);
    color: var(--emerald-light);
    border-radius: 6px;
    padding: 2px 7px 2px 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    animation: mTagPop .16s cubic-bezier(.34,1.56,.64,1);
}
@keyframes mTagPop {
    from { transform: scale(.7); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
.ms-tag-x {
    font-size: 14px; line-height: 1; cursor: pointer;
    opacity: .55; color: var(--emerald-light);
    transition: opacity .12s, color .12s; margin-left: 1px;
}
.ms-tag-x:hover { opacity: 1; color: #f87171; }
.ms-tag-more {
    background: rgba(212,165,116,.13);
    border-color: rgba(212,165,116,.28);
    color: var(--gold);
}

/* ── Chevron ── */
.ms-arr {
    font-size: 12px; color: var(--text-muted);
    flex-shrink: 0;
    transition: transform .22s ease, color .2s;
    line-height: 1;
}
.ms-wrap.ms-open .ms-arr { transform: rotate(180deg); color: var(--emerald-light); }

/* ══════════════════════════════════════════════════════
   PANEL — sits in normal flow below trigger
   Expands with max-height animation pushing content down
══════════════════════════════════════════════════════ */
.ms-panel {
    width: 100%;
    background: var(--bg-gradient-2, #132419);
    border: 1.5px solid var(--emerald-light);
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    /* Collapsed */
    max-height: 0;
    opacity: 0;
    /* Smooth slide down — slow and silky */
    transition: max-height .55s cubic-bezier(.4,0,.2,1),
                opacity .4s ease;
}
.ms-wrap.ms-open .ms-panel {
    max-height: 380px;
    opacity: 1;
}

/* ── Search row ── */
.ms-search-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 13px;
    border-bottom: 1px solid var(--glass-border);
}
.ms-search-row i { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.ms-search-inp {
    flex: 1; background: none; border: none; outline: none;
    font-size: 13px; font-family: 'Outfit', sans-serif;
    color: var(--text-primary); caret-color: var(--emerald-light);
}
.ms-search-inp::placeholder { color: var(--text-muted); }

/* ── Action row ── */
.ms-action-row {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 7px 13px;
    border-bottom: 1px solid var(--glass-border);
}
.ms-action-btns { display: flex; gap: 12px; }
.ms-act-btn {
    font-size: 11px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; background: none; border: none;
    cursor: pointer; font-family: 'Outfit', sans-serif;
    padding: 0; transition: opacity .15s;
}
.ms-act-btn.sel-all { color: var(--emerald-light); }
.ms-act-btn.clr-all { color: #f87171; }
.ms-act-btn:hover   { opacity: .7; }
.ms-act-count {
    font-size: 11px; font-family: 'Space Mono', monospace;
    color: var(--text-muted);
}

/* ── Options list ── */
.ms-list {
    overflow-y: auto; max-height: 220px;
    scrollbar-width: thin;
    scrollbar-color: var(--emerald) transparent;
}
.ms-list::-webkit-scrollbar { width: 4px; }
.ms-list::-webkit-scrollbar-track { background: transparent; }
.ms-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--emerald), var(--gold));
    border-radius: 4px;
}

/* ── Option row ── */
.ms-opt {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 10px 14px; cursor: pointer;
    font-size: 13px; color: var(--text-secondary);
    transition: background .12s, color .12s; gap: 10px;
}
.ms-opt:hover { background: var(--glass-hover, rgba(255,255,255,.07)); color: var(--text-primary); }
.ms-opt.sel   { background: rgba(52,211,153,.08); color: var(--text-primary); }
.ms-opt-l     { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

/* Checkbox */
.ms-chk {
    width: 18px; height: 18px; min-width: 18px;
    border-radius: 5px; border: 1.5px solid var(--glass-border);
    background: var(--glass-bg); display: flex;
    align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
    flex-shrink: 0; position: relative;
}
.ms-opt.sel .ms-chk { background: var(--emerald); border-color: var(--emerald); }
.ms-chk::after {
    content: ''; width: 10px; height: 6px;
    border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg) scale(0) translate(0, -1px);
    transition: transform .15s ease; display: block; position: absolute;
}
.ms-opt.sel .ms-chk::after { transform: rotate(-45deg) scale(1) translate(0, -1px); }

/* Color dot */
.ms-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(255,255,255,.15); }

/* Text */
.ms-txt { flex: 1; min-width: 0; }
.ms-txt strong { display: block; font-size: 13px; font-weight: 600; }
.ms-txt small  { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Tick */
.ms-tic { font-size: 16px; color: var(--emerald-light); opacity: 0; transition: opacity .15s; flex-shrink: 0; font-weight: 900; }
.ms-opt.sel .ms-tic { opacity: 1; }

/* Empty */
.ms-empty { padding: 18px; text-align: center; font-size: 13px; color: var(--text-muted); font-style: italic; }

/* Footer */
.ms-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 13px; border-top: 1px solid var(--glass-border); font-size: 12px;
}
.ms-foot-info { color: var(--text-muted); }
.ms-foot-info b { color: var(--emerald-light); }
