/* Logo Maker - Complete Styles */

/* ===== GLOBAL RESET ===== */
#logoMakerApp {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#logoMakerApp * {
    box-sizing: border-box;
}

/* ===== WIZARD STYLES ===== */
#wizardFlow {
    min-height: 100vh;
    background: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(34, 197, 94, 0.1) 0px, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

#wizardFlow::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    filter: blur(120px);
    top: -150px;
    left: -150px;
    opacity: 0.4;
    border-radius: 50%;
}

#wizardFlow::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    filter: blur(140px);
    bottom: -150px;
    right: -150px;
    opacity: 0.3;
    border-radius: 50%;
}

.wizard-step {
    display: none;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    position: relative;
    z-index: 10;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.wizard-header {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.step-indicator.active {
    color: white;
}

.step-indicator.active .step-number {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

.wizard-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 60px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.wizard-title {
    margin-bottom: 45px;
}

.wizard-title h1 {
    font-size: 42px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.wizard-title p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(74, 222, 128, 0.1);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 16px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-hint {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    font-style: italic;
}

.btn-primary {
    width: 100%;
    padding: 18px 36px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-back {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== STYLE GRID ===== */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.style-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px 15px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.style-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.style-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.style-card:hover::before {
    transform: translateX(100%);
}

.style-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    align-items: center;
    transition: all 0.4s ease;
}

.style-card:hover .style-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(99, 102, 241, 0.1);
}

.style-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    color: white;
    margin-bottom: 8px;
}

.style-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

.style-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #6366f1;
    color: white;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px -5px rgba(99, 102, 241, 0.5);
}

/* ===== LOGO SUGGESTIONS ===== */
.suggestions-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #0f172a;
    min-height: 100vh;
    padding: 60px 40px;
    color: white;
}

.suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.suggestions-title h1 {
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.suggestions-title p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.suggestions-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-size: 14px;
    color: white;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
}

.filter-select {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select option {
    background: #1e293b;
    color: white;
}

.logo-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.logo-suggestion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.logo-suggestion-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.suggestion-preview {
    width: 100%;
    aspect-ratio: 1.2;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.suggestion-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* ===== STUDIO LAYOUT ===== */
#logoStudio {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

#logoStudio.hidden {
    display: none;
}

/* Hide global navigation/header when Studio is active */
body:has(#logoStudio:not(.hidden)) header,
body:has(#logoStudio:not(.hidden)) nav,
body:has(#logoStudio:not(.hidden)) .navbar,
body:has(#logoStudio:not(.hidden)) .main-header {
    display: none !important;
}

.studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.3px;
}

.save-status {
    font-size: 11px;
    color: #4ade80;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.save-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.editor-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.tool-btn.active {
    background: #6366f1;
    color: white;
}

.tool-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.tool-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 6px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 10px;
}

.zoom-level {
    font-size: 13px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== STUDIO BODY ===== */
.studio-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.studio-sidebar {
    width: 380px;
    background: rgba(15, 23, 42, 0.9) !important; /* Glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    color: white !important;
    z-index: 100;
}

.sidebar-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
}

.sidebar-tabs::-webkit-scrollbar {
    display: none;
}

.sidebar-tab {
    flex: 1;
    min-width: 75px;
    padding: 16px 8px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-tab i {
    font-size: 20px;
}

.sidebar-tab:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.sidebar-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.panel {
    display: none;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    background: transparent; /* Rely on sidebar glassmorphism */
}

.panel.active {
    display: block;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.panel-header {
    margin-bottom: 24px;
}

.panel-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.control-group {
    margin-bottom: 24px;
    width: 100%;
}

.control-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff; /* Pure white for maximum visibility */
    margin-bottom: 10px;
    opacity: 0.9;
}

.control-input,
.control-select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08); /* Increased from 0.05 */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly brighter border */
    border-radius: 12px;
    font-size: 14px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.control-input:focus,
.control-select:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.control-select option {
    background: #0f172a;
    color: white;
    padding: 10px;
}

.control-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.action-btn {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #6366f1;
}

.weight-buttons,
.align-buttons,
.transform-buttons {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 12px;
}

.weight-btn,
.align-btn,
.transform-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.weight-btn:hover,
.align-btn:hover,
.transform-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.weight-btn.active,
.align-btn.active,
.transform-btn.active {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    cursor: grab;
    border: 3px solid #1e293b;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: all 0.2s;
}

.slider-control input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.slider-value {
    min-width: 50px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Icon Grid */
.icon-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.category-btn:hover {
    border-color: #667eea;
}

.category-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.icon-item {
    aspect-ratio: 1;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px;
}

.icon-item:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.icon-item.active {
    border-color: #667eea;
    background: #f0f1f3;
}

/* Layout Options */
.layout-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.layout-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.layout-option:hover {
    border-color: #667eea;
}

.layout-option.active {
    border-color: #667eea;
    background: #f0f1f3;
}

.layout-preview {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 12px;
}

.preview-icon {
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 4px;
}

.preview-text {
    width: 30px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
}

.layout-preview.vertical {
    flex-direction: column;
}

.layout-option span {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

/* Layers Panel */
.layers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.layer-item:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.layer-item.active {
    border-color: #667eea;
    background: #f0f1f3;
}

.layer-icon {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.layer-icon i {
    font-size: 16px;
    color: #667eea;
}

.layer-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.layer-actions {
    display: flex;
    gap: 4px;
}

.layer-action-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.layer-action-btn:hover {
    background: #e5e7eb;
    color: #667eea;
}

.layer-action-btn i {
    font-size: 16px;
}


/* Curve Direction Buttons */
.curve-direction-buttons {
    display: flex;
    gap: 8px;
}

.curve-btn {
    flex: 1;
    padding: 12px 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.curve-btn svg {
    color: #666;
}

.curve-btn span {
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

.curve-btn:hover {
    border-color: #667eea;
}

.curve-btn:hover svg,
.curve-btn:hover span {
    color: #667eea;
}

.curve-btn.active {
    background: #667eea;
    border-color: #667eea;
}

.curve-btn.active svg,
.curve-btn.active span {
    color: white;
}

/* Font Preview in Dropdown */
#fontFamily option {
    padding: 8px;
    font-size: 16px;
}

#fontFamily option[value="Inter"] {
    font-family: 'Inter', sans-serif;
}

#fontFamily option[value="Poppins"] {
    font-family: 'Poppins', sans-serif;
}

#fontFamily option[value="Montserrat"] {
    font-family: 'Montserrat', sans-serif;
}

#fontFamily option[value="Roboto"] {
    font-family: 'Roboto', sans-serif;
}

#fontFamily option[value="Raleway"] {
    font-family: 'Raleway', sans-serif;
}

#fontFamily option[value="Lato"] {
    font-family: 'Lato', sans-serif;
}

#fontFamily option[value="Open Sans"] {
    font-family: 'Open Sans', sans-serif;
}

