﻿/* ==========================================================================
   LOVE QR CODE GENERATOR - ROMANTIC DESIGN SYSTEM
   ========================================================================== */

:root {
    --love-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --love-font-cursive: 'Great Vibes', cursive;
    
    /* Elegant Pastel Pink Palette */
    --love-bg: #fff5f5;
    --love-panel: #ffffff;
    --love-primary: #ff477e;
    --love-primary-hover: #ff1f5e;
    --love-primary-glow: rgba(255, 71, 126, 0.15);
    
    --love-accent: #ff85a1;
    --love-accent-light: #ffe3e3;
    --love-border: #ffd5dc;
    --love-border-focus: #ff477e;
    
    --love-text-main: #3d2f35;
    --love-text-muted: #8c7a81;
    --love-gradient-submit: linear-gradient(135deg, #ff477e 0%, #a855f7 100%);
    
    --love-shadow-sm: 0 2px 8px rgba(255, 117, 143, 0.05);
    --love-shadow-md: 0 8px 24px rgba(255, 117, 143, 0.08);
    --love-shadow-lg: 0 16px 40px rgba(255, 117, 143, 0.12);
    
    --love-radius-sm: 6px;
    --love-radius-md: 12px;
    --love-radius-lg: 20px;
    --love-radius-full: 9999px;
}

.love-qr-wrapper {
    font-family: var(--love-font-sans);

    color: var(--love-text-main);
    width: 100%;
    max-width: none;
    /* padding: 24px;
    border-radius: var(--love-radius-lg);
    margin: 0 auto;
    box-shadow: var(--love-shadow-md);
    border: 1px solid var(--love-border); */
}

/* ==========================================================================
   HEADER STYLE
   ========================================================================== */
.love-qr-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--love-border);
}

.love-logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.love-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--love-gradient-submit);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--love-radius-md);
    box-shadow: 0 4px 10px rgba(255, 71, 126, 0.3);
}

.love-logo-icon i {
    width: 24px;
    height: 24px;
}

.love-logo-area h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--love-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.love-logo-area p {
    font-size: 0.85rem;
    color: var(--love-text-muted);
    margin: 0;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.love-qr-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

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

/* ==========================================================================
   LEFT COLUMN - CONFIG CARDS
   ========================================================================== */
.love-config-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.love-section-card {
    background: var(--love-panel);
    border: 1px solid var(--love-border);
    border-radius: var(--love-radius-md);
    padding: 20px;
    box-shadow: var(--love-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.love-section-card:hover {
    box-shadow: var(--love-shadow-md);
}

.love-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--love-text-main);
}

.love-section-num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: var(--love-accent-light);
    color: var(--love-primary);
    border-radius: var(--love-radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    border: 1px solid var(--love-border);
}

/* 1. TABS CONTENT */
.love-tabs-container {
    display: flex;
    gap: 8px;
    background: var(--love-bg);
    padding: 4px;
    border-radius: var(--love-radius-sm);
    border: 1px solid var(--love-border);
    margin-bottom: 16px;
}

.love-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--love-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--love-radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.love-tab-btn i {
    width: 16px;
    height: 16px;
}

.love-tab-btn:hover {
    color: var(--love-primary);
    background: rgba(255, 71, 126, 0.05);
}

.love-tab-btn.active {
    color: var(--love-primary);
    background: var(--love-panel);
    box-shadow: var(--love-shadow-sm);
}

/* INPUT GROUPS */
.love-input-group {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.love-input-group.active {
    display: flex;
}

.love-input-group label,
.love-form-field label,
.love-option-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--love-text-main);
    margin-bottom: 6px;
    display: block;
}

.love-input-group input[type="text"],
.love-input-group textarea,
.love-form-field input[type="text"],
.love-form-field input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--love-border);
    background: var(--love-panel);
    border-radius: var(--love-radius-sm);
    color: var(--love-text-main);
    transition: all 0.18s ease;
}

.love-input-group input[type="text"]:focus,
.love-input-group textarea:focus,
.love-form-field input[type="text"]:focus,
.love-form-field input[type="tel"]:focus {
    outline: none;
    border-color: var(--love-border-focus);
    box-shadow: 0 0 0 3px rgba(255, 71, 126, 0.1);
}

.love-row-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .love-row-fields {
        grid-template-columns: 1fr;
    }
}

.love-form-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.love-char-count {
    position: absolute;
    bottom: -16px;
    right: 4px;
    font-size: 0.7rem;
    color: var(--love-text-muted);
}

