/* ============================================
   Love Calculator & Relationship Tools
   LuvLnk Premium Design
   ============================================ */

/* --- Page Layout --- */
.lc-page {
    min-height: 100vh;
    background: var(--color-bg-dark);
    padding-bottom: 3rem;
}

.lc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Navbar (transparent glassy - matches index.html) --- */
.lc-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(10, 14, 23, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* --- Page Header --- */
.lc-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.lc-header h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.lc-header h1 .lc-gradient {
    background: linear-gradient(135deg, #e84393, #fd79a8, #0984e3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lc-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    max-width: 500px;
    margin: 0 auto;
}

.lc-disclaimer {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Tools Hub Grid --- */
.lc-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    padding: 0 0.5rem 3rem;
}

.lc-tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.lc-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, var(--card-glow, rgba(232, 67, 147, 0.08)), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lc-tool-card:hover::before {
    opacity: 1;
}

.lc-tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--card-border, rgba(232, 67, 147, 0.4));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px var(--card-glow, rgba(232, 67, 147, 0.1));
}

.lc-tool-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* Card color themes */
.lc-tool-card[data-tool="compatibility"] {
    --card-glow: rgba(253, 121, 168, 0.15);
    --card-border: rgba(253, 121, 168, 0.4);
}

.lc-tool-card[data-tool="health"] {
    --card-glow: rgba(0, 184, 148, 0.15);
    --card-border: rgba(0, 184, 148, 0.4);
}

.lc-tool-card[data-tool="breakup"] {
    --card-glow: rgba(214, 48, 49, 0.15);
    --card-border: rgba(214, 48, 49, 0.4);
}

.lc-tool-card[data-tool="crush"] {
    --card-glow: rgba(108, 92, 231, 0.15);
    --card-border: rgba(108, 92, 231, 0.4);
}

.lc-tool-card[data-tool="toxic"] {
    --card-glow: rgba(255, 118, 117, 0.15);
    --card-border: rgba(255, 118, 117, 0.4);
}

.lc-tool-card[data-tool="attachment"] {
    --card-glow: rgba(9, 132, 227, 0.15);
    --card-border: rgba(9, 132, 227, 0.4);
}

.lc-tool-card[data-tool="lovelang"] {
    --card-glow: rgba(250, 177, 160, 0.15);
    --card-border: rgba(250, 177, 160, 0.4);
}

.lc-tool-card[data-tool="marriage"] {
    --card-glow: rgba(253, 203, 110, 0.15);
    /* Warm Gold */
    --card-border: rgba(253, 203, 110, 0.4);
}

.lc-tool-card[data-tool="baby"] {
    --card-glow: rgba(129, 236, 236, 0.15);
    /* Soft Cyan/Aqua */
    --card-border: rgba(129, 236, 236, 0.4);
}

.lc-tool-card[data-tool="destiny"] {
    --card-glow: rgba(162, 153, 226, 0.15);
    /* Soft Purple */
    --card-border: rgba(162, 153, 226, 0.4);
}

.lc-card-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.8rem;
    animation: lc-float 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes lc-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.lc-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.lc-card-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* --- Tool View (Active Tool) --- */
.lc-tool-view {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    animation: lc-slideUp 0.4s ease;
}

.lc-tool-view.active {
    display: block;
}

@keyframes lc-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Button */
.lc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.lc-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

/* Tool Content Card */
.lc-content-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.lc-content-card::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: linear-gradient(135deg, rgba(232, 67, 147, 0.4), rgba(9, 132, 227, 0.4));
    filter: blur(80px);
    z-index: -1;
    opacity: 0.8;
    border-radius: 30px;
    pointer-events: none;
    animation: lc-pulse-glow 4s infinite alternate ease-in-out;
}

