/* Asset Library Styles */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #D0BB95;
    background-color: rgba(208, 187, 149, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* Upload zone button - brownish style with spacing */
.upload-zone .btn-primary {
    margin-top: 20px;
    background: #D0BB95;
    color: #1d1a15;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(208, 187, 149, 0.3);
}

.upload-zone .btn-primary:hover {
    background: #D6683F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(214, 104, 63, 0.4);
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.assets-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 10px 5px;
    width: 100%;
}

/* Asset Card - Type Card Style */
.asset-card {
    background: #2D2A32;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.asset-card:hover {
    transform: translateY(-4px);
    border-color: #D0BB95;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Delete button - bottom right, same level as download */
.asset-card .delete-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 71, 87, 0.95);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-card .delete-btn .material-symbols-outlined {
    font-size: 18px;
}

.asset-card:hover .delete-btn {
    opacity: 1;
}

.asset-card .delete-btn:hover {
    background: rgba(255, 71, 87, 1);
    transform: scale(1.1);
}

/* Download button - bottom left */
.asset-card .download-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(208, 187, 149, 0.95);
    border: none;
    color: #1d1a15;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-card .download-btn .material-symbols-outlined {
    font-size: 18px;
}

.asset-card:hover .download-btn {
    opacity: 1;
}

.asset-card .download-btn:hover {
    background: #D6683F;
    color: white;
    transform: scale(1.1);
}

/* Category badge with brownish accent */
.asset-card .category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: rgba(208, 187, 149, 0.15);
    border: 1px solid rgba(208, 187, 149, 0.3);
    border-radius: 12px;
    color: #D0BB95;
    font-size: 0.75rem;
}

