/* QuickFlipFinds - Modern CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: white;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(120, 219, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
    animation: floatParticles 20s ease-in-out infinite;
}

/* Floating particles */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }

@keyframes particleFloat {
    0% { 
        top: 100vh; 
        opacity: 0; 
        transform: scale(0);
    }
    10% { 
        opacity: 1; 
        transform: scale(1);
    }
    90% { 
        opacity: 1; 
        transform: scale(1);
    }
    100% { 
        top: -10vh; 
        opacity: 0; 
        transform: scale(0);
    }
}

@keyframes floatParticles {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    33% { 
        transform: translateY(-20px) rotate(120deg);
        opacity: 0.6;
    }
    66% { 
        transform: translateY(20px) rotate(240deg);
        opacity: 0.4;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideInTop 0.8s ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #667eea;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: brightness(1) drop-shadow(0 0 5px rgba(102, 126, 234, 0.3)); }
    to { filter: brightness(1.2) drop-shadow(0 0 20px rgba(102, 126, 234, 0.6)); }
}

.tagline {
    text-align: center;
    color: #b8c5ff;
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(184, 197, 255, 0.3);
    animation: taglineFloat 4s ease-in-out infinite;
}

@keyframes taglineFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    color: white;
    animation: gradientShift 3s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
    background-size: 150% 150%;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn-discord {
    background: #5865f2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Search */
.search-container {
    background: rgba(25, 25, 45, 0.7);
    backdrop-filter: blur(25px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    animation: slideInDown 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: rotate 10s linear infinite;
    opacity: 0.3;
}

.search-container:hover::before {
    opacity: 0.5;
    animation-duration: 5s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 18px 18px 18px 55px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    font-size: 1.1rem;
    background: rgba(15, 15, 35, 0.8);
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.3),
        0 0 30px rgba(102, 126, 234, 0.4);
    transform: scale(1.02);
    background: rgba(20, 20, 40, 0.9);
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.filter-select {
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(25, 25, 45, 0.8);
    color: white;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.3),
        0 0 25px rgba(102, 126, 234, 0.4);
    transform: scale(1.03);
    background: rgba(20, 20, 40, 0.9);
}

.filter-select:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(102, 126, 234, 0.3);
}

/* Products Grid - IMPROVED RESPONSIVE LAYOUT */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.products-grid::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: gridGlow 8s ease-in-out infinite alternate;
}

@keyframes gridGlow {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Cards - IMPROVED SIZING */
.product-card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    max-height: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform-style: preserve-3d;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        transparent 50%, 
        rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(5deg);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-shrink: 0;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-title {
    padding: 20px 20px 15px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #b8c5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    padding: 0 20px 20px;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    animation: pricePulse 2s ease-in-out infinite;
    filter: contrast(1.2) brightness(1.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    letter-spacing: 0.5px;
}

@keyframes pricePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-actions {
    padding: 0 20px 20px;
    margin-top: auto;
    display: flex;
    justify-content: center;
}

/* Loading & Empty States */
.loading-state, .empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.empty-state h2 {
    font-size: 1.8rem;
    color: #ccc;
    margin-bottom: 10px;
}

.empty-state p {
    color: #aaa;
    font-size: 1.1rem;
}

/* Search Results */
.search-results {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.search-results h3 {
    color: white;
    margin-bottom: 5px;
}

.search-results p {
    color: #ccc;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

/* Forms */
.form-step, form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    background: #1a1a1a;
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Warning Modal */
.warning-modal {
    max-width: 600px;
}

.warning-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.warning-content {
    padding: 30px;
    text-align: center;
}

.warning-icon {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.warning-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.warning-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.discord-info {
    margin-bottom: 25px;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5865f2;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #5865f2;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.discord-link:hover {
    background: #5865f2;
    color: white;
}

.warning-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Purchase Modal */
.purchase-content {
    padding: 20px;
}

.product-preview {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.product-preview h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.price-display {
    margin: 15px 0;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #10b981;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.payment-instructions {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.payment-instructions h5 {
    color: #3b82f6;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-instructions h5::before {
    content: '💳';
    font-size: 18px;
}

.payment-instructions p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #e5e7eb;
}

.paypal-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 113, 194, 0.1), rgba(0, 113, 194, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(0, 113, 194, 0.2);
}

.paypal-info strong {
    color: #0071c2;
    font-weight: 600;
}

.paypal-info span {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.copy-btn {
    padding: 8px 16px;
    font-size: 12px;
    white-space: nowrap;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.note {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background: rgba(156, 163, 175, 0.1);
    border-radius: 6px;
    border-left: 3px solid #9ca3af;
}

.payment-steps {
    margin: 20px 0;
    padding: 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text {
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.4;
}

/* Messages */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

/* Message styles */
.message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 8px;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-left: 4px solid #047857;
}

.message.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-left: 4px solid #b91c1c;
}

.message.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-left: 4px solid #b45309;
}

.message.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-left: 4px solid #1d4ed8;
}

.message i {
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Link Notification */
.link-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.link-notification.show {
    display: flex;
}

.link-notification-content {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.link-notification-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-notification-header h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-notification-body {
    padding: 30px;
    text-align: center;
}

.product-link-display {
    margin: 20px 0;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.link-notification-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Responsive Design - IMPROVED */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .product-card {
        min-height: 400px;
        max-height: 480px;
    }
    
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .product-card {
        min-height: 380px;
        max-height: 460px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .warning-actions {
        flex-direction: column;
    }
    
    .link-notification-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        min-height: 360px;
        max-height: 440px;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .modal-content {
        width: 100%;
        margin: 10px;
        border-radius: 10px;
    }
    
    .form-step, form, .purchase-content, .warning-content, .link-notification-body {
        padding: 20px;
    }
}
