/* ----------------------------------------------------
   IKEMOTO TECHNOLOGIES - DENSHIINKAN BRIGHT STYLES
   ---------------------------------------------------- */

:root {
    /* Bright Japanese Minimalist Theme Colors */
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Accents */
    --vermilion: #e60012; /* Standard Japanese Vermilion Red */
    --vermilion-glow: rgba(230, 0, 18, 0.15);
    --indigo: #4f46e5;
    --indigo-glow: rgba(79, 70, 229, 0.08);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Blob Animations */
.bg-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.06; /* Soft pastel background in light mode */
}

.blob-1 {
    top: -100px;
    left: -100px;
    background-color: var(--vermilion);
    animation: pulse-blob-1 12s infinite alternate;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background-color: var(--indigo);
    animation: pulse-blob-2 15s infinite alternate;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

@keyframes pulse-blob-1 {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, 50px); }
}

@keyframes pulse-blob-2 {
    0% { transform: scale(1.2) translate(0, 0); }
    100% { transform: scale(0.9) translate(-50px, -50px); }
}

/* Main Container Layout */
.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 24px;
}

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

.app-logo-icon {
    width: 36px;
    height: 36px;
    background-color: var(--vermilion);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(230, 0, 18, 0.25);
    flex-shrink: 0;
}

.app-logo-icon span {
    transform: translateY(-1px);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

.brand-sub {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: -2px;
}

.badge-free {
    background-color: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
    margin-left: 8px;
    align-self: center;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--vermilion);
    background: #fff5f5;
    border-color: rgba(230, 0, 18, 0.15);
}

/* Guidance Banner */
.guidance-banner {
    display: flex;
    gap: 12px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    align-items: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.banner-icon {
    font-size: 16px;
    line-height: 1.4;
}

.banner-text {
    font-size: 12px;
    color: #b45309;
    line-height: 1.5;
}

.banner-text strong {
    color: #92400e;
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    flex: 1;
    align-items: start;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Glass Cards (Now Crisp Light Cards) */
.grid-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
}

.card-header {
    margin-bottom: 20px;
}

.card-header h2, .card-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.badge {
    background-color: var(--indigo-glow);
    color: var(--indigo);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

/* Workspace Split */
.workspace-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: 420px;
}

@media (max-width: 768px) {
    .workspace-split {
        grid-template-columns: 1fr;
    }
}

/* Dropzone (Left Upload) */
.drop-zone {
    border: 2px dashed rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    background: rgba(15, 23, 42, 0.005);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--vermilion);
    background: rgba(230, 0, 18, 0.01);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.drop-zone:hover .upload-icon {
    color: var(--vermilion);
}

.main-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-primary);
}

.highlight {
    color: var(--vermilion);
    text-decoration: underline;
}

.sub-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* OR Separator */
.or-separator {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.or-separator::before,
.or-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--card-border);
}

.or-separator span {
    padding: 0 12px;
    font-weight: 500;
}

/* Mobile Camera Upload Button */
.btn-camera-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.btn-camera-upload .camera-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.btn-camera-upload:hover {
    background: var(--indigo-glow);
    border-color: rgba(79, 70, 229, 0.2);
    color: var(--indigo);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.1);
}

.btn-camera-upload:hover .camera-icon {
    color: var(--indigo);
}

.btn-camera-upload:active {
    transform: translateY(0);
}

.file-input-hidden {
    display: none;
}

/* Preview Containers */
.preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    z-index: 10;
}

.preview-container img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.btn-reset {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.hidden {
    display: none !important;
}

/* Canvas Viewport (Right Preview) */
.canvas-viewport {
    border: 1px solid var(--card-border);
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.viewport-header {
    background: rgba(0, 0, 0, 0.015);
    padding: 10px 16px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator.ready {
    color: var(--success);
}

.status-indicator.ready::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.file-spec {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
}

.canvas-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    min-height: 320px;
}

.transparent-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
                      linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
                      linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    z-index: 1;
}

#output-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 3;
    position: relative;
    cursor: grab;
    touch-action: none; /* Crucial to disable default scroll during touch drag/pinch */
}

#output-canvas:active {
    cursor: grabbing;
}

/* Crop Guide Overlay */
.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.crop-ring {
    border: 2px dashed rgba(230, 0, 18, 0.4);
    box-shadow: 0 0 0 1000px rgba(248, 250, 252, 0.7); /* Light overlay */
    transition: border-radius 0.2s ease;
}

.crop-ring.circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.crop-ring.square {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

/* Control Panel */
.controls-card {
    gap: 20px;
}

.controls-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-header label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.value-display {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--vermilion);
    background: rgba(230, 0, 18, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.06);
    outline: none;
    transition: opacity .2s;
}

.slider:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Slider Thumbs */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--vermilion);
    cursor: pointer;
    box-shadow: 0 2px 6px var(--vermilion-glow);
    transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--vermilion);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px var(--vermilion-glow);
    transition: transform 0.1s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.help-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.border-top-dashed {
    border-top: 1px dashed var(--card-border);
    padding-top: 20px;
}

