/* Project Case Study Specific Styles */

/* Page Load Animation */
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    /* Animation removed from body to prevent breaking fixed positioning of the cursor */
}

main, .navbar.scrolled, .back-btn {
    animation: fadeInPage 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.project-hero {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 10% 5% 5% 5%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* parallax effect */
    z-index: -1;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

.project-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(5,5,7,0.4) 100%);
}

.project-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.disclaimer-banner {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-style: italic;
}

.project-tag {
    background: rgba(201, 169, 110, 0.12);
    color: var(--accent-highlight);
    border: 1px solid rgba(201, 169, 110, 0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 100px; /* Below navbar */
    left: 5%;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-main);
    font-weight: 600;
    z-index: 90;
    transition: var(--transition-fast);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

/* Project Details Section */
.project-details {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.project-meta {
    position: sticky;
    top: 150px;
}

.meta-item {
    margin-bottom: 2rem;
}

.meta-item h4 {
    color: var(--accent-highlight);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.meta-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.project-description h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.project-description p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Examples Gallery */
.examples-gallery {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .project-title { font-size: 3.5rem; }
    .project-details { grid-template-columns: 1fr; gap: 2rem; }
    .project-meta { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 768px) {
    .project-meta { grid-template-columns: 1fr; }
    .back-btn { top: 80px; padding: 0.5rem 1rem; font-size: 0.9rem; }
}

/* Interactive Demo Section */
.interactive-demo {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--glass-border);
}

.demo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    perspective: 1000px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

/* Platera Card Component */
.platera-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
}

.card-image-wrapper img {
    width: 100%;
    display: block;
}

.card-tag {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: #064e3b; /* Dark green */
    color: #34d399; /* Light green */
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.card-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.portion-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4px;
}

.portion-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: none;
    transition: var(--transition-fast);
}

.portion-btn.active {
    background: var(--text-main);
    color: var(--bg-dark);
}

.price-display {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
    border-radius: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: rgba(255,255,255,0.1);
}

.check-icon {
    display: none;
}

.add-to-cart-btn.adding {
    background: rgba(255,255,255,0.08);
    color: white;
    border-color: rgba(255,255,255,0.15);
}

.add-to-cart-btn.added {
    background: #10b981; /* Success Green */
    color: white;
    border-color: #10b981;
}

.add-to-cart-btn.added .check-icon {
    display: inline-block;
}

/* Nova PLP Interactive Demo */
.plp-section {
    background: #050507;
}

.nova-plp-demo {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 0;
}

/* Sidebar */
.nova-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.reset-btn {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: none;
    transition: color var(--transition-fast);
}

.reset-btn:hover { color: white; }

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 0.8rem;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: none;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.filter-list label:hover { color: white; }

.filter-list input[type="checkbox"] {
    display: none;
}

.custom-check {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    position: relative;
    transition: all var(--transition-fast);
}

input[type="checkbox"]:checked + .custom-check {
    background: white;
    border-color: white;
}

input[type="checkbox"]:checked + .custom-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: none;
    border: 2px solid transparent;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.swatch.active {
    border-color: white;
    transform: scale(1.1);
}

/* Product Grid */
.nova-plp-grid {
    display: flex;
    flex-direction: column;
}

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.results-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sort-dropdown-container {
    position: relative;
}

.sort-dropdown {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
    padding: 0.5rem 0;
}

.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 200px;
    z-index: 50;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: auto;
}

.sort-menu.hidden-menu {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.sort-menu li {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.sort-menu li:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.sort-menu li.active {
    color: white;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-card {
    cursor: none;
}

.product-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a1a;
    aspect-ratio: 3/4;
    margin-bottom: 1.5rem;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-img-container img {
    transform: scale(1.05);
}

.quick-add-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: 1rem;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: center;
}

.product-card:hover .quick-add-overlay {
    bottom: 0;
}

.quick-add-btn {
    width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    color: black;
    border: none;
    padding: 1rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.quick-add-btn:hover {
    background: white;
}

.quick-add-btn.adding {
    background: var(--text-muted);
    color: white;
}

.quick-add-btn.added {
    background: #10b981;
    color: white;
}

.product-info h4 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-muted);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .nova-plp-demo { grid-template-columns: 1fr; }
    .nova-sidebar { position: static; margin-bottom: 2rem; }
}

/* Quantum Dashboard Interactive Demo */
.quantum-dashboard-section {
    background: #02040a; /* Darker space black */
    border-top: 1px solid rgba(0, 255, 162, 0.1);
    padding: 4rem 5%;
}

.quantum-dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 1.5rem;
    align-items: start;
    padding: 0;
    max-width: 1600px;
    margin: 0 auto;
}

.dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Quantum Panels */
.quantum-panel {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quantum-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 162, 0.2), transparent);
}

