/* Age Calculator - Professional Styles */
.agecalc-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.agecalc-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.agecalc-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.agecalc-heart {
    font-size: 2.8rem;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    75% { transform: scale(0.95); }
}

.agecalc-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.agecalc-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Input Group */
.agecalc-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.date-input-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid var(--border);
}

.date-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.required {
    color: #ef4444;
}

.date-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.date-preset {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.preset-small {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.preset-small:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.time-option {
    margin-top: 0.8rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Action Buttons */
.agecalc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.primary-action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.primary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.3);
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.secondary-action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(99,102,241,0.2);
}

/* Results Area */
.agecalc-results {
    background: var(--bg);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

/* Age Main Display */
.age-main-display {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 24px;
    color: white;
}

.age-big-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.big-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.big-label {
    font-size: 1.2rem;
    font-weight: 500;
}

.age-detail-row {
    margin-top: 0.5rem;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.detail-number {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Result Grid */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.result-label-small {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

/* Additional Info */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem;
    background: var(--surface);
    border-radius: 10px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.info-value {
    font-weight: 600;
    color: var(--primary);
}

/* Fun Fact Box */
.funfact-box {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
}

.funfact-icon {
    font-size: 1.5rem;
}

.funfact-box span:last-child {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Reference Section */
.agecalc-reference {
    margin-bottom: 1.5rem;
}

.agecalc-reference h3 {
    margin-bottom: 1rem;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.ref-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--border);
}

.ref-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.ref-card p, .ref-card ul {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

.ref-card ul {
    padding-left: 1.2rem;
}

.ref-card li {
    margin-bottom: 0.2rem;
}

/* Gift Card Section */
.giftcard-section {
    background: var(--bg);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.giftcard-section h3 {
    margin-bottom: 1rem;
}

.giftcard-preview {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.giftcard-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.dark-mode .giftcard-content {
    background: linear-gradient(135deg, #4c51bf, #6b46c1);
}

.giftcard-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.giftcard-icon {
    font-size: 2rem;
}

.giftcard-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.giftcard-age {
    margin-bottom: 1rem;
}

.giftcard-years {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
}

.giftcard-years-label {
    font-size: 1rem;
}

.giftcard-details {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.giftcard-date {
    font-size: 0.85rem;
    opacity: 0.9;
}

.giftcard-footer {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}

.giftcard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* SEO Content */
.agecalc-seo {
    margin-top: 1rem;
    padding: 1.2rem;
    background: var(--surface);
    border-radius: 20px;
}

.feature-list {
    padding-left: 1.2rem;
    margin-top: 0.8rem;
}

.feature-list li {
    margin-bottom: 0.4rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Download Card */
.download-card-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.download-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    margin: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.dark-mode .download-card {
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
}

.download-card-bg-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.download-card-corner-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, transparent 100%);
    border-radius: 0 100px 0 0;
}

.download-card-header, .download-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.download-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
}

.download-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-card-body {
    position: relative;
    z-index: 1;
}

.download-calculator-type {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.download-calculation {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.3rem 0;
    color: var(--text);
}

.download-result-box {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.download-result-value {
    color: white;
    font-weight: bold;
    word-break: break-word;
}

.download-explanation {
    background: var(--bg);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    margin: 0.6rem 0;
}

.download-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.download-input-item {
    background: var(--bg);
    padding: 0.4rem;
    border-radius: 8px;
    text-align: center;
}

.download-input-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-light);
}

.download-input-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem;
}

.download-brand {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .agecalc-container {
        padding: 0 1rem;
    }
    
    .agecalc-title {
        font-size: 2rem;
    }
    
    .agecalc-card {
        padding: 1.2rem;
    }
    
    .agecalc-input-group {
        grid-template-columns: 1fr;
    }
    
    /* .result-grid {
        grid-template-columns: repeat(2, 1fr);
    } */
    
    .additional-info {
        grid-template-columns: 1fr;
    }
    
    .big-number {
        font-size: 2.5rem;
    }
    
    .giftcard-years {
        font-size: 2.5rem;
    }
}

/* Gift Card Modal Styles */
.giftcard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.giftcard-modal.active {
    display: flex;
}

.giftcard-modal-content {
    background: var(--surface);
    border-radius: 32px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.giftcard-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.giftcard-modal-close {
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
    line-height: 1;
}

.giftcard-modal-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.giftcard-modal-body {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.giftcard-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Elegant Gift Card Design */
.giftcard-elegant {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 28px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.giftcard-elegant:hover {
    transform: translateY(-5px);
}

.dark-mode .giftcard-elegant {
    background: linear-gradient(135deg, #4c51bf, #6b46c1);
}

.giftcard-elegant-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.giftcard-elegant-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.giftcard-elegant-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.giftcard-elegant-icon {
    font-size: 2.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.giftcard-elegant-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.giftcard-elegant-body {
    margin-bottom: 1.5rem;
}

.giftcard-elegant-age {
    margin-bottom: 1rem;
}

.giftcard-elegant-years {
    font-size: 4rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.giftcard-elegant-years-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.giftcard-elegant-detail {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.giftcard-elegant-date {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    opacity: 0.85;
}

.giftcard-elegant-zodiac {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    display: inline-flex;
    margin: 0 auto;
}

.giftcard-elegant-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.giftcard-elegant-message {
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.giftcard-elegant-brand {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .giftcard-modal-content {
        width: 95%;
    }
    
    .giftcard-modal-body {
        padding: 1.5rem;
    }
    
    .giftcard-elegant {
        padding: 1.5rem;
    }
    
    .giftcard-elegant-years {
        font-size: 3rem;
    }
    
    .giftcard-elegant-header {
        margin-bottom: 1rem;
    }
    
    .giftcard-elegant-icon {
        font-size: 2rem;
    }
}