@keyframes lc-pulse-glow {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.lc-content-card h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.lc-content-card .lc-tool-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* --- Form Elements --- */
.lc-form-group {
    margin-bottom: 1.2rem;
}

.lc-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.lc-input {
    width: 100%;
    padding: 1.1rem 1.2rem;
    /* Larger padding */
    background: rgba(255, 255, 255, 0.05);
    /* Translucent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    /* More rounded */
    color: white;
    font-family: 'Outfit', 'Inter', sans-serif;
    /* Premium font */
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lc-input:hover:not(:focus) {
    background: rgba(255, 255, 255, 0.08);
    /* Glow on hover */
    border-color: rgba(255, 255, 255, 0.2);
}

.lc-input:focus {
    outline: none;
    background: rgba(10, 14, 23, 0.8);
    /* Darker background */
    border-color: var(--color-primary, #0984e3);
    box-shadow: 0 0 0 4px rgba(9, 132, 227, 0.15), 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    /* Subtle lift */
}

.lc-input:not(:placeholder-shown):not(:focus) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 67, 147, 0.5);
    /* Subtle pink/primary border */
    box-shadow: inset 0 0 10px rgba(232, 67, 147, 0.05);
}

.lc-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* Date input fix */
.lc-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* --- Calculate Button --- */
.lc-calc-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #e84393, #0984e3);
    border: none;
    border-radius: 16px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.lc-calc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.lc-calc-btn:hover::before {
    left: 100%;
}

.lc-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 67, 147, 0.4);
}

.lc-calc-btn:active {
    transform: translateY(0);
}

.lc-calc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Quiz Styles --- */
.lc-quiz-container {
    position: relative;
}

/* Progress Bar */
.lc-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.lc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e84393, #0984e3);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.lc-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(232, 67, 147, 0.6);
}

.lc-progress-text {
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

/* Question */
.lc-question {
    animation: lc-fadeIn 0.3s ease;
}

@keyframes lc-fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lc-question h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: white;
}

/* Options */
.lc-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.lc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.lc-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 67, 147, 0.3);
    transform: translateX(4px);
}

.lc-option.selected {
    background: rgba(232, 67, 147, 0.12);
    border-color: #e84393;
    color: white;
    box-shadow: 0 0 15px rgba(232, 67, 147, 0.1);
}

.lc-option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s ease;
}

.lc-option.selected .lc-option-radio {
    border-color: #e84393;
    background: #e84393;
}

.lc-option.selected .lc-option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Quiz Nav Buttons */
.lc-quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.lc-quiz-nav button {
    padding: 0.8rem 1.5rem;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lc-nav-prev {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.lc-nav-prev:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lc-nav-next {
    background: linear-gradient(135deg, #e84393, #0984e3);
    color: white;
    flex: 1;
}

.lc-nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 67, 147, 0.3);
}

.lc-nav-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Slider Inputs --- */
.lc-slider-group {
    margin-bottom: 1.5rem;
}

.lc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.lc-slider-value {
    font-weight: 700;
    color: #e84393;
    font-size: 0.9rem;
}

.lc-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.lc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e84393, #0984e3);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(232, 67, 147, 0.4);
    transition: transform 0.2s ease;
}

.lc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.lc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e84393, #0984e3);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(232, 67, 147, 0.4);
}

