/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    direction: ltr;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent) 1;
    padding: 1.5rem 0 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 25px 25px;
    margin: 0 auto;
    max-width: 1000px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
    padding: 0 2rem 1.5rem 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-icon i {
    font-size: 1.6rem;
    color: white;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: -2px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-input {
    width: 100%;
    padding: 18px 55px 18px 28px;
    border: 2px solid #e2e8f0;
    border-radius: 35px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 12px 32px rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #764ba2;
    transform: translateY(-50%) scale(1.1);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.last-update i {
    font-size: 0.9rem;
    color: #667eea;
}

.last-update.updating {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    animation: pulse 1s infinite;
}

.refresh-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.refresh-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;
}

.refresh-btn:hover::before {
    left: 100%;
}

.refresh-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.refresh-btn.loading {
    animation: spin 1s linear infinite;
}

.status-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.status-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;
}

.status-btn:hover::before {
    left: 100%;
}

.status-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.status-btn:active {
    transform: scale(0.95);
}

.status-btn.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Navigation Tabs - Now part of header */
/* Navigation Tabs - Original Design */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 0.6rem;
    margin: 0 2rem 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    animation: pulse 2s infinite;
}

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

@media (max-width: 768px) {
    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 0.4rem;
    }
    .tab-btn {
        display: inline-flex;
        flex: none !important;
        min-width: 100px;
        max-width: 150px;
        padding: 8px 12px;
        font-size: 0.85rem;
        height: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: auto;
    }
}

@media (max-width: 480px) {
    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin: 0 0.3rem 0.8rem 0.3rem;
        padding: 0.3rem;
    }
    .tab-btn {
        display: inline-flex;
        flex: none !important;
        min-width: 90px;
        max-width: 120px;
        padding: 6px 10px;
        font-size: 0.8rem;
        height: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: auto;
    }
}

/* Main Content */
.main-content {
    padding: 2rem 0 6rem 0; /* Added bottom padding for fixed footer */
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.stock-card {
    animation: slideInUp 0.6s ease forwards;
}

.stock-card:nth-child(1) { animation-delay: 0.1s; }
.stock-card:nth-child(2) { animation-delay: 0.2s; }
.stock-card:nth-child(3) { animation-delay: 0.3s; }
.stock-card:nth-child(4) { animation-delay: 0.4s; }
.stock-card:nth-child(5) { animation-delay: 0.5s; }
.stock-card:nth-child(6) { animation-delay: 0.6s; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.search-section {
    margin-bottom: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.search-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 12px 32px rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: #667eea;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.search-input:focus + .search-icon {
    color: #764ba2;
    transform: scale(1.1);
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    color: #64748b;
    background: rgba(148, 163, 184, 0.1);
    transform: scale(1.1);
}

.stat-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon.positive {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.stat-icon.negative {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
}

.stat-info h3 {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Section Title */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.section-title i {
    font-size: 1.3rem;
}

/* Stocks Grid */
.stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stock-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.stock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stock-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.4);
}

.stock-card:hover::before {
    transform: scaleX(1);
}

/* Stock Title - Company Name Header */
.stock-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    min-width: 0;
}

.stock-info {
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
}

.stock-symbol {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.stock-name {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}



.stock-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    flex-shrink: 0;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    text-align: right;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Modal specific current price styling */
.modal .current-price {
    text-align: left;
    justify-content: flex-start;
}

.price-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.price-change.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.price-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}



.stock-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e1e5e9;
    align-items: stretch;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 0.8rem;
    color: #333;
    font-weight: 600;
}

/* Modal - Modern Design */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(102, 126, 234, 0.4));
    backdrop-filter: blur(15px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    margin: 1% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 25px;
    pointer-events: none;
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.modal-header {
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea) 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: 25px 25px 0 0;
    position: relative;
    z-index: 1;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
    border-radius: 25px 25px 0 0;
}

.modal-header h2 {
    color: #1e293b;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.close {
    color: #64748b;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(248, 250, 252, 0.2));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.close:hover {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.modal-body {
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 0 0 25px 25px;
    height: calc(100% - 70px);
    overflow-y: auto;
    position: relative;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
}

.stock-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.stock-basic-info h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stock-basic-info p {
    color: #64748b;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    width: 100%;
}

/* Modal specific price info styling */
.modal .price-info {
    align-items: flex-start;
}

.stock-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    margin-bottom: 0.8rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 70px;
    box-sizing: border-box;
}

.stock-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.stock-stats .stat-item:hover::before {
    left: 100%;
}

