:root {
    --bg-dark: #0a0a0a;
    --bg-dark-secondary: #1a0a06;
    --chocolate: #3e1f0e;
    --chocolate-light: #5d3924;
    --orange-primary: #ff7f00;
    --orange-secondary: #ff9d5c;
    --neon-cyan: #00f2ff;
    --electric-violet: #8a2be2;
    --white: #ffffff;
    --cream: #f5deb3;
    --glass-bg: rgba(30, 15, 10, 0.85);
    --glass-border: rgba(255, 140, 0, 0.25);
    --hexagon-size: 80px;
    --text-primary: var(--cream);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-secondary));
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

.hex-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.1;
    background: linear-gradient(135deg, transparent 49%, rgba(255, 127, 0, 0.05) 50%, transparent 51%), linear-gradient(45deg, transparent 49%, rgba(255, 127, 0, 0.05) 50%, transparent 51%);
    background-size: var(--hexagon-size) var(--hexagon-size);
}

.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--orange-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--orange-primary), var(--chocolate-light));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transform: rotate(45deg);
}

.logo-icon-inner {
    transform: rotate(-45deg);
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--cream);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--orange-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.matched-chunk summary {
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(255, 157, 92, 0.1);
    color: var(--orange-primary);
    font-weight: 600;
    border-radius: 6px;
    margin-top: 1rem;
}

.matched-chunk pre {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--orange-secondary);
    white-space: pre-wrap;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--cream);
}

section {
    padding: 5rem 5%;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: black;
}

.hero {
    text-align: center;
    padding-top: 10rem;
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 127, 0, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--orange-primary), var(--orange-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--cream);
}

.cta-button {
    background: linear-gradient(135deg, var(--orange-primary), var(--chocolate-light));
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 127, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--chocolate-light), var(--orange-primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(255, 127, 0, 0.4);
}

.cta-button:hover::before {
    opacity: 1;
}

.crypto-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 2rem auto;
    max-width: 800px;
}

