/* =====================================
   TURBO STUDIO - UNIFIED THEME CSS
   ===================================== */

/* ================================
   COLOR VARIABLES
   ================================ */
   :root {
    /* Primary colors */
    --primary-color: #6200ee;
    --primary-hover: #5000d6;
    --primary-light: rgba(98, 0, 238, 0.1);
    --primary-lighter: rgba(98, 0, 238, 0.05);
    --primary-gradient-start: #5200FF;
    --primary-gradient-end: #FF009D;
    --color-brand: #5200FF;
    
    /* Text colors */
    --text-primary: #111;
    --text-secondary: #555;
    --text-tertiary: #666;
    --text-quaternary: #444;
    --text-light: #333;
    --text-muted: #999;
    --text-white: white;
    --text-black: black;
    
    /* Border colors */
    --border-ultra-light: #eee;
    --border-light: #e0e0e0;
    --border-medium: #d0d0d0;
    --border-dark: #aaa;
    --border-darker: #ddd;
    --border-gray: #e9ecef;
    --border-section: #eaecef;
    
    /* Background colors */
    --background-white: white;
    --background-light: #f8f8f8;
    --background-medium: #f9f9f9;
    --background-gray: #f5f5f5;
    --background-progress: #f0f0f0;
    --background-overlay: #eeeeee88;
    --background-info: #e8f4ff;
    
    /* Status colors */
    --error-color: #e53935;
    --success-background: rgba(82, 0, 255, 0.04);
    --success-background-alt: rgba(98, 0, 238, 0.04);
    --recording-color: #ff3c3c;
    --recording-background: rgba(255, 60, 60, 0.1);
    --recording-pulse: rgba(255, 60, 60, 0.2);
    
    /* Shadow colors */
    --shadow-light: rgba(0, 0, 0, 0.03);
    --shadow-medium: rgba(0, 0, 0, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.08);
    --shadow-darker: rgba(0, 0, 0, 0.1);
    --shadow-primary-light: rgba(98, 0, 238, 0.15);
    --shadow-primary-medium: rgba(98, 0, 238, 0.25);
    
    /* Utility colors */
    --color-disabled: #d0d0d0;
    --color-hover-light: rgba(85, 85, 85, 0.05);
    --color-keyboard-bg: rgba(200, 200, 200, 0.25);
    --color-keyboard-border: rgba(200, 200, 200, 0.4);
    --gradient-fade: linear-gradient(to bottom, rgba(248,248,248,0) 0%, rgba(248,248,248,1) 100%);
    --gradient-primary: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    --gradient-skeleton: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
}

/* ================================
   BASE STYLES & RESET
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont,
      'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
      'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--background-white);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile body overflow handling */
@media (max-width: 899px) {
    body {
        overflow: hidden;
    }
}

@media (min-width: 900px) {
    body {
        overflow: auto;
    }
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.2;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-quaternary);
    text-transform: uppercase;
}

p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text-light);
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Responsive typography */
@media (min-width: 768px) {
    h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
}

@media (min-width: 900px) {
    h1 {
        font-size: 36px;
    }
}

/* ================================
   HEADER & LOGO
   ================================ */
.header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-ultra-light);
}