.stock-stats .stat-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.stock-stats .stat-item:last-child {
    margin-bottom: 0;
}

.stock-stats .stat-item label {
    font-weight: 700;
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 100%;
}

.stock-stats .stat-item span {
    font-weight: 800;
    color: #1e293b;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    height: 100%;
    text-align: right;
}

.chart-container {
    height: 350px;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border-radius: 15px;
    padding: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.time-range-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.time-range-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    color: #667eea;
    transform: translateY(-1px);
}

.time-range-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: calc(100% - 50px);
}

.chart-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 10;
    color: white;
}

.chart-spinner-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chart-spinner-icon {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.chart-spinner-content p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: white;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(118, 75, 162, 0.02));
    border-radius: 15px;
    pointer-events: none;
}

/* Remove background from price change */
.price-change {
    background: none !important;
    border: none !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    text-align: right !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Modal specific price change styling */
.modal .price-change {
    text-align: left !important;
    justify-content: flex-start !important;
    padding: 0.3rem 0.6rem !important;
    margin: 0 !important;
    width: auto !important;
    display: inline-flex !important;
    border-radius: 6px !important;
}

.price-change.positive {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

.price-change.negative {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.price-change.neutral {
    color: #6b7280 !important;
    background: rgba(107, 114, 128, 0.1) !important;
}

/* Remove colons from labels */
.stock-stats .stat-item label::after {
    content: none !important;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

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

/* Responsive Design - Improved Mobile Experience */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem 1rem 1rem;
    }
    
    .search-container {
        max-width: 100%;
        margin: 0;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .logo-text {
        text-align: center;
        align-items: center;
    }
    
    .logo-title {
        font-size: 2rem;
        text-align: center;
    }
    
    /* Improved tab layout for mobile */
    .nav-tabs {
        flex-wrap: wrap;
        padding: 0.3rem;
        margin: 0 0.5rem 0.5rem 0.5rem;
        gap: 0.3rem;
        justify-content: center;
    }
    
    .tab-btn {
        min-width: auto;
        font-size: 0.75rem;
        padding: 8px 10px;
        flex: 1;
        max-width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
    }
    
    /* Fix for long tab text */
.tab-btn span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    font-size: inherit;
}
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stocks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .stock-detail-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Improved modal for mobile */
    .modal-content {
        width: 95%;
        margin: 2% auto;
        border-radius: 20px;
        height: 96vh;
        max-height: 96vh;
    }
    
    .modal-header {
        padding: 1.2rem 1.5rem 0.8rem 1.5rem;
        border-radius: 20px 20px 0 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .modal-body {
        padding: 1.2rem 1.5rem;
        border-radius: 0 0 20px 20px;
        height: calc(100% - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .stock-basic-info h3 {
        font-size: 1.5rem;
        word-break: break-word;
    }
    
    .stock-basic-info p {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    .stock-stats .stat-item {
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .stock-stats {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.3rem;
    }
    
    .stat-info h3 {
        font-size: 0.8rem;
        word-break: break-word;
    }
    
    .stat-info p {
        font-size: 1.4rem;
    }
    
    .stat-icon {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }
    
    .chart-container {
        height: 500px;
        margin-top: 1.2rem;
        padding: 0.8rem;
    }
    
    .stock-title {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        margin-bottom: 0.6rem;
        word-break: break-word;
    }
    
    .buy-signal-row {
        margin: 0.3rem 0 0.6rem 0;
        padding: 0.2rem 0;
    }
    
    .buy-signal {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        min-width: 50px;
        word-break: break-word;
    }
    
    /* Mobile styles for header buttons */
    .header-actions {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .signals-info-btn,
    .disclaimer-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: auto;
        flex: 1;
        max-width: 120px;
        word-break: break-word;
    }
    
    .signals-info-btn span,
    .disclaimer-btn span {
        display: none;
    }
    
    .signals-info-btn i,
    .disclaimer-btn i {
        font-size: 1rem;
    }
    
    /* Fix for email subscription tab */
    .email-subscription {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    .subscription-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .feature-item {
        padding: 0.8rem;
        word-break: break-word;
    }
    
    .feature-item i {
        font-size: 1.2rem;
    }
    
    .feature-item span {
        font-size: 0.8rem;
    }
    
    .email-input-wrapper {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .email-icon {
        padding: 0.8rem;
        text-align: center;
    }
    
    .email-input {
        padding: 1rem;
        text-align: center;
    }
    
    .subscribe-btn {
        padding: 1rem;
        border-radius: 0 0 15px 15px;
    }
    
    /* Additional mobile styles for very small screens */
    @media (max-width: 480px) {
        .header-actions {
            gap: 0.3rem;
        }
        
        .signals-info-btn,
        .disclaimer-btn {
            padding: 0.4rem 0.6rem;
            font-size: 0.75rem;
            max-width: 100px;
        }
        
        .signals-info-btn i,
        .disclaimer-btn i {
            font-size: 0.9rem;
        }
    }
}

/* Medium mobile devices */
@media (max-width: 600px) and (min-width: 481px) {
    .stocks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    
    .stock-card {
        padding: 0.9rem;
        min-height: 130px;
    }
    
    .stock-price {
        text-align: right;
        align-items: flex-end;
        justify-content: flex-end;
    }
    
    .current-price {
        font-size: 1.1rem;
        justify-content: flex-end;
        text-align: right;
    }
    
    .price-change {
        font-size: 0.7rem;
        justify-content: flex-end;
        text-align: right;
        margin-left: auto;
    }
    
    .stock-symbol {
        font-size: 1.05rem;
    }
    
    .stock-name {
        font-size: 0.75rem;
    }
    
    .stock-stats {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 0.6rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1.2rem;
    }
    
    .stat-info h3 {
        font-size: 0.75rem;
    }
    
    .stat-info p {
        font-size: 1.3rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-title {
        font-size: 1.8rem;
    }
    
    .logo-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    /* Fix for tabs on very small screens */
    .nav-tabs {
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 0.4rem;
        border-radius: 12px;
    }
    
    .tab-btn {
    min-width: auto;
    padding: 8px 12px;
    font-size: 0.75rem;
    gap: 0.3rem;
    word-break: break-word;
    white-space: normal;
    line-height: 1.2;
    height: auto;
    min-height: 40px;
}
    
    .tab-btn i {
        font-size: 0.8rem;
    }
    
    .stocks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .stock-card {
        padding: 0.8rem;
        min-height: 120px;
    }
    
    .stock-header {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .stock-price {
        text-align: right;
        align-items: flex-end;
        justify-content: flex-end;
    }
    
    .current-price {
        font-size: 1rem;
        justify-content: flex-end;
        text-align: right;
    }
    
    .price-change {
        font-size: 0.65rem;
        justify-content: flex-end;
        text-align: right;
        padding: 0.15rem 0.3rem;
        margin-left: auto;
    }
    
    .stock-name {
        font-size: 0.7rem;
    }
    
    .stock-symbol {
        font-size: 1rem;
    }
    
    .stock-stats {
        gap: 0.5rem;
        margin-top: 0.6rem;
        padding-top: 0.6rem;
        grid-template-columns: 1fr 1fr;
        display: grid;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .stat-value {
        font-size: 0.7rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-info h3 {
        font-size: 0.7rem;
    }
    
    .stat-info p {
        font-size: 1.2rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .buy-signal {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
    
    /* Mobile styles for buy signal details */
    .buy-signal-details {
        padding: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .signal-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .targets-grid, .levels-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .target-item, .level-item {
        padding: 0.4rem 0.6rem;
    }
    
    .target-item label, .level-item label {
        font-size: 0.7rem;
    }
    
    .target-item span, .level-item span {
        font-size: 0.8rem;
    }
    
    /* Improved modal for very small screens */
    .modal-content {
        width: 98%;
        margin: 1% auto;
        height: 98vh;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .modal-body {
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        height: calc(100% - 70px);
    }
    
    .stock-basic-info h3 {
        font-size: 1.3rem;
    }
    
    .stock-basic-info p {
        font-size: 0.85rem;
    }
    
    .stock-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stock-stats .stat-item {
        padding: 0.5rem 0.7rem;
    }
    
    .chart-container {
        height: 250px;
        margin-top: 1rem;
        padding: 0.6rem;
    }
    
    /* Fix for email subscription on very small screens */
    .email-subscription {
        padding: 1rem;
    }
    
    .subscription-content p {
        font-size: 1rem;
    }
    
    .subscription-features {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem;
    }
    
    .feature-item i {
        margin-bottom: 0;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } 

.stock-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    min-width: 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    min-width: 0;
}

.detail-item .label {
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.detail-item .value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

/* Buy Signal Row */
.buy-signal-row {
    display: flex;
    justify-content: center;
    margin: 0.4rem 0 0.8rem 0;
    padding: 0.3rem 0;
}

.buy-signal {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.buy-signal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Profit Filter Styles */
.profit-filter-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.filter-label i {
    color: #667eea;
    font-size: 1.1rem;
}

.profit-filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    backdrop-filter: blur(10px);
}

.profit-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.profit-filter-select:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

.filter-stats {
    display: flex;
    align-items: center;
}

.filter-count {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Responsive design for profit filters */
@media (max-width: 768px) {
    .profit-filter-container {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .filter-label {
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .profit-filter-select {
        width: 100%;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .filter-stats {
        justify-content: center;
    }
    
    .filter-count {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .profit-filter-container {
        padding: 0.8rem;
        gap: 0.6rem;
    }
    
    .filter-controls {
        gap: 0.6rem;
    }
    
    .filter-label {
        font-size: 0.85rem;
    }
    
    .profit-filter-select {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .filter-count {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Buy signal details styles */
.buy-signal-details {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.signal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.signal-item label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.signal-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

.targets-grid, .levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.target-item, .level-item {
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.target-item:hover, .level-item:hover {
    transform: translateY(-2px);
}

.target-item label, .level-item label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.target-item span, .level-item span {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.pattern-info {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.pattern-info label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
    display: block;
}

.pattern-info span {
    font-weight: 500;
    color: #333;
}

.buy-signal {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 60px;
    justify-content: center;
}

.buy-signal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Signals Info Button */
.signals-info-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.signals-info-btn:hover {
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.signals-info-btn i {
    font-size: 0.9rem;
}

/* Disclaimer Button */
.disclaimer-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.disclaimer-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

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

/* Disclaimer Modal */
.disclaimer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(102, 126, 234, 0.4));
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.disclaimer-modal-content {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    margin: 5% auto;
    padding: 0;
    border-radius: 25px;
    width: 85%;
    max-width: 850px;
    height: auto;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    position: relative;
    display: flex;
    flex-direction: column;
}

.disclaimer-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 25px;
    pointer-events: none;
}

.disclaimer-modal-header {
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea) 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: 25px 25px 0 0;
    position: relative;
    z-index: 1;
}

.disclaimer-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
    border-radius: 25px 25px 0 0;
}

.disclaimer-modal-header h2 {
    color: #1e293b;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.disclaimer-modal-header i {
    color: #ffd700;
    font-size: 1.3rem;
}

.disclaimer-modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
    background: white;
    border-radius: 0 0 25px 25px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.disclaimer-modal-body::-webkit-scrollbar {
    width: 8px;
}

.disclaimer-modal-body::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.disclaimer-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.disclaimer-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
}

.disclaimer-modal-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* Signals Info Modal */
.signals-info-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(16, 185, 129, 0.4));
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.signals-info-modal-content {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    margin: 5% auto;
    padding: 0;
    border-radius: 25px;
    width: 85%;
    max-width: 850px;
    height: auto;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    position: relative;
    display: flex;
    flex-direction: column;
}

.signals-info-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    border-radius: 25px;
    pointer-events: none;
}

.signals-info-modal-header {
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #10b981, #059669, #047857, #10b981) 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border-radius: 25px 25px 0 0;
    position: relative;
    z-index: 1;
}

.signals-info-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857, #10b981);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
    border-radius: 25px 25px 0 0;
}

.signals-info-modal-header h2 {
    color: #1e293b;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signals-info-modal-header i {
    color: #10b981;
    font-size: 1.3rem;
}

.signals-info-modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
    background: white;
    border-radius: 0 0 25px 25px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.signals-info-modal-body::-webkit-scrollbar {
    width: 8px;
}

.signals-info-modal-body::-webkit-scrollbar-track {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
}

.signals-info-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
}

.signals-info-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.signals-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    border-radius: 15px;
    border-left: 4px solid #10b981;
}

.signals-section:last-child {
    margin-bottom: 0;
}

.signals-section h3 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signals-section h3 i {
    color: #10b981;
    font-size: 1.1rem;
}

/* Special colors for different signal types */
.signals-section:nth-child(1) h3 i {
    color: #10b981; /* Green for Buy Signals */
}

.signals-section:nth-child(2) h3 i {
    color: #f59e0b; /* Orange for Hot Stocks */
}

.signals-section:nth-child(3) h3 i {
    color: #ef4444; /* Red for Weak Stocks */
}

.signals-section:nth-child(4) h3 i {
    color: #8b5cf6; /* Purple for Volatile Stocks */
}

.signals-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1rem;
}

.signals-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signals-section li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.signals-section li::before {
    content: '•';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Special colors for bullet points in different signal types */
.signals-section:nth-child(1) li::before {
    color: #10b981; /* Green for Buy Signals */
}

.signals-section:nth-child(2) li::before {
    color: #f59e0b; /* Orange for Hot Stocks */
}

.signals-section:nth-child(3) li::before {
    color: #ef4444; /* Red for Weak Stocks */
}

.signals-section:nth-child(4) li::before {
    color: #8b5cf6; /* Purple for Volatile Stocks */
}

.signals-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-radius: 15px;
    border-left: 4px solid #3b82f6;
}

.signals-note p {
    font-size: 0.7rem;
    line-height: 1.5;
    color: #374151;
    margin: 0;
    font-style: italic;
}

.signals-info-close {
    color: #64748b;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(248, 250, 252, 0.2));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.signals-info-close:hover {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.disclaimer-modal-body p:last-child {
    margin-bottom: 0;
}

.disclaimer-modal-body strong {
    color: #1f2937;
    font-weight: 600;
}

.disclaimer-close {
    color: #64748b;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(248, 250, 252, 0.2));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.disclaimer-close:hover {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}



@media (max-width: 768px) {
    .disclaimer-modal-content {
        width: 95%;
        margin: 2% auto;
        max-width: none;
        height: 90vh;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    .disclaimer-modal-header {
        padding: 1rem 1.5rem;
        flex-shrink: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .disclaimer-modal-header h2 {
        font-size: 1.2rem;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .disclaimer-modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
        border-radius: 0 0 20px 20px;
    }
    
    .disclaimer-modal-body p {
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.6;
        margin-bottom: 1rem;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .disclaimer-modal-content {
        width: 98%;
        margin: 1% auto;
        height: 95vh;
        max-height: 95vh;
    }
    
    .disclaimer-modal-header {
        padding: 0.8rem 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .disclaimer-modal-header h2 {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .disclaimer-modal-body {
        padding: 0.8rem 1rem 1rem 1rem;
        border-radius: 0 0 15px 15px;
    }
    
    .disclaimer-modal-body p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
}

/* Responsive design for Signals Info Modal */
@media (max-width: 768px) {
    .signals-info-modal-content {
        width: 95%;
        margin: 2% auto;
        max-width: none;
        height: 90vh;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    .signals-info-modal-header {
        padding: 1rem 1.5rem;
        flex-shrink: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .signals-info-modal-header h2 {
        font-size: 1.3rem;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .signals-info-modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
        border-radius: 0 0 20px 20px;
    }
    
    .signals-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .signals-section h3 {
        font-size: 1.1rem;
        word-break: break-word;
    }
    
    .signals-section p {
        font-size: 0.9rem;
        line-height: 1.6;
        word-break: break-word;
    }
    
    .signals-section li {
        font-size: 0.85rem;
        line-height: 1.5;
        word-break: break-word;
    }
    
    .signals-note {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .signals-note p {
        font-size: 0.85rem;
        line-height: 1.5;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .signals-info-modal-content {
        width: 98%;
        margin: 1% auto;
        height: 95vh;
        max-height: 95vh;
    }
    
    .signals-info-modal-header {
        padding: 0.8rem 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .signals-info-modal-header h2 {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .signals-info-modal-body {
        padding: 0.8rem 1rem 1rem 1rem;
        border-radius: 0 0 15px 15px;
    }
    
    .signals-section {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .signals-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        word-break: break-word;
    }
    
    .signals-section p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
        word-break: break-word;
    }
    
    .signals-section li {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
        padding-left: 1.2rem;
        word-break: break-word;
    }
    
    .signals-note {
        padding: 0.8rem;
        margin-top: 1rem;
    }
    
    .signals-note p {
        font-size: 0.8rem;
        line-height: 1.4;
        word-break: break-word;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    backdrop-filter: blur(20px);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea) 1;
    padding: 1.5rem 0;
    margin: 3rem 0 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer p {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    opacity: 1;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.footer:hover p {
    opacity: 1;
    transform: translateY(-1px);
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
        margin: 2rem 0 0 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
    }
    
    .footer-content {
        padding: 0 1.5rem;
        flex-direction: column;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 0.8rem 0;
        margin: 1.5rem 0 0 0;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .footer-content {
        padding: 0 1rem;
        flex-direction: column;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}

/* Signals Info Page Styles */
.signals-info-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title i {
    font-size: 2rem;
    color: #667eea;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.signals-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.signals-content .signals-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.signals-content .signals-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.signals-content .signals-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signals-content .signals-section h2 i {
    font-size: 1.5rem;
    color: #667eea;
}

.signals-content .signals-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
}

.signals-content .signals-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.signals-content .signals-section li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

.signals-content .signals-section li:last-child {
    border-bottom: none;
}

.signals-content .signals-section li strong {
    color: #1e293b;
    font-weight: 700;
}

.signals-note {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.signals-note h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d97706;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signals-note h3 i {
    font-size: 1.3rem;
    color: #f59e0b;
}

.signals-note p {
    font-size: 0.7rem;
    line-height: 1.5;
    color: #92400e;
    margin-bottom: 1rem;
}

.signals-note p:last-child {
    margin-bottom: 0;
}

.page-footer {
    margin-top: 3rem;
    text-align: center;
}

.cta-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 25px;
    padding: 2rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.cta-section p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 2rem 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #64748b;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

/* Mobile responsive for signals info page */
@media (max-width: 768px) {
    .signals-info-page {
        padding: 1rem 0;
    }
    
    .page-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .signals-content .signals-section {
        padding: 1.5rem;
    }
    
    .signals-content .signals-section h2 {
        font-size: 1.5rem;
    }
    
    .signals-content .signals-section p {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .signals-content .signals-section {
        padding: 1rem;
    }
    
    .signals-content .signals-section h2 {
        font-size: 1.3rem;
    }
    
    .signals-content .signals-section p {
        font-size: 0.95rem;
    }
    
    .signals-content .signals-section li {
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 1rem;
    }
    
    .cta-section h3 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* Amazon Recommendations Styles */
.amazon-recommendations {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1rem;
    margin: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.amazon-recommendations h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.8rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.amazon-recommendations h3 i {
    font-size: 1rem;
    color: #667eea;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.product-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: inherit;
}

.product-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0.8rem 0 0.3rem 0;
    line-height: 1.3;
    padding-right: 2rem;
}

/* Removed product images - keeping text-only design */

.product-card p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

.product-card .price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #667eea;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-card .price i {
    font-size: 0.9rem;
    color: #10b981;
}

    .amazon-badge {
        position: absolute;
        top: 0.3rem;
        right: 0.3rem;
        background: linear-gradient(135deg, #ff9900, #ff6b00);
        color: white;
        font-size: 0.5rem;
        font-weight: 700;
        padding: 0.15rem 0.4rem;
        border-radius: 6px;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        z-index: 10;
        box-shadow: 0 1px 4px rgba(255, 153, 0, 0.3);
        line-height: 1;
    }

    /* Google AdSense Styles */
    .adsense-container {
        display: block;
        margin: 1rem 0;
        text-align: center;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
        border-radius: 12px;
        padding: 0.75rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(102, 126, 234, 0.1);
        position: relative;
        overflow: hidden;
    }

    .adsense-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
        background-size: 200% 100%;
        animation: gradientShift 3s ease infinite;
    }

    .adsense-container .adsbygoogle {
        display: block !important;
        margin: 0 auto;
        width: 100% !important;
        min-height: 60px;
        max-height: 90px;
        border-radius: 8px;
        overflow: hidden;
        background: #f8f9fa;
    }

    /* Ensure AdSense container is visible */
    .adsense-container {
        min-height: 60px;
        max-height: 90px;
        width: 100%;
        display: block;
        position: relative;
        overflow: hidden;
    }

    /* Ad placeholder styles */
    .ad-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 0.8rem;
        gap: 0.25rem;
        padding: 0.5rem;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
        border-radius: 6px;
        border: 1px dashed rgba(102, 126, 234, 0.3);
        min-height: 60px;
        max-height: 90px;
    }
    
    .ad-placeholder.loading {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(69, 160, 73, 0.1));
        border-color: rgba(76, 175, 80, 0.4);
        color: #4CAF50;
    }
    
    .ad-placeholder.loading i {
        color: #4CAF50;
        animation: spin 1s linear infinite;
    }

    .ad-placeholder i {
        font-size: 1rem;
        color: #667eea;
        opacity: 0.7;
    }

    .ad-placeholder span {
        font-weight: 500;
    }

    /* AdSense responsive adjustments */
    @media (max-width: 768px) {
        .adsense-container {
            margin: 0.75rem 0;
            padding: 0.5rem;
            border-radius: 8px;
            min-height: 50px;
            max-height: 80px;
        }
        
        .ad-placeholder {
            font-size: 0.7rem;
            padding: 0.4rem;
            min-height: 50px;
            max-height: 80px;
        }
    }

    @media (max-width: 480px) {
        .adsense-container {
            margin: 0.5rem 0;
            padding: 0.4rem;
            border-radius: 6px;
            min-height: 45px;
            max-height: 70px;
        }
        
        .ad-placeholder {
            font-size: 0.65rem;
            padding: 0.3rem;
            min-height: 45px;
            max-height: 70px;
        }
    }

/* Sidebar Recommendations */
.sidebar-recommendations {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Amazon recommendations inside grid */
.stocks-grid .amazon-recommendations {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.8rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.stocks-grid .amazon-recommendations h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stocks-grid .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.stocks-grid .product-card {
    padding: 0.6rem;
    border-radius: 8px;
}

.stocks-grid .product-card h4 {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.stocks-grid .product-card p {
    font-size: 0.7rem;
    line-height: 1.2;
}

.sidebar-recommendations h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-recommendations h4 i {
    font-size: 1rem;
    color: #667eea;
}

.sidebar-product {
    display: block;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.sidebar-product:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: inherit;
}

.sidebar-product h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.3rem 0;
}

.sidebar-product p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Mobile responsive for Amazon recommendations */
@media (max-width: 768px) {
    .amazon-recommendations {
        padding: 0.8rem;
        margin: 0;
        border-radius: 12px;
    }
    
    .amazon-recommendations h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .amazon-recommendations h3 i {
        font-size: 0.8rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        margin-top: 0.3rem;
    }
    
    .product-card {
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .product-card h4 {
        font-size: 0.75rem;
        margin: 0.6rem 0 0.2rem 0;
        padding-right: 1.5rem;
        line-height: 1.2;
    }
    
    .product-card p {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .product-card .price {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }
    
    .product-card .price i {
        font-size: 0.6rem;
    }
    
    .amazon-badge {
        top: 0.2rem;
        right: 0.2rem;
        font-size: 0.45rem;
        padding: 0.1rem 0.3rem;
        border-radius: 4px;
    }
    
    .sidebar-recommendations {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .amazon-recommendations {
        padding: 0.6rem;
        margin: 0;
        border-radius: 10px;
    }
    
    .amazon-recommendations h3 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .amazon-recommendations h3 i {
        font-size: 0.7rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
        margin-top: 0.2rem;
    }
    
    .product-card {
        padding: 0.4rem;
        border-radius: 6px;
    }
    
    .product-card h4 {
        font-size: 0.65rem;
        margin: 0.5rem 0 0.15rem 0;
        padding-right: 1.2rem;
        line-height: 1.1;
    }
    
    .product-card p {
        font-size: 0.55rem;
        line-height: 1.1;
    }
    
    .product-card .price {
        font-size: 0.6rem;
        margin-top: 0.2rem;
    }
    
    .product-card .price i {
        font-size: 0.5rem;
    }
    
    .amazon-badge {
        top: 0.15rem;
        right: 0.15rem;
        font-size: 0.4rem;
        padding: 0.08rem 0.25rem;
        border-radius: 3px;
    }
}

/* Email Subscription Styles */
.email-subscription {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.email-subscription::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    backdrop-filter: blur(10px);
    z-index: -1;
}

.subscription-container {
    position: relative;
    z-index: 1;
}

.subscription-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.subscription-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subscription-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.feature-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.subscription-form {
    margin: 2rem 0;
}

.email-input-wrapper {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.email-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.email-icon {
    padding: 1rem 1.2rem;
    color: #667eea;
    font-size: 1.1rem;
    background: rgba(102, 126, 234, 0.1);
}

.email-input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.email-input::placeholder {
    color: #999;
    font-style: italic;
}

.subscribe-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscribe-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;
}

.subscribe-btn:hover::before {
    left: 100%;
}

.subscribe-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.subscribe-btn:active {
    transform: translateY(0);
}

.subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscription-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.subscription-message .message-text {
    flex: 1;
    text-align: center;
}

.subscription-message .message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.subscription-message .message-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.subscription-message .message-close i {
    font-size: 0.9rem;
}

.subscription-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.subscription-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.subscription-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.subscription-note i {
    color: #667eea;
}

/* Responsive Design for Email Subscription */
@media (max-width: 768px) {
    .email-subscription {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    .subscription-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .feature-item {
        padding: 0.8rem;
    }
    
    .feature-item i {
        font-size: 1.2rem;
    }
    
    .feature-item span {
        font-size: 0.8rem;
    }
    
    .email-input-wrapper {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .email-icon {
        padding: 0.8rem;
        text-align: center;
    }
    
    .email-input {
        padding: 1rem;
        text-align: center;
    }
    
    .subscribe-btn {
        padding: 1rem;
        border-radius: 0 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .email-subscription {
        padding: 1rem;
    }
    
    .subscription-content p {
        font-size: 1rem;
    }
    
    .subscription-features {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem;
    }
    
    .feature-item i {
        margin-bottom: 0;
    }
}

/* Email Benefits Section */
.email-benefits {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.email-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    backdrop-filter: blur(10px);
    z-index: -1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.benefit-card h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.benefit-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Email Preview Section */
.email-preview {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.email-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    backdrop-filter: blur(10px);
    z-index: -1;
}

.preview-container {
    max-width: 600px;
    margin: 2rem auto 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.preview-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.preview-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.preview-content {
    padding: 1.5rem;
}

.preview-section {
    margin-bottom: 1.5rem;
}

.preview-section:last-child {
    margin-bottom: 0;
}

.preview-section h5 {
    color: #667eea;
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.preview-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-stats span {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.preview-signal {
    background: rgba(102, 126, 234, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #667eea;
    font-size: 0.9rem;
}

.preview-signal:last-child {
    margin-bottom: 0;
}

.preview-stock {
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    border-left: 3px solid;
}

.preview-stock.positive {
    background: rgba(40, 167, 69, 0.05);
    color: #28a745;
    border-left-color: #28a745;
}

.preview-stock.negative {
    background: rgba(220, 53, 69, 0.05);
    color: #dc3545;
    border-left-color: #dc3545;
}

.preview-stock:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Email Benefits and Preview */
@media (max-width: 768px) {
    .email-benefits,
    .email-preview {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.2rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .benefit-card h4 {
        font-size: 1rem;
    }
    
    .benefit-card p {
        font-size: 0.85rem;
    }
    
    .preview-container {
        margin: 1.5rem auto 0;
    }
    
    .preview-header {
        padding: 1.2rem;
    }
    
    .preview-header h4 {
        font-size: 1.1rem;
    }
    
    .preview-content {
        padding: 1.2rem;
    }
    
    .preview-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .preview-stats span {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .email-benefits,
    .email-preview {
        padding: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .benefit-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .preview-header {
        padding: 1rem;
    }
    
    .preview-header h4 {
        font-size: 1rem;
    }
    
    .preview-content {
        padding: 1rem;
    }
    
    .preview-section h5 {
        font-size: 0.9rem;
    }
    
    .preview-signal,
    .preview-stock {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Terms of Service Modal */
.terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.terms-modal-content {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.terms-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.terms-modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.terms-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.terms-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.terms-modal-header i {
    margin-right: 0.5rem;
    color: #ffc107;
}

.terms-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
    -webkit-overflow-scrolling: touch;
}

.terms-modal-body::-webkit-scrollbar {
    width: 8px;
}

.terms-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.terms-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h3 {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
}

.terms-section h3::before {
    content: '⚠️';
    margin-right: 0.5rem;
    font-size: 1rem;
}

.terms-section p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.terms-modal-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.terms-agreement-container {
    max-width: 600px;
    margin: 0 auto;
}

.terms-agreement-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
}

.agree-terms-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.agree-terms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1ea085);
}

.agree-terms-btn:active {
    transform: translateY(0);
}

.agree-terms-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .terms-modal {
        padding: 0.5rem;
    }
    
    .terms-modal-content {
        max-height: 95vh;
        width: 95%;
        margin: 2% auto;
    }
    
    .terms-modal-header {
        padding: 1.5rem;
        border-radius: 20px 20px 0 0;
    }
    
    .terms-modal-header h2 {
        font-size: 1.5rem;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .terms-modal-body {
        padding: 1.5rem;
        max-height: 50vh;
        -webkit-overflow-scrolling: touch;
        border-radius: 0 0 20px 20px;
    }
    
    .terms-modal-footer {
        padding: 1.5rem;
    }
    
    .terms-agreement-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        word-break: break-word;
    }
    
    .agree-terms-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        width: auto;
        min-width: 200px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .terms-modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
    }
    
    .terms-modal-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .terms-modal-header h2 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .terms-modal-body {
        padding: 1rem;
        border-radius: 0 0 15px 15px;
    }
    
    .terms-section h3 {
        font-size: 1.1rem;
        word-break: break-word;
    }
    
    .terms-section p {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    .terms-agreement-text {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        word-break: break-word;
    }
    
    .agree-terms-btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        width: auto;
        min-width: 180px;
        margin: 0 auto;
        display: block;
    }
}