.mascot {
    width: 120px;
    height: 120px;
    position: relative;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.mascot:hover {
    transform: scale(1.1);
}

.mascot:active {
    transform: scale(0.95);
}

.crypto {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.bitcoin {
    background: radial-gradient(circle at 30% 30%, #f7931a, #ac6707);
}

.ethereum {
    background: radial-gradient(circle at 30% 30%, #627eea, #2a3c8f);
}

.solana {
    background: radial-gradient(circle at 30% 30%, #00ffa3, #03e1ff);
}

.crypto.flipping {
    animation: flip 0.8s linear infinite;
}

.crypto.flipping-fast {
    animation: flip 0.3s linear infinite;
}

@keyframes flip {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.crypto-name {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.api-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.api-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.api-info h2 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: var(--orange-primary);
}

.api-info p {
    color: var(--cream);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-list p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--cream);
}

.feature-bullets {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--cream);
}

.enhanced-prompt-container,
.preview-section,
.generation-buttons,
.concepts-container {
    transition: all 0.4s ease-out;
}


/* Add these styles to Version B */

.preview-section {
    background: rgba(30, 15, 10, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
}

.preview-columns {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.preview-column {
    flex: 1;
    min-width: 0;
}

.preview-column h5 {
    margin-bottom: 0.5rem;
    color: var(--orange-secondary);
    font-size: 0.9rem;
}

.preview-content {
    background: rgba(30, 15, 10, 0.5);
    border-radius: 8px;
    padding: 1rem;
    height: 200px;
    overflow: auto;
    border: 1px solid var(--glass-border);
}

.template-preview .preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.generation-buttons.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.generation-buttons.disabled .generation-btn {
    background: #555;
    cursor: not-allowed;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 127, 0, 0.1), transparent, rgba(255, 127, 0, 0.1));
    transform: rotate(45deg);
    z-index: -1;
    animation: shine 8s infinite linear;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-50%);
    }
    100% {
        transform: rotate(45deg) translateX(50%);
    }
}

.model-selector {
    margin-bottom: 1.5rem;
}

.model-selector select {
    background: rgba(30, 15, 10, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: var(--cream);
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.model-selector select:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.2);
}

.context-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.context-btn {
    background: rgba(255, 157, 92, 0.2);
    border: 1px solid var(--orange-secondary);
    color: var(--cream);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.context-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 157, 92, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.context-btn:hover::before {
    transform: translateX(100%);
}

.context-btn:hover {
    background: rgba(255, 157, 92, 0.3);
    box-shadow: 0 0 15px rgba(255, 157, 92, 0.2);
}

.input-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--cream);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(30, 15, 10, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.input-group textarea {
    min-height: 150px;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.2);
}

.input-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(30, 15, 10, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23ff9d5c' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.input-group select:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.2);
}

.file-upload {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(30, 15, 10, 0.5);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.file-label:hover {
    border-color: var(--orange-primary);
    background: rgba(30, 15, 10, 0.7);
}

.file-preview {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(30, 15, 10, 0.5);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.multi-file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(30, 15, 10, 0.5);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 157, 92, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-file {
    color: var(--orange-secondary);
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.3s;
}

.remove-file:hover {
    color: var(--orange-primary);
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.file-name {
    font-size: 0.9rem;
    word-break: break-all;
}

.concepts-container {
    margin-top: 1rem;
}

.concept-tag {
    display: inline-block;
    background: rgba(255, 157, 92, 0.2);
    color: var(--orange-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.2rem;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.concept-tag:hover {
    background: rgba(255, 157, 92, 0.3);
    transform: translateY(-2px);
}

.submit-btn {
    color: var(--white);
    border: none;
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-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;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

button#enhance-prompt-btn,
button#submit-btn,
button#submit-file-context,
button#submit-text-context,
button#test-vector-btn,
button#parse-data-btn,
button#admin-login-btn,
button.submit-btn {
    background: linear-gradient(135deg, var(--chocolate-light), var(--orange-primary));
}

button#continue-media-btn,
button#continue-media-btn-2 {
    margin-top: 10px;
    background-color: #9b59b6;
    border-color: #8e44ad;
}

#continue-media-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.results-section {
    padding-top: 4rem;
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h2 {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--orange-primary);
}

.results-header p {
    color: var(--cream);
    font-size: 1.1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.result-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-primary), var(--chocolate-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 140, 0, 0.4);
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--orange-secondary);
}


/* Alternate colors for cards */

.results-grid .result-card:nth-child(4n+1),
.results-grid .result-card:nth-child(4n+4) {
    background: rgba(62, 31, 14, 0.85);
    /* Darker chocolate color */
}

.results-grid .result-card:nth-child(4n+2),
.results-grid .result-card:nth-child(4n+3) {
    background: rgba(30, 15, 10, 0.85);
    /* Original glass background */
}


/* Top border accent colors */

.results-grid .result-card:nth-child(4n+1)::before {
    background: linear-gradient(90deg, var(--orange-primary), var(--orange-secondary));
}

.results-grid .result-card:nth-child(4n+2)::before {
    background: linear-gradient(90deg, var(--electric-violet), rgba(0, 242, 255, 0.7));
}

.results-grid .result-card:nth-child(4n+3)::before {
    background: linear-gradient(90deg, var(--neon-cyan), var(--electric-violet));
}

.results-grid .result-card:nth-child(4n+4)::before {
    background: linear-gradient(90deg, var(--chocolate-light), var(--orange-secondary));
}

div#kernel-answer {
    height: 100vh;
}

.kernel-output {
    min-height: 150px;
    background: rgba(20, 10, 5, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 10px;
    white-space: pre-wrap;
    overflow: auto;
    max-height: 300px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    border: 1px solid rgba(255, 140, 0, 0.15);
    position: relative;
}

.kernel-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 95%, rgba(255, 127, 0, 0.05));
    pointer-events: none;
}

.answer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 157, 92, 0.2);
}

.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.action-label {
    font-size: 0.9rem;
    color: var(--orange-secondary);
    font-weight: 500;
}

.action-btn {
    background: rgba(255, 157, 92, 0.2);
    color: var(--orange-secondary);
    border: 1px solid var(--orange-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.action-btn:hover {
    background: rgba(255, 157, 92, 0.3);
    transform: translateY(-2px);
}

.follow-up-suggestions {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 157, 92, 0.2);
    padding-top: 1.5rem;
}

.follow-up-suggestions h4 {
    color: var(--orange-secondary);
    margin-bottom: 0.8rem;
}

.follow-up-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.follow-up-btn {
    background: rgba(255, 157, 92, 0.1);
    color: var(--cream);
    border: 1px solid var(--orange-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.follow-up-btn:hover {
    background: rgba(255, 157, 92, 0.2);
    transform: translateY(-2px);
}

.memory-entry {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 157, 92, 0.2);
}

.memory-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.memory-action-btn {
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    background: rgba(255, 157, 92, 0.2);
    border: none;
    color: var(--orange-secondary);
    transition: all 0.3s;
}

.memory-action-btn:hover {
    background: rgba(255, 157, 92, 0.3);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--glass-border);
    color: var(--cream);
    font-size: 0.95rem;
    background: rgba(10, 5, 0, 0.7);
    backdrop-filter: blur(10px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--orange-primary);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    backdrop-filter: blur(10px);
    background: rgba(30, 15, 10, 0.9);
    border: 1px solid var(--glass-border);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: rgba(30, 70, 30, 0.9);
    border-color: rgba(0, 255, 0, 0.2);
}

.notification.error {
    background: rgba(70, 30, 30, 0.9);
    border-color: rgba(255, 0, 0, 0.2);
}

.notification.info {
    background: rgba(30, 30, 70, 0.9);
    border-color: rgba(0, 100, 255, 0.2);
}

.concept-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 5px;
}

