/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #818cf8;
    --secondary: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 35px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Simple Bot Status */
.bot-status {
    margin-top: 15px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.85);
    color: #4B5563;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.bot-status:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    margin: 0;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

input[type="url"],
input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 10px 20px;
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Products */
#productsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}

.product-item:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
    background: linear-gradient(135deg, #ffffff 0%, #fefeff 100%);
}

.product-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.product-item:hover .product-image {
    transform: scale(1.05) rotate(2deg);
}

.product-info {
    flex: 1;
}

.product-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.4;
}

.product-store {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.product-store.amazon {
    background: linear-gradient(135deg, #FF9900 0%, #ff8c00 100%);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.product-store.hepsiburada {
    background: linear-gradient(135deg, #FF6000 0%, #e55a00 100%);
    box-shadow: 0 2px 8px rgba(255, 96, 0, 0.3);
}

.product-store.trendyol {
    background: linear-gradient(135deg, #F27A1A 0%, #e06d15 100%);
    box-shadow: 0 2px 8px rgba(242, 122, 26, 0.3);
}

.product-store.incehesap {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.product-prices {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.9rem;
}

.price {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.price-label {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-weight: 700;
    font-size: 1.15rem;
}

.current-price {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.current-price .price-value {
    color: #059669;
}

.target-price {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.target-price .price-value {
    color: #d97706;
}

.price-drop {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
}

.price-drop .price-value {
    color: #2563eb;
}

.price-loading {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
    font-style: italic;
}

.price-loading .price-value {
    color: #ea580c;
}

/* Share Button */
.share-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    gap: 5px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.share-btn:active {
    transform: translateY(0);
}

/* History Button */
.history-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(23, 162, 184, 0.3);
    gap: 5px;
}

.history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.5);
}

.history-btn:active {
    transform: translateY(0);
}

.price {
    position: relative;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-width: 120px;
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.empty-state::before {
    content: "📦";
    display: block;
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Modal/Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 45px;
    border-radius: 24px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.modal-content.loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.modal-message {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-progress {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    animation: progressAnim 2s ease-in-out infinite;
}

.modal-timer {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.modal-close-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.modal-content.success {
    border-top: 5px solid #4CAF50;
}

.modal-content.error {
    border-top: 5px solid #f44336;
}

.modal-content.warning {
    border-top: 5px solid #ff9800;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Status classes for products */
.status-out-of-stock {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 2px solid #f39c12;
}

.status-price-drop {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    animation: pulse 2s infinite;
}

.out-of-stock-message {
    text-align: center;
    margin: 10px 0;
    animation: fadeIn 0.5s ease-in;
}

@keyframes progressAnim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification {
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    border-left: 4px solid var(--primary);
}

.notification button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.success {
    border-left-color: var(--primary);
}

/* Modern Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px 10px;
    }
    
    header {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .card {
        padding: 25px 20px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    /* Card Header Butonları - Mobil */
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .card-header > div:last-child {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .card-header .btn-sm {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .auth-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .btn-outline,
    .user-info .btn-primary,
    .user-badge {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .limit-info {
        padding: 16px 20px;
        font-size: 0.9rem;
    }
    
    .product-item {
        flex-direction: column;
        gap: 15px;
        padding: 18px;
        border-width: 2px;
        margin-bottom: 8px;
    }
    
    .product-item:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -14px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    }
    
    .product-image {
        width: 100%;
        height: 180px;
        align-self: center;
        max-width: 200px;
    }
    
    .product-actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }
    
    .product-actions button,
    .product-actions .btn {
        flex: 1;
        min-width: 0;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .notification-panel {
        right: 10px;
        left: 10px;
        top: 15px;
    }
    
    .notification {
        min-width: auto;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 15px;
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .bot-status {
        padding: 12px 18px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card h2 {
        font-size: 1.2rem;
    }
    
    .auth-buttons {
        width: 100%;
    }
    
    .btn-outline,
    .user-info .btn-primary {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    .user-info .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .limit-info {
        padding: 14px 16px;
        font-size: 0.85rem;
        text-align: left;
    }
    
    /* Çok küçük ekranlar için butonlar */
    .card-header .btn-sm {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
    }
    
    /* Ürün ayırıcısını daha belirgin yap */
    .product-item:not(:last-child)::after {
        height: 3px;
        background: linear-gradient(90deg, transparent, #d1d5db 20%, #d1d5db 80%, transparent);
    }
    
    /* Ürün kartı gap */
    #productsContainer {
        gap: 25px;
    }
    
    .product-actions button,
    .product-actions .btn {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
    }
}
/* User Info & Limit Styles */
/* Modern User Info & Auth Buttons */
.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.user-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: white;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
    transition: all 0.2s ease;
    border: none;
}

.user-badge:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.guest-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.guest-badge:hover {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
}

/* Modern Auth Buttons - Tam Eşit Boyut */
.auth-buttons .btn-outline,
.auth-buttons .btn-primary,
.auth-buttons .btn-guest,
.auth-buttons a.btn-outline,
.auth-buttons a.btn-primary,
.auth-buttons button.btn-guest {
    padding: 6px 12px !important;
    border-radius: 18px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 32px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.auth-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #4F46E5 !important;
    border: 1px solid rgba(79, 70, 229, 0.2) !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.1) !important;
}

.auth-buttons .btn-outline:hover {
    background: #F0F9FF !important;
    color: #0EA5E9 !important;
    border-color: #0EA5E9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.2) !important;
}

.auth-buttons .btn-primary {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2) !important;
}

.auth-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3) !important;
}

.user-info .btn-sm {
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    color: #6B7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(107, 114, 128, 0.1);
}

.user-info .btn-sm:hover {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.2);
}

/* Guest Button - Sarı */
.auth-buttons .btn-guest {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%) !important;
    color: #92400E !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2) !important;
}

.auth-buttons .btn-guest:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: white !important;
    border-color: #D97706 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3) !important;
}

/* Logout Button - Sarı */
.btn-logout {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%) !important;
    color: #92400E !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 18px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2) !important;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: white !important;
    border-color: #D97706 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3) !important;
}

/* Account Button - Mavi */
.btn-account {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%) !important;
    color: white !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 18px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2) !important;
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.btn-account:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%) !important;
    color: white !important;
    border-color: #1D4ED8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3) !important;
}

/* Minimal Limit Info */
.limit-info {
    margin-top: 15px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.limit-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

/* Limit Info Variants */
.limit-info.warning {
    background: rgba(255, 251, 235, 0.9);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.limit-info.warning:hover {
    background: rgba(255, 251, 235, 1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.limit-info.danger {
    background: rgba(254, 242, 242, 0.9);
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}

.limit-info.danger:hover {
    background: rgba(254, 242, 242, 1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Limit Info Content */
.limit-info {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4B5563;
    line-height: 1.4;
    text-align: center;
}

.limit-info strong {
    color: #4F46E5;
    font-weight: 600;
}

.limit-info.warning strong {
    color: #D97706;
}

.limit-info.danger strong {
    color: #DC2626;
}

/* Simple Progress Bar */
.limit-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.limit-progress-bar {
    height: 100%;
    background: #10B981;
    border-radius: 8px;
    transition: width 0.4s ease;
}

.limit-progress-bar.warning {
    background: #F59E0B;
}

.limit-progress-bar.danger {
    background: #EF4444;
}

/* Lists Grid */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.list-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Modal Textarea */
textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Modal Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal .modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f3f4f6;
    color: var(--danger);
}

.modal-body {
    padding: 25px 30px;
}

/* Recent Products */
.recent-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.recent-product-card {
    display: flex;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.recent-product-card:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.recent-product-image {
    flex-shrink: 0;
}

.recent-product-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.recent-product-info {
    flex: 1;
    min-width: 0;
}

.recent-product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-product-store {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.recent-product-price {
    font-size: 1rem;
    font-weight: 700;
    margin: 5px 0;
}

.recent-product-time {
    font-size: 0.75rem;
    color: #999;
}

/* Top Discounts List */
.top-discounts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.discount-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.discount-item:hover {
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.discount-rank {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

.discount-image {
    flex-shrink: 0;
}

.discount-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.discount-info {
    flex: 1;
    min-width: 0;
}

.discount-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.discount-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.arrow {
    color: #ef4444;
    font-weight: 700;
}

.new-price {
    color: #ef4444;
    font-size: 1.1rem;
    font-weight: 700;
}

.discount-badge {
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 12px;
    min-width: 80px;
}

.discount-percent {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.discount-label {
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.9;
}

.discount-action {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .discount-item {
        flex-wrap: wrap;
    }
    
    .discount-rank {
        order: 1;
    }
    
    .discount-image {
        order: 2;
    }
    
    .discount-badge {
        order: 3;
        margin-left: auto;
    }
    
    .discount-info {
        order: 4;
        width: 100%;
    }
    
    .discount-action {
        order: 5;
        width: 100%;
    }
    
    .discount-action .btn {
        width: 100%;
    }
}

/* Homepage Discounts Section (for guests) */
.homepage-discounts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.homepage-discount-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.homepage-discount-item.top-rank {
    border-color: #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.homepage-discount-item:hover {
    border-color: #ef4444;
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.3);
    transform: translateY(-4px);
}

.discount-rank-big {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.discount-image-big {
    flex-shrink: 0;
}

.discount-image-big img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
}

.discount-info-big {
    flex: 1;
    min-width: 0;
}

.discount-title-big {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.discount-prices-big {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.old-price-big {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    font-weight: 600;
}

.arrow-big {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 700;
}

.new-price-big {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 800;
}

.discount-save {
    color: #10b981;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
}

.discount-badge-big {
    text-align: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 16px;
    min-width: 100px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.discount-percent-big {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.discount-label-big {
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0.95;
    font-weight: 700;
    letter-spacing: 1px;
}

.discount-action-big {
    flex-shrink: 0;
    min-width: 120px;
}

@media (max-width: 968px) {
    .homepage-discount-item {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .discount-rank-big {
        order: 1;
        min-width: 50px;
        font-size: 2rem;
    }
    
    .discount-image-big {
        order: 2;
    }
    
    .discount-badge-big {
        order: 3;
        margin-left: auto;
    }
    
    .discount-info-big {
        order: 4;
        width: 100%;
    }
    
    .discount-action-big {
        order: 5;
        width: 100%;
        min-width: auto;
    }
    
    .discount-action-big .btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }
}

.limit-info.warning {
    background: #fff7ed;
    border-left-color: #f59e0b;
}

.limit-info.danger {
    background: #fef2f2;
    border-left-color: #ef4444;
}

/* ========== RECENT ADDED MODAL ========== */

.recent-added-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-added-item {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
    min-height: 120px;
}

.recent-added-item:hover {
    border-color: #17a2b8;
    box-shadow: 0 8px 24px rgba(23, 162, 184, 0.15);
    transform: translateY(-2px);
}

.recent-added-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #17a2b8;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-added-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.recent-added-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    background: white;
}

.recent-added-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recent-added-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-added-store {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    margin-bottom: 10px;
}

.recent-added-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    min-width: 65px;
}

.price-value {
    font-size: 0.9rem;
    font-weight: 700;
}

.price-value.current {
    color: #10b981;
}

.price-value.target {
    color: #6b7280;
}

.recent-added-time {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.recent-added-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.recent-added-status.price-drop-status {
    background: #dcfce7;
    color: #166534;
}

.recent-added-status.tracking-status {
    background: #eff6ff;
    color: #1d4ed8;
}

.recent-added-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    width: 120px;
    justify-content: flex-start;
}

.recent-added-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .recent-added-item {
        flex-wrap: wrap;
        gap: 15px;
        min-height: auto;
    }
    
    .recent-added-rank {
        order: 1;
        min-width: 30px;
        font-size: 1.2rem;
    }
    
    .recent-added-image {
        order: 2;
    }
    
    .recent-added-info {
        order: 4;
        width: 100%;
    }
    
    .recent-added-actions {
        order: 3;
        flex-direction: row;
        width: auto;
        margin-left: auto;
        gap: 8px;
    }
    
    .recent-added-actions .btn {
        width: auto;
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