/* 2. DESIGN OPTIONS */
.love-option-row {
    margin-bottom: 20px;
}

/* Style Cards Selector */
.love-style-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.love-style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--love-panel);
    border: 1px dashed var(--love-border);
    border-radius: var(--love-radius-md);
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.love-style-card:hover {
    border-color: var(--love-primary);
    background: rgba(255, 71, 126, 0.02);
}

.love-style-card.active {
    border: 1.5px solid var(--love-primary);
    background: var(--love-accent-light);
    box-shadow: var(--love-shadow-sm);
}

.love-style-card.active span {
    font-weight: 700;
    color: var(--love-primary);
}

.love-style-preview {
    width: 48px;
    height: 48px;
    border-radius: var(--love-radius-sm);
    background: var(--love-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid var(--love-border);
}

/* Simulated designs inside styles */
.style-classic::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--love-text-main);
    border-radius: 1px;
}
.style-dots::before {
    content: '';
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, var(--love-text-main) 30%, transparent 35%);
    background-size: 8px 8px;
}
.style-heart i {
    width: 24px;
    height: 24px;
    color: var(--love-primary);
    fill: var(--love-primary);
    animation: heartbeat 1.5s infinite;
}

.love-style-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--love-text-muted);
}

/* Color Circle selectors */
.love-color-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.love-color-dot {
    width: 28px;
    height: 28px;
    border-radius: var(--love-radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease;
    position: relative;
}

.love-color-dot:hover {
    transform: scale(1.15);
}

.love-color-dot.active {
    border-color: var(--love-text-main);
    box-shadow: 0 0 0 2px #ffffff inset;
}

.love-custom-color-picker {
    width: 28px;
    height: 28px;
    border-radius: var(--love-radius-full);
    border: 1px dashed var(--love-border);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: conic-gradient(red, yellow, green, cyan, blue, magenta, red);
}

.love-custom-color-picker input[type="color"] {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0;
}

/* Switches / Toggles */
.love-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.love-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.love-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.love-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e4e4e7;
    transition: .3s;
    border-radius: 34px;
}

.love-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

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

input:checked + .love-slider:before {
    transform: translateX(22px);
}

/* Upload Area */
.love-upload-area {
    width: 100%;
    margin-top: 6px;
}

.love-upload-placeholder {
    border: 2px dashed var(--love-border);
    border-radius: var(--love-radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    background: var(--love-panel);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.love-upload-placeholder:hover {
    border-color: var(--love-primary);
    background: rgba(255, 71, 126, 0.01);
}

.love-upload-placeholder i {
    width: 32px;
    height: 32px;
    color: var(--love-accent);
}

.love-upload-placeholder span {
    font-size: 0.8rem;
    color: var(--love-text-muted);
}

.love-upload-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--love-border);
    border-radius: var(--love-radius-md);
    padding: 10px 14px;
    background: var(--love-panel);
    box-shadow: var(--love-shadow-sm);
}

.love-file-icon {
    width: 36px;
    height: 36px;
    background: var(--love-accent-light);
    color: var(--love-primary);
    border-radius: var(--love-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
}

.love-file-icon i {
    width: 20px;
    height: 20px;
}

.love-file-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.love-file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.love-file-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--love-text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.love-file-size {
    font-size: 0.75rem;
    color: var(--love-text-muted);
}

.love-file-remove {
    background: transparent;
    border: none;
    color: var(--love-text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.love-file-remove:hover {
    color: var(--love-primary);
}

/* Select Dropdown */
.love-select-wrapper {
    position: relative;
    width: 100%;
}

.love-select-wrapper select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--love-border);
    background: var(--love-panel);
    border-radius: var(--love-radius-sm);
    color: var(--love-text-main);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

.love-select-wrapper select:focus {
    border-color: var(--love-primary);
}

.love-select-wrapper .select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--love-text-muted);
    pointer-events: none;
}

/* Format Pill Selectors */
.love-format-selectors {
    display: flex;
    border: 1px solid var(--love-border);
    border-radius: var(--love-radius-sm);
    overflow: hidden;
}

