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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
    color: #ffffff;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.login-section {
    text-align: center;
    margin: 40px auto 60px auto;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.welcome-text {
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.welcome-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 220px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-btn::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.6s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

.github-btn {
    background: linear-gradient(135deg, #333, #555);
    color: white;
}

.google-btn {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-btn i {
    font-size: 1.3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature i {
    font-size: 2.5rem;
    color: #4ecdc4;
    margin-bottom: 15px;
}

.feature h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.packages-section {
    margin-top: 80px;
}

.packages-title {
    text-align: center;
    margin-bottom: 60px;
}

.packages-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.packages-title p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: start;
}

.package-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.package-card:hover::before {
    opacity: 1;
}

.package-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.package-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.package-card:hover .package-glow {
    opacity: 1;
}

.package-card.featured {
    transform: scale(1.05);
    z-index: 10;
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.03);
}

.package-card.featured:hover {
    transform: translateY(-20px) scale(1.08);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    z-index: 20;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

.package-header {
    padding: 40px 30px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.package-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.icon-bg::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
}

.icon-bg i {
    font-size: 2.5rem;
    color: white;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.package-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.package-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.package-price {
    text-align: center;
    padding: 0 30px 30px;
    position: relative;
    z-index: 2;
}

.package-price .currency {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    vertical-align: top;
    font-weight: 600;
}

.package-price .amount {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin: 0 5px;
}

.package-price .period {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.package-features {
    padding: 0 30px 30px;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    padding-right: 10px;
    color: white;
}

.feature-item i {
    font-size: 1.2rem;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transition: all 0.3s ease;
}

.feature-item.disabled {
    color: rgba(255, 255, 255, 0.4);
}

.feature-item.disabled i {
    color: #ff4757;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.feature-item span {
    color: rgba(255, 255, 255, 0.9);
}

.package-btn {
    width: calc(100% - 60px);
    margin: 0 30px 30px;
    padding: 18px 0;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.package-btn::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.6s ease;
}

.package-btn:hover::before {
    left: 100%;
}

.package-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.package-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.package-btn:hover i {
    transform: translateX(-5px);
}

.free-package {
    border-color: rgba(16, 185, 129, 0.3);
}

.free-package .package-glow {
    background: linear-gradient(135deg, #10b981, #059669);
}

.free-package .icon-bg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}

.free-package .icon-bg i {
    color: #10b981;
}

.free-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.free-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.basic-package {
    border-color: rgba(59, 130, 246, 0.3);
}

.basic-package .package-glow {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.basic-package .icon-bg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(29, 78, 216, 0.1));
}

.basic-package .icon-bg i {
    color: #3b82f6;
}

.basic-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.basic-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.plus-package {
    border-color: rgba(245, 158, 11, 0.5);
}

.plus-package .package-glow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.plus-package .icon-bg {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.2));
}

.plus-package .icon-bg i {
    color: #f59e0b;
}

.plus-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.plus-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.pro-package {
    border-color: rgba(139, 92, 246, 0.3);
}

.pro-package .package-glow {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.pro-package .icon-bg {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
}

.pro-package .icon-bg i {
    color: #8b5cf6;
}

.pro-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.pro-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.package-card {
    animation: packageFloat 8s ease-in-out infinite;
}

.package-card:nth-child(1) {
    animation-delay: 0s;
}

.package-card:nth-child(2) {
    animation-delay: -2s;
}

.package-card:nth-child(3) {
    animation-delay: -4s;
}

.package-card:nth-child(4) {
    animation-delay: -6s;
}

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

.package-card.featured {
    animation: packageFloatFeatured 8s ease-in-out infinite;
}

@keyframes packageFloatFeatured {
    0%, 100% {
        transform: scale(1.05) translateY(0px);
    }
    50% {
        transform: scale(1.05) translateY(-12px);
    }
}

.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.3rem;
        gap: 8px;
    }

    .logo i {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 30px 10px;
    }

    .login-section {
        padding: 30px 20px;
        margin: 20px auto 40px auto;
        border-radius: 20px;
    }

    .welcome-text h1 {
        font-size: 2.2rem;
    }

    .welcome-text p {
        font-size: 1rem;
    }

    .auth-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .auth-btn {
        min-width: 200px;
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .package-card {
        margin: 0 10px;
    }

    .package-card.featured {
        transform: scale(1.02);
    }

    .package-card.featured:hover {
        transform: translateY(-15px) scale(1.04);
    }

    .package-price .amount {
        font-size: 3rem;
    }

    .packages-title h2 {
        font-size: 2.2rem;
    }

    .packages-title p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }

    .welcome-text h1 {
        font-size: 2rem;
    }

    .welcome-text p {
        font-size: 0.95rem;
    }

    .packages-title h2 {
        font-size: 1.8rem;
    }

    .package-header {
        padding: 30px 20px 15px;
    }

    .package-price,
    .package-features {
        padding-left: 20px;
        padding-right: 20px;
    }

    .package-btn {
        width: calc(100% - 40px);
        margin: 0 20px 25px;
        padding: 16px 0;
        font-size: 1rem;
    }

    .icon-bg {
        width: 70px;
        height: 70px;
    }

    .icon-bg i {
        font-size: 2.2rem;
    }

    .package-name {
        font-size: 2.2rem;
    }

    .package-price .amount {
        font-size: 2.8rem;
    }
}

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

.package-card {
    animation: slideInUp 0.6s ease-out, packageFloat 8s ease-in-out infinite 0.6s;
}

.package-card:nth-child(1) {
    animation-delay: 0.1s, 0.7s;
}

.package-card:nth-child(2) {
    animation-delay: 0.2s, 0.8s;
}

.package-card:nth-child(3) {
    animation-delay: 0.3s, 0.9s;
}

.package-card:nth-child(4) {
    animation-delay: 0.4s, 1s;
}

.pulse {
    animation: pulse 1s ease-in-out 3;
}