.header.prd-edit,
.header.success-page {
    border-bottom: 1px solid var(--border-ultra-light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.logo.success-page {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Responsive header */
@media (min-width: 768px) {
    .header {
        padding: 24px 40px;
    }
    
    .logo img {
        height: 40px;
    }
}

/* ================================
   LAYOUT CONTAINERS
   ================================ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 128px;
}

.main-container {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.document-view-container {
    display: flex;
    flex: 1;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    gap: 0;
}

/* Responsive layout */
@media (min-width: 768px) {
    .main-content {
        padding: 20px 16px;
        justify-content: flex-start;
        margin-top: 20px;
    }
}

@media (min-width: 900px) {
    .content-container {
        flex-direction: row;
        height: calc(100vh - 90px);
        align-items: center;
    }
    
    .main-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .document-view-container {
        flex-direction: column;
    }
}

/* ================================
   BUTTONS
   ================================ */
.primary-button {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.primary-button:hover {
    background-color: var(--primary-hover);
}

.primary-button:disabled,
.primary-button.disabled {
    background-color: var(--color-disabled);
    cursor: not-allowed;
    opacity: 0.5;
}

.secondary-button {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.secondary-button:hover {
    border-color: var(--border-dark);
    color: var(--text-quaternary);
    background-color: var(--color-hover-light);
}

.icon-button {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-darker);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.icon-button:hover {
    background-color: var(--background-gray);
}

.next-button,
.back-button {
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.back-button {
    background-color: var(--background-white);
    color: var(--text-tertiary);
    border: 1px solid var(--border-medium);
    text-decoration: none;
}

.back-button:hover {
    border-color: var(--border-dark);
    color: var(--text-quaternary);
}

.next-button {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
}

.next-button:hover {
    background-color: var(--primary-hover);
}

.next-button:disabled {
    background-color: var(--color-disabled);
    cursor: default;
}

.button-container,
.back-button-container {
    display: flex;
    position: fixed;
    bottom: 40px;
    z-index: 100;
}

.back-button-container {
    left: 40px;
    justify-content: flex-start;
}

.button-container {
    right: 40px;
    justify-content: flex-end;
}

/* Button responsive styles */
@media (max-width: 768px) {
    .primary-button,
    .secondary-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .next-button,
    .back-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .button-container {
        bottom: 20px;
        right: 20px;
        padding-left: 30px;
    }
    
    .back-button-container {
        bottom: 20px;
        left: 20px;
        padding-right: 30px;
    }
}

@media (max-width: 480px) {
    .button-container {
        bottom: 16px;
        right: 16px;
        padding-left: 20px;
    }
    
    .back-button-container {
        bottom: 16px;
        left: 16px;
        padding-right: 20px;
    }
    
    .next-button,
    .back-button {
        padding: 10px 20px;
    }
}

/* Button icons */
.back-button svg,
.next-button svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.primary-button svg,
.secondary-button svg {
    width: 20px;
    height: 20px;
}

/* ================================
   FORM ELEMENTS
   ================================ */
.input-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    margin-bottom: 16px;
}

textarea,
.email-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    outline: none;
    resize: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea {
    min-height: 160px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow-medium);
}

textarea:focus,
.email-input:focus {
    border-color: var(--primary-color);
}

textarea::placeholder,
.email-input::placeholder {
    color: var(--text-muted);
}

.feedback-textarea {
    width: 100%;
    min-height: 120px;
    height: auto;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-darker);
    font-size: 16px;
    resize: none;
    transition: border-color 0.2s;
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Form responsive styles */
@media (min-width: 768px) {
    textarea,
    .email-input {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .input-container {
        margin-bottom: 20px;
    }
    
    textarea {
        min-height: 120px;
        padding: 16px;
        font-size: 14px;
    }
    
    .feedback-textarea {
        padding: 12px;
        font-size: 14px;
    }
}

/* ================================
   PROGRESS BARS
   ================================ */
.step-progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.step-progress-bar {
    height: 6px;
    width: 100%;
    background-color: var(--background-progress);
}

.step-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
}

.progress-bar {
    position: absolute;
    left: 16px;
    right: 72px;
    bottom: 16px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    max-width: calc(100% - 88px);
    transition: width 0.2s;
}

.progress-bar.prd-style {
    left: 16px;
    right: 72px;
    bottom: 16px;
    max-width: calc(100% - 88px);
}

.textarea-with-progress-bar {
    overflow: hidden;
    padding-bottom: 32px;
}

/* ================================
   MICROPHONE BUTTON
   ================================ */
.mic-button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mic-button:hover {
    background-color: var(--shadow-medium);
}

.mic-button svg {
    fill: var(--text-tertiary);
    display: block;
    margin: 0 auto;
}

.mic-icon {
    width: 20px;
    height: 20px;
}

.mic-stop-icon {
    width: px;
    height: 20px;
    display: block;
    margin: 0 auto;
}

.mic-button.recording {
    background-color: var(--recording-background);
}

.mic-button.recording svg {
    fill: var(--recording-color);
}

.mic-button.processing svg {
    fill: var(--primary-color);
}

.recording-pulse {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--recording-pulse);
    transform: scale(1);
    opacity: 0;
    pointer-events: none;
}

.mic-button.recording .recording-pulse {
    animation: mic-pulse 2s infinite;
}

@keyframes mic-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Mic button variants */
.mic-button.prd-style {
    right: 16px;
    bottom: 16px;
}

/* ================================
   LOADING & ANIMATIONS
   ================================ */
.dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    margin-top: 48px;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 12px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.loading-text,
.generating-text {
    font-size: 16px;
    color: var(--text-tertiary);
    text-align: center;
}

.working-text {
    animation: pulse 2s ease-in-out infinite;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 20px 0;
}

.working-text > svg {
    top: 3px;
    position: relative;
    animation: spin 1s linear infinite;
    margin-right: 4px;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 8px 24px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

.thinking-overlay {
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-overlay);
    animation: low-pulse 1s ease-in-out infinite;
    z-index: 5;
}

/* Animation utility classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.pulse {
    animation: pulse 1s ease-in-out infinite;
}

.low-pulse {
    animation: low-pulse 2s ease-in-out infinite;
}

.spin {
    animation: spin 1s linear infinite;
}

/* Loading responsive styles */
@media (max-width: 768px) {
    .dots-container {
        margin-bottom: 32px;
        margin-top: 32px;
    }
    
    .loading-indicator {
        padding: 20px;
    }
}

/* ================================
   KEYFRAME ANIMATIONS
   ================================ */
@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: scale(1.2) translateY(-16px);
        opacity: 1;
    }
}

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

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes low-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes loadingDots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 15px var(--shadow-primary-light); }
    50% { box-shadow: 0 0 20px var(--shadow-primary-medium); }
    100% { box-shadow: 0 0 15px var(--shadow-primary-light); }
}

