* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2D7D7D;
    --primary-dark: #236060;
    --secondary-color: #FF6B6B;
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F3E9;
    --bg-tertiary: #FAF8F3;
    --border-color: rgba(45, 125, 125, 0.1);
    --success-color: #2D7D7D;
    --error-color: #E74C3C;
    --warning-color: #FF6B6B;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

@media (max-width: 768px) {
    body {
        height: 100dvh; /* Use dynamic viewport height on mobile */
        overflow: hidden; /* Prevent scrolling on mobile */
    }
    
    /* iOS keyboard handling */
    body.keyboard-open {
        height: 100vh; /* Use static viewport when keyboard is open */
    }
}

/* Animated gradient background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.gradient-bg::before,
.gradient-bg::after {
    content: '';
    position: absolute;
    filter: blur(80px);
    opacity: 0.7;
}

.gradient-bg::before {
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at center, #2D7D7D 0%, transparent 70%);
    top: -25%;
    left: -25%;
    animation: float 20s ease-in-out infinite;
}

.gradient-bg::after {
    width: 40%;
    height: 40%;
    background: radial-gradient(circle at center, #FF6B6B 0%, transparent 70%);
    bottom: -20%;
    right: -20%;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg) scale(0.9);
    }
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    mix-blend-mode: overlay;
}

/* Ensure content is above background */
.builder-container {
    position: relative;
    z-index: 2;
}

/* Builder Container */
.builder-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

@media (max-width: 768px) {
    .builder-container {
        height: 100dvh; /* Use dynamic viewport height on mobile */
    }
    
    /* iOS keyboard handling */
    .keyboard-open .builder-container {
        height: 100vh; /* Use static viewport when keyboard is open */
    }
}

/* Header */
.builder-header {
    background: rgba(250, 248, 243, 0.9);
    border-bottom: 1px solid rgba(45, 125, 125, 0.15);
    padding: 1rem 2rem;
    flex-shrink: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 1.8em;
    width: auto;
    vertical-align: middle;
    background: transparent;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

.logo:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* History Controls */
.history-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.375rem;
    padding: 0.125rem;
    border: 1px solid rgba(45, 125, 125, 0.2);
}

.btn-history {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 0.25rem;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.btn-history:hover:not(:disabled) {
    background: rgba(45, 125, 125, 0.1);
    color: var(--primary-dark);
    transform: scale(1.05);
}

.btn-history:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-history:disabled {
    color: rgba(45, 125, 125, 0.3);
    cursor: not-allowed;
}

.btn-history svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.session-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.session-status.connected .status-dot {
    background: var(--success-color);
}

.session-status.building .status-dot {
    background: var(--warning-color);
    animation: pulse 1.5s infinite;
}

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

.btn-secondary {
    padding: 0.375rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    line-height: 1.3;
    font-size: 0.875rem;
    height: auto;
    box-sizing: border-box;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
}

/* Header-specific styling for My Sites button to match Plan button */
.header-actions .btn-secondary {
    background: rgba(45, 125, 125, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(45, 125, 125, 0.3) !important;
    padding: 0.5rem 0.75rem !important;
}

.header-actions .btn-secondary:hover {
    background: rgba(45, 125, 125, 0.15) !important;
    border-color: rgba(45, 125, 125, 0.4) !important;
    transform: translateY(-1px) !important;
}

.btn-deploy {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    line-height: 1.5;
    height: auto;
    box-sizing: border-box;
}

.btn-deploy:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-deploy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Main Content */
.builder-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Preview Panel */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.preview-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 500px;
}

.url-icon {
    font-size: 1.25rem;
}

.url-input {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
}

.preview-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.preview-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.preview-content {
    flex: 1;
    position: relative;
    background: white;
}

.preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

/* Otter swimming animation */
.otter-swimming-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
}

/* Track for otter to swim around */
.otter-track {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateTrack 6s linear infinite;
}

