/* homepage.css — CSS اختصاصی صفحه اصلی */

.hp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0a3e 0%, #1e1b5e 40%, #312e81 70%, #4c1d95 100%);
    color: #fff;
    padding: 4rem 1rem 5rem;
    text-align: center;
    border-radius: 0 0 32px 32px;
    box-sizing: border-box;
}

.hp-hero-bg {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.hp-hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.hp-hero-logo, .hp-hero-float {
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.hp-hero-logo {
    width: 75px;
    height: 75px;
    top: 8%;
    left: 6%;
    animation: hpFloat1 6s ease-in-out infinite;
}

.hp-float-premium {
    width: 70px;
    height: 70px;
    top: 10%;
    right: 6%;
    animation: hpFloat2 7s ease-in-out infinite;
}

.hp-float-number {
    width: 65px;
    height: 65px;
    bottom: 10%;
    left: 10%;
    animation: hpFloat3 8s ease-in-out infinite;
}

@keyframes hpFloat1 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes hpFloat2 {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-20px) rotate(-5deg); }
}
@keyframes hpFloat3 {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

.hp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(15, 10, 62, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.hp-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hp-hero-highlight {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff9500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hp-hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    margin: 0 auto 2rem;
    max-width: 500px;
}

.hp-hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #4a2c00;
    padding: 0.9rem 2.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(255, 179, 71, 0.45);
    transition: all 0.25s ease;
}

.hp-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 179, 71, 0.6);
}

.hp-features {
    padding: 2rem 0;
    background: #fff;
}

.hp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.hp-feature {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #fafafe 0%, #f1f5f9 100%);
    border-radius: 14px;
    border: 1px solid #eef0f7;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.hp-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
    border-color: #c7d2fe;
}

.hp-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.hp-feature h3 {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 600;
    margin: 0;
}

.hp-services {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hp-section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 2rem 0;
}

.hp-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.hp-service-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hp-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.18);
    border-color: #c7d2fe;
}

.hp-service-card.hp-service-premium {
    background: linear-gradient(135deg, #1e1b5e 0%, #312e81 100%);
    color: #fff;
    border: 2px solid #ffd700;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.hp-service-card.hp-service-premium::before {
    content: "محبوب";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #4a2c00;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
}

.hp-service-img-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.hp-service-premium .hp-service-img-wrap {
    background: linear-gradient(135deg, #312e81, #4c1d95);
}

.hp-service-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.3s;
}

.hp-service-card:hover .hp-service-img {
    transform: scale(1.05);
}

.hp-service-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.hp-service-premium .hp-service-title {
    color: #fff;
}

.hp-service-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.hp-service-premium .hp-service-desc {
    color: rgba(255, 255, 255, 0.8);
}

.hp-service-price {
    margin-bottom: 1.2rem;
}

.hp-price-label {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.hp-service-premium .hp-price-label {
    color: rgba(255, 215, 0, 0.85);
}

.hp-price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #6366f1;
    direction: ltr;
    display: inline-block;
}

.hp-service-premium .hp-price-value {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hp-service-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transition: all 0.25s;
}

.hp-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
}

.hp-btn-premium {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #4a2c00;
    box-shadow: 0 4px 14px rgba(255, 179, 71, 0.45);
}

.hp-stats {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
    color: #fff;
    text-align: center;
}

.hp-stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.hp-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    direction: ltr;
    display: inline-block;
}

.hp-stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.3rem;
}

.hp-recent {
    padding: 3rem 0;
    background: #f8fafc;
}

.hp-txns-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 700px;
    margin: 0 auto;
}

.hp-txn {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-right: 3px solid #27ae60;
}

.hp-txn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hp-txn-info {
    text-align: right;
}

.hp-txn-title {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.hp-txn-status {
    font-size: 0.78rem;
    color: #27ae60;
    font-weight: 600;
}

.hp-txn-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    direction: ltr;
}

@media (max-width: 768px) {
    .hp-hero { padding: 3rem 1rem 4rem; min-height: 320px; }
    .hp-hero-logo { width: 55px; height: 55px; top: 5%; left: 4%; }
    .hp-float-premium { width: 50px; height: 50px; top: 6%; right: 4%; }
    .hp-float-number { width: 45px; height: 45px; bottom: 6%; left: 6%; }
    .hp-hero-content { padding: 1.8rem 1.2rem; }
    .hp-features-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .hp-services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .hp-service-card { padding: 1.4rem 1rem; }
    .hp-service-img-wrap { width: 100px; height: 100px; padding: 8px; }
    .hp-stat-value { font-size: 2rem; }
    .hp-txn { grid-template-columns: 36px 1fr auto; padding: 0.7rem; }
    .hp-txn-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .hp-txn-title { font-size: 0.85rem; }
    .hp-txn-amount { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .hp-hero { padding: 2.5rem 1rem 3.5rem; min-height: 280px; }
    .hp-hero-title { font-size: 1.8rem; }
    .hp-hero-sub { font-size: 0.9rem; }
    .hp-hero-cta { padding: 0.75rem 1.8rem; font-size: 0.95rem; }
    .hp-hero-logo { width: 42px; height: 42px; }
    .hp-float-premium { width: 38px; height: 38px; }
    .hp-float-number { width: 35px; height: 35px; }
    .hp-hero-content { padding: 1.4rem 1rem; border-radius: 18px; }
    .hp-features-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .hp-feature { padding: 0.7rem; }
    .hp-feature-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .hp-feature h3 { font-size: 0.78rem; }
    .hp-service-card { padding: 1.2rem 0.9rem; border-radius: 16px; }
    .hp-service-img-wrap { width: 85px; height: 85px; padding: 6px; }
    .hp-service-title { font-size: 1.05rem; }
    .hp-service-desc { font-size: 0.82rem; }
    .hp-price-value { font-size: 1.2rem; }
    .hp-service-btn { padding: 0.65rem 1.6rem; font-size: 0.88rem; }
    .hp-stat-value { font-size: 1.7rem; }
    .hp-stat-label { font-size: 0.85rem; }
    .hp-section-title { font-size: 1.3rem; }
}

@media (max-width: 360px) {
    .hp-hero-title { font-size: 1.5rem; }
    .hp-service-card { padding: 1rem 0.7rem; }
    .hp-features-grid { gap: 0.4rem; }
    .hp-feature { padding: 0.5rem; }
    .hp-feature h3 { font-size: 0.72rem; }
    .hp-service-img-wrap { width: 75px; height: 75px; }
}