#fontFamily option[value="Ubuntu"] {
    font-family: 'Ubuntu', sans-serif;
}

#fontFamily option[value="Nunito"] {
    font-family: 'Nunito', sans-serif;
}

#fontFamily option[value="Quicksand"] {
    font-family: 'Quicksand', sans-serif;
}

#fontFamily option[value="Work Sans"] {
    font-family: 'Work Sans', sans-serif;
}

#fontFamily option[value="DM Sans"] {
    font-family: 'DM Sans', sans-serif;
}

#fontFamily option[value="Lexend"] {
    font-family: 'Lexend', sans-serif;
}

#fontFamily option[value="Bebas Neue"] {
    font-family: 'Bebas Neue', cursive;
    font-size: 18px;
}

#fontFamily option[value="Oswald"] {
    font-family: 'Oswald', sans-serif;
}

#fontFamily option[value="Barlow"] {
    font-family: 'Barlow', sans-serif;
}

#fontFamily option[value="Archivo"] {
    font-family: 'Archivo', sans-serif;
}

#fontFamily option[value="Space Grotesk"] {
    font-family: 'Space Grotesk', sans-serif;
}

#fontFamily option[value="Josefin Sans"] {
    font-family: 'Josefin Sans', sans-serif;
}

#fontFamily option[value="Playfair Display"] {
    font-family: 'Playfair Display', serif;
}

#fontFamily option[value="Merriweather"] {
    font-family: 'Merriweather', serif;
}

/* Elegant Serif */
#fontFamily option[value="Cinzel"] {
    font-family: 'Cinzel', serif;
}

#fontFamily option[value="Cormorant Garamond"] {
    font-family: 'Cormorant Garamond', serif;
}

#fontFamily option[value="Abril Fatface"] {
    font-family: 'Abril Fatface', cursive;
}

/* Script & Handwriting */
#fontFamily option[value="Pacifico"] {
    font-family: 'Pacifico', cursive;
}

#fontFamily option[value="Lobster"] {
    font-family: 'Lobster', cursive;
}

#fontFamily option[value="Dancing Script"] {
    font-family: 'Dancing Script', cursive;
}

#fontFamily option[value="Great Vibes"] {
    font-family: 'Great Vibes', cursive;
}

#fontFamily option[value="Satisfy"] {
    font-family: 'Satisfy', cursive;
}

#fontFamily option[value="Caveat"] {
    font-family: 'Caveat', cursive;
}

#fontFamily option[value="Shadows Into Light"] {
    font-family: 'Shadows Into Light', cursive;
}

#fontFamily option[value="Indie Flower"] {
    font-family: 'Indie Flower', cursive;
}

#fontFamily option[value="Amatic SC"] {
    font-family: 'Amatic SC', cursive;
}

#fontFamily option[value="Permanent Marker"] {
    font-family: 'Permanent Marker', cursive;
}

/* Display & Impact */
#fontFamily option[value="Righteous"] {
    font-family: 'Righteous', cursive;
}

#fontFamily option[value="Russo One"] {
    font-family: 'Russo One', sans-serif;
}

#fontFamily option[value="Fredoka One"] {
    font-family: 'Fredoka One', cursive;
}

#fontFamily option[value="Bungee"] {
    font-family: 'Bungee', cursive;
}

#fontFamily option[value="Bangers"] {
    font-family: 'Bangers', cursive;
}

#fontFamily option[value="Alfa Slab One"] {
    font-family: 'Alfa Slab One', cursive;
}

#fontFamily option[value="Black Ops One"] {
    font-family: 'Black Ops One', cursive;
}

#fontFamily option[value="Passion One"] {
    font-family: 'Passion One', cursive;
}

/* Retro & Futuristic */
#fontFamily option[value="Orbitron"] {
    font-family: 'Orbitron', sans-serif;
}

#fontFamily option[value="Press Start 2P"] {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

#fontFamily option[value="Monoton"] {
    font-family: 'Monoton', cursive;
}

#fontFamily option[value="Audiowide"] {
    font-family: 'Audiowide', cursive;
}