.love-format-btn {
    flex: 1;
    border: none;
    background: var(--love-panel);
    color: var(--love-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.love-format-btn:not(:last-child) {
    border-right: 1px solid var(--love-border);
}

.love-format-btn:hover {
    background: var(--love-bg);
    color: var(--love-primary);
}

.love-format-btn.active {
    background: var(--love-accent-light);
    color: var(--love-primary);
}

/* 3. SUBMIT & RESET BUTTONS */
.love-action-buttons {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.love-btn-primary {
    background: var(--love-gradient-submit);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--love-radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 71, 126, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.love-btn-primary i {
    width: 20px;
    height: 20px;
}

.love-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 71, 126, 0.45);
}

.love-btn-secondary {
    background: var(--love-panel);
    color: var(--love-text-main);
    border: 1px solid var(--love-border);
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--love-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

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

/* ==========================================================================
   RIGHT COLUMN - PREVIEW PANEL & ROMANTIC CARD
   ========================================================================== */
.love-preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* The Beautiful Romantic Card Container */
.love-romantic-card-container {
    width: 100%;
   
    background: radial-gradient(circle at top, #ffffff 0%, #fff0f3 100%);
    border: 1px solid var(--love-border);
    border-radius: var(--love-radius-lg);
    box-shadow: var(--love-shadow-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Animated background rose petals */
.love-card-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.rose-petal {
    position: absolute;
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, #ffb3c1 0%, #ff85a1 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0.15;
}

.rose-petal.p1 { top: 10%; left: 8%; transform: rotate(15deg); }
.rose-petal.p2 { bottom: 15%; right: 6%; transform: rotate(-45deg); width: 24px; height: 24px;}
.rose-petal.p3 { top: 40%; right: 8%; transform: rotate(115deg); opacity: 0.1; }

.rose-floating-heart {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--love-primary);
    transform: rotate(-45deg);
    opacity: 0.18;
}

.rose-floating-heart::before,
.rose-floating-heart::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--love-primary);
}
.rose-floating-heart::before { top: -8px; left: 0; }
.rose-floating-heart::after { left: 8px; top: 0; }

.rose-floating-heart.fh1 { top: 12%; right: 12%; animation: floatHeart 4s ease-in-out infinite; }
.rose-floating-heart.fh2 { bottom: 25%; left: 10%; animation: floatHeart 5s ease-in-out infinite 1s; }

/* The Love Frame */
.love-ornate-frame {
    width: 78%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: var(--love-radius-md);
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(255, 71, 126, 0.08);
}

/* Beautiful intricate frame styling using the new uploaded frame image */
.active-frame-romantic .love-ornate-frame {
    border: none;
    background: url('../images/love-frame.png') no-repeat center center;
    background-size: 100% 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 13% 13% 14% 13%;
    width: 82%;
}

.active-frame-romantic .love-ornate-frame::before {
    display: none;
}

.active-frame-romantic .love-ornate-frame::after {
    display: none;
}

.active-frame-classic .love-ornate-frame {
    border: 1.5px solid var(--love-text-muted);
}

/* QR Canvas container */
.love-qr-canvas-holder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.love-qr-canvas-holder img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.love-qr-placeholder {
    max-width: 220px;
    color: #8c7a81;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

/* Cursive and sub text */
.love-card-text-area {
    text-align: center;
    z-index: 2;
    margin-top: 10px;
}

.love-card-cursive-text {
    font-family: var(--love-font-cursive);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--love-primary);
    margin: 0 0 6px 0;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.love-card-sub-text {
    font-size: 0.8rem;
    color: var(--love-text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

/* Action buttons below the card */
.love-preview-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.love-preview-action-btn {
    flex: 1;
    background: var(--love-panel);
    border: 1px solid var(--love-border);
    border-radius: var(--love-radius-sm);
    color: var(--love-text-main);
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.love-preview-action-btn:hover {
    background: var(--love-accent-light);
    color: var(--love-primary);
    border-color: var(--love-primary);
}

.love-preview-action-btn.is-copied {
    background: linear-gradient(135deg, #10b981, #22c55e);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(16, 185, 129, .24);
    transform: translateY(-1px);
}

.love-preview-action-btn i {
    width: 14px;
    height: 14px;
}

.love-report-modal[hidden] {
    display: none;
}

.love-report-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.love-report-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 32, 56, 0.45);
    backdrop-filter: blur(4px);
}

.love-report-dialog {
    position: relative;
    width: min(460px, 100%);
    padding: 22px;
    border: 1px solid var(--love-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(255, 71, 126, 0.24);
}

.love-report-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--love-border);
    border-radius: 50%;
    background: #fff5f8;
    color: var(--love-primary);
    cursor: pointer;
}

.love-report-dialog h3 {
    margin: 0 36px 8px 0;
    color: var(--love-text-main);
    font-size: 20px;
}

.love-report-dialog p {
    margin: 0 0 14px;
    color: var(--love-text-muted);
    font-size: 14px;
}

.love-report-dialog textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--love-border);
    border-radius: 12px;
    outline: none;
}

.love-report-dialog textarea:focus {
    border-color: var(--love-primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 126, 0.12);
}

.love-report-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 14px;
}

.love-report-status {
    min-height: 20px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

.love-report-status.is-success {
    color: #16a34a;
}

.love-report-status.is-error {
    color: #dc2626;
}

/* ==========================================================================
   MICRO-ANIMATIONS
   ========================================================================== */
@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes floatHeart {
    0% { transform: rotate(-45deg) translateY(0) scale(1); opacity: 0.18; }
    50% { transform: rotate(-45deg) translateY(-8px) scale(1.1); opacity: 0.25; }
    100% { transform: rotate(-45deg) translateY(0) scale(1); opacity: 0.18; }
}

/* Loading animation state */
.love-btn-primary.loading span {
    opacity: 0;
}
.love-btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
}

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

/* UI pass: compact two-column card matching the love QR reference */
.love-qr-wrapper {
    --love-bg: #fff7f9;
    --love-panel: rgba(255, 255, 255, 0.94);
    --love-primary: #f72d68;
    --love-primary-hover: #e81956;
    --love-accent: #ff6f9b;
    --love-accent-light: #fff0f5;
    --love-border: #ffd3df;
    --love-text-main: #15264a;
    --love-text-muted: #69738e;
    width: 100%;
    max-width: none;
    /* padding: 18px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
    box-shadow: 0 14px 32px rgba(246, 45, 105, .10); */
    isolation: isolate;
}

.love-qr-header {
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: 0;
}

.love-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 231, 239, .95);
    color: var(--love-primary);
    box-shadow: none;
}