/* ================================
   IDEA CHIPS & SAMPLE IDEAS
   ================================ */
.sample-ideas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    max-width: 800px;
    justify-content: center;
}

.idea-chip {
    background-color: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-medium);
}

.idea-chip:hover {
    border-color: var(--border-dark);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .idea-chip {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ================================
   OPTION CARDS
   ================================ */
.options-container {
    display: flex;
    gap: 20px;
    margin: 20px 0 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.option-card {
    width: 250px;
    padding: 30px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background-color: var(--background-white);
}

.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: var(--success-background-alt);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    transition: all 0.2s;
}

.option-card.selected .radio-indicator {
    border-color: var(--primary-color);
}

.option-card.selected .radio-indicator:after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.option-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.option-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0px;
}

/* Vertical option cards */
.options-container.vertical {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.option-card.vertical {
    width: 100%;
    padding: 24px;
    border: 2px solid var(--border-light);
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.option-card.vertical:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-light);
}

.option-card.vertical.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-lighter);
}

.option-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-card.vertical:hover .option-radio {
    border-color: var(--primary-color);
}

.option-card.vertical.selected .option-radio {
    border-color: var(--primary-color);
}

.option-radio-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0;
    transition: all 0.2s;
}

.option-card.vertical.selected .option-radio-inner {
    opacity: 1;
}

.option-content {
    flex: 1;
}

.option-content.centered {
    display: flex;
    align-items: center;
}

