:root {
    --primary-color: #ff6b6b;
    --secondary-color: #f06595;
    --accent-color: #845ef7;
    --bg-color: #f8f9fa;
    --text-color: #343a40;
    --text-light: #868e96;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 0;
    overflow-x: hidden;
    position: relative;
    color: var(--text-color);
}

/* Dynamic Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #ff9a9e;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #a18cd1;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #fbc2eb;
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Container & Card */
.container {
    width: 100%;
    max-width: 500px;
    margin: 20px;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    animation: heartBeat 1.5s infinite;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-badge {
    font-size: 0.8rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    vertical-align: middle;
    -webkit-text-fill-color: white;
    /* Override parent */
}

.subtitle {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
    opacity: 0.8;
}

#app-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* API Key Styles */
.api-key-container {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.api-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

.key-icon {
    color: var(--text-light);
    margin-right: 10px;
}

#api-key {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-color);
}

.api-help-text {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: right;
}

.api-help-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.gender-selector {
    display: flex;
    gap: 15px;
}

.gender-selector input {
    display: none;
}

.gender-option {
    flex: 1;
    padding: 15px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.gender-selector input:checked+.gender-option {
    background: white;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 8px 15px rgba(240, 101, 149, 0.2);
    transform: translateY(-2px);
}

/* Checkbox Grid Styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.checkbox-option {
    position: relative;
    cursor: pointer;
}

.checkbox-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.checkbox-label i {
    font-size: 1rem;
    opacity: 0.7;
}

.checkbox-option:hover .checkbox-label {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(132, 94, 247, 0.3);
    transform: translateY(-1px);
}

.checkbox-option input:checked+.checkbox-label {
    background: white;
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(132, 94, 247, 0.15);
    font-weight: 600;
}

.checkbox-option input:checked+.checkbox-label i {
    opacity: 1;
}

/* Chips Container - 3 Column Layout */
.chips-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Enforce 3 columns */
    gap: 8px;
    width: 100%;
}

@media (max-width: 400px) {
    .chips-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on very small screens */
    }
}

.chip-option {
    position: relative;
    cursor: pointer;
}

.chip-option input[type="radio"],
.chip-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(132, 94, 247, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    width: 100%;
}

.chip-label i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.chip-option:hover .chip-label {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(132, 94, 247, 0.4);
    transform: translateY(-1px);
}

.chip-option input:checked+.chip-label {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(132, 94, 247, 0.25);
    font-weight: 600;
}

.chip-option input:checked+.chip-label i {
    opacity: 1;
}