.notification-concept {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange-secondary), transparent);
    margin: 4rem 0;
}

.vertical-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(transparent, var(--orange-secondary), transparent);
    z-index: -1;
}

.vertical-line.left {
    left: 10%;
}

.vertical-line.right {
    right: 10%;
}

.vertical-line.center {
    left: 50%;
    transform: translateX(-50%);
}


/* Visualization controls */

.visualization-controls {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}


/* Vega container */

#vega-embed-container {
    max-height: 400px;
    overflow: auto;
    margin-top: 1rem;
    background: rgba(20, 10, 5, 0.6);
    border-radius: 8px;
    padding: 1rem;
}


/* Viz buttons */

.viz-btn {
    background: rgba(255, 157, 92, 0.2);
    border: 1px solid var(--orange-secondary);
    color: var(--cream);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

.viz-btn:hover {
    background: rgba(255, 157, 92, 0.3);
    transform: translateY(-2px);
}


/* Palette selector */

#chart-palette {
    background: rgba(30, 15, 10, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: var(--cream);
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23ff9d5c' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}


/* Palette preview options */

#chart-palette option {
    padding: 0.5rem;
    background: var(--bg-dark);
}

#chart-palette option[value="crossbar"] {
    background: linear-gradient(90deg, #ff7f00, #5d3924, #00f2ff);
}

#chart-palette option[value="warm"] {
    background: linear-gradient(90deg, #ff9d5c, #ff7f00, #ff6b6b);
}

#chart-palette option[value="cool"] {
    background: linear-gradient(90deg, #00f2ff, #8a2be2, #627eea);
}

#chart-palette option[value="mono"] {
    background: linear-gradient(90deg, #ffffff, #f5deb3, #ff7f00);
}


/* Continue Generation button */

.continue-generation-btn {
    background-color: #4a6fa5;
    border: 1px solid #3a5a8a;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.continue-generation-btn:hover {
    background-color: #3a5a8a;
    transform: translateY(-2px);
}


/* Preview columns layout */

.preview-columns {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.preview-column {
    flex: 1;
    min-width: 0;
}

.preview-column h5 {
    margin-bottom: 0.5rem;
    color: var(--orange-secondary);
    font-size: 0.9rem;
}

.template-preview .preview-content,
.generated-preview .preview-content {
    background: rgba(30, 15, 10, 0.5);
    border-radius: 8px;
    padding: 1rem;
    height: 200px;
    overflow: auto;
    border: 1px solid var(--glass-border);
}

.template-preview .preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.preview-image img,
.result-image,
.result-video {
    object-fit: contain;
    width: 100%;
    height: auto;
    max-height: 500px;
}

.before-after-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.before-pane,
.after-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.before-pane img,
.after-pane img {
    align-self: center;
    margin: auto;
}

img.preview-image {
    height: 25vh;
    width: auto;
}


/* Feedback buttons */

.feedback-btn {
    background: transparent;
    border: none;
    color: var(--cream);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.5rem;
}

.feedback-btn:hover {
    transform: scale(1.2);
}

.feedback-btn[data-rating="1"] {
    color: #ff6b6b;
}

.feedback-btn[data-rating="2"] {
    color: #ffb347;
}

.feedback-btn[data-rating="3"] {
    color: #f7ff59;
}

.feedback-btn[data-rating="4"] {
    color: #7cfc00;
}

.feedback-btn[data-rating="5"] {
    color: #ff8c00;
}

.feedback-btn.active {
    transform: scale(1.3);
    filter: drop-shadow(0 0 5px currentColor);
}

.feedback-comment textarea {
    width: 100%;
    min-height: 80px;
    margin-top: 0.5rem;
    background: rgba(30, 15, 10, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--cream);
    padding: 0.5rem;
    border-radius: 4px;
}

.generation-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.generation-buttons.disabled {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s;
}

.generation-btn {
    background: rgba(255, 157, 92, 0.2);
    border: 1px solid var(--orange-secondary);
    color: var(--orange-secondary);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.generation-btn:disabled {
    background: rgba(200, 200, 200, 0.2);
    color: #888;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .api-container {
        grid-template-columns: 1fr;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .vertical-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 7rem;
        padding-bottom: 5rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .crypto-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .api-info h2,
    .results-header h2 {
        font-size: 2.2rem;
    }
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .nav-links {
        display: none;
    }
    .api-info h2,
    .results-header h2 {
        font-size: 2rem;
    }
    .glass-panel {
        padding: 1.8rem;
    }
}