.option-description {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Option cards responsive */
@media (max-width: 768px) {
    .options-container {
        gap: 12px;
        margin: 16px 0 24px;
        justify-content: center;
    }
    
    .option-card {
        padding: 16px;
        font-size: 14px;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .option-title {
        font-size: 14px;
    }
    
    .option-card.selected .radio-indicator {
        top: 12px;
        left: 12px;
        width: 16px;
        height: 16px;
    }
    
    .option-card.selected .radio-indicator::after {
        top: 3px;
        left: 3px;
        width: 6px;
        height: 6px;
    }
}

/* ================================
   QUESTIONS & CARDS
   ================================ */
.questions-container {
    width: 750px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.question-card {
    width: 100%;
    padding: 24px;
    border: none;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 2px 8px var(--shadow-light);
    background-color: var(--background-light);
    margin-bottom: 32px;
}

.question-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-light);
}

.actions-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.skip-button {
    background-color: transparent;
    color: var(--text-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.skip-button:hover {
    border-color: var(--border-dark);
    color: var(--text-quaternary);
}

.more-questions-button {
    background-color: transparent;
    color: var(--text-tertiary);
    border: none;
    border-radius: 0;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    text-decoration: underline;
    gap: 6px;
}

.more-questions-button:hover {
    opacity: 0.8;
}

.slide-up-leave {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.slide-up-leave-start {
    opacity: 1;
    transform: translateY(0);
}
.slide-up-leave-end {
    opacity: 0;
    transform: translateY(-20px);
}

/* Questions responsive */
@media (max-width: 768px) {
    .questions-container {
        width: 100%;
    }
    
    .question-card {
        padding: 16px;
    }
    
    .question-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .skip-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .more-questions-button {
        font-size: 14px;
    }
}

/* ================================
   ERROR HANDLING
   ================================ */
.error-message,
.errorlist,
.form-errors {
    color: var(--error-color);
    margin-top: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.error-text-hidden {
    color: red;
    margin-top: 5px;
    display: none;
}

.error-text-visible {
    color: red;
}

/* ================================
   SKELETON LOADERS
   ================================ */
.skeleton-loader {
    margin-bottom: 30px;
}

.skeleton-question {
    height: 24px;
    width: 80%;
    background: var(--gradient-skeleton);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 15px;
}

.skeleton-textarea {
    height: 120px;
    width: 100%;
    background: var(--gradient-skeleton);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

/* ================================
   EMAIL SECTION
   ================================ */
.email-section {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    justify-content: center;
    width: 100%;
    height: 100%;
    align-items: center;
    padding: 40px;
}

.email-section-container {
    max-width: 600px;
}

.email-form {
    width: 100%;
}

.download-button {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.download-button:hover {
    background-color: var(--primary-hover);
}

.download-button:disabled {
    background-color: var(--color-disabled);
    cursor: default;
}

.download-button svg {
    width: 20px;
    height: 20px;
}

/* Email section responsive */
@media (min-width: 768px) {
    .email-section {
        padding: 40px;
    }
    
    .download-button {
        padding: 16px 32px;
    }
}

@media (min-width: 900px) {
    .email-section {
        width: 50%;
    }
}

/* ================================
   PLAN PREVIEW
   ================================ */
.plan-preview-container,
.prd-preview-container {
    width: 100%;
    background-color: var(--background-light);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-top: 24px;
    height: 400px;
    margin-right: 48px;
    box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.1);
}

.prd-preview-container {
    border: 1px solid var(--border-light);
    max-width: 800px;
    box-shadow: 6px 6px 6px var(--shadow-medium);
    background: var(--background-white);
}

.prd-preview-container.email-style {
    background-color: var(--background-white);
    padding: 24px 24px 0 24px;
    box-shadow: 0 -3px 6px var(--shadow-darker);
    filter: blur(3px);
}

.plan-preview,
.prd-preview-container .product-plan {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    overflow: hidden;
    max-height: 100%;
    position: relative;
    filter: blur(3px);
}

.prd-preview-container .product-plan.generating {
    border: none;
}

.plan-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: var(--gradient-fade);
    pointer-events: none;
}

.preview-section {
    margin-bottom: 24px;
}

.preview-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.preview-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--text-quaternary);
    text-transform: uppercase;
}

.preview-section p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-light);
    font-size: 15px;
}

.preview-section .user-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.bullet-list {
    list-style-type: disc;
    padding-left: 16px;
    margin-bottom: 12px;
}

.bullet-list li {
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 15px;
}

.feature-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.feature-title {
    width: 100%;
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-desc {
    flex: 1;
    color: var(--text-light);
}

.divider {
    height: 1px;
    background-color: var(--border-darker);
    margin: 20px 0;
}

/* Plan preview responsive */
@media (min-width: 768px) {
    .plan-preview,
    .prd-preview-container .product-plan {
        padding: 40px;
    }
    
    .preview-section {
        margin-bottom: 32px;
    }
    
    .preview-section h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .preview-section h3 {
        font-size: 16px;
        margin: 24px 0 12px;
    }
    
    .preview-section p {
        margin-bottom: 12px;
        font-size: 16px;
    }
    
    .bullet-list {
        padding-left: 20px;
        margin-bottom: 16px;
    }
    
    .bullet-list li {
        margin-bottom: 8px;
        font-size: 16px;
    }
    
    .feature-section {
        flex-direction: row;
        margin-bottom: 20px;
    }
    
    .feature-title {
        margin-bottom: 0;
    }
}

@media (min-width: 900px) {
    .plan-preview-container,
    .prd-preview-container {
        width: 50%;
        margin-top: 0;
        height: 75%;
    }
    
    .prd-preview-container.email-style {
        width: 50%;
        margin-top: 0;
        height: 75%;
    }
    
    .plan-preview,
    .prd-preview-container .product-plan {
        padding: 60px;
    }
    
    .preview-section {
        margin-bottom: 40px;
    }
    
    .plan-preview::after {
        height: 100px;
    }
}

/* ================================
   SUCCESS PAGE
   ================================ */
.success-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--success-background);
    padding: 80px 20px;
    width: 100%;
    margin-bottom: 80px;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 32px;
    color: var(--color-brand);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-light);
    border-radius: 50%;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.next-step-section {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px 80px;
}

