/* ===== LUXURY JEWELRY DESIGN SYSTEM ===== */

:root {
    --primary-color: #bc8a5f;
    --primary-dark: #a67c52;
    --primary-light: #d4a574;
    --accent-bg: #fdfaf7;
    --secondary-accent: #f5f5f5;
    --text-dark: #333;
    --text-muted: #666;
    --border-radius: 12px;
    --border-radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(188, 138, 95, 0.1);
    --shadow-md: 0 4px 16px rgba(188, 138, 95, 0.15);
    --shadow-lg: 0 8px 32px rgba(188, 138, 95, 0.2);
    --transition: all 0.3s ease;
    --price-transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fdf9f5;
    color: var(--text-dark);
    line-height: 1.6;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

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

/* ===== INLINE SPECIFICATIONS ===== */
.inline-specs-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    transition: var(--transition);
}

.inline-specs-section.hidden {
    display: none !important;
}

.specs-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.specs-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.specs-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.inline-specs-section .modern-form-group {
    margin-bottom: 1.25rem;
}

.inline-specs-section .modern-input,
.inline-specs-section .modern-select {
    border: 1px solid #ced4da;
    background: white;
}

.inline-specs-section .modern-input:focus,
.inline-specs-section .modern-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(188, 138, 95, 0.25);
}

.inline-specs-section .input-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== PRICE ANIMATION ===== */
.price-display,
#customPriceDisplay,
.updated-estimate-value {
    transition: var(--price-transition) !important;
    will-change: transform, opacity;
}

.price-display.updating,
#customPriceDisplay.updating,
.updated-estimate-value.updating {
    opacity: 0.7;
    transform: scale(0.98);
}

.price-display.updated,
#customPriceDisplay.updated,
.updated-estimate-value.updated {
    opacity: 1;
    transform: scale(1.02);
}

.price-display.settled,
#customPriceDisplay.settled,
.updated-estimate-value.settled {
    opacity: 1;
    transform: scale(1);
}

/* ===== NAVIGATION ===== */
.luxury-nav {
    background: white;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text {
    color: #7A5F3C !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--accent-bg);
    color: var(--primary-color) !important;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: var(--accent-bg);
    border-bottom: 1px solid #e9ecef;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--accent-bg) 0%, #f8f9fa 100%);
    padding: 4rem 0;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-image-grid img {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.hero-image-grid img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.stat-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

/* ===== EVALUATION CARDS ===== */
.evaluation-card {
    transition: var(--transition);
    border: 2px solid transparent;
}

.evaluation-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.evaluation-image-preview {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    background-color: var(--secondary-accent);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

/* ===== FORMS ===== */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(188, 138, 95, 0.15);
}

.form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23bc8a5f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
    font-weight: 500;
    color: var(--text-dark);
    background-color: white;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(188, 138, 95, 0.15);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a67c52' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.form-select:hover {
    border-color: var(--primary-light);
    background-color: var(--accent-bg);
}

.form-select option {
    padding: 0.75rem 1rem;
    background-color: white;
    color: var(--text-dark);
    font-weight: 500;
}

.form-select option:hover,
.form-select option:focus {
    background-color: var(--accent-bg);
    color: var(--primary-color);
}

.form-select option:checked {
    background-color: var(--primary-color);
    color: white;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border-width: 2px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 15px;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ===== TABLES ===== */
.table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
}

.table thead th {
    background: var(--accent-bg);
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #f0f0f0;
}

.table-hover tbody tr:hover {
    background-color: var(--accent-bg);
}

/* ===== MODALS ===== */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1040;
}

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4ee 100%);
}

.modal-header {
    background: linear-gradient(135deg, #bc8a5f 0%, #d4af37 100%);
    border-bottom: 1px solid rgba(188, 138, 95, 0.2);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    color: white;
}

.modal-title {
    font-weight: 600;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* ===== BADGES ===== */
.badge {
    border-radius: 20px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* ===== FOOTER ===== */
.luxury-footer {
    background: linear-gradient(135deg, #7A5F3C 0%, #5D4730 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.luxury-footer .hover-gold:hover {
    color: #FFD700 !important;
    transition: color 0.3s ease;
}

/* Footer hardening for React footer block */
#jiFooter a {
    color: #ffffff !important;
    text-decoration: none !important;
}
#jiFooter a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}
/* Normalize lists inside the unified footer across all pages */
#jiFooter ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
#jiFooter li {
    margin-bottom: 0.5rem;
}

/* Ensure CTA button text stays black even if global link styles apply */
#jiFooter .ji-cta-btn {
    color: #1A1D22 !important;
}

/* ===== LOADING STATES ===== */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ENHANCED PRICING CALCULATION STATES ===== */
.price-loading {
    background: linear-gradient(135deg, rgba(188, 138, 95, 0.1), rgba(188, 138, 95, 0.05));
    border: 1px solid rgba(188, 138, 95, 0.3);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse-glow 1.5s ease-in-out infinite;
    min-height: 2.5rem;
    justify-content: center;
}

.price-loading .fa-spinner {
    font-size: 1rem;
    color: var(--primary-color);
}

.price-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    color: #dc3545;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(188, 138, 95, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(188, 138, 95, 0.4);
        transform: scale(1.02);
    }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* ===== HOVER EFFECTS ===== */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ===== SPECIAL COMPONENTS ===== */
