* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #020617);
    color: #e5e7eb;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.site-header {
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 20px 28px;
    margin-bottom: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-link:hover {
    color: #22c55e;
}

.logo-wrapper a {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.logo-wrapper a:hover {
    opacity: 0.85;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    height: 5rem;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.header-center h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

.header-center p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.card-wrapper {
    display: flex;
    justify-content: center;
}

.card {
    width: 100%;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.center {
    display: flex;
    justify-content: center;
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.muted {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #e5e7eb;
    font-size: 1rem;
}

input::placeholder {
    color: #64748b;
}

button,
.link-btn {
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.primary-btn {
    background: #22c55e;
    color: #022c22;
    border: none;
}

.primary-btn:hover {
    background: #16a34a;
}

.secondary-btn {
    background: #2563eb;
    color: white;
}

.secondary-btn:hover {
    background: #1d4ed8;
}

.buy-wrapper {
    display: flex;
    justify-content: center;
}

.link-btn {
    width: auto;
    min-width: 180px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 22px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #1e293b;
}

.divider span {
    padding: 0 10px;
    font-size: 0.75rem;
    color: #64748b;
}

.plan-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.plan-link .plan-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.plan-link:hover .plan-card {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-color: #22c55e;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.plan-category {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 3rem;
}

.plan-category>.category-title {
    grid-column: 1 / -1;
}

.category-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-card {
    position: relative;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.plan-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f8fafc;
}

.capacity-badge {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #60a5fa;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: inline-block;
    font-weight: 500;
}

.plan-duration {
    color: #38bdf8;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-top: 6px;
    margin-bottom: 16px;
}

.plan-features {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.feature-check {
    color: #22c55e;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text {
    line-height: 1.4;
}

.plan-includes {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.includes-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.data-amount {
    font-size: 1.3rem;
    font-weight: 600;
    color: #22c55e;
}

.data-label {
    font-size: 0.8rem;
    color: #94a3b8;
    display: none;
}

.reserve-btn {
    margin-top: 20px;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    width: 100%;
    white-space: nowrap;
}

.reserve-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.reserve-btn:active {
    transform: translateY(0);
}

.plan-card.featured {
    border-color: #2563eb;
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #2563eb;
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 999px;
}

.footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

/* Updated Modal Styling to match BATNET theme */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.85); /* Matches body background with transparency */
    backdrop-filter: blur(12px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #020617; /* Matches card background */
    padding: 40px 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    color: #e5e7eb;
    position: relative;
    border: 1px solid #1e293b;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
}

.modal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-align: center;
    color: #f8fafc;
}

#selected-plan-text {
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

#selected-plan-text strong {
    color: #38bdf8; /* Blue highlight for plan name */
}

.close-modal {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #f8fafc;
}

.form-group { 
    margin-bottom: 18px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    color: #94a3b8; 
    font-size: 0.85rem; 
    font-weight: 500;
}

/* Inherits the look of your other inputs */
.form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #e5e7eb;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #22c55e; /* Green focus like the cards */
}

/* Matched to your .primary-btn style */
.pay-submit-btn {
    width: 100%;
    padding: 16px;
    background: #22c55e;
    color: #022c22;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background 0.2s, transform 0.1s;
}

.pay-submit-btn:hover { 
    background: #16a34a; 
    transform: translateY(-1px);
}

.pay-submit-btn:active {
    transform: translateY(0);
}


@media (max-width: 768px) {
    .container {
        padding: 15px 20px 60px;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        min-height: unset;
    }

    .logo-wrapper {
        width: 100%;
        justify-content: center;
    }

   .logo {
        height: 5.5rem;
        width: auto;
        border-radius: 10px;
      }

    .header-center {
        position: static;
        transform: none;
        text-align: center;
        display: none;
    }

    .header-center h1 {
        font-size: 1.4rem;
    }

    .center-single-card .plan-link {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .plan-category {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
        gap: 30px;
    }

    .single-card-center .plan-link {
        grid-column: 2;
    }

    .single-card-center {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure the wrapper you added doesn't break the grid layout */
.center-single-card {
    display: contents;
}

/* Terms & Conditions Checkbox Styling */
.terms-checkbox {
    margin-top: 8px;
    margin-bottom: 8px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #22c55e;
    flex-shrink: 0;
    order: -1;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.terms-link {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #22c55e;
}

/* For the basic checkbox implementation in plans.html */
.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    cursor: pointer;
    accent-color: #22c55e;
    vertical-align: middle;
}

.terms-checkbox label[for="agreeTerms"] {
    display: inline;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1.5;
    vertical-align: middle;
}

.terms-checkbox label[for="agreeTerms"] a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-checkbox label[for="agreeTerms"] a:hover {
    color: #22c55e;
}



@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .plan-card {
        padding: 34px;
    }

    .plan-price {
        font-size: 1.5rem;
    }

    .data-amount {
        font-size: 1.6rem;
    }
}


/* Plan Actions (Reserve + Explore buttons) */
.plan-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.explore-btn {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.explore-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.explore-btn:active {
    transform: translateY(0);
}

.plan-actions .reserve-btn {
    flex: 1;
    margin-top: 0;
    white-space: nowrap;
    padding: 10px 8px;
    font-size: 0.75rem;
}

/* Image Gallery Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.modal-content-gallery {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(30, 41, 59, 0.8);
    padding: 8px;
    border-radius: 10px;
}

.modal-tab {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid transparent;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-tab.active {
    color: #fff;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
}

.modal-tab-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-tab-content.hidden {
    display: none;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.floor-plan-image {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
}

.floor-plan-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close-gallery {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
    z-index: 10;
}

.modal-close-gallery:hover {
    color: #ef4444;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.modal-caption-gallery {
    color: #fff;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Mobile Responsive for Gallery */
@media (max-width: 768px) {
    .plan-actions {
        flex-direction: column;
    }

    .explore-btn,
    .plan-actions .reserve-btn {
        width: 100%;
    }

    .modal-tabs {
        gap: 6px;
        padding: 6px;
        width: 100%;
    }

    .modal-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1;
    }

    .floor-plan-image {
        max-width: 95vw;
        max-height: 70vh;
        padding: 10px;
    }

    .floor-plan-caption {
        font-size: 0.9rem;
        text-align: center;
    }

    .modal-nav {
        padding: 15px 10px;
        font-size: 1.5rem;
    }

    .modal-nav.prev {
        left: 10px;
    }

    .modal-nav.next {
        right: 10px;
    }

    .modal-caption-gallery {
        font-size: 0.9rem;
        text-align: center;
    }
}