.next-step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.calendly-container {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-top: 20px;
}

.specialist-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--background-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
}

.specialist-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.specialist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialist-info {
    flex: 1;
}

.specialist-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.call-type {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.call-details {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.call-duration,
.call-platform {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.w-full {
    width: 100%;
}

/* Success page responsive */
@media (max-width: 768px) {
    .success-section {
        padding: 40px 16px;
        margin-bottom: 40px;
    }
    
    .success-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 24px;
    }
    
    .success-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .page-subtitle {
        font-size: 16px;
        margin-bottom: 16px;
        padding: 0 16px;
    }
    
    .next-step-section {
        padding: 0 16px 40px;
    }
    
    .next-step-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .calendly-container {
        height: 600px;
        margin-top: 16px;
        border-radius: 8px;
    }
    
    .specialist-card {
        padding: 16px;
        gap: 12px;
    }
    
    .specialist-photo {
        width: 60px;
        height: 60px;
    }
    
    .specialist-name {
        font-size: 16px;
    }
    
    .call-type {
        font-size: 20px;
    }
    
    .call-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ================================
   PRD DOCUMENT STYLES
   ================================ */
.document-panel {
    flex: 2;
    padding: 40px;
    border-right: 1px solid var(--border-ultra-light);
    overflow-y: auto;
    max-height: calc(100vh - 90px);
    padding-left: 120px;
}

.sidebar-panel {
    flex: 1;
    padding: 40px;
    background-color: var(--background-medium);
    display: flex;
    flex-direction: column;
    padding-right: 120px;
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.document-title {
    font-size: 24px;
    font-weight: 700;
}

.document-actions {
    display: flex;
    gap: 12px;
}

.document-content {
    background-color: var(--background-white);
    border-radius: 12px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.next-steps-list {
    margin-top: 24px;
    flex: 1;
}

.refresh-notice {
    background-color: var(--background-info);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: none;
}

.refresh-notice.visible {
    display: block;
}

.next-step-card {
    background-color: var(--background-white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.price-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
}

.product-plan {
    border: 1px solid var(--border-ultra-light);
    border-radius: 16px;
    padding: 40px;
    background-color: var(--background-white);
    position: relative;
    margin-top: 0;
}

.product-plan.generating {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-primary-light);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 42px;
    margin-bottom: 0.7em;
    border-top: 1px solid var(--border-section);
}

.section-header h3 {
    margin: 0;
}

.section-header i {
    margin-top: 1px;
}

.section {
    margin-bottom: 42px;
}

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

/* PRD list styles */
ul {
    list-style-type: none;
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
    padding-left: 24px;
}

li:before,
li.prd-content:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* PRD content styles */
h2.prd-content {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

h3.prd-content {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-quaternary);
    text-transform: uppercase;
}

p.prd-content {
    margin-bottom: 12px;
    line-height: 1.5;
}

ul.prd-content {
    list-style-type: none;
    margin-bottom: 16px;
}

li.prd-content {
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
    padding-left: 24px;
}

.feedback-question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-transform: none;
}

/* PRD responsive styles */
@media (max-width: 768px) {
    .document-panel {
        flex: none;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-ultra-light);
        max-height: none;
        order: 2;
    }
    
    .sidebar-panel {
        order: 1;
        flex: none;
        padding: 20px;
    }
    
    .document-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .document-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .document-content {
        padding: 20px;
    }
    
    .next-step-card {
        padding: 16px;
    }
    
    .section {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    h3 {
        font-size: 14px;
    }
    
    .feature-title {
        font-size: 15px;
    }
    
    .feedback-question {
        font-size: 18px;
    }
    
    .feedback-textarea {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .document-panel,
    .sidebar-panel {
        padding: 16px;
    }
    
    .document-content {
        padding: 16px;
    }
    
    .section {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    h3 {
        font-size: 13px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    li {
        padding-left: 20px;
    }
    
    .next-step-card {
        padding: 12px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-description {
        font-size: 12px;
    }
    
    .icon-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .feedback-question {
        font-size: 16px;
    }
}

/* ================================
   PRD EDIT SPECIFIC STYLES
   ================================ */
.page-title.prd-edit {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-icon {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.updating-indicator {
    position: absolute;
    top: -12px;
    left: 40px;
    background-color: var(--primary-color);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px var(--shadow-primary-medium);
    z-index: 10;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.updating-indicator > svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.prd-edit-actions-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 16px;
}

.prd-edit-actions-container button {
    flex: 1;
    padding: 12px;
    flex-grow: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.prd-edit-actions-container button.primary-button {
    padding: 12px 40px;
}

.success-notification {
    background-color: var(--background-light);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--shadow-medium);
    width: 100%;
}

.success-notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.success-notification svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.success-notification p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    flex-grow: 1;
}

.success-notification .button-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
    margin-bottom: 0;
    width: 100%;
}

/* ================================
   AUTHENTICATION PAGES
   ================================ */
.auth-body-override {
    background-color: white;
    color: #111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.step2-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
}

.relative {
    position: relative;
}

/* ================================
   AUTHENTICATION PAGES
   ================================ */
.auth-body {
    background-color: white;
    color: #111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.auth-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.auth-logo img {
    height: 40px;
    width: auto;
}

.auth-container {
    max-width: 460px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 8rem 20px 0 20px;
}

.auth-page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.auth-email {
    color: #555;
    margin-bottom: 2rem;
    font-size: 16px;
}

.auth-btn {
    display: flex;
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.auth-btn-google {
    background-color: white;
    color: #111;
    border: 1px solid #ddd;
    gap: 12px;
    font-weight: 400;
}

.auth-btn-google:hover {
    background-color: #f9f9f9;
}

.auth-btn-password {
    background-color: white;
    color: #111;
    border: 1px solid #ddd;
    font-weight: 400;
}

.auth-btn-password:hover {
    background-color: #f9f9f9;
}

.auth-btn-primary {
    background-color: #5200FF;
    color: white;
    border: none;
}

.auth-btn-primary:hover {
    background-color: #4700e0;
}

.auth-terms {
    font-size: 14px;
    color: #777;
    margin-top: 4rem;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.auth-terms a {
    color: inherit;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
}

.auth-form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.auth-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #5200FF;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #777;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.auth-help-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.auth-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.auth-message.success {
    background-color: #ecfdf5;
    color: #065f46;
}

.auth-message.error {
    background-color: #fef2f2;
    color: #b91c1c;
}

.auth-forgot-password {
    display: block;
    color: #5200FF;
    text-decoration: none;
    margin-top: 1rem;
    font-size: 14px;
}

.auth-forgot-password:hover {
    text-decoration: underline;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #777;
}

.auth-separator-line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.auth-separator-text {
    padding: 0 1rem;
    font-size: 14px;
    font-weight: 500;
}

.auth-email-display {
    color: #555;
    margin-bottom: 2rem;
    font-size: 16px;
}

.auth-error-message {
    color: #e53e3e;
    margin-bottom: 1rem;
    font-size: 14px;
    text-align: left;
}

.auth-error-message a {
    color: #3182ce;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-error-message a:hover {
    color: #2b6cb0;
}

.auth-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .auth-page-title {
        font-size: 24px;
    }
}

/* ================================
   PROTOTYPE VIEWER STYLES
   ================================ */
.prototype-viewer {
    background-color: #f5f5f5;
    color: #111;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    height: 56px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
}

.bottom-bar {
    display: none;
    background-color: white;
    border-top: 1px solid #eee;
    padding: 12px 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: white;
    color: #333;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background-color: #f5f5f5;
}

.screen-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.screen-dropdown {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s;
    min-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.screen-dropdown:hover {
    background-color: #f5f5f5;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 4px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item.active {
    background-color: #f0e6ff;
    color: #6200ee;
}

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.device-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    background-color: #F5F5F5;
    color: #666;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.toggle-btn:hover {
    background-color: #EAEAEA;
}

.toggle-btn.active {
    color: #6200ee;
}

.tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #F5F5F5;
    color: #666;
    border: none;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tool-btn:hover {
    background-color: #EAEAEA;
}

.tool-btn.active {
    background-color: #6200ee;
    color: #EAEAEA;
}

.action-btn {
    background-color: #6200ee;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    height: 36px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #5000d6;
}

.action-icon {
    width: 16px;
    height: 16px;
}

.primary-btn {
    background-color: #6200ee;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    height: 36px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background-color: #5000d6;
}

.secondary-btn {
    background-color: #F5F5F5;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    height: 36px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: #EAEAEA;
}

.feedback-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.feedback-actions-tools {
    display: flex;
    gap: 8px;
}

.feedback-actions {
    display: flex;
    gap: 8px;
}

.prototype-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.iframe-container {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    width: 100%;
    max-width: 414px;
    max-height: 896px;
}

.iframe-container.desktop {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
}

.iframe-container.tablet {
    max-width: 768px;
    max-height: 1024px;
}

.prototype-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.dialog {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: white;
    border-radius: 8px;
    width: 500px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    border: 1px solid #eee;
}

.share-dialog {
    top: 50px;
}

.dialog.active {
    opacity: 1;
    visibility: visible;
}

.dialog-content {
    padding: 16px;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dialog-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.close-dialog {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.share-link-container {
    display: flex;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.share-link {
    flex: 1;
    padding: 12px;
    border: none;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
}

.feedback-input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    border: none;
    resize: vertical;
    overflow-y: auto;
    max-height: 200px;
    min-height: 60px;
    line-height: 1.5;
}

.copy-btn {
    background-color: #6200ee;
    color: white;
    border: none;
    padding: 0 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background-color: #5000d6;
}

.share-options {
    display: flex;
    gap: 12px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-option:hover {
    background-color: #f5f5f5;
}

.share-icon {
    width: 24px;
    height: 24px;
    color: #333;
}

.share-name {
    font-size: 12px;
    color: #666;
}

.edit-editing-container,
.edit-undoing-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-label {
    display: none;
}

.fullscreen-mode .top-bar,
.fullscreen-mode .bottom-bar {
    display: none;
}

.loader-icon {
    animation: spin 1s linear infinite;
}

.conversation-list {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.message {
    display: flex;
}

.message.user {
    justify-content: flex-start;
}

.message.assistant {
    justify-content: flex-end;
}

.message-content {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 70%;
}

.message.assistant .message-content {
    background-color: #e5e7eb;
}

.confirm-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.confirm-panel form {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

.tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.toggle-btn:hover .tooltip,
.tool-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    z-index: 200;
}

.prototype-forbidden-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.prototype-forbidden-lock-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    background-color: #f7f6f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b9a97;
}

.prototype-forbidden-footer {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #e9e9e7;
    margin-top: auto;
}

.prototype-forbidden-user-info {
    font-size: 13px;
    color: #9b9a97;
    text-align: center;
}

.prototype-forbidden-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
} 

.share-access-option input[type="radio"] {
    display: none;
}

.share-custom-access-option {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-radius: 10px;
    border: 1.5px solid #eee;
    background: #faf9ff;
    cursor: pointer;
    position: relative;
    transition: border 0.18s, background 0.18s;
}

.share-custom-access-option.selected {
    border: 1.5px solid #6200ee;
    background: #f0e6ff;
}

.share-custom-access-option:hover {
    border: 1.5px solid #b39ddb;
}

.share-custom-access-option.selected .share-option-check {
    border: 2px solid #6200ee;
    background: #6200ee;
}

.share-custom-access-option.selected .share-option-check:after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
}

.share-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
}

.share-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.share-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.share-option-desc {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.share-option-check{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border 0.18s;
}

.share-custom-access-option.selected .share-option-check {
    border: 2px solid #6200ee;
    background: #6200ee;
}

.share-custom-access-option.selected .share-option-check:after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
}

.turbo-badge,
.turbo-badge-mobile {
    background: #4f1fff;
    color: #fff;
    padding: 6px 18px 6px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(79,31,255,0.10);
    transition: opacity 0.2s;
}

.turbo-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.turbo-badge-icon {
    max-height: 28px;
    width: auto;
    display: block;
    padding-top: 4px;
    padding-bottom: 4px;
}

.turbo-badge:hover,
.turbo-badge-mobile:hover {
    opacity: 0.85;
}

/* Responsive styles for prototype viewer */
@media (max-width: 768px) {
    .turbo-badge {
        bottom: 10px;
        right: 8px;
        padding: 5px 12px 5px 8px;
        font-size: 13px;
    }
    .turbo-badge-mobile {
        padding: 5px 12px 5px 8px;
        font-size: 13px;
    }
    .turbo-badge-icon {
        max-height: 22px;
        width: auto;
        padding-top: 3px;
        padding-bottom: 3px;
    }
    .top-bar {
        padding: 0 8px;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
    }
    .desktop-actions {
        display: none !important;
    }
    .mobile-actions {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
    .bottom-bar {
        display: flex !important;
        align-items: center;
        justify-content: end;
        gap: 12px;
    }
    .prototype-container {
        padding-bottom: 61px !important;
    }
    .dialog {
        width: 42vh;
    }
    .desktop-label {
        display: none !important;
    }
    .mobile-label {
        display: inline !important;
    }
    .bottom-bar .dropdown-menu-up {
        top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 4px;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
        border-radius: 4px 4px 0 0;
        animation: dropdownUp 0.2s;
    }
    @keyframes dropdownUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (min-width: 769px) {
    .mobile-actions {
        display: none !important;
    }
    .bottom-bar {
        display: none !important;
    }
    .mobile-label {
        display: none !important;
    }
    .desktop-label {
        display: inline !important;
    }
}

@media (max-width: 480px) {
    .screen-dropdown {
        min-width: 140px;
        font-size: 13px;
    }

    .nav-btn {
        width: 32px;
        height: 32px;
    }

    .bottom-bar .action-btn {
        font-size: 13px;
        padding: 8px 10px;
    }

    .share-link {
        font-size: 13px;
        padding: 8px;
    }

    .copy-btn {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.hidden {
    display: none !important;
}

[x-cloak] {
    display: none !important;
}

.inline-flex-center {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.progress-bar-dynamic {
    height: 100%;
    background: var(--gradient-primary);
}

.keyboard-shortcut-style {
    background: var(--color-keyboard-bg);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: var(--text-tertiary);
    border: 1px solid var(--color-keyboard-border);
}

.form-container {
    width: 100%;
}

.radio-options input[type="radio"] {
    display: none;
}

.radio-options .option-card {
    position: relative;
}

.radio-options input[type="radio"]:checked + .option-card {
    border-color: var(--primary-color);
    background-color: var(--primary-lighter);
}

.radio-options input[type="radio"]:checked + .option-card .option-radio-inner {
    opacity: 1;
}

.options-container.vertical input[type="radio"] {
    display: none;
}

.border-none {
    border: none !important;
}

/* ================================
   PRINT STYLES
   ================================ */
.print-header {
    display: none;
}

@media print {
    @page {
        size: letter;
        margin: 1.5cm 2cm;
    }
    
    @page {
        -webkit-print-color-adjust: exact;
        padding-top: 1cm;
        padding-bottom: 1cm;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    @-moz-document url-prefix() {
        @page {
            margin: 1.5cm 2cm;
        }
    }
    
    @supports (-ms-ime-align: auto) {
        @page {
            margin: 1.5cm 2cm;
        }
    }
    
    .sidebar-panel,
    .document-actions,
    .refresh-notice,
    .updating-indicator,
    #edit-button,
    #download-button {
        display: none !important;
    }
    
    body {
        min-height: auto;
        display: block;
    }
    
    .document-view-container {
        display: block;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .document-panel {
        border: none;
        padding: 0;
        max-height: none;
        overflow: visible;
        margin-top: 20px;
        margin-bottom: 50px;
    }
    
    .document-content {
        border: none;
        padding: 0;
        border-radius: 0;
    }
    
    .header,
    .document-header {
        display: none;
    }
    
    .print-header {
        display: block;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .print-logo {
        height: 40px;
        width: auto;
        display: block;
    }
    
    .product-plan {
        border: none;
        padding: 0;
    }
    
    h1 {
        font-size: 24pt;
        margin-bottom: 12pt;
    }
    
    h2 {
        font-size: 18pt;
        margin-bottom: 12pt;
    }
    
    h3 {
        font-size: 14pt;
        margin-top: 16pt;
        margin-bottom: 8pt;
    }
    
    p, li {
        font-size: 11pt;
        line-height: 1.4;
    }
    
    .section-header i {
        display: inline-block !important;
        color: var(--text-black) !important;
    }
    
    .print-empty-content {
        text-align: center;
        padding: 30px;
        font-style: italic;
    }
}