.asset-card .category-badge.categorizing {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Asset Preview with Checkerboard for Transparency */
.asset-preview {
    width: 100%;
    height: 150px;
    /* Checkerboard pattern for transparency */
    background-color: #1a1a1a;
    background-image:
        linear-gradient(45deg, #2a2a2a 25%, transparent 25%),
        linear-gradient(-45deg, #2a2a2a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #2a2a2a 75%),
        linear-gradient(-45deg, transparent 75%, #2a2a2a 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.asset-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Video Preview Override - removes checkerboard for videos */
.video-preview {
    background: #000 !important;
    background-image: none !important;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Status Badge for Videos */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status-badge.ready {
    background: rgba(46, 213, 115, 0.9);
    color: #000;
}

.status-badge.analyzing {
    background: rgba(255, 165, 0, 0.9);
    color: #000;
}


.asset-name {
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}

.sub-assets-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* Upload Preview Styles */
.upload-preview-container {
    margin-top: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: left;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.preview-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.preview-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-info {
    flex: 1;
}

.file-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-main);
}

.upload-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: var(--bg-dark);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-success .progress-bar {
    background: var(--accent-secondary);
}

.upload-error .progress-bar {
    background: #ff4757;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    align-items: center;
    height: 20px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-main);
}

.result-image-container {
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-image-container img {
    max-width: 100%;
    max-height: 500px;
    display: block;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-top: auto;
    margin-bottom: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

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

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-danger {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 71, 87, 0.2);
}

/* Login Overlay Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.login-overlay.hidden .login-card {
    transform: translateY(20px);
}

.login-brand {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-brand span {
    color: var(--accent-primary);
}

.login-card h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.login-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: white;
    color: #333;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-google img {
    width: 24px;
    height: 24px;
}

/* Chat Actions */
.chat-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-yes {
    background: var(--accent-primary);
    color: white;
}

.btn-yes:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-no {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-no:hover {
    background: var(--bg-panel);
    border-color: var(--text-main);
}

.user-message {
    align-self: flex-end;
    background: var(--accent-primary);
    color: white;
    padding: 10px 14px;
    border-radius: 12px 12px 0 12px;
    margin-bottom: 10px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

/* Settings View Styles */
.settings-container {
    animation: fadeIn 0.3s ease;
}

.settings-layout {
    display: flex;
    gap: 20px;
    height: 600px;
}

.settings-sidebar {
    width: 250px;
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    padding: 10px;
    border: 1px solid var(--border-color);
    overflow-y: auto;
}

.settings-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-sidebar li {
    padding: 12px 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.settings-sidebar li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.settings-sidebar li.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.settings-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

#prompt-template-editor {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 20px;
    border-radius: var(--radius-md);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: none;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

#prompt-template-editor:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Generate Button */
.generate-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #D0BB95;
    color: #1d1a15;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(208, 187, 149, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.generate-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 15px 30px rgba(208, 187, 149, 0.4);
    background: #D6683F;
    color: #fff;
}

.generate-btn:active {
    transform: translateX(-50%) translateY(1px);
}

.generate-btn span,
.generate-btn .material-symbols-outlined {
    font-size: 1.4rem;
}

/* Mode Switcher */
.mode-switcher {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.mode-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mode-btn .material-symbols-outlined {
    font-size: 18px;
}

.mode-btn.active {
    background: #D0BB95;
    color: #1d1a15;
    border-color: #D0BB95;
    box-shadow: 0 2px 8px rgba(208, 187, 149, 0.25);
}

.mode-btn:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-main);
}

/* Project Required Modal */
.project-required-content {
    max-width: 480px;
    text-align: center;
    padding: 40px 35px;
}

.project-required-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.project-required-content h3 .material-symbols-outlined {
    font-size: 2rem;
}

.project-required-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 15px;
}

.project-required-subdesc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 30px;
}

.project-required-form {
    text-align: left;
    margin-bottom: 25px;
}

.project-required-form .input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.project-required-form input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.project-required-form input:focus {
    outline: none;
    border-color: #D0BB95;
    box-shadow: 0 0 0 3px rgba(208, 187, 149, 0.15);
}

.project-required-form input::placeholder {
    color: var(--text-muted);
}

.project-required-content .btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #D0BB95 0%, #C4AC83 100%);
    color: #1d1a15;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(208, 187, 149, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.project-required-content .btn-primary:hover {
    background: linear-gradient(135deg, #D6683F 0%, #c45a35 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 104, 63, 0.35);
}

.project-required-content .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Welcome / Onboarding Modal */
.welcome-onboarding-content {
    max-width: 520px;
    text-align: center;
    padding: 40px 35px;
}

.welcome-onboarding-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.welcome-onboarding-content h3 .material-symbols-outlined {
    font-size: 2rem;
}

.welcome-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
}

.welcome-asset-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.asset-type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.asset-type-item:hover {
    background: rgba(208, 187, 149, 0.08);
    border-color: rgba(208, 187, 149, 0.2);
}

.asset-type-item .material-symbols-outlined {
    font-size: 1.3rem;
    color: #D0BB95;
}

.asset-type-item span:last-child {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.welcome-subdesc {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
    margin-bottom: 25px;
    font-style: italic;
}

.welcome-onboarding-content .btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #052e16;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-onboarding-content .btn-primary:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.welcome-onboarding-content .btn-secondary {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* ====================================
   Consent Modal Styles
   ==================================== */

.consent-modal-content {
    max-width: 480px;
    background: linear-gradient(180deg, #2D2A32 0%, #252229 100%);
    border: 1px solid rgba(208, 187, 149, 0.15);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.consent-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.consent-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 600;
}

.consent-icon {
    font-size: 48px;
    color: #D0BB95;
    background: rgba(208, 187, 149, 0.1);
    padding: 16px;
    border-radius: 50%;
}

.consent-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.consent-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

/* Custom Checkbox */
.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.consent-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(208, 187, 149, 0.2);
}

.consent-checkbox-label input[type="checkbox"] {
    display: none;
}

.consent-checkbox-label .checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
}

.consent-checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: linear-gradient(135deg, #D0BB95 0%, #C4AC83 100%);
    border-color: #D0BB95;
}

.consent-checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    color: #1d1a15;
    font-size: 14px;
    font-weight: bold;
}

.consent-checkbox-label .label-text {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

.terms-link {
    color: #D0BB95;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #D6683F;
    text-decoration: underline;
}

/* Email Toggle Section */
.consent-toggle-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-header .material-symbols-outlined {
    color: #D0BB95;
    font-size: 22px;
}

.toggle-label {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Toggle Switch */
.consent-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(208, 187, 149, 0.2);
    transition: all 0.3s ease;
    border-radius: 28px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: rgba(208, 187, 149, 0.7);
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.consent-toggle input:checked+.toggle-slider {
    background: linear-gradient(135deg, #D0BB95 0%, #C4AC83 100%);
    border-color: #D0BB95;
}

.consent-toggle input:checked+.toggle-slider::before {
    transform: translateX(24px);
    background-color: white;
}

/* Email Opt-out Info */
.email-optout-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(214, 104, 63, 0.1);
    border: 1px solid rgba(214, 104, 63, 0.2);
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}

.email-optout-info .material-symbols-outlined {
    color: #D6683F;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.email-optout-info span:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Consent Actions */
.consent-actions {
    display: flex;
    justify-content: center;
}

.consent-continue-btn {
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #D0BB95 0%, #C4AC83 100%);
    color: #1d1a15;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(208, 187, 149, 0.3);
}

.consent-continue-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #D6683F 0%, #c45a35 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 104, 63, 0.4);
}

.consent-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.consent-continue-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Account View Specific Styles */
#account-view {
    animation: fadeInAccount 0.4s ease-out;
}

@keyframes fadeInAccount {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#account-avatar {
    background-size: cover;
    background-position: center;
}

#account-uid {
    word-break: break-all;
}

/* Custom Toggle Style for preferences if needed override */
.peer:checked~.peer-checked\:bg-primary {
    background-color: #D0BB95 !important;
}