:root {
    --primary-color: #1e1e2e;
    --secondary-color: #2a2b3d;
    --text-color: #e0e0ff;
    --accent-color: #a277ff;
    --success-color: #61ffca;
    --warning-color: #ffca85;
    --danger-color: #ff6767;
    --neutral-color: #6d6d8f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(162, 119, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(97, 255, 202, 0.05) 0%, transparent 30%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo h1 {
    font-size: 2.5rem;
    margin-left: 1rem;
    background: linear-gradient(to right, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2rem;
    margin: 0 0.5rem;
}

.tab-btn:hover {
    background-color: rgba(162, 119, 255, 0.2);
}

.tab-btn.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.card {
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.input-group {
    display: flex;
    margin-bottom: 1rem;
}

input {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    margin-right: 0.5rem;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
}

button {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #8a63d8;
}

.input-group button {
    margin-right: 0.5rem;
}

.hidden {
    display: none;
}

.results-container {
    animation: slideUp 0.5s ease;
}

.result-card {
    background-color: rgba(42, 43, 61, 0.95);
    border-left: 4px solid var(--accent-color);
}

.business-name-display, .personal-name-display {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.destiny-number, .life-path-number {
    font-size: 1.3rem;
    margin-top: 0.5rem;
    color: var(--success-color);
}

.chart-container {
    height: 200px;
    margin: 1.5rem 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.number-box {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.number-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.number-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.lucky-box {
    background-color: rgba(97, 255, 202, 0.15);
    grid-column: span 2;
}

.lucky-box .number-value {
    color: var(--success-color);
    font-size: 1.8rem;
}

.explanation {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    line-height: 1.7;
}

.explanation p {
    margin-bottom: 0.75rem;
}

.comparison {
    margin-top: 1.5rem;
}

.comparison-text {
    padding: 1rem;
    background: linear-gradient(to right, rgba(162, 119, 255, 0.1), rgba(97, 255, 202, 0.1));
    border-radius: 0.5rem;
}

.comparison-container {
    margin-top: 2rem;
    animation: slideUp 0.6s ease;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.comparison-item {
    background-color: rgba(42, 43, 61, 0.8);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.comparison-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--success-color));
}

.comparison-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.comparison-number {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.comparison-detail {
    font-size: 0.9rem;
    opacity: 0.8;
}

.fortune500-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: rgba(97, 255, 202, 0.2);
    color: var(--success-color);
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.compatibility-meter {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0.8rem 0;
    border-radius: 3px;
    overflow: hidden;
}

.compatibility-fill {
    height: 100%;
    background: linear-gradient(to right, var(--warning-color), var(--success-color));
    border-radius: 3px;
}

.match-percentage {
    font-size: 1rem;
    font-weight: bold;
}

.fortune500-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(to bottom right, rgba(42, 43, 61, 0.8), rgba(30, 30, 46, 0.9));
    border-radius: 0.5rem;
}

.fortune500-title {
    margin-bottom: 1rem;
    color: var(--success-color);
    font-size: 1.2rem;
}

.match-label {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.compatibility-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(162, 119, 255, 0.1), rgba(97, 255, 202, 0.1));
    border-radius: 0.5rem;
}

.name-suggestions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.name-suggestions h4 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.name-suggestions ul {
    list-style-type: none;
}

.name-suggestions li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: rgba(97, 255, 202, 0.1);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.name-suggestions li:hover {
    background-color: rgba(97, 255, 202, 0.2);
    transform: translateX(5px);
}

.life-cycles {
    margin-top: 2rem;
}

.cycles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.cycle-box {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.cycle-label {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.5rem;
}

.cycle-value {
    font-size: 1.3rem;
    color: var(--warning-color);
    font-weight: bold;
}

#today-business-analysis, #today-personal-analysis {
    background-color: var(--success-color);
    color: var(--primary-color);
}

#today-business-analysis:hover, #today-personal-analysis:hover {
    background-color: #4ad0a8;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9rem;
}

.pulse {
    animation: pulse 2s infinite;
}

.rotate {
    transform-origin: center;
    animation: rotate 20s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cycles-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        margin-bottom: 0.5rem;
    }
    
    .lucky-box {
        grid-column: span 2;
    }
}