/* The otter itself */
.otter-swimming {
    width: 40px;
    height: 40px;
    position: absolute;
    top: -20px; /* Position at top of circle */
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

/* Rotate the entire track to move otter around circle */
@keyframes rotateTrack {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Water ripple effects */
.water-ripples {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ripple {
    position: absolute;
    border: 2px solid #4ECDC4;
    border-radius: 50%;
    opacity: 0;
    animation: rippleEffect 3s ease-out infinite;
}

.ripple-1 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.ripple-2 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

.ripple-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

@keyframes rippleEffect {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Backward compatibility - keep old spinner class in case it's referenced elsewhere */
.loading-spinner {
    display: none;
}

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

/* Chat Panel */
.chat-panel {
    width: 400px;
    display: flex;
    flex-direction: column;
    background: rgba(250, 248, 243, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hide chat preview by default on desktop */
.chat-preview {
    display: none;
}

/* Show chat preview when building indicator is active */
.chat-preview.building-active {
    display: flex !important;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(250, 248, 243, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 125, 125, 0.15);
    border-radius: 0.5rem;
    margin: 0.5rem 1rem 0 1rem;
    box-shadow: 0 2px 8px rgba(45, 125, 125, 0.08);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-tertiary);
}

.welcome-message {
    text-align: center;
    padding: 2rem 1rem;
}

.welcome-message h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.welcome-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.example-prompts {
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.example-prompts::-webkit-scrollbar {
    width: 6px;
}

.example-prompts::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.example-prompts::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.example-prompts::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.example-prompts p {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.example-prompts p strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.example-prompt {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.example-prompt:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Chat Messages */
.chat-message {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-in;
}

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

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.message-role {
    color: var(--text-secondary);
}

.message-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 400;
}

.message-content {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    line-height: 1.5;
}

.message-user .message-content {
    background: var(--primary-color);
    color: white;
    border-radius: 0.75rem;
}

.message-assistant .message-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

/* Building indicator in chat messages */
.message-content.building-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.building-indicator .loading-dots {
    display: flex;
    gap: 4px;
}

.building-indicator .loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: loadingDot 1.4s infinite ease-in-out both;
}

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

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

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

/* Chat Building Indicator */
.chat-building-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}

.building-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.building-dots {
    display: flex;
    gap: 4px;
}

.building-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: buildingDot 1.4s infinite ease-in-out both;
}

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

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

.building-dots span:nth-child(3) {
    animation-delay: 0s;
}

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

/* Chat Input */
.chat-input-container {
    border-top: 1px solid rgba(45, 125, 125, 0.15);
    padding: 1rem;
    background: rgba(250, 248, 243, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 1000;
}

/* iOS keyboard handling - Enhanced approach */
@media (max-width: 768px) {
    /* When keyboard is open, use visual viewport positioning */
    .keyboard-open .chat-input-container {
        position: fixed !important;
        bottom: env(keyboard-inset-height, 0px) !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(250, 248, 243, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        z-index: 9999 !important;
        transform: translateY(0) !important;
        transition: none !important;
        border-top: 2px solid var(--primary-color) !important;
    }
    
    /* Ensure input container stays above everything */
    .keyboard-open .chat-input-container * {
        position: relative !important;
        z-index: 10000 !important;
    }
    
    .keyboard-open .chat-panel {
        padding-bottom: 0 !important;
    }
    
    .keyboard-open .chat-messages {
        padding-bottom: 140px !important; /* More space for fixed input */
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
    }
    
    /* Force the input above the keyboard regardless of scroll */
    .keyboard-open .builder-container {
        position: relative !important;
        overflow: hidden !important;
    }
    
    .keyboard-open .preview-panel {
        padding-bottom: 140px !important;
    }
    
    /* Modal adjustments for keyboard */
    .keyboard-open .modal-content {
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        transform: translateY(0) !important;
    }
    
    .keyboard-open .deployment-modal,
    .keyboard-open .paywall-modal {
        align-items: flex-start !important;
        padding-top: 1rem !important;
    }
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 54px;
    max-height: 120px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-btn {
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    height: 54px;
    min-width: 54px;
}

.send-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Attach button */
.attach-btn {
    padding: 0.75rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    min-width: 54px;
}

.attach-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Image preview and indicator */
.image-preview-container {
    margin-bottom: 0.5rem;
    display: none;
}

.image-preview {
    display: none;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 0.5rem;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 0.375rem;
    object-fit: cover;
}

.image-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.indicator-icon {
    font-size: 1rem;
}

.remove-image-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
    margin-left: 0.5rem;
    transition: color 0.2s;
}

.remove-image-btn:hover {
    color: var(--error-color);
}

/* Desktop: show preview */
@media (min-width: 769px) {
    .image-preview {
        display: block;
    }
    .image-indicator {
        display: none;
    }
}

/* Mobile: show indicator only */
@media (max-width: 768px) {
    .image-preview {
        display: none !important;
    }
    .image-indicator {
        display: flex;
    }
}

/* Drag and drop styles */
.chat-input-container.drag-over {
    background: rgba(45, 125, 125, 0.05);
    border-color: var(--primary-color);
}

.chat-input-container.drag-over .chat-input-wrapper {
    opacity: 0.6;
}

/* Build Progress */
.build-progress {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

@media (max-width: 768px) {
    .build-progress {
        bottom: 110px; /* Above the minimized chat */
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
    }
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    text-align: center;
}

/* Mobile Chat Toggle */
.chat-toggle {
    display: none;
}

@media (max-width: 768px) {
    .chat-toggle {
        display: flex;
        position: absolute;
        top: -35px; /* Move higher up to appear above input area */
        left: 50%;
        transform: translateX(-50%);
        padding: 0.5rem;
        background: rgba(250, 248, 243, 0.95);
        border: 2px solid rgba(45, 125, 125, 0.8);
        border-radius: 50%;
        cursor: pointer;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
}

.chat-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(45, 125, 125, 0.25);
}

@media (max-width: 768px) {
    .chat-toggle:hover {
        transform: translateX(-50%) scale(1.1);
    }
}

.chat-toggle:hover svg {
    color: white;
}

.chat-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease, color 0.2s ease;
    color: var(--primary-color);
}

.chat-panel.expanded .chat-toggle svg {
    transform: rotate(180deg);
}

/* Keep toggle button centered on mobile */
@media (max-width: 768px) {
    .chat-panel.expanded .chat-toggle {
        display: flex !important;
        position: absolute;
        top: -35px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Subscription Badge Base Styles */
.subscription-badge {
    background: rgba(45, 125, 125, 0.1);
    border: 1px solid rgba(45, 125, 125, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.subscription-badge:hover {
    background: rgba(45, 125, 125, 0.15);
    border-color: rgba(45, 125, 125, 0.4);
    transform: translateY(-1px);
}

.subscription-badge .tier-name {
    font-weight: 600;
    color: var(--primary-color);
}

.subscription-badge .chat-count {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Desktop button height consistency */
@media (min-width: 769px) {
    .btn-secondary,
    .btn-deploy,
    .subscription-badge {
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        line-height: 1.2 !important;
    }
    
    .subscription-badge {
        flex-direction: row !important;
        gap: 0.75rem !important;
    }
    
    /* Mobile history controls - smaller and more compact */
    .history-controls {
        gap: 0.125rem;
        padding: 0.0625rem;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .btn-history {
        width: 28px;
        height: 28px;
    }
    
    .btn-history svg {
        width: 12px;
        height: 12px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .builder-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 200;
        padding: 1rem 1.5rem;
    }
    
    .header-content {
        max-width: 100%;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        flex-shrink: 0;
        max-width: calc(50% - 0.5rem);
        margin-right: auto;
    }
    
    .header-actions {
        flex-shrink: 0;
        max-width: calc(50% - 0.5rem);
        justify-content: flex-end;
    }
    
    /* ALL BUTTONS SAME HEIGHT */
    .btn-secondary,
    .btn-deploy,
    .subscription-badge {
        height: 52px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    .subscription-badge {
        flex-direction: column !important;
        gap: 0.125rem !important;
    }
    
    .subscription-badge .tier-name {
        font-size: 0.8rem !important;
        line-height: 1 !important;
    }
    
    .subscription-badge .chat-count {
        font-size: 0.75rem !important;
        line-height: 1 !important;
    }
    
    .builder-main {
        flex-direction: column;
        position: relative;
        flex: 1;
        min-height: 0;
    }
    
    .preview-panel {
        border-right: none;
        border-bottom: none;
        flex: 1;
        min-height: 0;
        padding-top: 80px; /* Account for fixed header height */
        padding-bottom: 90px; /* Account for minimized chat */
    }
    
    .chat-panel {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 90px;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        z-index: 50;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
    }
    
    .chat-panel.expanded {
        height: 35vh;
        max-height: 320px;
    }
    
    
    /* Minimized chat shows input with preview */
    .chat-panel:not(.expanded) .chat-messages {
        display: none;
    }
    
    .chat-panel:not(.expanded) .chat-input-container {
        border-top: none;
        padding: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        position: relative;
    }
    
    /* Chat preview line */
    .chat-preview {
        display: none !important;
    }
    
    .chat-panel:not(.expanded) .chat-preview {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        height: 35px;
        padding: 0 1rem;
        display: flex !important;
        align-items: center;
        font-size: 0.875rem;
        color: var(--text-secondary);
        background: transparent;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(45, 125, 125, 0.15);
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        overflow: hidden;
        box-shadow: 0 -2px 10px rgba(45, 125, 125, 0.08);
    }
    
    .chat-panel:not(.expanded) .chat-preview:hover {
        background: rgba(247, 243, 233, 0.95);
        border-top-color: rgba(45, 125, 125, 0.2);
    }
    
    .chat-preview-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-style: italic;
    }
    
    /* Building indicator in collapsed mobile chat */
    .chat-panel:not(.expanded) .chat-preview.building-active {
        background: rgba(250, 248, 243, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(45, 125, 125, 0.15);
        box-shadow: 0 -2px 10px rgba(45, 125, 125, 0.08);
        padding: 0 1rem;
        margin: 0;
        border-radius: 0;
    }
    
    .chat-panel:not(.expanded) .chat-input-wrapper {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
    }
    
    .chat-panel:not(.expanded) .chat-input {
        flex: 1;
        min-height: 60px;
        max-height: 120px;
        padding: 0.625rem 0.75rem;
        resize: none;
        font-size: 1rem;
    }
    
    .chat-panel:not(.expanded) .send-btn {
        padding: 0.625rem;
        min-width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .chat-panel:not(.expanded) .attach-btn {
        padding: 0.625rem;
        min-width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    /* Expanded state improvements */
    .chat-panel.expanded .chat-messages {
        max-height: calc(35vh - 120px);
    }
    
    .chat-panel.expanded .chat-input-container {
        padding: 1rem;
    }
    
    .chat-panel.expanded .send-btn {
        padding: 0.75rem;
    }
    
    .chat-panel.expanded .attach-btn {
        padding: 0.75rem;
    }
    

    /* Hide header actions on very small screens */
    @media (max-width: 480px) {
        .builder-header {
            padding: 0.75rem 1rem;
        }
        
        .header-content {
            gap: 0.5rem;
        }
        
        .logo {
            margin-left: -0.25rem;
            font-size: 1.2rem;
        }
        
        .header-actions {
            gap: 0.5rem;
        }
        
        .btn-secondary {
            display: none;
        }
        
        .btn-deploy {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }
    }
}

/* Deployment Modal */
.deployment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Auth Section */
.auth-section {
    margin-bottom: 2rem;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auth-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
}

.auth-divider {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 1rem 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-toggle {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-toggle a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.auth-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 0.375rem;
}

/* Subdomain Section */
.subdomain-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.subdomain-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1rem;
}

.subdomain-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.domain-suffix {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--text-secondary);
}

.subdomain-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.subdomain-availability {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.subdomain-availability.available {
    color: var(--success-color);
}

.subdomain-availability.unavailable {
    color: var(--error-color);
}

.user-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Deploying Section */
.deploying-section {
    text-align: center;
    padding: 2rem 0;
}

.deploying-message {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.deploying-message strong {
    color: var(--primary-color);
}

.deploying-section .loading-spinner {
    margin: 0 auto 2rem;
}

.deploying-section .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.deploying-status {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.deployed-link {
    display: inline-block;
    font-size: 1.125rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.deployed-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Color Preview Modal */
.color-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-preview-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.color-preview-content {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 1rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.color-preview-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.color-preview-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.color-preview-reasoning {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: #fff;
}

.color-box {
    width: 40px;
    height: 40px;
    border-radius: 0.375rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.color-info {
    flex: 1;
}

.color-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.color-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.color-hex {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.color-preview-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.color-preview-actions button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-color-cancel {
    background: #f3f4f6;
    color: var(--text-primary);
}

.btn-color-cancel:hover {
    background: #e5e7eb;
}

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

.btn-color-apply:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
    .color-palette-grid {
        grid-template-columns: 1fr;
    }
    
    .color-preview-content {
        margin: 0.5rem;
        padding: 1.5rem;
    }
}

/* Image Guide Modal - Simple Tutorial */
.image-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-guide-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.image-guide-content {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.image-guide-header {
    text-align: center;
    margin-bottom: 1rem;
}

.otter-guide-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.image-guide-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.image-guide-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.guide-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.attachment-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.text-indicator {
    font-size: 1.25rem;
}

.btn-guide-close {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

@media (max-width: 640px) {
    .image-guide-content {
        margin: 0.5rem;
        padding: 1.25rem;
        max-width: 280px;
    }
}

/* Paywall Modal */
.paywall-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.paywall-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.paywall-modal .modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
    padding: 2.5rem;
}

.paywall-header {
    text-align: center;
    margin-bottom: 3rem;
}

.paywall-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.paywall-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(45, 125, 125, 0.1);
}

.pricing-card.recommended {
    border-color: var(--primary-color);
    position: relative;
}

.pricing-card.recommended::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.pricing-tier {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.pricing-amount .currency {
    font-size: 1.5rem;
}

.pricing-amount .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.pricing-cta {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.pricing-cta.btn-free {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.pricing-cta.btn-upgrade {
    background: var(--primary-color);
    color: white;
}

.pricing-cta.btn-contact {
    background: var(--text-primary);
    color: white;
}

.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.paywall-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.paywall-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Billing Toggle Styles */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.toggle-text {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 26px;
    transition: all 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 4px;
    top: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-input:checked + .toggle-slider {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

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

.discount-badge {
    background: var(--success-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.annual-total {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: normal;
    margin-top: 0.25rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.info {
    background: #3b82f6;
}

.toast.warning {
    background: #f59e0b;
}

/* Custom Domain Deployment Styles */
.domain-choice-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.5rem;
}

.domain-choice-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-secondary);
}

.domain-choice-btn.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.domain-choice-btn:hover:not(.active) {
    color: var(--text-primary);
}

.custom-domain-select select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
}

.custom-domain-select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 125, 125, 0.1);
}

.no-domains-message {
    text-align: center;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    border: 1px dashed var(--border-color);
}

.no-domains-message p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-get-domain-deploy {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-get-domain-deploy:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}