.quantum-panel:hover {
    border-color: rgba(0, 255, 162, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 162, 0.03);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.panel-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Market Watch */
.market-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.market-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: none;
    transition: background 0.2s;
    align-items: center;
}

.market-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.market-item .symbol {
    font-weight: 700;
    font-size: 0.9rem;
}

.market-item .price {
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    text-align: right;
}

.market-item .change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    text-align: center;
    min-width: 50px;
}

.change.up { background: rgba(0, 255, 162, 0.1); color: #00ffa2; }
.change.down { background: rgba(255, 46, 99, 0.1); color: #ff2e63; }

/* Trades List */
.trades-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    max-height: 300px;
    overflow-y: auto;
}

.trade-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.3rem 0.5rem;
}

.trade-row .price.up { color: #00ffa2; }
.trade-row .price.down { color: #ff2e63; }
.trade-row .time { color: var(--text-muted); text-align: right; }

/* Main Trading Area */
.asset-pair {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pair-icon {
    width: 24px;
    height: 24px;
    background: #f7931a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
}

.asset-pair h3 {
    color: white !important;
    text-transform: none !important;
    font-size: 1.2rem !important;
}

.live-indicator {
    background: rgba(0, 255, 162, 0.1);
    color: #00ffa2;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 0.5rem;
    animation: pulse-neon 2s infinite;
}

@keyframes pulse-neon {
    0% { opacity: 1; text-shadow: 0 0 5px #00ffa2; }
    50% { opacity: 0.5; text-shadow: 0 0 0px transparent; }
    100% { opacity: 1; text-shadow: 0 0 5px #00ffa2; }
}

/* Tabs */
.panel-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: none;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00ffa2;
    box-shadow: 0 0 10px #00ffa2;
}

/* Positions Table */
.positions-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr 1.2fr 0.8fr;
    padding: 0.8rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.table-body {
    min-height: 100px;
}

.pos-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr 1.2fr 0.8fr;
    padding: 1rem 0.8rem;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
}

.pos-row .side.long { color: #00ffa2; }
.pos-row .side.short { color: #ff2e63; }
.pos-row .pnl.up { color: #00ffa2; font-weight: 700; }
.pos-row .pnl.down { color: #ff2e63; font-weight: 700; }

.close-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: none;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 46, 99, 0.1);
    border-color: #ff2e63;
    color: #ff2e63;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Execution Panel Overhaul */
.trade-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 1.5rem;
}

.trade-type-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.6rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: none;
    transition: all 0.3s;
}

.trade-type-btn.active {
    background: rgba(255,255,255,0.05);
    color: white;
}

.live-price-strip {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 255, 162, 0.03);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 162, 0.1);
}

.live-price-strip .label { font-size: 0.8rem; color: var(--text-muted); }
.live-price-strip .value { font-family: 'Inter', monospace; font-weight: 700; font-size: 1.1rem; }

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

.input-wrapper input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: 'Inter', monospace;
    font-weight: 600;
    outline: none;
    transition: border-color 0.3s;
}

.input-wrapper input:focus {
    border-color: #00ffa2;
}

.input-wrapper .unit {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.max-label {
    font-size: 0.75rem;
    color: #00ffa2;
    cursor: none;
    text-decoration: underline;
}

.total-row {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.8rem;
    margin-top: 0.8rem;
}

.total-row span:last-child {
    font-size: 1.1rem;
    color: white !important;
}

/* Custom Sliders */
input[type=range] {
    -webkit-appearance: none;
    background: rgba(255,255,255,0.05);
    height: 4px;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #00ffa2;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffa2;
}

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

/* Portfolio Metrics */
.wallet-icon { color: #00ffa2; font-size: 1rem; }

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.quantum-toast {
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid rgba(0, 255, 162, 0.2);
    border-left: 4px solid #00ffa2;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    min-width: 300px;
}

.quantum-toast.show { transform: translateX(0); opacity: 1; }
.quantum-toast.sell-toast { border-left-color: #ff2e63; border-color: rgba(255, 46, 99, 0.2); }

/* Responsive */
@media (max-width: 1400px) {
    .quantum-dashboard-container { grid-template-columns: 240px 1fr 300px; }
}

@media (max-width: 1200px) {
    .quantum-dashboard-container {
        grid-template-columns: 1fr 1fr;
    }
    .market-watch-col { order: 2; }
    .main-trading-col { order: 1; grid-column: span 2; }
    .execution-col { order: 3; }
}

@media (max-width: 900px) {
    .quantum-dashboard-container {
        grid-template-columns: 1fr;
    }
    .main-trading-col, .market-watch-col, .execution-col { grid-column: auto; order: unset; }
}

/* Execution Buttons */
.execute-btn {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    color: white;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.execute-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: 0.5s;
}

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

.execute-btn.buy-mode {
    background: linear-gradient(135deg, #00b377, #00ffa2);
    box-shadow: 0 0 20px rgba(0, 255, 162, 0.3);
}

.execute-btn.buy-mode:hover {
    box-shadow: 0 0 40px rgba(0, 255, 162, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.execute-btn.sell-mode {
    background: linear-gradient(135deg, #cc2952, #ff2e63);
    box-shadow: 0 0 20px rgba(255, 46, 99, 0.3);
}

.execute-btn.sell-mode:hover {
    box-shadow: 0 0 40px rgba(255, 46, 99, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.execute-btn:active {
    transform: scale(0.98);
}

/* Executing State */
.execute-btn.executing {
    color: transparent;
    pointer-events: none;
}

.execute-btn.executing::after {
    content: 'PROCESSING';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: pulse-text 1s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.execute-btn .btn-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 25%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 75%,
        transparent 100%
    );
    animation: shimmer-infinite 3s infinite linear;
    pointer-events: none;
}

@keyframes shimmer-infinite {
    from { transform: translateX(-100%); }
    to { transform: translateX(50%); }
}

/* Chart Canvas Fix */
canvas#tradingChart {
    background: rgba(0,0,0,0.2);
}

/* ─────────────────────────────────────────
   Platera Case Study Styles
───────────────────────────────────────── */
.platera-case-study main,
.platera-case-study .navbar.scrolled {
    --accent-primary: #e8d5b0;
    --accent-highlight: #c9a96e;
}

.platera-demo-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.platera-calculator-container {
    position: relative;
    border-radius: 24px;
    padding: 3rem;
    background: rgba(18, 17, 15, 0.6);
    border: 1px solid rgba(201, 169, 110, 0.15);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
}

.calc-panel {
    display: flex;
    flex-direction: column;
}

.panel-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    font-family: var(--font-heading);
}

.helper-text {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 1.5rem;
}

/* Meal Selection list styling */
.meal-selection-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meal-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s var(--transition-fast);
}

.meal-card:hover, .meal-card.selected {
    background: rgba(201, 169, 110, 0.04);
    border-color: rgba(201, 169, 110, 0.3);
}

.meal-card.selected {
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.08);
}

.meal-details {
    display: flex;
    flex-direction: column;
}

.meal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.meal-price {
    font-size: 0.8rem;
    color: var(--accent-highlight);
    margin-top: 0.2rem;
}

/* Counter button styling */
.meal-counter {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(0,0,0,0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.06);
}

.counter-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.counter-btn:hover {
    background: var(--accent-highlight);
    color: var(--bg-dark);
}

.meal-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    min-width: 14px;
    text-align: center;
}

/* Portion toggle styling */
.portion-size-row {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
}

.portion-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.portion-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.3s;
}

.portion-btn span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-sub);
}

.portion-btn small {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.portion-btn.active {
    background: rgba(201, 169, 110, 0.05);
    border-color: var(--accent-highlight);
}

.portion-btn.active span {
    color: #ffffff;
}

.portion-btn.active small {
    color: var(--accent-highlight);
}

/* Subscription frequency buttons */
.subscription-frequency-selector {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.freq-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s;
}

.freq-btn .freq-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-sub);
}