.positioning-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.section-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Button Group (Crops) */
.btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-toggle {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.btn-toggle:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.btn-toggle.active {
    background: var(--vermilion-glow);
    color: var(--vermilion);
    border-color: var(--vermilion);
    box-shadow: 0 0 10px rgba(230, 0, 18, 0.06);
}

/* Action Deck / Downloads */
.border-top {
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}

.download-tiers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tier-card {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tier-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-name {
    font-size: 13px;
    font-weight: 600;
}

.tier-price {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.free-tier .tier-price {
    color: var(--text-muted);
}

.pro-tier .tier-price {
    color: #0284c7;
}

.ultimate-tier .tier-price {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
}

.tier-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Base Download Buttons */
.btn-download {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-download:disabled {
    opacity: 0.2;
    pointer-events: none;
}

.btn-download:hover {
    background: rgba(0, 0, 0, 0.06);
}

.btn-download.primary {
    background: var(--vermilion);
    border-color: var(--vermilion);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--vermilion-glow);
}

.btn-download.primary:hover {
    background: #ff1a2b;
    box-shadow: 0 6px 16px var(--vermilion-glow);
}

.btn-download.gradient {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    color: #ffffff;
}

.btn-download.gradient:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.btn-download.success-mode {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

.btn-download.success-mode:hover {
    background: #059669 !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3) !important;
}

/* Footer styling */
.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
}

.privacy-guarantee {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    max-width: 700px;
}

.privacy-guarantee strong {
    color: var(--vermilion);
}

.copyright {
    font-size: 11px;
    color: var(--text-muted);
}

/* Modal Window styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45); /* Soft background in light mode */
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    transition: all 0.3s ease;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 16px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
}

.modal-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-body strong {
    color: var(--vermilion);
}

/* Operator Table Styling */
.operator-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.operator-table th, .operator-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.operator-table th {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
    font-weight: 600;
    width: 130px;
}

.operator-table td {
    color: var(--text-secondary);
}

.operator-table tr:last-child th, .operator-table tr:last-child td {
    border-bottom: none;
}

.contact-email {
    color: var(--vermilion);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: #ff3344;
}

/* Simulated Payment Modal styles */
.payment-modal-card {
    max-width: 460px;
    gap: 16px;
}

.payment-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.product-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--vermilion);
    font-family: var(--font-heading);
}

.payment-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-input-mock {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(15, 23, 42, 0.01);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.card-input-mock label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mock-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-primary);
}

.mock-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mock-input-row div {
    display: flex;
    flex-direction: column;
}

.btn-pay-now {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transition: all 0.2s ease;
    text-align: center;
    margin-top: 8px;
}

.btn-pay-now:hover {
    background: #1e293b;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}

.payment-fineprint {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Custom Checkboxes */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}

.checkbox-container input[type="checkbox"] {
    accent-color: var(--vermilion);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer Link Button styling */
.footer-links {
    margin-top: 4px;
    display: flex;
    gap: 16px;
}

.footer-link-btn {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-link-btn:hover {
    color: var(--vermilion);
}

/* Contact Modal & Form styling */
.contact-modal-card {
    max-width: 500px;
    gap: 16px;
}

.contact-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.email-highlight {
    color: var(--vermilion);
    background: rgba(230, 0, 18, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-heading);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--vermilion);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.form-textarea {
    resize: vertical;
    font-family: var(--font-body);
}

.btn-submit-contact {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
    text-align: center;
    margin-top: 10px;
}

.btn-submit-contact:hover {
    background: #1e293b;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

/* Or Separator */
.or-separator {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 14px 0;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

.or-separator::before, .or-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.or-separator span {
    padding: 0 12px;
}

/* Mobile Camera Button */
.btn-camera-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    margin-bottom: 4px;
    width: 100%;
}

.btn-camera-upload:hover {
    background: #fff5f5;
    color: var(--vermilion);
    border-color: rgba(230, 0, 18, 0.15);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.05);
}

.camera-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.btn-camera-upload:hover .camera-icon {
    color: var(--vermilion);
}

/* Responsive Mobile Header Fixes */
@media (max-width: 640px) {
    .app-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-bottom: 16px;
    }
    
    .brand-logo {
        justify-content: center;
        width: 100%;
    }
    
    .header-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 8px 12px;
        flex-grow: 1;
        text-align: center;
        display: inline-block;
    }
}

/* Workspace Tabs Selector */
.workspace-tabs {
    display: inline-flex;
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-top: 14px;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02);
    width: 100%;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.03);
}

.tab-btn.active {
    background: #ffffff;
    color: var(--vermilion);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05),
                0 1px 3px rgba(15, 23, 42, 0.02);
}

/* Text Editor Workspace Zone */
.text-editor-zone {
    border: 2px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #ffffff;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.editor-instructions {
    display: flex;
    gap: 10px;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    padding: 10px 14px;
    align-items: flex-start;
}

.editor-icon {
    font-size: 14px;
    line-height: 1.4;
}

.editor-text {
    font-size: 11px;
    color: var(--indigo);
    line-height: 1.5;
    margin: 0;
}

.editor-text strong {
    color: #4f46e5;
}

.editor-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-editor {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-editor label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.hanko-text-input {
    width: 100%;
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Noto Serif JP', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--vermilion);
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.hanko-text-input:focus {
    outline: none;
    border-color: rgba(230, 0, 18, 0.3);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--vermilion-glow);
}

.font-selectors {
    display: flex;
    width: 100%;
}

.font-selectors .btn-toggle {
    flex: 1;
    text-align: center;
}