.love-logo-icon i {
    width: 30px;
    height: 30px;
    stroke-width: 2.4;
}

.love-logo-area {
    gap: 14px;
}

.love-logo-area h1 {
    font-size: clamp(26px, 2.7vw, 36px);
    letter-spacing: 0;
    color: var(--love-primary);
}

.love-logo-area p {
    color: #66708d;
    font-size: 14px;
}

.love-qr-main {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .85fr);
    gap: 14px;
    align-items: stretch;
}

.love-config-panel {
    gap: 10px;
    min-width: 0;
    height: auto;
}

.love-section-card,
.love-preview-panel {
    border: 1px solid var(--love-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    box-shadow: none;
}

.love-section-card {
    padding: 14px 15px;
    min-width: 0;
    height: auto;
}

.love-section-card:hover {
    box-shadow: none;
}

.love-section-title {
    gap: 12px;
    margin-bottom: 13px;
    color: var(--love-text-main);
    font-size: 17px;
    font-weight: 800;
}

.love-guide-anchor {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding-top: 20px;
    text-align: center;
    display: block;
}
.love-guide-anchor a{
    color:var(--love-primary)
}

.love-guide-anchor a:hover {
    color:var(--love-primary-hover)

} 

.love-section-title .love-section-num {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #fff0f5;
    border: 0;
    color: var(--love-primary);
}

.love-section-num {
    font-size: 0;
}

.love-section-card:nth-child(1) .love-section-num::before {
    content: "\2709";
    font-size: 18px;
}

.love-tabs-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin-bottom: 14px;
    border: 0;
    background: transparent;
}

.love-tab-btn,
.love-style-card,
.love-format-btn,
.love-preview-action-btn,
.love-btn-secondary {
    min-height: 42px;
    border: 1px solid #dde3ef;
    border-radius: 9px;
    background: #fff;
    color: var(--love-text-main);
}

.love-tab-btn {
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
}