/* Dropdown Wrapper - Collapsible Menu */
.dropdown-wrapper {
    position: relative;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(132, 94, 247, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-color);
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.dropdown-toggle.active i {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid rgba(132, 94, 247, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(132, 94, 247, 0.05);
}

.dropdown-item input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.dropdown-item span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.dropdown-item i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.dropdown-item input:checked~span {
    color: var(--accent-color);
    font-weight: 600;
}

.dropdown-item input:checked~span i {
    opacity: 1;
}

/* Custom Input Wrapper */
.custom-input-wrapper {
    margin-top: 10px;
    animation: fadeInUp 0.3s ease;
}

.custom-input-wrapper input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(132, 94, 247, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.custom-input-wrapper input[type="text"]:focus {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(132, 94, 247, 0.1);
}

/* Label Badges */
.required {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.optional {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 400;
}

.textarea-wrapper {
    position: relative;
    height: 150px;
}

textarea {
    width: 100%;
    height: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.5);
    resize: none;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

textarea:focus {
    background: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(132, 94, 247, 0.1);
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.primary-btn {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(240, 101, 149, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(240, 101, 149, 0.4);
    filter: brightness(1.1);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.primary-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.privacy-note {
    margin-top: 1.2rem;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.8;
}

.privacy-note i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    opacity: 1;
    visibility: visible;
}

.overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* 클릭 방해 금지 */
    z-index: 1;
    /* card보다 낮게 */
}

/* Loading Overlay */
.loading-content {
    text-align: center;
    color: white;
}

.heartbeat-loader {
    width: 80px;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b6b'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center center;
    margin: 0 auto 20px;
    animation: heartBeat 1s infinite;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Result Card */
.result-card {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    z-index: 10;
    /* confetti보다 위로 */
}

.result-card button {
    pointer-events: auto !important;
}

.result-card::-webkit-scrollbar {
    display: none;
}

.overlay.hidden .result-card {
    transform: scale(0.8) translateY(20px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f1f3f5;
    color: var(--text-color);
}

.result-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.heart-meter {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.heart-svg {
    width: 100%;
    height: 100%;
    fill: #fee2e2;
    filter: drop-shadow(0 10px 15px rgba(254, 226, 226, 0.5));
    transition: fill 1s ease;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#score-number {
    font-size: 2.5rem;
    font-weight: 800;
}

.percent {
    font-size: 1.2rem;
    font-weight: 600;
}

.analysis-details h3 {
    font-family: 'Jua', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.ai-analysis-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.ai-analysis-box p {
    font-family: 'Jua', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
    word-break: keep-all;
    white-space: pre-wrap;
    font-weight: 400;
}

/* Result Header Title */
.result-header h2 {
    font-family: 'Jua', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Keyword Highlighting */


/* Virtual Chat Refactor Styles */
.virtual-chat-trigger-area {
    margin-top: 1rem;
    padding-bottom: 2rem;
    text-align: center;
}

.virtual-btn {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    /* Matching retry-btn style */
    border: 2px solid var(--accent-color);
    background: white;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    /* Space between buttons */
}

.virtual-btn:hover {
    background: rgba(132, 94, 247, 0.05);
    transform: translateY(-2px);
}

.secondary-virtual {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: white;
}

.secondary-virtual:hover {
    background: rgba(255, 107, 107, 0.05);
}

.golden-btn {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border: none !important;
    color: #8c5319 !important;
    /* Dark brown text for readability */
    box-shadow: 0 4px 15px rgba(253, 160, 133, 0.4);
    font-weight: 800;
    /* Bolder text */
}

.golden-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 160, 133, 0.6);
    filter: brightness(1.05);
}

.golden-btn i {
    color: #8c5319 !important;
    /* Match text color */
}

.virtual-chat-card {
    max-width: 480px;
    width: 95%;
    padding: 2rem !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent content bleed */
}

.virtual-chat-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.virtual-chat-card h2 i {
    color: var(--accent-color);
    margin-right: 8px;
}

.personality-card {
    max-width: 500px;
    width: 95%;
    padding: 2.5rem !important;
    text-align: center;
}

.chart-container {
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    aspect-ratio: 1/1;
}

.personality-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-top: 15px;
    text-align: left;
    border: 1px solid #eee;
}

.strategy-card {
    max-width: 500px;
}

.strategy-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    text-align: left;
}

.strategy-item {
    background: #fffcf0;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #ffec99;
    display: flex;
    gap: 15px;
    animation: fadeInRight 0.5s ease both;
    transition: transform 0.2s, box-shadow 0.2s;
}

.strategy-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
    background: #fff9db !important;
}

.strategy-item:hover h4,
.strategy-item:hover p {
    color: #343a40 !important;
}


.strategy-icon {
    width: 40px;
    height: 40px;
    background: #fff3bf;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f08c00;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.strategy-content h4 {
    color: #e67e22;
    margin-bottom: 5px;
    font-size: 1rem;
}

.strategy-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.virtual-chat-window {
    background: #fdfdfd;
    border-radius: 20px;
    padding: 24px;
    height: 380px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #f1f3f5;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.chat-bubble {
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    max-width: 80%;
    line-height: 1.5;
    word-break: keep-all;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: bubblePop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.bubble-user {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bubble-ai {
    background: white;
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.likability-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 30px;
    width: fit-content;
}

.change-up {
    background: #e6fcf5;
    color: #0ca678;
    border: 1px solid #c3fae8;
}

.change-down {
    background: #fff5f5;
    color: #f03e3e;
    border: 1px solid #ffe3e3;
}

.change-reason {
    font-weight: 400;
    opacity: 0.8;
    margin-left: 4px;
}

.virtual-input-group.disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(1);
}

.interaction-locked-hint {
    margin: 15px 0 5px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    border: 1px dashed #dee2e6;
    animation: fadeIn 0.5s ease;
}

.virtual-input-group {
    display: flex;
    gap: 10px;
    background: white;
    padding: 6px;
    border-radius: 18px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.virtual-input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(132, 94, 247, 0.1);
    transform: translateY(-1px);
}

#virtual-msg-input {
    flex: 1;
    border: none !important;
    padding: 10px 15px;
    font-size: 1rem;
    outline: none !important;
    background: transparent;
}

.virtual-chat-card .send-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-color);
    box-shadow: 0 4px 12px rgba(132, 94, 247, 0.3);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.virtual-chat-card .send-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

@keyframes bubblePop {
    from {
        transform: scale(0.9) translateY(10px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.virtual-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

@keyframes dotTyping {
    0% {
        box-shadow: 9984px 0 0 0 var(--accent-color), 9999px 0 0 0 var(--accent-color), 10014px 0 0 0 var(--accent-color);
    }

    16.667% {
        box-shadow: 9984px -10px 0 0 var(--accent-color), 9999px 0 0 0 var(--accent-color), 10014px 0 0 0 var(--accent-color);
    }

    33.333% {
        box-shadow: 9984px 0 0 0 var(--accent-color), 9999px 0 0 0 var(--accent-color), 10014px 0 0 0 var(--accent-color);
    }

    50% {
        box-shadow: 9984px 0 0 0 var(--accent-color), 9999px -10px 0 0 var(--accent-color), 10014px 0 0 0 var(--accent-color);
    }

    66.667% {
        box-shadow: 9984px 0 0 0 var(--accent-color), 9999px 0 0 0 var(--accent-color), 10014px 0 0 0 var(--accent-color);
    }

    83.333% {
        box-shadow: 9984px 0 0 0 var(--accent-color), 9999px 0 0 0 var(--accent-color), 10014px -10px 0 0 var(--accent-color);
    }

    100% {
        box-shadow: 9984px 0 0 0 var(--accent-color), 9999px 0 0 0 var(--accent-color), 10014px 0 0 0 var(--accent-color);
    }
}

.retry-btn {
    background: #f1f3f5;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd3da;
    border-radius: 10px;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.3);
    padding: 6px;
    border-radius: 16px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
}

.tab-btn.active {
    background: white;
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(132, 94, 247, 0.15);
}

/* Tab Content Styles */
.tab-content-wrapper {
    position: relative;
    min-height: 200px;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(132, 94, 247, 0.4);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
}

.file-upload-wrapper.dragover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(132, 94, 247, 0.1);
}

.file-drop-zone {
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.file-drop-zone.hidden {
    display: none;
}

.file-drop-zone:hover {
    color: var(--accent-color);
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(132, 94, 247, 0.1);
}

.file-drop-zone i {
    font-size: 2.5rem;
}

.file-drop-zone small {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* File Info Display */
.file-info {
    margin-top: 15px;
    padding: 12px 16px;
    background: rgba(105, 219, 124, 0.1);
    border: 1px solid rgba(105, 219, 124, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2f9e44;
    font-size: 0.9rem;
    animation: fadeInUp 0.3s ease;
}

.file-info i {
    font-size: 1.2rem;
}

#image-preview-container {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
}

#image-preview-container.hidden {
    display: none;
}

#image-preview {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

#remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1.2rem;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#remove-image:hover {
    background: #ff5252;
    transform: scale(1.1);
}

/* Heart Animation Override - Ensure SVG gradient works */
.heart-svg {
    fill: url(#heart-fill-gradient) !important;
    transition: none !important;
    filter: none !important;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media screen and (max-width: 768px) {

    /* Container & Spacing */
    .container {
        margin: 10px;
        max-width: 100%;
    }

    #app-content {
        padding: 1.5rem;
        border-radius: 20px;
    }

    /* Header */
    header {
        margin-bottom: 1.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .ai-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Form Groups */
    .form-group {
        margin-bottom: 1.2rem;
    }

    .label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }

    /* Gender Selector */
    .gender-selector {
        gap: 10px;
    }

    .gender-option {
        padding: 12px 10px;
        font-size: 0.85rem;
        gap: 6px;
    }

    /* Checkbox Grid - Mobile Optimized */
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .checkbox-label {
        padding: 10px 12px;
        font-size: 0.85rem;
        gap: 8px;
        line-height: 1.3;
    }

    .checkbox-label i {
        font-size: 0.95rem;
    }

    /* Chips - Mobile Optimized */
    .chips-container {
        gap: 6px;
    }

    .chip-label {
        padding: 7px 12px;
        font-size: 0.8rem;
        gap: 5px;
    }

    .chip-label i {
        font-size: 0.85rem;
    }

    /* Dropdown - Mobile Optimized */
    .dropdown-toggle {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .dropdown-item {
        padding: 9px 12px;
    }

    .dropdown-item span {
        font-size: 0.8rem;
    }

    /* Custom Input */
    .custom-input-wrapper input[type="text"] {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* Tab Navigation */
    .tab-navigation {
        gap: 6px;
        padding: 5px;
        margin-bottom: 15px;
    }

    .tab-btn {
        padding: 10px 8px;
        font-size: 0.8rem;
        gap: 5px;
        flex-direction: column;
    }

    .tab-btn i {
        font-size: 1rem;
    }

    .tab-btn span {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    /* Tab Content */
    .tab-content-wrapper {
        min-height: 180px;
    }

    /* File Drop Zone */
    .file-drop-zone {
        padding: 30px 20px;
        gap: 8px;
    }

    .file-drop-zone i {
        font-size: 2rem;
    }

    .file-drop-zone span {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .file-drop-zone small {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    /* File Info */
    .file-info {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    /* Textarea */
    .textarea-wrapper {
        height: 130px;
    }

    textarea {
        padding: 1rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .char-count {
        font-size: 0.75rem;
        bottom: 10px;
        right: 10px;
    }

    /* Primary Button */
    .primary-btn {
        padding: 15px;
        font-size: 1rem;
        gap: 8px;
        border-radius: 14px;
    }

    /* Loading Overlay */
    .heartbeat-loader {
        width: 60px;
        height: 60px;
    }

    .loading-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    .loading-subtext {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    /* Result Card */
    .result-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
        width: 95%;
        max-height: 85vh;
    }

    .result-header h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .heart-meter {
        width: 100px;
        height: 100px;
        margin-bottom: 1.2rem;
    }

    #score-number {
        font-size: 2rem;
    }

    .percent {
        font-size: 1rem;
    }

    .analysis-details h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .ai-analysis-box {
        padding: 12px;
        margin-bottom: 1.5rem;
    }

    .ai-analysis-box p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .retry-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .close-btn {
        top: 12px;
        right: 12px;
        font-size: 1.3rem;
    }

    /* Image Preview */
    #image-preview-container {
        max-height: 150px;
    }

    #image-preview {
        max-height: 150px;
    }
}

/* Extra Small Devices (< 375px) */
@media screen and (max-width: 374px) {
    #app-content {
        padding: 1.2rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .tab-btn {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .tab-btn span {
        font-size: 0.7rem;
    }

    .checkbox-label {
        padding: 9px 10px;
        font-size: 0.8rem;
    }

    .primary-btn {
        padding: 13px;
        font-size: 0.95rem;
    }

    .result-card {
        padding: 1.5rem 1.2rem;
    }
}

/* Custom Scrollbar Global */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Support Developer Footer */
footer {
    margin-top: 4rem;
    padding-bottom: 3rem;
    text-align: center;
}

.support-dev {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.support-dev:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.support-dev i {
    font-size: 1.5rem;
    color: #e67e22;
    /* Coffee color */
    animation: coffeeBounce 2s infinite;
}

@keyframes coffeeBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.support-dev p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.account-box {
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px dashed #ffc9c9;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.account-box:hover {
    border-style: solid;
    background: #fff5f5;
    transform: scale(1.05);
}

.account-box:active {
    transform: scale(0.98);
}

.account-box span {
    font-family: 'monospace';
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.support-hint {
    font-size: 0.8rem !important;
    color: var(--text-light) !important;
    font-weight: 400 !important;
}

/* Tooltip style when copied */
.account-box::after {
    content: '복사 완료! 감사합니다 💕';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.account-box.copied::after {
    opacity: 1;
    top: -45px;
}

.contact-dev {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.contact-dev p {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
}

.contact-dev a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.contact-dev a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Gift Recommendation Styles */
.gift-btn {
    border-color: #ff8787;
    color: #ff6b6b;
    background: #fff0f6;
    margin-bottom: 20px;
    /* Space before retry button */
    border-width: 2px;
}

.gift-btn:hover {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 1rem;
    max-height: 450px;
    overflow-y: auto;
    padding: 5px;
}

.gift-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gift-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.gift-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.gift-item:hover .gift-icon-box {
    transform: rotate(10deg) scale(1.1);
}

.gift-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    word-break: keep-all;
    line-height: 1.35;
    color: var(--text-color);
}

.gift-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    word-break: keep-all;
    opacity: 0.9;
}

.gift-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff9a9e);
    color: white;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* Highlighted Text Style */
/* Highlighted Text Style */
.important-sentence {
    /* Default (will be overridden by specific classes via JS logic or just use high score style as default) */
    font-weight: 700;
    padding: 0 2px;
}

.high-score-highlight {
    background: linear-gradient(120deg, rgba(255, 224, 102, 0.5) 0%, rgba(255, 224, 102, 0.5) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    color: #e03131;
    /* Positive/Warm Red */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
}

.low-score-highlight {
    background: linear-gradient(120deg, rgba(165, 216, 255, 0.5) 0%, rgba(165, 216, 255, 0.5) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    color: #1864ab;
    /* Cool Blue Text */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
}

/* Capture Mode Overrides (Simplification for html2canvas) */
.capture-mode .high-score-highlight {
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 224, 102, 0.6) 60%) !important;
    background-size: 100% 100% !important;
    background-position: 0 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: #e03131 !important;
    font-weight: bold !important;
    padding: 0 !important;
    display: inline !important;
    line-height: normal !important;
}

.capture-mode .low-score-highlight {
    background: linear-gradient(to bottom, transparent 60%, rgba(165, 216, 255, 0.6) 60%) !important;
    background-size: 100% 100% !important;
    background-position: 0 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: #1864ab !important;
    font-weight: bold !important;
    padding: 0 !important;
    display: inline !important;
    line-height: normal !important;
}

/* Share Buttons */
.share-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 1rem 0 1.5rem;
    position: relative;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: scale(1.1);
    filter: brightness(0.95);
}

.share-btn.kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

.share-btn.insta {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.share-btn.link {
    background-color: #f1f3f5;
    color: #495057;
}

.share-btn.save {
    background-color: #339af0;
    color: white;
}

.copy-toast {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    animation: fadeInOut 2s forwards;
    pointer-events: none;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
}

/* Mobile Fix for Share Buttons */
@media screen and (max-width: 480px) {
    .share-container {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 1.5rem 0 1rem !important;
        gap: 12px !important;
        z-index: 99 !important;
        /* Ensure it's on top */
    }

    .share-btn {
        width: 42px !important;
        /* Slightly smaller on mobile */
        height: 42px !important;
        font-size: 1.1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Mobile Performance Optimization */
@media screen and (max-width: 480px) {

    /* Completely disable background blobs on mobile */
    .background-animation,
    .background-blobs {
        display: none !important;
    }

    /* Alternative: Use static gradient background */
    body {
        background: linear-gradient(135deg, #fff0f3 0%, #ffe8e8 50%, #ffd6d6 100%) !important;
    }

    /* Add white overlay for better content visibility */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.3);
        pointer-events: none;
        z-index: 0;
    }

    /* Reduce glassmorphism blur */
    #app-content,
    .result-card,
    .overlay-content {
        backdrop-filter: blur(5px) !important;
        /* Minimize blur cost */
        -webkit-backdrop-filter: blur(5px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        /* Simpler shadow */
    }

    /* Hardware Acceleration for scrolling elements */
    body,
    .container {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Prevent all elements from overflowing */
    * {
        max-width: 100%;
    }

    /* Ensure landing content fits on mobile */
    .landing-content {
        max-width: 95% !important;
        padding: 2rem 1.5rem !important;
    }

    /* Ensure main title doesn't overflow */
    .main-title {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
        white-space: normal !important;
        word-break: keep-all;
    }

    /* Fix header layout on mobile */
    #main-app header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
        padding: 1rem !important;
    }

    .home-btn {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
    }

    #main-app header .logo h1 {
        font-size: 1.1rem !important;
    }

    #main-app header .logo i {
        font-size: 1.3rem !important;
    }

    .ai-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }

    /* Optimize landing page performance on mobile */
    .landing-content {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    .logo-large {
        animation: none !important;
        /* Disable bounce animation */
    }

    .start-btn::after {
        animation: none !important;
        /* Disable shine animation */
    }

    .main-title {
        animation: none !important;
        /* Disable pulse animation */
        filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.3)) !important;
    }

    .feature-item {
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }

    /* Optimize result modal scrolling */
    .result-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0);
        will-change: scroll-position;
    }

    .overlay {
        backdrop-filter: blur(3px) !important;
        -webkit-backdrop-filter: blur(3px) !important;
    }

    /* Disable animations in result modal on mobile */
    .result-card * {
        animation: none !important;
        transition: none !important;
    }
}

/* Landing Page Styles (Premium Revamp) */
.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 4rem 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
    /* Ensure it's above background blobs */
}

.landing-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem 2.5rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.2);
    max-width: 90%;
    width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.landing-content:hover {
    transform: translateY(-5px);
}

.logo-large {
    font-size: 6rem;
    background: linear-gradient(135deg, #ff6b6b, #ff922b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 15px rgba(255, 107, 107, 0.3));
    animation: bounce-heart 2.5s infinite ease-in-out;
}

@keyframes bounce-heart {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.main-title {
    font-family: 'Jua', sans-serif;
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    /* Smaller but impactful */
    font-weight: 500;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 50%, #ffa94d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 107, 0.3));
    white-space: nowrap;
    line-height: 1.3;
    animation: title-pulse 3s ease-in-out infinite;
}

@keyframes title-pulse {

    0%,
    100% {
        filter: drop-shadow(0 4px 8px rgba(255, 107, 107, 0.3));
    }

    50% {
        filter: drop-shadow(0 6px 15px rgba(255, 107, 107, 0.6));
    }
}

.features {
    display: flex;
    flex-direction: row;
    /* Force horizontal */
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 600;
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.feature-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.2);
    background: rgba(255, 255, 255, 0.7);
}

.feature-item i {
    background: linear-gradient(135deg, #ff6b6b, #ff922b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.4rem;
    font-size: 1rem;
}

.start-btn {
    width: 100%;
    padding: 1.3rem;
    font-size: 1.35rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    border-radius: 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.start-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.start-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, #fa5252, #ff6b6b);
}

.start-btn i {
    margin-right: 8px;
}

/* Ensure hidden works with display none */
.hidden {
    display: none !important;
}

/* Collapsible Description Styles */
#result-desc.collapsed {
    max-height: 4.8em;
    /* About 3 lines */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

#result-desc.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(to bottom, transparent, white);
}

#result-desc.expanded {
    max-height: none;
    transition: max-height 0.3s ease;
}

.toggle-desc-btn {
    margin-top: 0.8rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.toggle-desc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Main App Background Adjustment */
#main-app {
    position: relative;
}

#main-app::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    pointer-events: none;
}

/* Header Layout Adjustment */
#main-app header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
}

/* Home Button */
.home-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.home-btn i {
    font-size: 1.2rem;
    color: #ff6b6b;
}

.home-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    background: white;
}

.home-btn:active {
    transform: translateY(0) scale(0.98);
}

/* PWA Install Button - Simple Style */
.pwa-install-simple-btn {
    margin: 25px auto 0;
    padding: 16px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    animation: fadeInUp 0.6s ease-out;
    width: 100%;
    max-width: 280px;
}

.pwa-install-simple-btn i {
    font-size: 1.2rem;
}

.pwa-install-simple-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.45);
    background: linear-gradient(135deg, #7b8ff7 0%, #8a5fc2 100%);
}

.pwa-install-simple-btn:active {
    transform: translateY(-1px);
}

.pwa-install-simple-btn.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .pwa-install-simple-btn {
        margin: 20px auto 0;
        padding: 14px 24px;
        font-size: 0.95rem;
        max-width: 100%;
    }

    .pwa-install-simple-btn i {
        font-size: 1.1rem;
    }
}

/* Landing Footer Links */
.landing-footer {
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #6c757d;
    animation: fadeInUp 0.8s ease-out;
}

.landing-footer a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.landing-footer a:hover {
    color: #212529;
    text-decoration: underline;
}

.landing-footer .separator {
    color: #adb5bd;
    font-weight: 300;
}

@media (max-width: 480px) {
    .landing-footer {
        font-size: 0.7rem;
        gap: 8px;
        margin-top: 25px;
        padding-top: 15px;
    }
}

/* Policy Modal Styles */
.policy-card {
    max-width: 600px;
    text-align: left;
}

.policy-content {
    padding: 0 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.policy-content h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.policy-content h3:first-child {
    margin-top: 0;
}

.policy-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.policy-content a:hover {
    text-decoration: underline;
}

.policy-content ul {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

/* Iframe Card for Policy Pages */
.iframe-card {
    padding: 0;
    overflow: hidden;
}

.iframe-card .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: white;
}

.policy-iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 30px;
}

@media (max-width: 480px) {
    .policy-card {
        max-width: 95%;
        padding: 2rem 1.5rem;
    }

    .policy-content h3 {
        font-size: 1rem;
    }

    .policy-content p {
        font-size: 0.85rem;
    }
}

/* Contact Modal Styles */
.contact-card {
    max-width: 500px;
}

.contact-email-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 16px;
    margin: 0 auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

.contact-email-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.contact-email-box i:first-child {
    font-size: 1.2rem;
}

.contact-email-box span {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    word-break: break-all;
}

.copy-email-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.copy-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.copy-email-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .contact-email-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-email-box span {
        font-size: 0.85rem;
    }

    .copy-email-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Strategy Modal Title Lettering */
.strategy-card .result-header h2 {
    font-family: 'Jua', sans-serif;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ff6b6b, #ff9a9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
    transform: skew(-2deg);
    display: inline-block;
    border-bottom: 3px solid #ffd43b;
    padding-bottom: 5px;
}

/* Updated Strategy List - Horizontal Card Carousel */
/* Updated Strategy List - Horizontal Card Carousel */
.strategy-container {
    display: flex !important;
    flex-direction: row !important;
    /* Force Horizontal */
    flex-wrap: nowrap !important;
    gap: 15px;
    padding: 10px 5px 20px 5px;
    background: transparent;

    /* Scroll Enhancements */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* Ensure content determines width */
    width: 100%;
    align-items: stretch;
    /* Stretch cards to same height */
}

/* Hide scrollbar */
.strategy-container::-webkit-scrollbar {
    display: none;
}

.strategy-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Individual Strategy Card */
.strategy-card-item {
    flex: 0 0 100%;
    /* Take full width of container */
    scroll-snap-align: center;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Lighter shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    /* Crucial for padding */
}

/* Navigation Buttons Container */
.strategy-nav-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 5px;
}