.freq-btn .freq-discount {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.freq-btn.active {
    background: rgba(201, 169, 110, 0.05);
    border-color: var(--accent-highlight);
}

.freq-btn.active .freq-title {
    color: #ffffff;
}

.freq-btn.active .freq-discount {
    color: var(--accent-highlight);
}

/* Checkout breakdown summary styling */
.checkout-breakdown {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 0.8rem;
}

.breakdown-row.discount-row {
    color: #4ade80;
}

.summary-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 1.2rem 0;
}

.breakdown-row.total-row {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
}

.breakdown-row.total-row span:last-child {
    color: var(--accent-highlight);
}

/* Delivery date banner styling */
.delivery-date-banner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(201,169,110,0.06);
    border: 1px solid rgba(201,169,110,0.15);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.delivery-date-banner i {
    font-size: 1rem;
    color: var(--accent-highlight);
}

/* Checkout button styling */
.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s;
}

.checkout-btn:disabled {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.03);
}

.checkout-btn:not(:disabled):hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.08);
}

/* Checkout success screen styling */
.success-screen-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
    z-index: 50;
}

.success-screen-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-card {
    text-align: center;
    padding: 4rem 3rem;
    max-width: 500px;
    width: 90%;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 169, 110, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.success-icon {
    font-size: 4.5rem;
    color: #4ade80;
    margin-bottom: 1.5rem;
}

.success-card h2 {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.success-card p {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive adjustment for checkout grid */
@media (max-width: 991px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
@media (max-width: 768px) {
    .platera-calculator-container {
        padding: 2rem 1.5rem;
    }
}

