/**
 * demo_new.css
 *
 * 此CSS文件是从 templates/demo_new.html 文件中提取的样式代码
 * 提取时间: 2025-11-12
 * 源文件位置: C:\Users\gcb\Desktop\QuantAgent-main可用1\templates\demo_new.html
 *
 * 提取范围: 从第9行的<style>标签开始到第1017行的</style>标签结束
 */

:root {
    --etrade-purple: #241056;
    --etrade-purple-light: #5627D8;
    --etrade-purple-dark: #1A0B3A;
    --etrade-purple-bg: #F8F5FF;
   --white: #ffffff;
   --gray-50: #F9FAFB;
   --gray-100: #F3F4F6;
   --gray-200: #E5E7EB;
   --gray-300: #D1D5DB;
   --gray-400: #9CA3AF;
   --gray-500: #6B7280;
   --gray-600: #4B5563;
   --gray-700: #374151;
   --gray-800: #1F2937;
   --gray-900: #111827;
}

* {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--etrade-purple-bg);
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.absolute { position: absolute; }
.relative { position: relative; }
.w-full { width: 100%; }
.z-30 { z-index: 30; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.h-16 { height: 4rem; }
.md\:h-20 { height: 5rem; }
.shrink-0 { flex-shrink: 0; }
.mr-4 { margin-right: 1rem; }
.grow { flex-grow: 1; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.ml-3 { margin-left: 0.75rem; }
.block { display: block; }
.text-slate-100 { color: #f1f5f9; }
.bg-slate-800 { background-color: #1e293b; }
.hover\:bg-slate-900:hover { background-color: #0f172a; }
.group { }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.inline-flex { display: inline-flex; }
.tracking-normal { letter-spacing: 0; }
.text-etrade-purple { color: var(--etrade-purple); }
.group-hover\:translate-x-0\.5:hover { transform: translateX(0.125rem); }
.transition-transform { transition-property: transform; }
.duration-150 { transition-duration: 150ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.ml-2 { margin-left: 0.5rem; }
.fill-current { fill: currentColor; }
.grow { flex-grow: 1; }
.pt-36 { padding-top: 9rem; }
.md\:pt-40 { padding-top: 10rem; }
.md\:pb-20 { padding-bottom: 5rem; }
.max-w-xl { max-width: 36rem; }
.md\:max-w-none { max-width: none; }
.text-center { text-align: center; }
.md\:text-left { text-align: left; }
.md\:w-\[600px\] { width: 600px; }
.h1 { font-size: 3rem; font-weight: 700; line-height: 1.2; }
.text-white { color: #ffffff; }
.mb-6 { margin-bottom: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-etrade-purple-light { color: var(--etrade-purple-light); }
.mb-8 { margin-bottom: 2rem; }
.max-w-xs { max-width: 20rem; }
.sm\:max-w-none { max-width: none; }
.sm\:flex { display: flex; }
.sm\:justify-center { justify-content: center; }
.md\:justify-start { justify-content: flex-start; }
.space-y-4 > * + * { margin-top: 1rem; }
.sm\:space-y-0 > * + * { margin-top: 0; }
.sm\:space-x-4 > * + * { margin-left: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.md\:mb-0 { margin-bottom: 0; }
.w-full { width: 100%; }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops)); }
.from-etrade-purple { --tw-gradient-from: var(--etrade-purple); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(92, 45, 145, 0)); }
.to-etrade-purple-light { --tw-gradient-to: var(--etrade-purple-light); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.relative { position: relative; }
.before\:absolute::before { position: absolute; }
.before\:inset-0::before { top: 0; right: 0; bottom: 0; left: 0; }
.before\:bg-etrade-purple::before { background-color: var(--etrade-purple); }
.before\:bg-opacity-60::before { --tw-bg-opacity: 0.6; }
.before\:-z-10::before { z-index: -10; }
.before\:rounded-full::before { border-radius: 9999px; }
.rounded-full { border-radius: 9999px; }
.hover\:bg-etrade-purple-light:hover { background-color: var(--etrade-purple-light); }

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--etrade-purple) 0%, var(--etrade-purple-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Form Styles */
        .form-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(36, 16, 86, 0.25);
    margin: 2rem auto;
    max-width: 1200px;
    overflow: hidden;
}

.form-section {
    padding: 3rem 2rem;
    background: var(--white);
}

.form-section h3 {
    color: var(--etrade-purple);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus, .form-select:focus {
    border-color: var(--etrade-purple);
    box-shadow: 0 0 0 3px rgba(36, 16, 86, 0.1), 0 4px 12px rgba(36, 16, 86, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-control:hover, .form-select:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Glow or Gradient Border on Active Fields */
input[type="time"]:focus, input[type="date"]:focus {
    border: 1px solid #9b6bff;
    box-shadow: 0 0 0 2px rgba(155, 107, 255, 0.2);
    transition: all 0.2s ease-in-out;
}

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

        .btn-primary {
    background: var(--etrade-purple-light);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(86, 39, 216, 0.3);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(86, 39, 216, 0.4);
    background: var(--etrade-purple);
}

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

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-outline-primary {
    background: transparent;
    color: var(--etrade-purple);
    border: 2px solid var(--etrade-purple);
    box-shadow: 0 2px 8px rgba(36, 16, 86, 0.1);
}

.btn-outline-primary:hover {
    background: var(--etrade-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 16, 86, 0.3);
}

.btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(36, 16, 86, 0.2);
}

.btn-outline-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(36, 16, 86, 0.1);
}

.btn-outline-primary:disabled:hover {
    background: transparent;
    color: var(--etrade-purple);
    transform: none;
    box-shadow: 0 2px 8px rgba(36, 16, 86, 0.1);
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

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

.alert {
    border-radius: 12px;
    border: none;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

        .alert-info {
    background: linear-gradient(135deg, rgba(36, 16, 86, 0.1) 0%, rgba(86, 39, 216, 0.1) 100%);
    border-left: 4px solid var(--etrade-purple);
    color: var(--gray-700);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-left: 4px solid #F59E0B;
    color: #92400E;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.row { display: flex; flex-wrap: wrap; margin-left: -0.75rem; margin-right: -0.75rem; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding-left: 0.75rem; padding-right: 0.75rem; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding-left: 0.75rem; padding-right: 0.75rem; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; padding-left: 0.75rem; padding-right: 0.75rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.text-center { text-align: center; }
.fw-bold { font-weight: 600; }
.text-muted { color: var(--gray-500) !important; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.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; }

        .form-check-input:checked {
    background-color: var(--etrade-purple);
    border-color: var(--etrade-purple);
}

.form-check-input:focus {
    border-color: var(--etrade-purple);
    box-shadow: 0 0 0 0.25rem rgba(36, 16, 86, 0.25);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    margin-bottom: 0;
}

        .me-3 { margin-right: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }

/* Asset Button Grid Styles */
.asset-button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: center;
    max-width: 100%;
}

.asset-btn {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1rem 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 120px;
    height: 100px;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.asset-btn:hover {
    background: var(--gray-200);
    border-color: var(--etrade-purple-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 39, 216, 0.15);
}

.asset-btn.active {
    background: var(--etrade-purple-light);
    border-color: var(--etrade-purple-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(86, 39, 216, 0.3);
}

.asset-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.custom-asset-btn {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border: 2px dashed var(--gray-400);
    width: 120px;
    height: 100px;
}

.custom-asset-btn:hover {
    background: linear-gradient(135deg, var(--etrade-purple-light) 0%, var(--etrade-purple) 100%);
    border-color: var(--etrade-purple-light);
    color: var(--white);
}

.input-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    border-color: var(--etrade-purple);
    box-shadow: 0 0 0 3px rgba(36, 16, 86, 0.1);
    outline: none;
}

.input-group .btn {
    border-radius: 12px;
    white-space: nowrap;
    min-width: 100px;
}

/* Panel Layout Styles */
.panel-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.panel {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: var(--etrade-purple-light);
    box-shadow: 0 8px 24px rgba(86, 39, 216, 0.1);
}

.panel-title {
    color: var(--etrade-purple);
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.panel-title i {
    font-size: 1.5rem;
    color: var(--etrade-purple-light);
    background: linear-gradient(135deg, var(--etrade-purple-light) 0%, var(--etrade-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(86, 39, 216, 0.2));
}

.action-panel .panel-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.action-panel .panel-title i {
    color: var(--white);
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

/* Modern Hero Button */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--etrade-purple-light) 0%, var(--etrade-purple) 100%);
    color: var(--white);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(86, 39, 216, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-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.6s;
}

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

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(86, 39, 216, 0.4);
    background: linear-gradient(135deg, var(--etrade-purple) 0%, var(--etrade-purple-light) 100%);
}

.hero-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(86, 39, 216, 0.3);
}

.hero-btn-text {
    position: relative;
    z-index: 1;
}

.hero-btn-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.hero-btn:hover .hero-btn-icon {
    transform: translateX(4px);
}

/* Modern Header Button */
.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--etrade-purple);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.header-btn:hover {
    background: var(--etrade-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 16, 86, 0.2);
    border-color: var(--etrade-purple);
}

.header-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-btn-text {
    position: relative;
    z-index: 1;
}

.header-btn-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.header-btn:hover .header-btn-icon {
    transform: translateX(3px);
}

.action-panel {
    grid-column: 1 / -1;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--gray-800);
}

.action-panel .panel-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Security Panel Styles */
.security-panel {
    background: #FEFBF3;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
}

.security-panel .panel-title {
    color: #374151;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #F3F4F6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.security-icon {
    color: #F59E0B;
    font-size: 1.3rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    background: #FEF3C7;
    padding: 0.5rem;
    border-radius: 8px;
}

.security-content {
    color: #374151;
    line-height: 1.6;
}

.security-content strong {
    color: #1F2937;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.security-content p {
    margin: 0;
    color: #6B7280;
}

/* Title Styles */
.title-main {
    display: inline;
    font-weight: 700;
}

.title-highlight {
    display: inline;
    font-weight: 700;
    color: white;
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--etrade-purple-light);
    border-radius: 1px;
}

/* Mobile title adjustments */
@media (max-width: 768px) {
    .h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* Timeframe Selector Styles */
.timeframe-selector {
    display: flex;
    background: var(--gray-100);
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.timeframe-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0;
    text-align: center;
}

.timeframe-btn:hover {
    background: rgba(86, 39, 216, 0.1);
    color: var(--etrade-purple);
    transform: translateY(-1px);
}

.timeframe-btn.active {
    background: var(--etrade-purple-light);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(86, 39, 216, 0.3);
    transform: translateY(-1px);
}

.timeframe-btn.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--etrade-purple-light), var(--etrade-purple));
    border-radius: 10px;
    z-index: -1;
    opacity: 0.8;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(86, 39, 216, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(86, 39, 216, 0.8), 0 0 30px rgba(86, 39, 216, 0.4);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .timeframe-selector {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .timeframe-selector::-webkit-scrollbar {
        display: none;
    }

    .timeframe-btn {
        flex-shrink: 0;
        min-width: 60px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

        /* Banner Image Styles */
.hero-section img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .col-md-6, .col-md-4 { flex: 0 0 100%; max-width: 100%; }
    .form-container { margin: 1rem; border-radius: 16px; }
    .form-section, .results-section { padding: 2rem 1rem; }

    /* Mobile panel layout */
    .panel-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .panel {
        padding: 1rem;
    }

    /* Mobile banner adjustments */
    .hero-section img {
        max-width: 80%;
        margin: 2rem auto;
        display: block;
    }

    /* Mobile asset button grid */
    .asset-button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .asset-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        min-height: 70px;
    }

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

/* Delete button for custom assets */
.asset-btn .delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0.7rem;
}

.asset-btn:hover .delete-btn {
    opacity: 1;
    transform: scale(1);
}

.asset-btn .delete-btn:hover {
    background: #DC2626;
    transform: scale(1.1);
}

/* Management panel styles */
.asset-management-panel {
    background: linear-gradient(135deg, #F8F5FF 0%, #F3E8FF 100%);
    border: 2px solid #E9D5FF;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.management-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.batch-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.batch-delete-btn {
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-delete-btn:hover:not(:disabled) {
    background: #DC2626;
    transform: translateY(-1px);
}

.batch-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.selected-count {
    background: var(--etrade-purple-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Checkbox styles for assets */
.asset-checkbox-wrapper {
    position: relative;
}

.asset-checkbox {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.management-mode .asset-checkbox {
    opacity: 1;
    transform: scale(1);
}

.asset-checkbox:checked {
    background: var(--etrade-purple-light);
    border-color: var(--etrade-purple-light);
}

.asset-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.asset-btn.selected {
    border-color: var(--etrade-purple-light);
    background: rgba(86, 39, 216, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 39, 216, 0.2);
}