.pricing-card {
    background: linear-gradient(135deg, white 0%, var(--accent-bg) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: 0;
    left: 1rem;
    line-height: 1;
    opacity: 0.3;
}

/* ===== UTILITY CLASSES ===== */
.bg-luxury {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    color: white;
}

.text-luxury {
    color: var(--primary-color) !important;
}

.border-luxury {
    border-color: var(--primary-color) !important;
}

.shadow-luxury {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-luxury {
    border-radius: var(--border-radius-lg) !important;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .card {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .table {
        background: #2a2a2a;
        color: #e0e0e0;
    }
}

/* ===== MINIMAL MODERN HERO STYLES ===== */
.hero-section {
    padding: 4rem 0 6rem 0;
    background: linear-gradient(135deg, #fdf9f5 0%, #f8f4f0 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* ===== MULTI-LINE HERO TITLE ===== */
.hero-title-multiline {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line-1 {
    font-size: 2rem;
    font-weight: 500;
    color: #8a8a8a;
    margin-bottom: 0.5rem;
}

.title-line-2 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.title-line-3 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0;
}

/* Responsive adjustments for multi-line title */
@media (max-width: 768px) {
    .title-line-1 {
        font-size: 1.5rem;
    }
    
    .title-line-2 {
        font-size: 3rem;
    }
    
    .title-line-3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .title-line-1 {
        font-size: 1rem;
    }
    
    .title-line-2 {
        font-size: 2.5rem;
    }
    
    .title-line-3 {
        font-size: 1.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* ===== METAL TYPE BUTTONS ===== */
.metal-type-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 1rem;
}

.metal-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #333;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.metal-btn:hover {
    border-color: var(--primary-color);
    background: var(--accent-bg);
    color: var(--primary-color);
}

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

.metal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(188, 138, 95, 0.25);
}

/* Responsive metal buttons */
@media (max-width: 768px) {
    .metal-type-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .metal-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .metal-type-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Other metal input */
.other-metal-input {
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.other-metal-input .modern-input {
    border: 2px solid rgba(188, 138, 95, 0.3);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    width: 100%;
}

.other-metal-input .modern-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(188, 138, 95, 0.25);
    outline: none;
}

/* Deselect button */
.metal-deselect {
    margin-top: 0.75rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.deselect-btn {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.deselect-btn:hover {
    background: #dc3545;
    color: white;
}

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

/* ===== MINIMAL UPLOAD SECTION ===== */
.upload-section {
    max-width: 1000px;
    margin: 0 auto;
}

.upload-container {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* ===== MODERN ENHANCED UPLOAD SECTION ===== */
.upload-container-modern {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fafafa 100%);
    border-radius: 2rem;
    padding: 4rem 5rem;
    box-shadow: 
        0 10px 50px rgba(188, 138, 95, 0.12),
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(188, 138, 95, 0.15);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.upload-container-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #bc8a5f, #d4a574, #bc8a5f);
    border-radius: 2rem 2rem 0 0;
}

.upload-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.upload-title-modern {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 70%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.upload-area {
    display: block;
    width: 100%;
    padding: 5rem 4rem;
    border: 3px dashed rgba(188, 138, 95, 0.4);
    border-radius: 2rem;
    background: linear-gradient(135deg, #fdfbf8 0%, #fbf7f2 50%, #f9f5f0 100%);
    color: #7b6b5c;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(188, 138, 95, 0.05), transparent);
    transition: left 0.6s ease;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #faf6f1 0%, #f7f1eb 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(188, 138, 95, 0.15);
}

.upload-area.drag-highlight {
    border-color: var(--primary-color);
    background: #f2f9f1;
    border-style: solid;
    box-shadow: 0 0 20px rgba(193, 153, 107, 0.2);
}

.upload-area.file-selected {
    border-color: #28a745;
    background: #f8fff8;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.upload-icon {
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

.upload-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ===== MODERN FORM ELEMENTS ===== */
.metal-selection {
    margin-bottom: 2.5rem;
}

.modern-select {
    border: 2px solid rgba(188, 138, 95, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    transition: all 0.3s ease;
}

.modern-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.1);
    outline: none;
}

/* ===== RESPONSIVE STYLING ===== */
@media (max-width: 768px) {
    .upload-container-modern {
        padding: 3rem 2.5rem;
        border-radius: 1.5rem;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .upload-title-modern {
        font-size: 2rem;
    }
    
    .upload-subtitle {
        font-size: 1.1rem;
    }
    
    .upload-area {
        padding: 4rem 2rem;
        min-height: 250px;
    }
    
    .upload-icon {
        font-size: 3.5rem;
    }
    
    .upload-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .upload-container-modern {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .upload-title-modern {
        font-size: 1.8rem;
    }
    
    .upload-area {
        padding: 3rem 1.5rem;
        min-height: 200px;
    }
}

.form-label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.modern-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 2px solid #e1e5e9;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23bc8a5f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a67c52' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    transform: translateY(-1px);
}

.modern-select:hover {
    border-color: var(--primary-light);
    background-color: var(--accent-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modern-select option {
    padding: 1rem 1.25rem;
    background-color: white;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 0;
}

.modern-select option:hover,
.modern-select option:focus {
    background-color: var(--accent-bg);
    color: var(--primary-color);
}

.modern-select option:checked {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* ===== CTA BUTTON ===== */
.cta-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 153, 107, 0.3);
}

/* ===== CTA MODAL TYPOGRAPHY ===== */
.cta-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cta-modal-subtitle {
    font-size: 0.95rem;
    color: #475467;
    line-height: 1.55;
    margin: 0.35rem 0 0 0;
}

.cta-modal-body {
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.6;
}

.cta-modal-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.cta-modal-input {
    font-size: 0.95rem;
}

/* ===== DIVIDER ===== */
.or-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.or-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.or-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

/* ===== SPECS TOGGLE BUTTON ===== */
.toggle-section {
    text-align: center;
    margin: 2rem 0;
}

.specs-toggle-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
}

.specs-toggle-btn:hover {
    background: var(--accent-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 138, 95, 0.15);
}

.specs-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.specs-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* ===== DUAL OPTION BUTTONS ===== */
.specs-option-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.specs-option-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
}

.specs-option-btn:hover {
    background: var(--accent-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 138, 95, 0.15);
}

/* ===== DETAILED SPECS STYLING ===== */
.detailed-specs {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    animation: slideDown 0.4s ease-out;
}

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

/* ===== INPUT METHOD SELECTION ===== */
.input-method-selection {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.method-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.method-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.method-btn:hover {
    background: var(--accent-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.method-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(188, 138, 95, 0.3);
}

.method-btn i {
    font-size: 1rem;
}

/* ===== INPUT SECTIONS ===== */
.input-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.input-section.active {
    display: block;
}

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

/* ===== CERTIFICATE UPLOAD STYLING ===== */
.certificate-upload-area {
    margin-bottom: 1.5rem;
}

.certificate-drop-zone {
    display: block;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.certificate-drop-zone:hover {
    border-color: var(--primary-color);
    background: var(--accent-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(188, 138, 95, 0.15);
}

.certificate-drop-zone.drag-over {
    border-color: var(--primary-color);
    background: var(--accent-bg);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-text h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.upload-text p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.certificate-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-thumbnail {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.certificate-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.certificate-close-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.certificate-overlay {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== CERTIFICATE PROGRESS ===== */
.certificate-progress {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* ===== ENHANCED LUXURY PROGRESS BAR SYSTEM ===== */
.luxury-progress-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.luxury-progress-bar {
    width: 100%;
    height: 48px; /* Optimized for mobile */
    background: linear-gradient(135deg, #8b6f47 0%, #7a5f3a 50%, #6b5530 100%); /* Darker brown to match Manual Input button */
    border-radius: 24px; /* Fully rounded for modern look */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.luxury-progress-bar.flashing {
    animation: bar-flash 1.2s ease-in-out infinite;
}

@keyframes bar-flash {
    0% { filter: brightness(1) saturate(1); box-shadow: 0 4px 12px rgba(139,111,71,0.30); }
    50% { filter: brightness(1.15) saturate(1.1); box-shadow: 0 6px 18px rgba(188,138,95,0.45); }
    100% { filter: brightness(1) saturate(1); box-shadow: 0 4px 12px rgba(139,111,71,0.30); }
}

.luxury-progress-indicator {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: inherit;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.luxury-progress-indicator::after { display: none; content: none; }

/* Flashing sheen to indicate active work during long AI step */
@keyframes luxury-flash {
    0% { opacity: 0.35; }
    50% { opacity: 0.8; }
    100% { opacity: 0.35; }
}

.luxury-progress-bar.progress-analyzing .luxury-progress-indicator::after {
    animation: luxury-flash 1.2s ease-in-out infinite;
}

/* ETA text under progress */
.luxury-progress-eta {
    margin-top: 10px;
    text-align: center;
}
.luxury-progress-eta .eta-line {
    font-weight: 600;
    color: #5b6570;
}
.luxury-progress-eta .eta-note {
    font-size: 0.9rem;
    color: #6b7280;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ji-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #bc8a5f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.luxury-progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: white !important; /* Ensure white text color */
    white-space: nowrap;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Stronger shadow for better contrast */
    letter-spacing: 0.3px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .luxury-progress-bar {
        height: 44px;
    }
    
    .luxury-progress-label {
        font-size: 0.85rem;
    }
}

/* Utility classes for different progress states */
.luxury-progress-bar.progress-uploading .luxury-progress-indicator {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.luxury-progress-bar.progress-analyzing .luxury-progress-indicator {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.luxury-progress-bar.progress-completing .luxury-progress-indicator {
    background: linear-gradient(90deg, rgba(144, 238, 144, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
}

/* Hide deprecated progress elements */
.evaluation-progress-container,
.evaluation-progress-bar,
.evaluation-progress-fill,
.evaluation-progress-text,
.simple-progress,
.progress-spinner {
    display: none !important;
}

/* Ensure luxury progress takes precedence */
.luxury-progress-wrapper {
    display: flex !important;
}

.evaluation-cancel-btn:hover {
    background: #e9ecef;
    border-color: #5a6268;
    color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.evaluation-cancel-btn i {
    font-size: 0.7rem;
}

.progress-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.progress-spinner {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.progress-text {
    text-align: left;
}

.progress-text h6 {
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
    font-weight: 600;
}

.progress-text small {
    color: var(--text-muted);
}

/* ===== CERTIFICATE RESULTS ===== */
.certificate-results {
    background: #f8fff8;
    border: 1px solid #d4edda;
    border-radius: 10px;
    padding: 1.5rem;
}

.results-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d4edda;
}

.results-header h5 {
    margin: 0;
    color: #155724;
    font-weight: 600;
}

.results-header i {
    margin-right: 0.5rem;
}

.spec-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.spec-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.spec-header-text {
    flex: 1;
    text-align: center;
}

.spec-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.spec-close-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(188, 138, 95, 0.15);
}

.spec-close-btn i {
    font-size: 0.9rem;
}

.spec-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.spec-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== MODERN FORM GROUPS ===== */
.modern-form-group {
    margin-bottom: 2rem;
}

.modern-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.label-text {
    font-size: 1rem;
}

.label-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.label-optional {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    font-style: italic;
}

.input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.modern-input:hover {
    border-color: var(--primary-light);
    background-color: var(--accent-bg);
}

.modern-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    font-weight: 500;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modern-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-hint i {
    color: var(--primary-color);
}

/* ===== STONE SECTIONS ===== */
.stone-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.section-header {
    margin-bottom: 1rem;
}

.unit-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-stone-section {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.stone-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: end;
}

.stone-type-select {
    flex: 1;
    min-width: 180px;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23bc8a5f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.stone-type-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.12), 0 3px 12px rgba(0, 0, 0, 0.06);
}

.size-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex: 1;
    min-width: 120px;
    max-width: 140px;
}

/* Special styling for side stone weight/size input */
.side-input-group:last-child .size-input-group {
    min-width: 200px;
    max-width: 220px;
    width: 100%;
}

.size-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.size-input-group:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.size-input, .count-input {
    border: none;
    outline: none;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
    background: transparent;
}

.size-unit {
    padding: 0.875rem 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-left: 1px solid #e0e6ed;
    min-width: 65px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.size-input-group:focus-within .size-unit {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(188, 138, 95, 0.1) 100%);
    color: var(--primary-dark);
}

/* ===== ADD STONE BUTTON ===== */
.add-stone-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(188, 138, 95, 0.2);
}

.add-stone-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 138, 95, 0.3);
}

.add-stone-btn i {
    font-size: 0.75rem;
}

/* ===== CLEAR ALL BUTTON ===== */
.clear-all-container {
    margin-top: 1rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.clear-all-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

.clear-all-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.clear-all-btn i {
    font-size: 0.8rem;
}

/* ===== STONES CONTAINER ===== */
.stones-container {
    margin-top: 1rem;
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

/* Empty container styling removed since we now have default items */

/* ===== STONE ITEM ===== */
.stone-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stone-item-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    padding: 1rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.stone-field {
    display: flex;
    flex-direction: column;
}

.stone-field .modern-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.size-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.size-input-group .modern-input {
    flex: 1;
}

.unit-selector {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.85rem;
    min-width: 60px;
}

.remove-stone-btn {
    background: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.remove-stone-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
}

.custom-stone-section,
.diamond-quality-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Responsive design for stone items */
@media (max-width: 768px) {
    .stone-item-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .stone-controls-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    
    .side-stone-inputs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .remove-stone-btn {
        align-self: center;
        margin-top: 1rem;
    }
    
    .main-input-group,
    .side-input-group,
    .accent-input-group {
        max-width: 100%;
        width: 100%;
    }
}

.stone-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(188, 138, 95, 0.1);
}

.stone-item:last-child {
    margin-bottom: 0;
}

.stone-controls-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
    padding: 1rem;
}

.stone-select-section {
    flex: 1;
    min-width: 180px;
}

.stone-inputs-group {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

/* ===== MAIN STONE SPECIFIC STYLING ===== */
.main-stone-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    justify-items: center;
    align-items: center;
}

.main-input-group {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
}

.main-input-with-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.main-size-input {
    max-width: 140px;
}

.main-optional-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.centered-input {
    text-align: center;
}

/* ===== SIDE STONE SPECIFIC STYLING ===== */
.side-stone-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.side-input-group {
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side-input-group:first-child {
    max-width: 180px;
}

.side-input-group:last-child {
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side-input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

/* Center the label for weight/size field */
.side-input-group:last-child .side-input-label {
    text-align: center;
}

.side-input-with-optional {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.side-optional-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.side-stone-input-with-unit {
    position: relative;
}

.unit-selector {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 8px;
    text-align: center;
}

.unit-selector:focus {
    color: var(--primary-color);
}

.side-stone-input-with-unit .size-input {
    padding-right: 55px;
}

.side-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.side-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.side-input:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== ACCENT STONE SPECIFIC STYLING ===== */
.accent-stone-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    justify-items: center;
    align-items: center;
}

.accent-input-group {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accent-input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
}

.accent-input-with-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.accent-size-input {
    max-width: 160px;
}

.accent-optional-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.count-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 110px;
    width: 110px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.count-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.12), 0 3px 12px rgba(0, 0, 0, 0.06);
}

.count-input {
    border: none;
    outline: none;
    padding: 0.75rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    background: transparent;
    text-align: center;
}

.count-unit {
    padding: 0.75rem 0.5rem;
    background: #f8f9fa;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-left: 1px solid #e9ecef;
    min-width: 55px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== REMOVE STONE BUTTON ===== */
.remove-stone-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

.remove-stone-btn:hover {
    background: #c82333;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.remove-stone-btn i {
    font-size: 0.8rem;
}

/* ===== CUSTOM STONE INPUT ===== */
.custom-stone-input {
    margin-top: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

.custom-input-row {
    margin-bottom: 0.75rem;
}

.custom-stone-type {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.custom-stone-type:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.12), 0 3px 12px rgba(0, 0, 0, 0.06);

/* ===== LUXURY DIAMOND SPECIFICATIONS STYLING ===== */
.diamond-specs-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8f6f4 100%);
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 2rem;
    padding: 0;
    margin-top: 2rem;
    box-shadow: 0 20px 60px rgba(188, 138, 95, 0.12), 0 8px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.diamond-specs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 2rem;
    padding: 3px;
    background: linear-gradient(135deg, rgba(188, 138, 95, 0.3), rgba(188, 138, 95, 0.1), rgba(188, 138, 95, 0.2));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.diamond-specs-note {
    background: linear-gradient(135deg, #bc8a5f 0%, #a67c52 20%, #d4a574 100%);
    color: white;
    margin: 0;
    padding: 1.5rem 2rem;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.diamond-specs-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.diamond-specs-note i {
    color: #333 !important;
    font-size: 1.1rem;
    text-shadow: none;
    z-index: 1;
    position: relative;
}

.diamond-specs-note small {
    color: #333 !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: none;
    z-index: 1;
    position: relative;
}

.diamond-specs-grid {
    background: none;
    padding: 1rem 0;
    border-radius: 0;
    border: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 600px;
}

.spec-group {
    position: relative;
    background: none;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: none;
}

.spec-group:hover {
    background: none;
    border-color: none;
    transform: none;
    box-shadow: none;
}

.spec-group label {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: block;
    letter-spacing: 0;
    text-transform: none;
    position: relative;
}

.spec-group label::after {
    content: none;
}

.diamond-spec-input,
.diamond-spec-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    background: white;
    transition: all 0.3s ease;
    color: #666;
    appearance: none;
    position: relative;
    box-shadow: none;
}

.diamond-spec-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.diamond-spec-input {
    background-image: none;
    padding-right: 1rem;
}

.diamond-spec-input:focus,
.diamond-spec-select:focus {
    border-color: #bc8a5f;
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.1);
    outline: none;
    transform: none;
    background: #ffffff;
}

.diamond-spec-input:hover,
.diamond-spec-select:hover {
    border-color: #bc8a5f;
    transform: none;
    box-shadow: none;
}

.stone-header-row {
    background: linear-gradient(135deg, rgba(188, 138, 95, 0.03) 0%, rgba(188, 138, 95, 0.08) 100%);
    border: 1px solid rgba(188, 138, 95, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.stone-header-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(188, 138, 95, 0.3) 50%, var(--primary-color) 100%);
    border-radius: 1.5rem 1.5rem 0 0;
}

.stone-selection-group {
    align-items: center;
    gap: 1.5rem;
}

.stone-type-select {
    padding: 1.25rem 2rem;
    border: 3px solid rgba(188, 138, 95, 0.15);
    border-radius: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c2c2c;
    box-shadow: 0 8px 25px rgba(188, 138, 95, 0.08), inset 0 2px 4px rgba(188, 138, 95, 0.02);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23bc8a5f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1.5rem center;
    background-repeat: no-repeat;
    background-size: 1.4rem;
    padding-right: 4rem;
    letter-spacing: 0.3px;
    position: relative;
}

.stone-type-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(188, 138, 95, 0.05) 0%, transparent 50%, rgba(188, 138, 95, 0.05) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stone-type-select:hover::before {
    opacity: 1;
}

.stone-type-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(188, 138, 95, 0.15), 0 12px 35px rgba(188, 138, 95, 0.15), inset 0 2px 4px rgba(188, 138, 95, 0.02);
    outline: none;
    transform: translateY(-3px);
    background: #ffffff;
}

.stone-type-select:hover {
    border-color: rgba(188, 138, 95, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(188, 138, 95, 0.12), inset 0 2px 4px rgba(188, 138, 95, 0.02);
}

/* ===== ENHANCED STONE ITEM STYLING ===== */
.stone-item {
    background: white;
    border: 2px solid rgba(188, 138, 95, 0.08);
    border-radius: 1.5rem;
    padding: 0;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(188, 138, 95, 0.06);
    overflow: hidden;
}

.stone-item:hover {
    border-color: rgba(188, 138, 95, 0.15);
    box-shadow: 0 8px 32px rgba(188, 138, 95, 0.12);
    transform: translateY(-2px);
}

.stone-item-content {
    padding: 1.5rem;
}

.weight-inline-label {
    color: #2c2c2c;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.weight-inline-label::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 1px;
}

.main-weight-inline-group {
    background: linear-gradient(135deg, rgba(188, 138, 95, 0.06) 0%, rgba(188, 138, 95, 0.12) 100%);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(188, 138, 95, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.main-weight-inline-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.7;
}

.main-weight-inline-group:hover {
    border-color: rgba(188, 138, 95, 0.25);
    background: linear-gradient(135deg, rgba(188, 138, 95, 0.08) 0%, rgba(188, 138, 95, 0.15) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(188, 138, 95, 0.08);
}

.main-size-input input {
    border: 2px solid rgba(188, 138, 95, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
    color: #2c2c2c;
    box-shadow: inset 0 2px 4px rgba(188, 138, 95, 0.04);
}

.main-size-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(188, 138, 95, 0.12), inset 0 2px 4px rgba(188, 138, 95, 0.04);
    outline: none;
    transform: translateY(-1px);
    background: #ffffff;
}

.main-size-input input:hover {
    border-color: rgba(188, 138, 95, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(188, 138, 95, 0.06), inset 0 2px 4px rgba(188, 138, 95, 0.04);
}

/* BOOTSTRAP-BASED DIAMOND SPECIFICATIONS */
.diamond-specs-section {
    margin-top: 2rem;
    padding: 0;
}

.diamond-specs-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #333;
}

.diamond-specs-header .fas {
    color: #bc8a5f;
    font-size: 1.2rem;
}

.diamond-spec-select {
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    color: #666 !important;
    transition: all 0.3s ease !important;
}

.diamond-spec-select:focus {
    border-color: #bc8a5f !important;
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.1) !important;
}

.diamond-spec-select:hover {
    border-color: #bc8a5f !important;
}
    
    .stone-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .stone-selection-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .stone-type-select {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
    
    .diamond-spec-input,
    .diamond-spec-select {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .spec-group label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

/* Bootstrap Diamond Specifications Responsive */
@media (max-width: 768px) {
    .diamond-spec-select {
        font-size: 0.95rem !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .diamond-spec-select {
        font-size: 0.85rem !important;
    }
    
    .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
}
    
    .diamond-specs-section {
        border-radius: 1rem;
        margin-top: 1rem;
    }
    
    .stone-item {
        border-radius: 1rem;
        margin-bottom: 1rem;
    }
    
    .stone-item-content {
        padding: 1rem;
    }
    
    .main-weight-inline-group {
        padding: 0.5rem 0.75rem;
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

/* ===== DIAMOND QUALITY INPUT ===== */
.diamond-quality-input {
    margin-top: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

.diamond-quality-row {
    margin-bottom: 0.75rem;
}

.diamond-quality-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.diamond-quality {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.diamond-quality:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.12), 0 3px 12px rgba(0, 0, 0, 0.06);
}

.form-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-text i {
    color: var(--primary-color);
}

/* ===== SIMPLIFIED STONE INTERFACE STYLING ===== */
.all-stones-container {
    margin-bottom: 1.5rem;
}

.stones-list {
    margin-bottom: 1rem;
}

.add-stones-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.add-stones-row .add-stone-btn {
    background: linear-gradient(135deg, #bc8a5f 0%, #a67c52 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 138, 95, 0.2);
    letter-spacing: 0.5px;
    text-align: center;
}

.add-stones-row .add-stone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 138, 95, 0.3);
    background: linear-gradient(135deg, #a67c52 0%, #9a7349 100%);
}

.add-stones-row .add-stone-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(188, 138, 95, 0.25);
}

.add-stones-row .add-stone-btn i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .add-stones-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .add-stones-row .add-stone-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .stone-controls-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stone-item-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .main-stone-inputs {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .side-stone-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .accent-stone-inputs {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .main-input-with-label {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .accent-input-with-label {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .side-input-with-optional {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .remove-stone-btn {
        justify-self: center;
        margin-top: 0.5rem;
    }
    
    .add-stone-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .stone-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detailed-specs {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .spec-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .stone-section {
        padding: 1rem;
    }
    
    .specs-toggle-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

/* ===== PHOTO PREVIEW ===== */
.photo-preview {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    border: 2px solid #28a745;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.preview-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(108, 117, 125, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.photo-close-btn:hover {
    background: rgba(108, 117, 125, 1);
    transform: scale(1.1);
}

.photo-close-btn i {
    font-size: 0.875rem;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-filename {
    font-size: 0.9rem;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* ===== DETAILED SPECIFICATIONS ===== */
.detailed-specs {
    background: #faf9f7;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #f0f0f0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.detailed-specs h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ===== STONES MANAGEMENT ===== */
.stones-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fefefe;
    border-radius: 1rem;
    border: 1px solid #f0f0f0;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.stones-list {
    min-height: 2rem;
}

.stone-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stone-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(188, 138, 95, 0.1);
}

.stone-item-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.stone-item-title {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.remove-stone {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.remove-stone:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
}

.stone-item .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text-muted);
}

.stone-item .form-control,
.stone-item .form-select {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}

.stone-item .form-control:focus,
.stone-item .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(188, 138, 95, 0.1);
}

/* Empty state for stones lists */
.stones-list:empty::after {
    content: "No stones added yet. Click the + button to add stones.";
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
    border: 2px dashed #e0e0e0;
    border-radius: 0.5rem;
    background: #fafafa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .upload-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-actions .btn {
        width: 200px;
    }
    
    .stones-section {
        padding: 1rem;
    }
    
    .stone-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stone-item-header .remove-stone {
        align-self: flex-end;
    }
}
    
    .modal-content {
        background: #2a2a2a;
        color: #e0e0e0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .btn, .navbar, .modal, .alert {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .text-primary {
        color: #000 !important;
    }
}

/* ========================================
   Main Stone Carat Weight Input Controls
   ======================================== */

.carat-weight-control {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.carat-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carat-number-input {
    transition: all 0.3s ease;
    position: relative;
    padding-right: 3rem !important;
    font-weight: 500;
}

.carat-number-input:focus {
    border-color: #bc8a5f;
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.1);
}

.carat-unit-label {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

/* Desktop Hover Up/Down Buttons */
.carat-stepper-buttons {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.carat-input-container:hover .carat-stepper-buttons {
    opacity: 1;
    display: flex;
}

.carat-stepper {
    width: 20px;
    height: 18px;
    border: 1px solid #bc8a5f;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #bc8a5f;
    padding: 0;
    transition: all 0.2s ease;
    outline: none;
}

.carat-stepper-up {
    border-radius: 3px 3px 0 0;
}

.carat-stepper-down {
    border-radius: 0 0 3px 3px;
}

.carat-stepper:hover {
    background: #bc8a5f !important;
    color: white !important;
    transform: scale(1.1);
}

.carat-stepper:active {
    transform: scale(0.95);
}

/* Slider Container */
.carat-slider-container {
    position: relative;
    margin-top: 0.75rem;
}

/* Custom Slider Styling with Progress Bar Effect */
.carat-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

/* WebKit browsers (Chrome, Safari, Edge) */
.carat-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
}

.carat-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #bc8a5f;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.carat-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #d4af37;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.carat-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
    background: #a67c52;
}

/* Firefox */
.carat-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    border: none;
    box-shadow: none;
}

.carat-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: #bc8a5f;
    border: none;
}

.carat-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #bc8a5f;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.carat-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #d4af37;
}

/* Focus states */
.carat-slider:focus {
    outline: none;
}

.carat-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.carat-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(188, 138, 95, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

.slider-labels span:nth-child(2) {
    font-weight: 600;
    color: #bc8a5f;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carat-stepper-buttons {
        display: none !important;
    }
    
    .carat-number-input {
        padding-right: 2.5rem !important;
    }
    
    .carat-slider {
        height: 8px;
    }
    
    .carat-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .carat-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
}



/* ===== MINIMALISTIC LUXURY DROPDOWN ===== */
.luxury-dropdown-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.luxury-dropdown-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
}

.luxury-dropdown-label .required {
    color: var(--primary-color);
    margin-left: 2px;
    font-weight: 400;
}

.luxury-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.875rem center;
    background-repeat: no-repeat;
    background-size: 1em 1em;
    padding-right: 2.75rem;
    font-weight: 400;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.4;
}

.luxury-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(188, 138, 95, 0.08);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23bc8a5f' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.luxury-select:hover {
    border-color: #d0d0d0;
    background-color: #fefefe;
}

.luxury-select:disabled {
    background-color: #f8f9fa;
    color: #aaa;
    cursor: not-allowed;
    border-color: #e8e8e8;
}

.luxury-select option {
    padding: 0.75rem 1rem;
    background-color: white;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.4;
    border: none;
}

.luxury-select option:hover,
.luxury-select option:focus {
    background-color: #faf9f7;
    color: var(--text-dark);
}

.luxury-select option:checked {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

/* Enhanced form group styling */
.luxury-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.luxury-form-group .form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.luxury-form-group .form-help i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

/* Validation states - simplified */
.luxury-select.is-valid {
    border-color: #28a745;
}

.luxury-select.is-invalid {
    border-color: #dc3545;
}

.luxury-select.is-valid:focus {
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.08);
}

.luxury-select.is-invalid:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.08);
}

/* ===== TABBED INTERFACE STYLING ===== */
.tab-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: #bc8a5f;
    color: white;
    box-shadow: 0 2px 8px rgba(188, 138, 95, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(188, 138, 95, 0.1);
    color: #bc8a5f;
}

.tab-description {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding: 0 20px;
    line-height: 1.5;
}

.tab-content-container {
    min-height: 200px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Embedded Jewelry Specifications Styling */
.jewelry-specs-container {
    margin-top: 20px;
}

.stone-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.stone-tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stone-tab-btn.active {
    background: #bc8a5f;
    color: white;
    box-shadow: 0 2px 4px rgba(188, 138, 95, 0.2);
}

.stone-tab-btn:hover:not(.active) {
    color: #374151;
    background: #e5e7eb;
}

.stone-tab-content {
    display: none;
}

.stone-tab-content.active {
    display: block;
}

.stone-tab-content h4 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.stones-list {
    min-height: 200px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

/* Certificate Upload Styling for Tabbed Interface */
.certificate-drop-zone {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.certificate-drop-zone:hover {
    border-color: #bc8a5f;
    background: rgba(188, 138, 95, 0.05);
}

.upload-icon-circle {
    width: 60px;
    height: 60px;
    background: #bc8a5f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.upload-icon-circle i {
    font-size: 24px;
    color: white;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.upload-hint {
    font-size: 0.9rem;
    color: #999;
    display: block;
}

/* ===== LIVE COMMUNITY FEED ===== */
.community-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feed-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(188, 138, 95, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(188, 138, 95, 0.1);
}

.feed-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(188, 138, 95, 0.15);
}

.feed-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feed-stone-info {
    flex: 1;
}

.feed-stone-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.feed-stone-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.feed-timestamp {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

.feed-value {
    text-align: right;
}

.feed-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.feed-metal {
    font-size: 0.85rem;
    color: #666;
    background: rgba(188, 138, 95, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
}

.feed-specs {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.feed-spec {
    text-align: center;
    flex: 1;
}

.feed-spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    display: block;
}

.feed-spec-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view-more {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(188, 138, 95, 0.3);
}

/* Responsive adjustments for feed */
@media (max-width: 768px) {
    .community-feed {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feed-item {
        padding: 1.25rem;
    }
    
    .feed-specs {
        gap: 0.5rem;
    }
}

/* ===== DETAILED SPECIFICATIONS MODAL STYLING ===== */
.detailed-specs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1050;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detailed-specs-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.specs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.specs-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #bc8a5f;
}

.close-specs-btn {
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.close-specs-btn:hover {
    background: #e9ecef;
    color: #374151;
    transform: scale(1.1);
}

/* Modal Action Buttons */
.modal-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.add-stone-btn {
    background: linear-gradient(135deg, #bc8a5f, #d4af37);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-stone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(188, 138, 95, 0.3);
    background: linear-gradient(135deg, #a67c55, #c09a2f);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #374151;
    transform: translateY(-1px);
}

#modalEvaluateBtn, #certificateEvaluateBtn {
    background: linear-gradient(135deg, #bc8a5f, #d4af37);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#modalEvaluateBtn:hover, #certificateEvaluateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(188, 138, 95, 0.3);
    background: linear-gradient(135deg, #a67c55, #c09a2f);
}

/* Certificate Analysis Components */
.certificate-analysis-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
}

.certificate-analysis-results {
    background: #f0fff4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.results-header h4 {
    margin: 0;
    color: #065f46;
    font-size: 1.1rem;
}

.results-content {
    color: #064e3b;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .detailed-specs-modal {
        padding: 10px;
    }
    
    .detailed-specs-content {
        padding: 20px;
        max-height: calc(100vh - 20px);
        border-radius: 8px;
    }
    
    .specs-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-action-buttons button {
        width: 100%;
        justify-content: center;
    }
}

/* Universal Add Buttons Section */
.universal-add-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.universal-add-buttons .add-stone-btn {
    margin-top: 0;
    font-size: 0.9rem;
    padding: 10px 16px;
    flex: 1;
    max-width: 150px;
}

@media (max-width: 768px) {
    .universal-add-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .universal-add-buttons .add-stone-btn {
        width: 100%;
        max-width: none;
    }
}

/* Enhanced Stone Card Styling */
.stone-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stone-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.stone-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.delete-stone-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-stone-btn:hover {
    background: #dc2626;
}

/* Gemstone Search */
.gemstone-search-container {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
}

.gemstone-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #bc8a5f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

/* Nature Toggle */
.nature-toggle {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.nature-btn {
    flex: 1;
    padding: 12px 16px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nature-btn.active {
    background: #bc8a5f;
    color: white;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.category-tab.active {
    background: #bc8a5f;
    color: white;
    border-color: #bc8a5f;
}

/* Gemstone Grid - Updated for 4-column desktop layout */
.gemstone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gemstone-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.gemstone-option.active {
    border-color: #bc8a5f;
    background: #fef7f0;
}

.gemstone-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.gemstone-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Selected Gemstone Display */
.selected-gemstone {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.selected-label {
    color: #0369a1;
    font-weight: 500;
}

.selected-name {
    color: #0c4a6e;
    font-weight: 600;
}

/* Stone Properties */
.stone-properties {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.property-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.property-group {
    display: flex;
    flex-direction: column;
}

.property-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.property-input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.individual-size {
    background: #dbeafe;
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
}

.size-label {
    color: #1e40af;
    font-weight: 500;
}

.size-value {
    color: #1e3a8a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .property-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .gemstone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