.strategy-nav-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.strategy-nav-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.strategy-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pagination Dots */
.strategy-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #dee2e6;
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Card Header */
.strategy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.strategy-num {
    background: #495057;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.strategy-icon-main {
    font-size: 1.2rem;
    color: #ffd43b;
    /* Gold star */
}

/* Title */
.strategy-main-title {
    font-family: 'Gowun Batang', serif;
    /* Elegant Serif */
    font-size: 1.3rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 15px;
    text-align: center;
    word-break: keep-all;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

/* Message Quote Box (The Core Content) */
.strategy-message-box {
    background: linear-gradient(135deg, #fff0f6, #fff);
    border: 2px solid #ffdeeb;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Fill space */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.strategy-message-text {
    font-family: 'Gowun Batang', serif;
    /* Use serif for quote feel but mature */
    font-size: 1.25rem;
    font-weight: 400;
    color: #495057;
    line-height: 1.6;
    word-break: break-word;
    /* Removed rotation */
    font-style: italic;
    /* Classic quote style */
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 1.2rem;
    color: #ff6b6b;
    background: white;
    padding: 0 5px;
}

/* Action Button */
.strategy-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #343a40;
    /* Strong contrast */
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(52, 58, 64, 0.2);
}

.strategy-action-btn:hover {
    background: #212529;
    transform: translateY(-2px);
}

.strategy-action-btn:active {
    transform: scale(0.98);
}

.strategy-action-btn.success {
    background: #20c997;
    /* Green for success */
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

/* Flying Plane Animation (reused/adjusted) */
.flying-plane {
    position: fixed;
    /* Fixed relative to viewport for better visibility */
    font-size: 2rem;
    color: #ff6b6b;
    z-index: 9999;
    pointer-events: none;
    animation: zoomFly 1s ease-in-out forwards;
}

@keyframes zoomFly {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    }

    50% {
        transform: translate(0, -100px) scale(1.2) rotate(10deg);
    }

    100% {
        opacity: 0;
        transform: translate(200px, -400px) scale(0.5) rotate(45deg);
    }
}

.strategy-badge {
    background: #ff6b6b;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* Chat bubble styling - App Theme */
.strategy-chat-bubble {
    background: white;
    color: #495057;
    padding: 16px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.1);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    word-break: break-word;
    background-image: linear-gradient(to bottom right, #ffffff, #fff5f5);
}

.strategy-chat-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.strategy-chat-bubble:active {
    transform: scale(0.98);
}

/* Add a quote icon decoration */
.strategy-chat-bubble::before {
    content: '\f10d';
    /* FontAwesome quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.8rem;
    color: rgba(255, 107, 107, 0.1);
}

.chat-time {
    display: block;
    font-size: 0.7rem;
    color: #adb5bd;
    text-align: right;
    margin-top: 8px;
    font-weight: 500;
}

/* Service Guide & FAQ Section Styles (AdSense Optimization) */
.service-guide {
    width: 100%;
    max-width: 420px;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.guide-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.8rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.6);
}

.guide-card h3 {
    font-family: 'Jua', sans-serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-card h3 i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.guide-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    word-break: keep-all;
    margin: 0;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.guide-list li::before {
    content: '✔';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 0.8rem;
    top: 3px;
}

.faq-item {
    margin-bottom: 1.2rem;
    border-bottom: 1px dashed rgba(134, 142, 150, 0.2);
    padding-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.faq-item strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Process Steps (Usage Guide) */
.process-step {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-num {
    background: var(--accent-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-desc strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 4px;
    font-size: 1rem;
}

.step-desc p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Article Card specific */
.article-card h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 107, 107, 0.2);
}

.detailed-list li {
    margin-bottom: 10px;
}

.detailed-list li strong {
    color: var(--primary-color);
}