/* ============================================
   KOMPONENTY (Karty, Timeline, Akordeon)
   ============================================ */

/* ADMINISTRACJA - KARTY */
.admins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.admin-card {
    background: rgba(20, 20, 29, 0.6);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(123, 63, 228, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(123, 63, 228, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.admin-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 40px rgba(123, 63, 228, 0.3);
}

.admin-card:hover::before {
    opacity: 1;
}

.admin-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(var(--secondary-black), var(--secondary-black)) padding-box,
        linear-gradient(90deg, var(--accent-purple), var(--accent-lavender)) border-box;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.admin-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

/* ODDZIELENIE DLA ROLI */
.admin-role-container {
    margin: 1rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.admin-role {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-lavender));
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(123, 63, 228, 0.4);
}

.admin-role i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.admin-role-line {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    margin: 0.8rem auto 0;
}

.admin-description {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* HISTORIA - TIMELINE */
.timeline-section {
    padding: 8rem 5%;
    position: relative;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--accent-purple), var(--accent-lavender), transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--glow-purple);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 6rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    width: 42%;
    background: rgba(26, 26, 36, 0.8);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(123, 63, 228, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
}

.timeline-content:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(123, 63, 228, 0.2);
    transform: scale(1.02);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 24px;
    background: var(--accent-lavender);
    border: 5px solid var(--primary-dark);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--accent-lavender);
    z-index: 5;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    color: var(--accent-lavender);
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: white;
    font-weight: 700;
}

.timeline-desc {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: 85%;
        margin-left: 60px !important;
        text-align: left !important;
    }

    .timeline-item {
        flex-direction: row !important;
    }
}

/* AKORDEON - REGULAMIN */
.accordion {
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accordion-item {
    background: rgba(26, 26, 36, 0.7);
    border: 1px solid rgba(123, 63, 228, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.accordion-item:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(123, 63, 228, 0.15);
}

.accordion-header {
    padding: 1.5rem 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: white !important;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.02);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 2.5rem;
    border-top: 1px solid rgba(123, 63, 228, 0.1);
}

/* PRICING CARDS */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.pricing-card {
    background: rgba(20, 20, 29, 0.6);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid rgba(123, 63, 228, 0.2);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    /* overflow: hidden; */
    /* Removing to allow badge overlap */
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 50px rgba(123, 63, 228, 0.25);
}

.pricing-card.popular {
    border-color: var(--accent-purple);
    background: rgba(123, 63, 228, 0.05);
}

.pricing-card.popular .card-tag {
    position: absolute;
    top: 20px;
    right: -10px;
    background: var(--accent-purple);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(123, 63, 228, 0.4);
}

.popular-badge {
    position: absolute;
    top: -25px;
    /* Better overlap position */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-lavender));
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    /* Rectangular with rounded corners */
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(123, 63, 228, 0.4);
    z-index: 15;
    min-width: 180px;
    line-height: 1;
}

.popular-badge i {
    font-size: 1.1rem;
    color: #ffcc00;
    /* Fire color */
    text-shadow: 0 0 10px #ff4d00;
    animation: burning 1.5s infinite ease-in-out;
}

@keyframes burning {

    0%,
    100% {
        transform: scale(1) rotate(-5deg);
        filter: brightness(1) drop-shadow(0 0 2px #ff4d00);
    }

    50% {
        transform: scale(1.3) rotate(5deg);
        filter: brightness(1.3) drop-shadow(0 0 8px #ff4d00);
    }
}

.card-icon,
.pricing-icon {
    font-size: 3.5rem;
    color: var(--accent-lavender);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px var(--glow-lavender);
}

.pricing-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.price,
.pricing-price {
    font-size: 2.2rem;
    color: var(--accent-lavender);
    font-weight: 800;
    text-shadow: 0 0 20px var(--glow-lavender);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.price span,
.pricing-price span {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 600;
    text-shadow: none;
}

.features,
.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
    flex-grow: 1;
}

.features li,
.pricing-features li {
    color: var(--text-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features li i,
.pricing-features li i {
    color: var(--success-green);
    font-size: 0.9rem;
}

/* SPEC LIST FOR CARDS */
.pricing-specs {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    width: 100%;
    text-align: left;
}

.pricing-specs li {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.pricing-specs li span:last-child {
    color: white;
    font-weight: 600;
    text-align: right;
}

.price-sub {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    display: block;
    text-align: center;
}

.btn-order {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-lavender)) !important;
    box-shadow: 0 4px 15px var(--glow-purple) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.btn-order:hover {
    box-shadow: 0 8px 25px var(--glow-lavender) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

/* BILLING SWITCHER */
.billing-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 4rem;
}

.duration-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    min-width: 120px;
}

.duration-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.duration-btn.active {
    background: white;
    color: #0c0c12;
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.pricing-btn {
    background: var(--accent-purple);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    text-align: center;
}

.pricing-btn:hover {
    box-shadow: 0 0 20px var(--glow-purple);
    transform: scale(1.05);
}

/* STATS SECTION */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-lavender);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--glow-lavender);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ACCORDION (REGULAMIN) */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(123, 63, 228, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--accent-purple);
    background: rgba(123, 63, 228, 0.05);
}

.accordion-header {
    padding: 1.8rem 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s;
}

.accordion-header i {
    color: var(--accent-lavender);
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    padding: 0 2.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 2.5rem 2rem;
}

.accordion-item.active .accordion-header {
    color: var(--accent-lavender);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}