

.container9 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 50px;
}



h1 {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding-top:30px ;
}


/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    padding: 0.5rem 0;
}

/* Left Panel Styles */
.left-panel {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.left-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-text {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
}

.upload-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.upload-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.upload-button:hover::before {
    width: 300px;
    height: 300px;
}

.upload-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(99, 102, 241, 0.3);
}

#fileInput {
    display: none;
}

/* Control Buttons */
.controls {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.mode-btn {
    flex: 1;
    padding: 14px;
    border: none;
    background: #f3f4f6;
    color: var(--text-dark);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.mode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.mode-btn:hover::before {
    left: 100%;
}

.mode-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mode-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

/* Canvas Container */
.canvas-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

#canvas {
    max-width: 100%;
    display: block;
    cursor: crosshair;
    transition: var(--transition);
}

#canvas:hover {
    transform: scale(1.01);
}

.empty-state {
    text-align: center;
    padding: 3.5rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4.5rem;
    margin-bottom: 1.2rem;
    opacity: 0.5;
    color: var(--primary-color);
}

/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
}

.preview-actions {
    display: flex;
    gap: 8px;
}

/* Color Preview - Enhanced Responsiveness */
.preview-color {
    height: 140px;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.preview-color::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%), 
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%), 
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
    z-index: -1;
}

.preview-color:hover {
    transform: scale(1.02);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Color Values - Enhanced Grid */
.color-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 1.2rem;
}

.color-value {
    background: #f3f4f6;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    min-width: 0;
}

.color-value:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-value label {
    color: var(--text-light);
    font-weight: 600;
    flex-shrink: 0;
}

.color-value span {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    margin: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.color-copy-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.color-copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.color-copy-btn.copied {
    background: var(--success-color);
}

/* Palette Controls */
.palette-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-sort {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.filter-sort select {
    background: #f3f4f6;
    color: var(--text-dark);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.filter-sort select:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.palette-actions {
    display: flex;
    gap: 10px;
}

.palette-action-btn {
    background: #f3f4f6;
    color: var(--text-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.palette-action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Palette Container */
.palette-container {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

.palette-container::-webkit-scrollbar {
    width: 8px;
}

.palette-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.palette-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
}

.color-item {
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.color-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.color-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%), 
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%), 
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    z-index: -1;
}

.color-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 8px;
}

.color-item:hover .color-overlay {
    opacity: 1;
}

.color-hex {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.color-delete {
    background: rgba(239, 68, 68, 0.9);
    color: var(--white);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: var(--transition);
}

.color-delete:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 8px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    color: var(--text-dark);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
    border-left: 4px solid var(--success-color);
    max-width: calc(100vw - 60px);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: #ef4444;
}

/* Loading Spinner */
.loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(31, 41, 55, 0.9);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    margin-bottom: 8px;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
    background: #f3f4f6;
    transform: rotate(90deg);
}

/* Export Options */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.export-option {
    background: #f9fafb;
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.export-option:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.export-option i {
    font-size: 2.5rem;
    margin-bottom: 14px;
    color: var(--primary-color);
}

.export-format {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.export-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.modal-btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.modal-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(99, 102, 241, 0.3);
}

.modal-btn-secondary {
    background: #f3f4f6;
    color: var(--text-dark);
    border: none;
}

.modal-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .right-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .color-values {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .right-panel {
        grid-template-columns: 1fr;
    }
    
    .color-values {
        grid-template-columns: 1fr;
    }
    
    .palette-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-sort {
        min-width: 100%;
    }
    
    .export-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .export-option {
        padding: 16px;
    }
    
    .export-option i {
        font-size: 2rem;
    }
    
    .export-format {
        font-size: 1rem;
    }
    
    .export-description {
        font-size: 0.85rem;
    }
    
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    h1 {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .main-content {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .left-panel, .card {
        padding: 1.5rem;
    }
    
    .controls {
        gap: 8px;
    }
    
    .mode-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .empty-state {
        padding: 2.5rem;
    }
    
    .empty-state i {
        font-size: 3.5rem;
    }
    
    .preview-color {
        height: 120px;
        font-size: 1rem;
    }
    
    .color-values {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .color-value {
        padding: 12px;
    }
    
    .color-value span {
        font-size: 0.85rem;
    }
    
    .color-copy-btn {
        width: 26px;
        height: 26px;
    }
    
    .palette {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 10px;
    }
    
    .color-item {
        border-radius: 10px;
    }
    
    .color-hex {
        font-size: 0.6rem;
    }
    
    .color-delete {
        width: 24px;
        height: 24px;
    }
    
    .export-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .main-content {
        gap: 1rem;
    }
    
    .left-panel, .card {
        padding: 1rem;
    }
    
    .controls {
        gap: 6px;
    }
    
    .mode-btn {
        padding: 10px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .mode-btn i {
        font-size: 0.85rem;
    }
    
    .upload-area {
        padding: 1rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-text {
        font-size: 0.9rem;
    }
    
    .upload-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .empty-state {
        padding: 2rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .preview-color {
        height: 100px;
        font-size: 0.9rem;
    }
    
    .color-values {
        gap: 8px;
    }
    
    .color-value {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .color-value span {
        font-size: 0.8rem;
    }
    
    .color-copy-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .palette {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 8px;
    }
    
    .color-item {
        border-radius: 8px;
    }
    
    .color-hex {
        font-size: 0.55rem;
    }
    
    .color-delete {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }
    
    .stats {
        font-size: 0.85rem;
    }
    
    .toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 1.2rem;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .export-option {
        padding: 12px;
    }
    
    .export-option i {
        font-size: 1.8rem;
    }
    
    .export-format {
        font-size: 0.95rem;
    }
    
    .export-description {
        font-size: 0.8rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .left-panel, .card {
        padding: 0.8rem;
    }
    
    .mode-btn {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .upload-area {
        padding: 0.8rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .preview-color {
        height: 90px;
        font-size: 0.85rem;
    }
    
    .palette {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 6px;
    }
    
    .color-hex {
        font-size: 0.5rem;
    }
    
    .color-delete {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/*how its worl*/
/* How It Works Section */
.how-it-work {
    padding: 4rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.how-it-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.work-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step {
    background: #f9fafb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step:hover::before {
    transform: scaleX(1);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

.mode-explanation {
    margin-top: 1.5rem;
}

.mode-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: var(--transition);
}

.mode-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.mode-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-item h4 i {
    color: var(--primary-color);
}

.mode-item p {
    font-size: 0.9rem;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature:hover .feature-icon i {
    color: var(--white);
    transform: scale(1.1);
}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
}

.tips-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.tips-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.tips-list li i {
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .how-it-work {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .work-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon i {
        font-size: 1.3rem;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature h4 {
        font-size: 1.1rem;
    }
    
    .tips-section {
        padding: 1.5rem;
    }
    
    .tips-section h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .how-it-work {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .work-steps {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .step {
        padding: 1.2rem;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }
    
    .step-icon i {
        font-size: 1.2rem;
    }
    
    .step h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .step p {
        font-size: 0.9rem;
    }
    
    .mode-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .mode-item h4 {
        font-size: 0.9rem;
    }
    
    .mode-item p {
        font-size: 0.85rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.3rem;
    }
    
    .feature h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .feature p {
        font-size: 0.9rem;
    }
    
    .tips-section {
        padding: 1rem;
    }
    
    .tips-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .tips-list li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .tips-list li i {
        margin-right: 0.8rem;
    }
}