#fontFamily option[value="Saira Stencil One"] {
    font-family: 'Saira Stencil One', cursive;
}

#fontFamily option[value="Staatliches"] {
    font-family: 'Staatliches', cursive;
}

#fontFamily option[value="Teko"] {
    font-family: 'Teko', sans-serif;
}

#fontFamily option[value="Creepster"] {
    font-family: 'Creepster', cursive;
}

#fontFamily optgroup {
    font-weight: 700;
    font-size: 12px;
    color: #667eea;
    font-family: 'Inter', sans-serif;
    padding: 8px 0;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-picker input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
}

.color-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.color-presets,
.bg-presets {
    margin-top: 20px;
}

.color-presets h4,
.bg-presets h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.preset-btn,
.bg-preset {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover,
.bg-preset:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

/* Layers */
.layers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: move;
    transition: all 0.2s;
}

.layer-item:hover {
    border-color: #667eea;
}

.layer-icon {
    font-size: 18px;
    color: #666;
}

.layer-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.layer-actions {
    display: flex;
    gap: 4px;
}

.layer-btn {
    padding: 6px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.layer-btn:hover {
    background: #f0f1f3;
    color: #667eea;
}

/* ===== CANVAS ===== */
/* ===== CANVAS ===== */
.studio-canvas {
    flex: 1;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: auto;
    position: relative;
}

.canvas-container {
    position: relative;
    padding: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}

.canvas-wrapper {
    background: white;
    background-image: 
        linear-gradient(45deg, #eee 25%, transparent 25%), 
        linear-gradient(-45deg, #eee 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #eee 75%), 
        linear-gradient(-45deg, transparent 75%, #eee 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#logoCanvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: transparent;
}

.canvas-guides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f1f3;
    color: #1a1a1a;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.download-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

#previewCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.option-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.format-buttons,
.size-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.format-btn,
.size-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.format-btn:hover,
.size-btn:hover {
    border-color: #667eea;
}

.format-btn.active,
.size-btn.active {
    border-color: #667eea;
    background: #f0f1f3;
}

.format-btn i {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 8px;
}

.format-btn span,
.size-btn {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.format-btn small,
.size-btn small {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* Preview Modal */
.preview-modal .modal-content {
    max-width: 900px;
}

.preview-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.preview-tab {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.preview-tab:hover {
    border-color: #667eea;
}

.preview-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.preview-display {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: center;
}

#fullPreviewCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .studio-sidebar {
        width: 300px;
    }
}

/* Hide Bottom Nav on Tablet/Desktop (min-width: 601px) */
@media (min-width: 601px) {

    .navbar.fixed-bottom,
    nav.fixed-bottom,
    .mobile-nav {
        display: none !important;
    }

    /* Force Desktop Header Menu on Tablet (REMOVED - Reverted to Hamburger) */

    /* App-Like Drawer Menu for Tablet - GLOBAL */
    .navbar-collapse {
        display: none !important;
        /* Reset collapse styles */
    }

    /* Active Drawer State */
    .navbar-collapse.show,
    .navbar-collapse.in {
        display: block !important;
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80% !important;
        max-width: 320px;
        background: white !important;
        z-index: 10000 !important;
        padding: 80px 24px 24px 24px !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15) !important;
        animation: slideInRight 0.3s ease-out;
        overflow-y: auto;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    /* Dimmed Backdrop */
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: -200vw;
        width: 200vw;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Nav Links Styling in Drawer */
    .navbar-nav {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .nav-link {
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #333 !important;
        text-align: left !important;
        padding: 16px 0 !important;
        border-bottom: 1px solid #f3f4f6;
        display: block !important;
        text-align: left !important;
    }

    /* Toggler Button - High Z-Index to act as Close Button */
    .navbar-toggler {
        display: block !important;
        margin-left: auto !important;
        z-index: 10005 !important;
        position: relative;
        border: none;
        padding: 8px;
    }

    /* Transform Hamburger to X when Open */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    }

    /* Default Hamburger Icon */
    .navbar-toggler.collapsed .navbar-toggler-icon,
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

@media (max-width: 600px) {

    /* Wizard Improvements - Mobile App Feel */
    /* Remove outer padding to use full screen */
    #wizardFlow {
        padding: 0;
        background: #f8f9fa;
        /* Light background for contrast with white card */
    }

    .wizard-container {
        width: 100%;
        margin: 0;
    }

    /* Sticky Stepper Header */
    .wizard-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        margin: 0;
        padding: 15px 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Full Width "Sheet" Content */
    .wizard-content {
        padding: 24px 20px 40px 20px;
        /* Normal padding, no huge gap needed */
        border-radius: 24px 24px 0 0;
        margin-top: -20px;
        /* Overlap header slightly */
        min-height: calc(100vh - 140px);
        box-shadow: none;
    }

    /* Isolation Mode disabled - Footer and Nav restored by user request */
    /* 
    body:has(#wizardFlow) footer,
    body:has(#wizardFlow) .footer,
    body:has(#wizardFlow) .site-footer,
    body:has(#wizardFlow) .navbar.fixed-bottom,
    body:has(#wizardFlow) .mobile-nav {
        display: none !important;
    } 
    */

    /* Trust Badge */
    .trust-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .trust-badge i {
        font-size: 12px;
    }

    /* Industry Chips */
    .industry-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .industry-chip {
        padding: 6px 14px;
        background: #f3f4f6;
        color: #4b5563;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        border: 1px solid transparent;
    }

    .industry-chip:hover,
    .industry-chip.active {
        background: #e0e7ff;
        color: #4f46e5;
        border-color: #667eea;
    }

    /* Fix strict position:fixed context on mobile */

    /* Fix strict position:fixed context on mobile */
    .wizard-step,
    .wizard-step.active {
        transform: none !important;
        animation: none !important;
    }

    .wizard-title h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    /* Fixed Bottom Continue Button - App-Like */
    /* Fixed Bottom Continue Button - App-Like */
    .wizard-actions {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 16px 20px;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }

    /* Standard Button Flow (Not Sticky) */
    .wizard-actions,
    .wizard-step .btn-large {
        position: relative !important;
        width: 100%;
        margin-top: 24px;
        border-radius: 12px;
        box-shadow: none;
        z-index: 1;
    }

    /* Single Column Style Cards */
    .style-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .style-card {
        padding: 16px;
    }

    .style-card h3 {
        font-size: 14px;
    }

    .style-card p {
        font-size: 11px;
    }

    /* Logo Grid - Single Column for Better Visibility */
    .logo-suggestions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .logo-suggestion-card {
        max-width: 100%;
        padding: 20px;
    }

    /* Full-Screen Studio on Mobile */
    #logoStudio {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: white;
    }

    /* Hide Site Navigation in Studio */
    body:has(#logoStudio:not(.hidden)) header,
    body:has(#logoStudio:not(.hidden)) footer,
    body:has(#logoStudio:not(.hidden)) .mobile-nav {
        display: none !important;
    }

    /* Compact Header */
    .studio-header {
        flex-wrap: nowrap;
        gap: 4px;
        padding: 8px;
        height: 56px;
    }

    .header-left,
    .header-right {
        gap: 4px;
    }

    .header-center {
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex: 1;
        gap: 8px;
    }

    /* Icon-Only Buttons on Mobile */
    /* Icon-Only Buttons on Mobile - ENFORCED */
    /* Icon-Only Buttons on Mobile - SCOPED TO HEADER ONLY */
    .studio-header .header-btn,
    .studio-header .action-btn,
    .studio-header .btn-secondary,
    .studio-header .btn-primary {
        min-width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .studio-header .header-btn i,
    .studio-header .action-btn i,
    .studio-header .btn-secondary i,
    .studio-header .btn-primary i {
        font-size: 22px !important;
        margin: 0 !important;
        text-indent: 0 !important;
        display: inline-block !important;
        line-height: normal !important;
        color: white !important;
    }

    /* Hide ALL text content in HEADER buttons */
    .studio-header .header-btn *:not(i),
    .studio-header .action-btn *:not(i),
    .studio-header .btn-secondary *:not(i),
    .studio-header .btn-primary *:not(i) {
        display: none !important;
        visibility: hidden !important;
    }

    /* Ensure back button is visible and prominent */
    .studio-header .header-left .header-btn:first-child {
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 8px !important;
    }

    /* Secondary buttons (Preview, Save) - HIGHER SPECIFICITY */
    .studio-header .header-right .btn-secondary,
    .header-right .btn-secondary {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        color: white !important;
    }

    /* Primary button (Download) - HIGHER SPECIFICITY */
    .studio-header .header-right .btn-primary,
    .header-right .btn-primary {
        background: #667eea !important;
        border: none !important;
        border-radius: 8px !important;
        color: white !important;
    }

    .studio-header .btn-primary i,
    .studio-header .btn-secondary i,
    .header-right .btn-primary i,
    .header-right .btn-secondary i {
        color: white !important;
    }

    /* Force Hide Site Mobile Nav REMOVED */
    /* 
    .navbar.fixed-bottom,
    nav.fixed-bottom,
    .site-mobile-nav,
    .mobile-nav {
        display: none !important;
    } 
    */

    /* Brand Info in Header */
    .brand-info {
        display: none !important; /* Hide brand info on mobile header to save space */
    }

    /* Mobile Studio Layout - Tabs at Bottom */
    .studio-header {
        height: 60px;
        padding: 0 10px;
        justify-content: space-between;
    }

    .header-left, .header-right {
        gap: 6px !important;
    }

    .header-btn i, .header-right .btn i {
        font-size: 20px !important;
    }
    
    .header-btn span, .header-right .btn span {
        display: none !important; /* Force hide text */
    }

    .studio-body {
        flex-direction: column;
        height: calc(100vh - 60px);
    }

    /* Canvas - Top */
    .studio-canvas {
        position: relative;
        width: 100%;
        height: 35vh;
        min-height: 200px;
        max-height: 280px;
        padding: 12px;
        background: #f5f5f5;
        order: 1;
        overflow: hidden;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Canvas Wrapper - Ensure Visibility */
    .canvas-wrapper {
        max-width: 90%;
        max-height: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Canvas Element */
    #logoCanvas {
        display: block !important;
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
    }

    /* Sidebar - Bottom (Tabs + Content) */
    .studio-sidebar {
        position: relative;
        width: 100%;
        height: 65vh;
        border-right: none;
        border-top: 2px solid #e5e7eb;
        order: 2;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }

    /* Horizontal Tabs at Bottom */
    .sidebar-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 0;
        background: #111827; /* Dark background */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
        justify-content: space-evenly;
        width: 100%;
    }

    .sidebar-tabs::-webkit-scrollbar {
        display: none;
    }

    .sidebar-tab {
        flex: 0 0 85px; /* Fixed width, no squashing */
        min-height: 60px;
        padding: 8px 4px;
        font-size: 8px; /* Slightly smaller for long labels */
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.02em;
        white-space: normal; /* Allow two lines if needed */
        word-wrap: break-word;
        border-bottom: 3px solid transparent;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.5) !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .sidebar-tab:last-child {
        border-right: none;
    }

    .sidebar-tab.active {
        border-bottom-color: #6366f1;
        background: #1f2937;
        color: white !important;
    }

    .sidebar-tab i {
        font-size: 22px;
        margin-bottom: 4px;
        display: block;
    }

    /* Sidebar Content - Visible Below Tabs */
    .sidebar-content {
        padding: 20px 12px;
        flex: 1;
        overflow-y: auto;
        text-align: left;
        background: #0f172a;
        -webkit-overflow-scrolling: touch;
    }

    /* ===== MOBILE APP-LIKE ENHANCEMENTS ===== */

    /* Edge-to-Edge Canvas */
    .studio-canvas {
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .canvas-wrapper {
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }

    /* Remove rounded corners from sidebar */
    .studio-sidebar {
        border-radius: 0 !important;
        background: #0f172a; /* Consistent Dark Theme */
        color: white !important;
    }

    /* App-like header with better touch targets */
    .studio-header {
        background: #1a1a1a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 100;
    }

    .header-btn {
        min-width: 44px;
        min-height: 44px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .header-btn:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.15);
    }

    .header-right .btn-secondary,
    .header-right .btn-primary {
        min-width: 44px;
        min-height: 44px;
        border-radius: 10px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .header-right .btn-secondary:active,
    .header-right .btn-primary:active {
        transform: scale(0.92);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    /* Smooth tab transitions */
    .sidebar-tab {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .sidebar-tab:active {
        transform: scale(0.95);
        background: #f0f0f0;
    }

    .sidebar-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from {
            transform: scaleX(0);
        }

        to {
            transform: scaleX(1);
        }
    }

    /* Better input styling */
    .control-group {
        margin-bottom: 20px !important;
        position: relative;
    }

    .control-group label {
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        color: rgba(255,255,255,0.5);
        text-transform: uppercase;
        font-weight: 600;
    }

    .control-input,
    .control-select {
        width: 100%;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding: 10px 40px 10px 12px !important; /* Right padding for action btn */
        font-size: 14px !important;
        background: #1e293b !important;
        color: #ffffff !important;
    }

    .control-actions {
        position: absolute;
        right: 4px;
        top: 24px; /* Move up to center on the input, accounting for label */
        height: 42px; /* Set height to align with input */
        display: flex;
        align-items: center;
        z-index: 10;
    }

    .action-btn {
        background: transparent;
        border: none;
        color: rgba(255,255,255,0.4);
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .weight-buttons, .align-buttons, .transform-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        background: rgba(255,255,255,0.03);
        padding: 4px;
        border-radius: 8px;
    }

    .weight-btn, .align-btn, .transform-btn {
        flex: 1;
        min-width: 50px;
        padding: 8px 2px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
    }

    .control-input:focus,
    .control-select:focus {
        background: #ffffff !important;
        border-color: #667eea !important;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
        transform: translateY(-1px);
    }

    /* App-like buttons with better touch feedback */
    .action-btn,
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
        border-radius: 10px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .action-btn:active,
    .btn-icon:active {
        transform: scale(0.92);
        background: #e5e7eb;
    }

    /* Smooth panel transitions */
    .panel {
        animation: fadeInUp 0.3s ease;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Native-like scrolling */
    .sidebar-content,
    .panel {
        scroll-behavior: smooth;
    }

    /* Remove tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    /* Prevent text selection on UI elements */
    .sidebar-tab,
    .header-btn,
    .btn-secondary,
    .btn-primary {
        -webkit-user-select: none;
        user-select: none;
    }

    /* Full viewport height */
    #logoStudio {
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height for mobile browsers */
    }

    .studio-body {
        height: calc(100vh - 56px);
        height: calc(100dvh - 56px);
        overscroll-behavior: contain;
    }

    /* Momentum scrolling for iOS */
    .sidebar-content,
    .panel,
    .modal-body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Smooth scroll snap for better UX */
    .icon-grid,
    .color-picker-grid {
        scroll-snap-type: y proximity;
    }

    /* Hide scrollbar but keep functionality */
    .sidebar-content::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }

    /* App-like loading skeleton */
    .control-group.loading {
        animation: pulse 1.5s ease-in-out infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.6;
        }
    }

    /* Improved shadow depth for elevation */
    .studio-header {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    }

    /* Bottom sheet style for modals */
    .modal.active .modal-content {
        animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    /* Safe area insets for notched devices */
    .studio-header {
        padding-top: max(12px, env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .studio-body {
        padding-bottom: env(safe-area-inset-bottom);
    }


    .panel {
        padding: 0;
        max-width: 100%;
        width: 100%;
        text-align: left;
    }

    .panel h3 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 18px;
        font-weight: 700;
    }

    /* Compact Controls */
    .control-group {
        margin-bottom: 20px;
        width: 100%;
    }

    .control-group label {
        font-size: 13px;
        margin-bottom: 8px;
        display: block;
        font-weight: 600;
        color: #374151;
    }

    .control-input,
    .control-select,
    .control-textarea {
        font-size: 15px;
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 8px;
        border: 1px solid #d1d5db;
    }

    .control-slider {
        height: 6px;
    }

    /* Compact Buttons */
    .btn-group {
        gap: 6px;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Weight/Align/Transform Buttons - Full Width on Mobile */
    .weight-buttons,
    .align-buttons,
    .transform-buttons {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
        margin-bottom: 16px;
    }

    .weight-btn,
    .align-btn,
    .transform-btn {
        flex: 1 !important;
        min-height: 44px !important;
        padding: 12px 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        white-space: nowrap;
        text-align: center;
    }

    /* Color Picker */
    .color-picker-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }

    .color-option {
        width: 36px;
        height: 36px;
    }

    /* Icon Grid */
    .icon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .icon-item {
        padding: 12px;
    }

    /* Modals - Full Screen on Mobile */
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
    }

    .modal-body {
        padding: 20px 16px;
    }

    .modal-footer {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 16px;
        border-top: 1px solid #e5e7eb;
    }

    /* Preview Modal */
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .preview-item {
        padding: 20px;
    }

    /* Download Modal */
    .format-grid,
    .size-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Toast Notifications */
    .toast {
        top: 60px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }

    /* Toolbar */
    .editor-tools {
        flex-wrap: wrap;
        gap: 4px;
    }

    .tool-btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 32px;
    }

    .tool-btn i {
        font-size: 14px;
    }

    /* Hide text labels on small buttons */
    .tool-btn span {
        display: none;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .studio-body {
        flex-direction: row;
        height: calc(100vh - 50px);
    }

    .studio-canvas {
        width: 50%;
        height: 100%;
        order: 1;
        border-right: 2px solid #e5e7eb;
        border-top: none;
    }

    .studio-sidebar {
        width: 50%;
        height: 100%;
        border-top: none;
        border-left: none;
        order: 2;
    }

    .studio-header {
        padding: 6px;
        height: 50px;
    }

    .header-btn,
    .action-btn {
        min-width: 36px;
        height: 36px;
        padding: 6px;
    }

    .tool-btn {
        padding: 4px 6px;
        font-size: 10px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .wizard-content {
        padding: 24px 16px;
    }

    .wizard-title h1 {
        font-size: 22px;
    }

    .wizard-title p {
        font-size: 13px;
    }

    /* Single Column Logo Grid */
    .logo-suggestions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .logo-suggestion-card {
        padding: 16px;
    }

    /* More Compact Studio */
    .studio-canvas {
        height: 40vh;
        min-height: 220px;
        padding: 12px;
    }

    .studio-sidebar {
        height: 60vh;
    }

    .sidebar-content {
        padding: 12px;
    }

    .panel {
        padding: 12px;
    }

    .sidebar-tab {
        min-width: 55px;
        padding: 10px 6px;
        font-size: 9px;
    }

    .sidebar-tab i {
        font-size: 16px;
    }

    /* Extra Compact Controls */
    .control-group {
        margin-bottom: 12px;
    }

    .control-group label {
        font-size: 11px;
    }

    .control-input,
    .control-select {
        font-size: 13px;
        padding: 8px;
    }

    /* Smaller Icons Grid */
    .icon-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .icon-item {
        padding: 10px;
    }

    /* Smaller Color Grid */
    .color-picker-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .color-option {
        width: 32px;
        height: 32px;
    }
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

/* Ultra-Thin Auto-Hide Scrollbars */
.sidebar-content::-webkit-scrollbar,
.icon-grid::-webkit-scrollbar,
.sidebar-tabs::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.panel::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

.sidebar-content::-webkit-scrollbar-track,
.icon-grid::-webkit-scrollbar-track,
.sidebar-tabs::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.panel::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb,
.icon-grid::-webkit-scrollbar-thumb,
.sidebar-tabs::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: background 0.2s;
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
.icon-grid::-webkit-scrollbar-thumb:hover,
.sidebar-tabs::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Firefox - Thin Scrollbars */
.sidebar-content,
.icon-grid,
.sidebar-tabs,
.modal-content,
.panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Mobile - Hide Scrollbars Completely */
@media (max-width: 600px) {

    .sidebar-content::-webkit-scrollbar,
    .icon-grid::-webkit-scrollbar,
    .sidebar-tabs::-webkit-scrollbar,
    .modal-content::-webkit-scrollbar,
    .panel::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .sidebar-content,
    .icon-grid,
    .sidebar-tabs,
    .modal-content,
    .panel {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

/* Canvas Contrast, Shadow, and Center Alignment */
.studio-canvas {
    background: #f3f4f6;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.canvas-wrapper {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: white;
    width: min(90%, 600px); /* Larger on desktop, responsive on mobile */
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px; /* Slight roundness for premium look */
}

#logoCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain;
}

@media (max-width: 600px) {
    .studio-canvas {
        background: #e5e7eb;
    }

    /* Ensure header alignment */
    .studio-header {
        align-items: center !important;
    }
}

/* --- Global Footer Improvements (Newsletter) --- */
/* Target common footer subscription form patterns */
footer form,
.footer-newsletter form,
.newsletter-widget form {
    position: relative !important;
    display: flex !important;
    /* Force side-by-side */
    flex-wrap: nowrap !important;
    align-items: center !important;
    max-width: 100% !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    padding: 4px !important;
    /* Space for inner button */
    margin-top: 15px !important;
}

/* Input Styles */
footer input[type="email"],
.footer-newsletter input,
.newsletter-widget input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 20px !important;
    height: 42px !important;
    color: white !important;
    /* Assuming dark footer */
    width: 100% !important;
    flex: 1 !important;
    outline: none !important;
}

footer input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Button Styles - Circular/Pill Inside */
footer button[type="submit"],
.footer-newsletter button,
.newsletter-widget button {
    position: static !important;
    /* Reset absolute if any */
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 42px !important;
    /* Prevent squishing */
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4) !important;
    transition: transform 0.2s ease !important;
    margin-left: 8px !important;
    /* Gap */
}

footer button[type="submit"]:hover {
    transform: scale(1.1) !important;
}

footer button[type="submit"] i {
    font-size: 16px !important;
}

/* Force override any block containers inside the form */
footer form .input-group,
footer form>div {
    display: flex !important;
    flex: 1;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
}

/* --- Drawer Live Search Styles (Injected via JS) --- */
.drawer-search-container {
    padding: 0 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    width: 100%;
}

.drawer-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.drawer-search-box input {
    width: 100% !important;
    padding: 12px 15px 12px 45px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    outline: none !important;
    font-size: 16px !important;
    color: #333 !important;
    height: 48px !important;
    transition: all 0.2s;
}

.drawer-search-box input:focus {
    background: white !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.drawer-search-box i,
.drawer-search-box svg {
    position: absolute;
    left: 15px;
    color: #9ca3af;
    font-size: 18px;
    z-index: 10;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 20px;
    width: 100%;
}

.pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
}

.pagination-info {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

/* Responsive Adjustments for Studio Header */
@media (max-width: 768px) {
    .studio-header {
        padding: 8px 12px;
    }

    .header-section {
        gap: 8px;
    }

    /* Show undo/redo on mobile, hide other center tools */
    .header-center {
        display: flex !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-center .editor-tools {
        display: flex;
        gap: 4px;
        background: transparent;
        padding: 0;
    }

    /* Show only undo/redo on mobile */
    .header-center .tool-btn {
        display: none;
    }

    #undoBtn,
    #redoBtn {
        display: flex !important;
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    #undoBtn:active:not(:disabled),
    #redoBtn:active:not(:disabled) {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.2);
    }

    #undoBtn:disabled,
    #redoBtn:disabled {
        opacity: 0.3;
    }


    /* Hide dividers and other tools */
    .header-center .tool-divider,
    .header-center .zoom-controls {
        display: none !important;
    }

    .brand-info {
        display: none;
        /* Hide brand name on mobile to save space */
    }

    .header-right .btn-secondary span,
    .header-right .btn-primary span {
        display: none;
        /* Hide text labels on mobile, show only icons */
    }

    .header-right .btn-secondary,
    .header-right .btn-primary {
        padding: 8px;
        /* Reduce padding for icon-only buttons */
    }

    .header-btn {
        padding: 6px;
        /* Smaller back button */
    }

    /* Adjust tools for mobile */
    .editor-tools {
        gap: 2px;
    }

    .zoom-controls {
        display: none;
        /* Hide zoom on very small screens if needed, or compact it */
    }

    /* Modal Responsiveness */
    .modal-content {
        width: 95% !important;
        margin: 10px auto;
        padding: 20px !important;
    }

    .preview-modal {
        max-width: 90% !important;
    }

    .modal-header h2 {
        font-size: 18px;
    }
}

/* Icon Search UI */
.icon-item.iconify-result {
    border-color: #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.icon-separator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0 10px;
    position: relative;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.icon-separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.icon-separator span {
    background: #f9fafb;
    padding: 0 12px;
    position: relative;
    z-index: 2;
}
/* Load More Styling */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    width: 100%;
    clear: both;
}

.btn-load-more {
    background: #4F46E5;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-load-more:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-load-more i {
    font-size: 18px;
}

.spinning {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}


/* ===== FINAL MOBILE POLISH & ALIGNMENT FIXES ===== */
@media (max-width: 768px) {
    /* Wizard Flow (Steps 1 & 2) Mobile Adjustments */
    #wizardFlow {
        padding: 40px 15px !important;
    }

    .wizard-content {
        padding: 30px 20px !important;
        border-radius: 24px !important;
    }

    .wizard-header {
        gap: 20px !important;
        margin-bottom: 30px !important;
    }

    .wizard-title h1 {
        font-size: 30px !important;
    }

    .wizard-title p {
        font-size: 15px !important;
    }

    .step-indicator {
        font-size: 11px !important;
        gap: 8px !important;
    }

    .step-number {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
    }

    .style-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 15px !important;
    }

    .style-card {
        padding: 15px 10px !important;
    }

    .style-icon {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 12px !important;
    }

    /* Rest of Studio Responsiveness... */
    #logoStudio {
        overflow: hidden !important;
        width: 100% !important;
        position: fixed !important;
    }

    .studio-body {
        flex-direction: column !important;
    }

    .studio-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw !important;
        height: auto !important;
        z-index: 1000;
        background: transparent !important;
        border: none;
        flex-direction: column-reverse; /* tabs at bottom, content above */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-x: hidden !important;
    }

    .sidebar-tabs {
        width: 100%;
        height: 65px;
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-around;
        padding: 0;
        z-index: 1001; 
        overflow-y: hidden;
    }

    .sidebar-tab {
        flex: 1;
        padding: 8px 0;
        border-bottom: none !important;
        border-top: 3px solid transparent;
        font-size: 10px;
        letter-spacing: 0;
    }

    .sidebar-tab.active {
        border-top-color: #6366f1 !important;
        background: rgba(99, 102, 241, 0.15) !important;
        transform: scale(1.05); /* Tactile feel */
    }

    .sidebar-tab:active {
        transform: scale(0.92);
        opacity: 0.8;
    }

    .sidebar-content {
        position: fixed !important;
        bottom: 65px !important;
        left: 0;
        right: 0;
        width: 100vw !important;
        max-width: 100% !important;
        max-height: 50vh !important;
        background: #0f172a !important; /* Force solid dark background */
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
        overflow-y: auto;
        overflow-x: hidden !important;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99999 !important;
        transform: translateY(120%);
        opacity: 0;
        pointer-events: none;
        padding: 20px 0;
    }

    /* App-like Swipe Handle */
    .sidebar-content::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 5px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        z-index: 10;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }


    /* Active state for bottom sheet */
    .sidebar-content.sheet-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
        display: block !important;
    }

    .panel {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 15px 20px;
    }

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

    .panel-header h3 {
        font-size: 16px;
        margin: 0;
    }

    .close-sheet-btn {
        display: flex !important;
        background: rgba(255,255,255,0.1);
        border: none;
        color: white;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .studio-canvas {
        margin-bottom: 65px; /* Offset for tabs */
        height: calc(100vh - 130px) !important;
        background: #0f172a !important; /* Matches studio theme */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1;
        position: relative;
    }

    .canvas-wrapper {
        margin: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 90vw !important;
        height: 90vw !important; 
        max-width: 512px !important;
        max-height: 512px !important;
    }

    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
        width: 100% !important;
        gap: 8px !important;
    }

    /* Step 3 (Suggestions Grid) Mobile Adjustments */
    .suggestions-container {
        padding: 30px 20px !important;
    }

    .suggestions-title h1 {
        font-size: 28px !important;
        letter-spacing: -0.5px;
    }

    .suggestions-header {
        margin-bottom: 30px !important;
        text-align: center;
        justify-content: center !important;
    }

    .suggestions-filters {
        padding: 12px !important;
        border-radius: 16px !important;
        gap: 10px !important;
    }

    .search-input, .filter-select {
        min-width: 100% !important;
    }

    .logo-suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 16px !important;
    }

    .logo-suggestion-card {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .suggestion-preview {
        aspect-ratio: 1 !important;
    }
}

/* ===== PREMIUM UI OVERRIDES ===== */
.premium-glass {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(30px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 40px !important;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8) !important;
    padding: 60px !important;
    max-width: 900px !important;
    margin: 0 auto;
}

.badge-ai {
    display: inline-flex;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    color: #a78bfa;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.35;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.active {
    opacity: 1;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.active .step-dot {
    background: #6366f1;
    box-shadow: 0 0 20px #6366f1;
    transform: scale(1.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.step-line {
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 22px;
}

.step-text {
    font-size: 11px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-group.floating {
    position: relative;
    text-align: left;
}

.form-control-premium {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    color: white !important;
    padding: 18px 24px !important;
    font-size: 16px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
}

.form-control-premium:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.2) !important;
    transform: translateY(-2px);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(to right, transparent, #6366f1, #a855f7, transparent);
    opacity: 0;
    transition: all 0.4s ease;
    filter: blur(2px);
}

.form-control-premium:focus + .input-glow {
    opacity: 1;
    bottom: -2px;
}

.label-premium {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 14px !important;
    display: block;
    letter-spacing: 0.5px;
}

.ai-prompt-boxed {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 28px;
    padding: 30px;
    margin-top: 40px;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.prompt-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #a78bfa;
    font-size: 22px;
    animation: pulseAI 2s infinite ease-in-out;
}

@keyframes pulseAI {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2) rotate(10deg); }
}

.category-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-card-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.category-card-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #6366f1;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.category-card-premium.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border-color: #6366f1;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.cat-icon-premium {
    font-size: 32px;
    color: #6366f1;
    transition: all 0.4s ease;
}

.cat-label-premium {
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.btn-gradient-glow {
    width: 100%;
    padding: 22px 40px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px -10px rgba(99, 102, 241, 0.6);
}

@media (max-width: 768px) {
    .premium-glass {
        padding: 40px 20px !important;
        border-radius: 30px !important;
    }
    
    .wizard-title h1 {
        font-size: 32px !important;
    }
    
    .category-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Export & Mockups Screen */
.export-grid-premium {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-top: 30px;
}

.master-preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.master-canvas-container {
    width: 600px;
    max-width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.master-canvas-container canvas {
    width: 100%;
    height: 100%;
}

.mockup-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.mockup-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
}

.mockup-img-wrapper {
    width: 100px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #1e293b;
}

.mockup-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.mockup-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.12);
    width: 300px;
    height: 300px;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mockup-info {
    font-weight: 500;
    font-size: 14px;
    color: white;
}

/* Mobile Adjustments for Export */
@media (max-width: 768px) {
    .export-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .master-preview-card {
        padding: 20px;
    }
}

/* Studio Sidebar Modernization */
#logoStudio .studio-sidebar {
    background: #0f172a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#logoStudio .sidebar-tabs {
    background: #1e293b !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#logoStudio .tab-btn {
    color: rgba(255, 255, 255, 0.5) !important;
}

#logoStudio .tab-btn.active {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #818cf8 !important;
}

#logoStudio .panel-header h3 {
    color: white !important;
}

#logoStudio .control-group label {
    color: rgba(255, 255, 255, 0.6) !important;
}

#logoStudio .color-input, 
#logoStudio .filter-select, 
#logoStudio .search-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Layers UI */
.layer-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.layer-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.layer-item.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.layer-drag-handle {
    color: rgba(255, 255, 255, 0.2);
    cursor: grab;
}

.layer-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
}

.layer-info i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
}

.layer-action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s;
}

.layer-action-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.layer-action-btn.muted {
    color: #ef4444;
}
