/* 
 * Fararoom Unified Design System
 * Modern, Consistent, Beautiful
 */

:root {
    /* Color Palette */
    --primary: #667eea;
    --primary-dark: #764ba2;
    --secondary: #f093fb;
    --secondary-dark: #f5576c;
    --success: #4facfe;
    --success-dark: #00f2fe;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 25px;
    --radius-full: 50px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
}

/* Body & Page Background */
body {
    background: var(--hero-gradient);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Hero Section Template */
.page-hero {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-md);
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    line-height: 1.8;
}

/* Card Template */
.unified-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.unified-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.unified-card:hover::before {
    transform: scaleX(1);
}

.unified-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Glass Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--glass-shadow);
}

/* Button Templates */
.btn-gradient-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-gradient-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-gradient-secondary {
    background: var(--secondary-gradient);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
}

.btn-gradient-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.6);
    color: white;
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Floating Elements */
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    z-index: 0;
}

.float-1 {
    top: 10%;
    right: 10%;
    animation: floatUpDown 6s ease-in-out infinite;
}

.float-2 {
    bottom: 20%;
    left: 5%;
    animation: floatUpDown 8s ease-in-out infinite 1s;
}

.float-3 {
    top: 40%;
    right: 15%;
    animation: floatUpDown 7s ease-in-out infinite 2s;
}

/* Section Title */
.section-title-unified {
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin-bottom: var(--space-lg);
}

.section-divider {
    width: 100px;
    height: 4px;
    background: white;
    margin: 1rem auto;
    border-radius: 2px;
}

/* Stats Display */
.stats-display {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: var(--space-xl) 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

/* Icon Container */
.icon-container {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: var(--space-md);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: var(--space-xs) 0;
    color: #475569;
}

.feature-item i {
    color: #22c55e;
    margin-left: 0.75rem;
    font-size: 1.2rem;
}

/* Badge */
.badge-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-featured {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* CTA Section */
.cta-section-unified {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-lg);
}

.cta-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pricing Plans Styles */
.pricing-plans {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.pricing-plan {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.pricing-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-plan:hover::before {
    left: 100%;
}

.plan-name {
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.plan-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-right: var(--space-xs);
}

.currency {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.plan-period {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-xs);
}

/* Pricing Header */
.pricing-header {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* View Toggle Buttons */
.view-toggle-container {
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatIn 0.6s ease-out;
}

.view-toggle-container.collapsed {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
}

.view-toggle-container.collapsed .view-toggle-main-btn {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.view-toggle-container.collapsed .view-toggle-buttons {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

.view-toggle-container:not(.collapsed) {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
}

.view-toggle-container:not(.collapsed) .view-toggle-buttons {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    max-height: 200px;
    overflow: visible;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.view-toggle-main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--secondary-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
    margin: 0;
    position: relative;
}

.view-toggle-main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-full);
    background: var(--secondary-gradient);
    opacity: 0.8;
    z-index: -1;
    transition: all 0.3s ease;
}

.view-toggle-main-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.view-toggle-main-btn:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.view-toggle-main-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.view-toggle-container:not(.collapsed) .view-toggle-main-btn i {
    transform: rotate(180deg);
}

.view-toggle-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 2px solid var(--glass-border);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.7;
    min-width: 80px;
    text-align: center;
    animation: fadeInUp 0.5s ease-out forwards;
}

.view-toggle-btn:nth-child(1) { animation-delay: 0.1s; }
.view-toggle-btn:nth-child(2) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.view-toggle-btn:hover {
    background: var(--glass-bg);
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.view-toggle-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.view-toggle-btn i {
    font-size: 1.4rem;
}

.view-toggle-btn span {
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title-unified {
        font-size: 1.8rem;
    }
    
    .stats-display {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .unified-card {
        padding: var(--space-md);
    }
}

/* Smooth Animations */
.aos-animate {
    transition-property: transform, opacity;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: white;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.empty-state p {
    opacity: 0.8;
}