.love-tab-btn.active,
.love-format-btn.active,
.love-style-card.active {
    border-color: var(--love-primary);
    background: linear-gradient(180deg, #fff, #fff4f7);
    color: var(--love-primary);
    box-shadow: inset 0 0 0 1px rgba(247, 45, 104, .08);
}

.love-input-group label,
.love-form-field label,
.love-option-label {
    margin-bottom: 6px;
    color: #263454;
    font-size: 13px;
    font-weight: 700;
}

.love-input-group input[type="text"],
.love-input-group textarea,
.love-form-field input[type="text"],
.love-form-field input[type="tel"],
.love-select-wrapper select {
    min-height: 40px;
    padding: 9px 12px;
    border-color: #d9e0ec;
    border-radius: 8px;
    color: #263454;
    font-size: 14px;
}

.love-row-fields {
    gap: 12px;
    margin-top: 10px;
}

.love-title-color-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.love-color-field {
    min-width: 218px;
}

.love-color-field .love-color-dots {
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 0;
}

.love-color-field .love-color-dot,
.love-color-field .love-custom-color-picker {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

.love-color-field .love-color-dot.active {
    box-shadow: 0 0 0 3px rgba(247,45,104,.12);
}

.love-color-field .love-color-dot.active::after {
    inset: 3px;
    font-size: 11px;
}

.love-char-count {
    right: 10px;
    bottom: 8px;
    padding-left: 6px;
    background: #fff;
}

.love-style-selector {
    gap: 10px;
}

.love-style-card {
    position: relative;
    min-height: 84px;
    padding: 10px 8px;
    border-style: solid;
}

.love-inline-color-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 2px;
}

.love-inline-color-row .love-option-label {
    margin: 0;
}

.love-style-card.active::after {
    content: "\2713";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--love-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.love-style-preview {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
}

.love-color-dots {
    gap: 13px;
}

.love-color-dot,
.love-custom-color-picker {
    width: 31px;
    height: 31px;
    border-color: #edf1f7;
    box-shadow: 0 3px 8px rgba(21, 38, 74, .08);
}

.love-color-dot.active {
    border-color: var(--love-primary);
    box-shadow: 0 0 0 4px rgba(247,45,104,.12);
}

.love-color-dot.active::after {
    content: "\2713";
    position: absolute;
    inset: 4px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(247, 45, 104, .95);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.love-toggle-container {
    min-height: 36px;
}

.love-upload-placeholder {
    min-height: 52px;
    padding: 10px 12px;
    flex-direction: row;
    justify-content: center;
    border-width: 1px;
    border-radius: 9px;
}

.love-upload-placeholder i {
    width: 22px;
    height: 22px;
}

.love-upload-file-card {
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 9px;
}

#love-upload-active-card {
    display: flex;
}

.love-format-selectors {
    gap: 8px;
    border: 0;
}

.love-format-btn {
    padding: 8px 12px;
}

.love-format-btn:not(:last-child) {
    border-right: 1px solid #dde3ef;
}

.love-action-buttons {
    grid-template-columns: 2.15fr 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}

.love-btn-primary,
.love-btn-secondary {
    min-height: 48px;
    border-radius: 8px;
    font-size: 16px;
}

.love-btn-primary {
    background: linear-gradient(105deg, #ff1f62 0%, #d334ad 52%, #4858df 100%);
}

.love-preview-panel {
    align-items: stretch;
    gap: 12px;
    padding: 14px 15px 16px;
    min-width: 0;
    height: auto;
}

.love-romantic-card-container {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 16% 16%, rgba(255,255,255,.95), transparent 24%),
        radial-gradient(circle at 88% 78%, rgba(255,190,205,.7), transparent 22%),
        linear-gradient(145deg, #fff7f8 0%, #ffdce6 100%);
    border: 1px solid rgba(247, 45, 104, .24);
}

.active-frame-romantic .love-ornate-frame {
    width: min(68%, 280px);
    padding: 9% 10% 10%;
}

.love-card-text-area {
    margin-top: 10px;
}

.love-card-cursive-text {
    font-size: clamp(27px, 3vw, 34px);
}

.love-card-sub-text {
    color: #24324d;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
}

.love-preview-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.love-export-actions {
    margin-top: 12px;
}

.love-export-actions[hidden] {
    display: none !important;
}

.love-preview-action-btn {
    min-height: 42px;
    border-radius: 9px;
    font-size: 14px;
}

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

    .love-config-panel,
    .love-section-card,
    .love-preview-panel {
        height: auto;
    }

    .love-romantic-card-container {
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 640px) {
    .love-qr-wrapper {
        padding: 16px;
        border-radius: 20px;
    }

    .love-logo-area,
    .love-row-fields,
    .love-preview-actions,
    .love-action-buttons {
        grid-template-columns: 1fr;
    }

    .love-tabs-container,
    .love-style-selector {
        grid-template-columns: 1fr;
    }

    .love-logo-area {
        display: grid;
        text-align: center;
        justify-items: center;
    }
}