/* --- Select Dropdown --- */
.lc-select {
    width: 100%;
    padding: 1.1rem 1.2rem;
    /* Larger padding */
    background: rgba(255, 255, 255, 0.05);
    /* Translucent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    /* More rounded */
    color: white;
    font-family: 'Outfit', 'Inter', sans-serif;
    /* Premium font */
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lc-select:hover:not(:focus) {
    background: rgba(255, 255, 255, 0.08);
    /* Glow on hover */
    border-color: rgba(255, 255, 255, 0.2);
}

.lc-select:focus {
    outline: none;
    background: rgba(10, 14, 23, 0.8);
    /* Darker background */
    border-color: var(--color-primary, #0984e3);
    box-shadow: 0 0 0 4px rgba(9, 132, 227, 0.15), 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    /* Subtle lift */
}

.lc-select option {
    background: #161b28;
    color: white;
    padding: 10px;
}

/* --- Results --- */
.lc-result {
    display: none;
    animation: lc-resultPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lc-result.active {
    display: block;
}

@keyframes lc-resultPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Score Circle */
.lc-score-circle {
    width: 160px;
    height: 160px;
    margin: 1.5rem auto;
    position: relative;
}

.lc-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lc-score-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.lc-score-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.lc-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.lc-score-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1;
    background: linear-gradient(135deg, #e84393, #0984e3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lc-score-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* Category Badge */
.lc-category-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin: 1rem auto;
    text-align: center;
}

.lc-category-strong {
    background: rgba(0, 184, 148, 0.15);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.lc-category-needswork {
    background: rgba(253, 203, 110, 0.15);
    color: #fdcb6e;
    border: 1px solid rgba(253, 203, 110, 0.3);
}

.lc-category-critical {
    background: rgba(255, 118, 117, 0.15);
    color: #ff7675;
    border: 1px solid rgba(255, 118, 117, 0.3);
}

.lc-category-toxic {
    background: rgba(214, 48, 49, 0.15);
    color: #d63031;
    border: 1px solid rgba(214, 48, 49, 0.3);
}

/* Result Sections */
.lc-result-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.lc-result-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
}

.lc-result-section p,
.lc-result-section li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.lc-result-section ul {
    padding-left: 0;
}

.lc-result-section li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.lc-result-section li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #e84393;
    font-size: 0.7rem;
}

/* Result Emoji */
.lc-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin: 1rem 0;
    animation: lc-bounce 1s ease infinite;
}

@keyframes lc-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* --- Auth Gate / Blur Overlay --- */
.lc-blur-overlay {
    position: relative;
}

.lc-blur-overlay .lc-blurred-content {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.lc-login-gate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    background: rgba(10, 14, 23, 0.85);
    border: 1px solid rgba(232, 67, 147, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    min-width: 280px;
}

.lc-login-gate h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.lc-login-gate p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.lc-login-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, #e84393, #0984e3);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lc-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(232, 67, 147, 0.4);
}

/* --- Share Buttons --- */
.lc-share-row {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.lc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lc-share-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.lc-share-btn.whatsapp {
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.lc-share-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.lc-share-btn.copy-link {
    border-color: rgba(9, 132, 227, 0.3);
    color: #74b9ff;
}

.lc-share-btn.copy-link:hover {
    background: rgba(9, 132, 227, 0.1);
}

.lc-share-btn.instagram {
    border-color: rgba(225, 48, 108, 0.3);
    color: #e1306c;
}

/* Try Again */
.lc-retry-btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lc-retry-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- Loading Spinner --- */
.lc-loading {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.lc-loading.active {
    display: block;
}

.lc-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: #e84393;
    border-radius: 50%;
    animation: lc-spin 0.8s linear infinite;
}

@keyframes lc-spin {
    to {
        transform: rotate(360deg);
    }
}

.lc-loading p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .lc-tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        padding: 0 0.25rem 2rem;
    }

    .lc-tool-card {
        padding: 1.3rem 1rem;
    }

    .lc-card-emoji {
        font-size: 2.2rem;
    }

    .lc-card-title {
        font-size: 0.95rem;
    }

    .lc-card-desc {
        font-size: 0.7rem;
    }

    .lc-content-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .lc-content-card h2 {
        font-size: 1.3rem;
    }

    .lc-navbar {
        padding: 0.6rem 1rem;
    }

    .lc-score-circle {
        width: 130px;
        height: 130px;
    }

    .lc-score-number {
        font-size: 2.2rem;
    }

    .lc-login-gate {
        min-width: 240px;
        padding: 1.5rem;
    }
}

@media (max-width: 400px) {
    .lc-tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .lc-tool-card {
        padding: 1rem 0.8rem;
    }

    .lc-header h1 {
        font-size: 1.8rem;
    }
}

/* --- Footer Social Icons (used on index.html too) --- */
.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-social-icon:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 67, 147, 0.4);
    box-shadow: 0 5px 15px rgba(232, 67, 147, 0.2);
    color: white;
    background: rgba(232, 67, 147, 0.1);
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-social-icon.calculator-icon {
    background: linear-gradient(135deg, rgba(232, 67, 147, 0.15), rgba(9, 132, 227, 0.15));
    border-color: rgba(232, 67, 147, 0.3);
    color: #fd79a8;
    animation: lc-float 4s ease-in-out infinite;
}

