﻿/* v45 Print-on-Demand Styles */
.pod-section {
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.pod-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .pod-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.pod-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pod-image img {
    width: 100%;
    display: block;
    filter: brightness(0.95);
}

.pod-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #c45500;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transform: rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pod-content h2 {
    font-size: 2.5rem;
    margin: 1.5rem 0;
    color: #111;
    line-height: 1.2;
}

.pod-content .lead {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.pod-features-minimal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 640px) {
    .pod-features-minimal {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pod-features-minimal .feat {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2a47;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pod-features-minimal .feat i {
    color: #2ecc71;
}

.pod-highlight {
    border-left: 4px solid #febd69;
    padding-left: 1.5rem;
    margin-top: 2rem;
    font-style: italic;
    color: #555;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}


/* POD Studio Styles */
.pod-studio-page {
    background: #1a1a1a;
    min-height: 100vh;
    padding: 2rem 0;
    color: #fff;
}

.studio-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    background: #222;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
    .studio-container {
        grid-template-columns: 1fr;
    }
}

.studio-sidebar {
    background: #2d2d2d;
    padding: 2rem;
    border-right: 1px solid #444;
}

.studio-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #febd69;
}

.studio-header p {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.studio-step {
    margin-top: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #444;
}

.studio-step h3 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-step h3 span {
    background: #febd69;
    color: #111;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.product-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pod-product-item {
    background: #3d3d3d;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

.pod-product-item:hover {
    background: #4d4d4d;
}

.pod-product-item.active {
    border-color: #febd69;
    background: #4d4d4d;
}

.pod-product-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.pod-product-item span {
    font-size: 0.75rem;
}

.upload-area {
    border: 2px dashed #666;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.upload-area:hover {
    border-color: #febd69;
    background: #3d3d3d;
}

.upload-area i {
    font-size: 2rem;
    color: #febd69;
    margin-bottom: 10px;
}

.control-row {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: #3d3d3d;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
}

.control-btn:hover {
    background: #febd69;
    color: #111;
}

.studio-checkout {
    margin-top: 2rem;
    padding-top: 2rem;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.price-display strong {
    color: #febd69;
    font-size: 1.5rem;
}

.service-note {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 1rem;
}

.studio-preview {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.canvas-wrapper {
    position: relative;
    max-width: 100%;
}

#pod-canvas {
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.canvas-hint {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* POD Custom Options Styles */
.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    font-weight: 600;
}

.color-swatches {
    display: flex;
    gap: 10px;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #444;
    cursor: pointer;
    transition: 0.2s;
}

.swatch.active {
    border-color: #febd69;
    transform: scale(1.1);
}

.size-selector {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.size-btn {
    background: #3d3d3d;
    border: none;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.size-btn:hover {
    background: #4d4d4d;
}

.size-btn.active {
    background: #febd69;
    color: #111;
    font-weight: 700;
}

/* ========================================
   POD Text Tools Styles
   ======================================== */
.text-tools {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.text-controls-row {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

#pod-text-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

#pod-font-select {
    flex: 2;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
}

#pod-text-color {
    flex: 0 0 40px;
    height: 38px;
    padding: 0;
    border: none;
    cursor: pointer;
}

.separator-text {
    text-align: center;
    margin: 1rem 0;
    font-weight: bold;
    color: #94a3b8;
    position: relative;
}

.separator-text::before,
.separator-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e2e8f0;
}

.separator-text::before {
    left: 0;
}

.separator-text::after {
    right: 0;
}


/* ========================================
   Studio Layout Redesign
   ======================================== */
.pod-studio-wrapper {
    display: flex;
    height: calc(100vh - 80px);
    /* Adjust based on header height */
    top: 80px;
    position: relative;
    background: #f1f5f9;
}

/* Sidebar */
.studio-sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tabs */
.studio-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: #f0f9ff;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: white;
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.product-item:hover,
.product-item.active {
    border-color: var(--primary-color);
    background: #eff6ff;
    color: var(--primary-color);
}

.product-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Text Tools */
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.properties-panel {
    margin-top: 1rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
}

.properties-panel.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.style-toggles {
    display: flex;
    gap: 0.5rem;
}

.style-toggles button {
    border: 1px solid #cbd5e1;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
}

.style-toggles button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Layers */
#layers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#layers-list li {
    padding: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

#layers-list li.active {
    border-color: var(--primary-color);
    background: #eff6ff;
}

#layers-list li .layer-actions {
    display: flex;
    gap: 0.25rem;
}

/* Footer & Sidebar Actions */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

#total-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Main Workspace */
.studio-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.toolbar-top {
    height: 50px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
}

.tool-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.tool-btn:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.canvas-container-outer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.canvas-wrapper {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: white;
}


/* ========================================
   Refined Studio Styles
   ======================================== */

.canvas-wrapper {
    /* Ensure transformation origin is center for resizing */
    transform-origin: center center;
    transition: transform 0.2s ease-out;
}

/* Update Font Families in Dropdown to match Google Fonts */
#font-family option[value='Lobster'] {
    font-family: 'Lobster', cursive;
}

#font-family option[value='Oswald'] {
    font-family: 'Oswald', sans-serif;
}

#font-family option[value='Pacifico'] {
    font-family: 'Pacifico', cursive;
}

#font-family option[value='Roboto'] {
    font-family: 'Roboto', sans-serif;
}

/* Better Tooltips/Spacing for Controls */
.layer-actions button {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.layer-actions button:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}


/* ========================================
   Studio Isolation (App Shell)
   ======================================== */

.pod-studio-wrapper {
    /* Force Full Height and Flex Layout */
    display: flex !important;
    flex-direction: row !important;
    min-height: 800px;
    height: calc(100vh - 80px);
    overflow: hidden;
    background: #f1f5f9;
}

.studio-sidebar {
    /* Force Sidebar Width */
    width: 320px !important;
    min-width: 320px;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.studio-workspace {
    /* Force Workspace Fill */
    flex: 1 !important;
    display: flex !important;
    flex-direction: column;
    position: relative;
    background: #e2e8f0;
}

.canvas-container-outer {
    /* Center Canvas */
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Ensure no theme padding interferes */
.pod-studio-wrapper *,
.pod-studio-wrapper *::before,
.pod-studio-wrapper *::after {
    box-sizing: border-box;
}

/* Override potential theme conflicts */
body.page-template-page-pod {
    overflow-x: hidden;
    /* Prevent horizontal scroll from theme sidebar conflicts */
}


/* ========================================
   MODERN APP UI (DevsDude Inspired)
   ======================================== */

/* App Container */
.pod-app-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    width: 100vw !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 99999 !important;
    /* Force Overlay */
    background: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    margin: 0 !important;
    padding: 0 !important;
}

/* 1. App Header */
.pod-app-header {
    height: 60px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-brand {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 20px;
}

.nav-link:hover {
    color: white;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.top-toolbar {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px;
    display: flex;
    gap: 5px;
}

.top-toolbar .tool-btn {
    background: transparent;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.top-toolbar .tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.top-toolbar .sep {
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-tag {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-action {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-action:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* 2. Main Body (Rail + Drawer + Canvas) */
.pod-main-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Icon Rail */
.tools-rail {
    width: 70px;
    background: #0f172a;
    /* Dark Slate */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 15px;
    z-index: 20;
}

.rail-item {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.7rem;
    gap: 4px;
}

.rail-item i {
    font-size: 1.2rem;
}

.rail-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.rail-item.active {
    color: #3b82f6;
    background: #1e293b;
    position: relative;
}

.rail-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: #3b82f6;
    border-radius: 0 4px 4px 0;
}

/* Content Drawer */
.tools-drawer {
    width: 320px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.drawer-panel {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 20px;
}

.drawer-panel.active {
    display: block;
    animation: slideInLeft 0.2s;
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.panel-body {
    padding: 1.5rem;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 3. Canvas Area */
.studio-workspace-area {
    flex: 1;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.canvas-centering {
    padding: 40px;
}

.canvas-shadow-box {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    background: white;
    /* Behind canvas */
}

/* UI Components */
.prod-card {
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.prod-card:hover,
.prod-card.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.product-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.color-circles {
    display: flex;
    gap: 10px;
}

.color-circles .circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.color-circles .circle.active {
    border-color: #3b82f6;
    transform: scale(1.1);
}

.pill {
    border: 1px solid #cbd5e1;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.pill.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary-full {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
}

.font-btn {
    border: 1px solid #e2e8f0;
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    text-align: left;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.font-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

#text-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    min-height: 80px;
    font-family: inherit;
}

/* Pro Text Tools */
.font-grid-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
}

.font-grid-scroll::-webkit-scrollbar {
    width: 4px;
}

.font-grid-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.props-section {
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.props-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #475569;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.control-row input[type='range'] {
    flex: 1;
    margin-left: 10px;
}

.control-row input[type='color'] {
    width: 30px;
    height: 30px;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

/* Drag and Drop Zone */
.upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
}

.upload-box:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.upload-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}


/* Properties Container */
.props-container {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
}

.props-container.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}


/* ========================================
   SMART CARD PROFILE UI
   ======================================== */
.sc-page-wrapper {
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center on desktop */
    padding: 20px;
}

.sc-card-container {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.sc-header {
    height: 150px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    position: relative;
    margin-bottom: 60px;
    /* Space for photo overlap */
}

.sc-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    overflow: hidden;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-profile-photo.placeholder i {
    font-size: 3rem;
    color: #94a3b8;
}

.sc-body {
    padding: 0 30px 40px 30px;
}

.sc-name {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
}

.sc-title {
    margin: 0;
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
}

.sc-company {
    margin: 0 0 20px 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.sc-bio {
    margin-bottom: 30px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Buttons */
.sc-btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: #0f172a;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.sc-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.sc-btn i {
    margin-right: 8px;
}

/* Links Grid */
.sc-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sc-link-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: 0.2s;
    border: 1px solid #e2e8f0;
}

.sc-link-item:hover {
    background: #fff;
    border-color: #cbd5e1;
    transform: translateX(5px);
}

.sc-link-item i {
    width: 30px;
    font-size: 1.2rem;
    color: #3b82f6;
}

/* Brand Colors */
.sc-link-item.social.linkedin i {
    color: #0077b5;
}

.sc-link-item.social.instagram i {
    color: #e1306c;
}

.sc-footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.sc-footer a {
    color: #94a3b8;
    text-decoration: none;
}


/* ========================================
   CARD CREATOR TOOL UI
   ======================================== */
.creator-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.creator-container {
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.creator-container h1 {
    margin-top: 0;
    color: #1e293b;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-container p {
    color: #64748b;
    margin-bottom: 30px;
}

.sc-form .form-section {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.sc-form h3 {
    margin-top: 0;
    color: #334155;
    font-size: 1.1rem;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='url'],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 3px;
}

.row {
    display: flex;
    gap: 15px;
}

.row .half {
    flex: 1;
}

.btn-create {
    width: 100%;
    background: #2563eb;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

.btn-create:hover {
    background: #1d4ed8;
}


/* ========================================
   MOBILE RESPONSIVENESS (Max Width 768px)
   ======================================== */
@media (max-width: 768px) {

    /* 1. App Header: More Compact */
    .pod-app-header {
        padding: 0 10px;
        height: 50px;
    }

    .app-brand {
        font-size: 1rem;
    }

    .nav-link {
        display: none;
    }

    /* Hide links on mobile */

    /* 2. Main Wrapper: Column Layout */
    .pod-app-container {
        height: 100vh !important;
        overflow: hidden;
    }

    .pod-main-body {
        flex-direction: column !important;
        height: calc(100vh - 50px) !important;
        position: relative;
    }

    /* 3. Workspace: Full Width, Top Priority */
    .studio-workspace-area {
        flex: 1 !important;
        width: 100% !important;
        height: auto !important;
        order: 1;
        margin-bottom: 60px;
        /* Space for Bottom Nav */
    }

    /* 4. Rail (Sidebar): Fixed Bottom Nav */
    .tools-rail {
        width: 100% !important;
        height: 60px !important;
        flex-direction: row !important;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 100;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 !important;
        background: #0f172a;
    }

    .rail-item {
        margin: 0 !important;
        width: auto !important;
        flex: 1;
        height: 100%;
        border-radius: 0;
        background: transparent;
        justify-content: center;
    }

    .rail-item i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .rail-item span {
        font-size: 0.65rem;
        display: block;
    }

    .rail-item.active {
        background: #1e293b;
        color: #3b82f6;
    }

    .rail-item.active::after {
        width: 100%;
        height: 3px;
        top: 0;
        left: 0;
        bottom: auto;
        border-radius: 0;
    }


    /* 5. Tools Drawer: Bottom Sheet */
    .tools-drawer {
        width: 100% !important;
        height: 50vh !important;
        /* Half screen height */
        position: fixed;
        bottom: 60px;
        /* Above nav bar */
        left: 0;
        z-index: 90;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(120%);
        /* Hidden */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
    }

    /* Active State for Drawer */
    .tools-drawer.open {
        transform: translateY(0);
    }

    .drawer-panel {
        padding: 20px;
    }

    .product-grid-compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
}
/* ========================================
   SMART CARD MODAL (QR)
   ======================================== */
.sc-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.sc-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 350px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.3s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.sc-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.sc-modal-close:hover,
.sc-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.sc-qr-wrapper {
    margin: 20px 0;
    padding: 10px;
    background: white;
    display: inline-block;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.sc-qr-wrapper img { display: block; width: 200px; height: 200px; }

.sc-modal h3 { margin-top: 0; color: #1e293b; }
.sc-modal p { color: #64748b; margin-bottom: 20px; }


/* ========================================
   HOMEPAGE: SMART CARD PROMO
   ======================================== */
@media (max-width: 900px) {
    .sc-promo-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 3rem !important;
    }
    .sc-features li {
        justify-content: center;
        text-align: left; /* Keep text aligned but list items center relative to col */
    }
    .sc-actions {
        justify-content: center;
    }
    .phone-mockup {
        width: 250px !important;
        height: 500px !important;
    }
    .floating-card {
        width: 180px !important;
        height: 110px !important;
        bottom: 30px !important;
        left: -10px !important;
    }
}


/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes sc-float {
    0% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-20px) rotate(-8deg); }
    100% { transform: translateY(0) rotate(-10deg); }
}

@keyframes sc-pulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.1; }
}

@keyframes sc-slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.sc-blob.one {
    animation: sc-pulse 8s infinite alternate ease-in-out;
}

.sc-blob.two {
    animation: sc-pulse 6s infinite alternate-reverse ease-in-out;
}

.animate-float {
    animation: sc-float 6s ease-in-out infinite;
}

.animate-up {
    animation: sc-slideUpFade 1s ease-out forwards;
}