.footer-social-icon.calculator-icon:hover {
    background: linear-gradient(135deg, rgba(232, 67, 147, 0.25), rgba(9, 132, 227, 0.25));
    box-shadow: 0 5px 20px rgba(232, 67, 147, 0.3);
}

/* ============================================ */
/* Premium 3D Share Card                        */
/* ============================================ */
.lc-share-hub {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.8rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lc-share-hub::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(232, 67, 147, 0.2), rgba(9, 132, 227, 0.2), rgba(253, 203, 110, 0.2));
    z-index: -1;
    filter: blur(30px);
    opacity: 0.6;
    animation: share-glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes share-glow-pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.lc-share-hub-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fd79a8, #fdcb6e, #81ecec);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lc-share-hub-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.5rem;
}

.lc-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lc-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.lc-share-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.lc-share-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.lc-share-btn:hover::after {
    opacity: 1;
}

.lc-share-btn:active {
    transform: translateY(0) scale(0.98);
}

.lc-share-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lc-share-btn--whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.lc-share-btn--download {
    background: linear-gradient(135deg, #e84393, #6c5ce7);
}

.lc-share-btn--insta {
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    background-size: 200% 200%;
    animation: insta-gradient 4s ease infinite;
}

@keyframes insta-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.lc-share-btn--partner {
    background: linear-gradient(135deg, #fd79a8, #e84393);
}

/* Download Toast */
.lc-download-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.lc-download-toast.active {
    transform: translateX(-50%) translateY(0);
}

/* Report Card (hidden, used for html2canvas capture) */
.lc-report-card-capture {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 600px;
    padding: 40px;
    background: linear-gradient(145deg, #1a1a2e, #16213e, #0f3460);
    font-family: 'Outfit', 'Inter', sans-serif;
    color: white;
    border-radius: 0;
}

.lc-report-card-capture.story-mode {
    width: 1080px;
    min-height: 1920px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 60px;
}

@media (max-width: 600px) {
    .lc-share-buttons {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* Premium Show Card Modal                      */
/* ============================================ */
.lc-premium-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.lc-premium-modal.active {
    opacity: 1;
    pointer-events: all;
}

.lc-premium-modal-inner {
    position: relative;
    width: 100%;
    max-width: 360px;
    /* Reduced from 450px to make it smaller like a popup */
    animation: popupCard 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: translateY(50px) scale(0.9);
    opacity: 0;
}

@keyframes popupCard {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.premium-result-card {
    background: linear-gradient(145deg, rgba(9, 132, 227, 0.15), rgba(232, 67, 147, 0.08));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    /* Reduced border radius slightly for smaller card */
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 1rem 1.25rem 1rem;
    /* Reduced padding */
    text-align: center;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(232, 67, 147, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.premium-result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(232, 67, 147, 0.2) 0%, transparent 50%);
    pointer-events: none;
    animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.premium-card-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.premium-card-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    /* Reduced from 2.8rem */
    color: #e84393;
    /* Fallback for html2canvas */
    background: linear-gradient(135deg, #e84393, #0984e3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.premium-card-toolname {
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    font-weight: 600;
}

.premium-card-body {
    position: relative;
    z-index: 2;
    transform: scale(0.95);
    transform-origin: top center;
    margin-bottom: -5px;
}

.premium-card-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    letter-spacing: 1px;
}

.premium-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    font-size: 1.5rem;
    z-index: 10;
}

.premium-modal-close:hover {
    background: rgba(232, 67, 147, 0.8);
    transform: rotate(90deg);
}