/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f7f5f2;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-inner {
    display: flex;
    align-items: center;
    padding: 5px 24px;
}

.navbar-logo {
    flex: 1;
    flex-shrink: 0;
}

.navbar-logo img {
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.navbar-menu a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: #2c2c2c;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background-color: #fdf1f0;
    color: #c0392b;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== MAIN CONTENT AREA ===== */
.page-wrapper {
    flex: 1;
    max-width: 1200px;
    margin: 36px auto;
    padding: 0 20px;
}

.page-content {
    background-color: #f7f5f2;
    border: 1.5px solid #e8b4b0;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(192, 57, 43, 0.12);
    padding: 40px;
    min-height: 480px;
    overflow: hidden;
}

/* ===== HOME PAGE ===== */
.home-section {
    display: flex;
    align-items: stretch;
    gap: 48px;
}

.home-text {
    flex: 1;
    min-width: 0;
}

.home-text h1 {
    font-size: 1.9rem;
    color: #c0392b;
    margin-bottom: 18px;
    line-height: 1.3;
}

.home-text p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #444;
}

.home-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.btn-primary {
    background-color: #c0392b;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

.btn-primary:hover {
    background-color: #a93226;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
}

.btn-link {
    color: #c0392b;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-link:hover {
    border-bottom-color: #c0392b;
    color: #a93226;
}

.home-image {
    flex-shrink: 0;
    width: 42%;
    max-width: 460px;
}

.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    display: block;
}

/* ===== PLANS PAGE ===== */
.plans-header {
    text-align: center;
    margin-bottom: 32px;
}

.plans-header h2 {
    font-size: 1.7rem;
    color: #c0392b;
    margin-bottom: 8px;
}

.plans-header p {
    color: #666;
    font-size: 1rem;
}

.plans-loading,
.plans-error {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1rem;
}

.plans-error {
    color: #c0392b;
}

.carousel-wrapper {
    position: relative;
}

.carousel-viewport {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #c0392b;
    background: #fff;
    color: #c0392b;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.carousel-arrow:hover:not(:disabled) {
    background: #c0392b;
    color: #fff;
}

.carousel-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #e8b4b0;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: #c0392b;
    transform: scale(1.4);
}

.plans-row {
    display: flex;
    gap: 20px;
    padding: 4px 2px 8px;
}

.plan-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid #e8b4b0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.1);
    padding: 28px 24px 22px;
    scroll-snap-align: start;
    transition: box-shadow 0.2s, transform 0.2s;
}

.plan-card:hover {
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.18);
    transform: translateY(-3px);
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 18px;
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 2px solid #fdf1f0;
}

.plan-features {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}

.plan-features li {
    font-size: 0.95rem;
    color: #444;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #c0392b;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
}

.plan-btn {
    width: 100%;
    padding: 11px 0;
    background-color: #c0392b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.25);
}

.plan-btn:hover {
    background-color: #a93226;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.35);
}


/* ===== CAROUSEL MOBILE ===== */
@media (max-width: 559px) {
    .carousel-controls {
        display: none;
    }

    .carousel-viewport {
        overflow-x: hidden;
        overflow-y: visible;
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    .plans-row {
        flex-direction: column;
        gap: 16px;
    }

    .plan-card {
        width: 100% !important;
    }
}

/* ===== NAVBAR ACTIONS (Cart + My Account) ===== */
.navbar-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 8px;
}

.nav-action-btn {
    border: 1.5px solid #c0392b;
    background: #fff;
    color: #c0392b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 14px;
    height: 36px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.cart-action-btn {
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding: 0 12px;
}

.account-action-btn {
    border-radius: 6px;
    white-space: nowrap;
}

.nav-action-btn:hover {
    background: #c0392b;
    color: #fff;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #e0e0e0;
    color: #888;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 4px;
    transition: background 0.2s, color 0.2s;
}

.cart-badge.has-item {
    background: #e53935;
    color: #fff;
}

/* ===== CART PAGE ===== */
.cart-header {
    margin-bottom: 28px;
}

.cart-header h2 {
    font-size: 1.7rem;
    color: #c0392b;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 60px 20px;
    color: #888;
    font-size: 1rem;
}

.cart-plan {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    border: 1.5px solid #e8b4b0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.1);
    gap: 16px;
}

.cart-plan-info {
    flex: 1;
    min-width: 0;
}

.cart-plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 12px;
}

.cart-plan-features {
    list-style: none;
    margin-bottom: 16px;
}

.cart-plan-features li {
    font-size: 0.92rem;
    color: #555;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-plan-features li:last-child { border-bottom: none; }

.cart-plan-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: #c0392b;
}

.cart-plan-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
}

.cart-remove-btn {
    flex-shrink: 0;
    background: none;
    border: 1.5px solid #e53935;
    color: #e53935;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.cart-remove-btn:hover {
    background: #e53935;
    color: #fff;
}

/* ===== CART PHONE ROW & TOTAL ===== */
.cart-phone-row {
    margin-top: 12px;
    border-top: 1.5px solid #fdf1f0;
    padding-top: 16px;
    align-items: center;
}

.cart-phone-img {
    width: 56px;
    height: 72px;
    object-fit: contain;
    border-radius: 6px;
    background: #f0ede9;
    margin-right: 16px;
    flex-shrink: 0;
}

.cart-phone-row .cart-plan-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-phone-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.cart-total {
    margin: 18px 0 24px;
    padding: 14px 18px;
    background: #fdf1f0;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #1a1816;
    text-align: right;
}

.cart-total strong {
    font-size: 1.35rem;
    color: #c0392b;
}

.cart-total span {
    font-size: 0.85rem;
    color: #666;
    margin-left: 4px;
}

/* ===== SHARED FORM STYLES (Cart + Checkout) ===== */
.cart-form,
.checkout-form {
    background: #fff;
    border: 1.5px solid #e8b4b0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.08);
}

.cart-form-title {
    font-size: 1.1rem;
    color: #c0392b;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1.5px solid #e4e0db;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.cart-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-header {
    margin-bottom: 28px;
}

.checkout-header h2 {
    font-size: 1.7rem;
    color: #c0392b;
    margin-bottom: 6px;
}

.checkout-header p {
    color: #666;
    font-size: 0.97rem;
}

.checkout-summary {
    margin-bottom: 20px;
}

.checkout-plan-tag {
    display: inline-block;
    background: #fdf1f0;
    color: #c0392b;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-back {
    background: none;
    border: 1.5px solid #aaa;
    color: #666;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-back:hover {
    border-color: #c0392b;
    color: #c0392b;
}

/* ===== SHARED CONTENT PAGES (About, FAQ header) ===== */
.content-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fdf1f0;
}

.content-header h2 {
    font-size: 1.7rem;
    color: #c0392b;
    margin-bottom: 8px;
}

.content-header p {
    color: #666;
    font-size: 1rem;
}

.content-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.content-block h3 {
    font-size: 1.1rem;
    color: #c0392b;
    margin-bottom: 10px;
    font-weight: 700;
}

.content-block p {
    color: #444;
    line-height: 1.75;
    font-size: 0.97rem;
}

.content-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-list li {
    padding: 10px 14px;
    background: #fdf1f0;
    border-left: 3px solid #c0392b;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

/* ===== FAQ PAGE ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1.5px solid #e8b4b0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: #c0392b;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #c0392b;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: #c0392b;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 16px;
    border-top: 1px solid #fdf1f0;
}

.faq-answer p {
    padding-top: 14px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.75;
}

/* ===== HOME PLANS SECTION ===== */
.home-plans-section {
    margin: 40px 0;
    padding-top: 40px;
    border-top: 1.5px solid #e4e0db;
}

.home-plans-intro {
    text-align: center;
    margin-bottom: 28px;
}

.home-plans-intro h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1816;
    margin-bottom: 10px;
}

.home-plans-intro p {
    color: #555;
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ===== BENEFITS SECTION (Home page) ===== */
.benefits-section {
    margin-top: 52px;
    padding-top: 36px;
    border-top: 2px solid #fdf1f0;
}

.benefits-title {
    font-size: 1.55rem;
    color: #c0392b;
    text-align: center;
    margin-bottom: 10px;
}

.benefits-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.97rem;
    margin-bottom: 32px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    background: #fff;
    border: 1.5px solid #e8b4b0;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.benefit-card:hover {
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.12);
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-block {
    padding: 20px;
    background: #fff;
    border: 1.5px solid #e8b4b0;
    border-radius: 10px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 6px;
}

.contact-block p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
}

.contact-link {
    display: inline-block;
    margin-top: 8px;
    color: #c0392b;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-link:hover { text-decoration: underline; }

.contact-form-wrap {
    background: #fff;
    border: 1.5px solid #e8b4b0;
    border-radius: 12px;
    padding: 28px 24px;
}

.contact-form-wrap h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form textarea {
    padding: 10px 12px;
    border: 1.5px solid #e4e0db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* ===== EMPTY PAGES ===== */
.empty-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    color: #aaa;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

/* ===== PAGE VISIBILITY ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== RESPONSIVE: TABLET (iPad) ===== */
@media (max-width: 900px) {
    .home-section {
        gap: 28px;
    }

    .home-image {
        width: 46%;
    }

    .navbar-menu a {
        padding: 7px 10px;
        font-size: 0.85rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cart-plan {
        flex-direction: column;
    }

    .cart-form-actions {
        flex-direction: column;
    }
    .hamburger {
        display: flex;
    }

    .navbar-inner {
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 2px;
        padding: 8px 0 4px;
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-menu a {
        font-size: 0.97rem;
        padding: 10px 12px;
        border-radius: 6px;
    }

    .home-section {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .home-image {
        width: 100%;
        max-width: 100%;
    }

    .home-text h1 {
        font-size: 1.45rem;
    }

    .page-content {
        padding: 24px 18px;
    }

    .page-wrapper {
        margin: 20px auto;
    }
}

/* ===== FORM MESSAGES ===== */
.form-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.form-success {
    background: #e6f9f0;
    color: #1a7a4a;
    border: 1px solid #b2dfcd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

/* ===== PHONES GRID ===== */
.phones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .phones-grid {
        grid-template-columns: 1fr;
    }
}

.phone-card {
    background: #fff;
    border: 1px solid #e4e0db;
    border-radius: 12px;
    padding: 28px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.phone-card:hover {
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.1);
}

.phone-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1816;
    line-height: 1.3;
}

.phone-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #c0392b;
}

.phone-img {
    width: 100%;
    max-width: 200px;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
    background: #f0ede9;
    padding: 8px;
}

.phone-img-fallback {
    width: 100%;
    max-width: 200px;
    height: 220px;
    border-radius: 8px;
    background: #fdf1f0;
    color: #c0392b;
    font-size: 2.5rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
}

/* ===== PAGE WRAPPER WIDE MODE (Change Plan) ===== */
.page-wrapper--wide {
    max-width: 1600px;
}

/* ===== PAGE WRAPPER FULL MODE (Phones) ===== */
.page-wrapper--full {
    max-width: 100%;
    padding: 0 12px;
}

.page-wrapper--full .page-content {
    padding: 32px 28px;
}

/* ===== CHANGE PLAN LOGIN ===== */
.cp-login-wrap {
    max-width: 640px;
    margin: 0 auto;
}

/* ===== RESULT PAGE ===== */
.res-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 48px 40px 40px;
    text-align: center;
}

.res-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.res-success {
    background-color: #e6f9f0;
    color: #1a9e5c;
    border: 2px solid #1a9e5c;
}

.res-error {
    background-color: #fdecea;
    color: #d32f2f;
    border: 2px solid #d32f2f;
}

.res-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1816;
    margin-bottom: 12px;
}

.res-message {
    color: #555;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.res-credentials {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
    text-align: left;
}

.res-credentials p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #333;
}

.res-credentials p:last-child {
    margin-bottom: 0;
}

.res-home-btn {
    display: inline-block;
    text-decoration: none;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #f7f5f2;
    color: #555;
    border-top: 1.5px solid #e4e0db;
    padding: 40px 24px 0;
    margin-top: auto;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.footer-col {
    flex: 1;
    min-width: 160px;
}

.footer-col-about {
    flex: 2;
    min-width: 220px;
}

.footer-col h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1816;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-col-about p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #666;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li {
    font-size: 0.88rem;
    color: #666;
}

.footer-links a {
    color: #c0392b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #a93226;
}


@media (max-width: 600px) {
    .footer-columns {
        flex-direction: column;
        gap: 24px;
    }
    .footer-col-about {
        flex: 1;
    }
}

/* ===== PLAN CATEGORY TOGGLE ===== */
.plan-cat-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.plan-cat-btn {
    padding: 9px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid #e8b4b0;
    background: #ffffff;
    color: #8a857e;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    line-height: 1;
    position: relative;
}

.plan-cat-btn:first-child {
    border-radius: 999px 0 0 999px;
}

.plan-cat-btn:last-child {
    border-radius: 0 999px 999px 0;
}

.plan-cat-btn:not(:first-child) {
    margin-left: -1.5px;
}

.plan-cat-btn.active {
    background: #c0392b;
    color: #ffffff;
    border-color: #c0392b;
    z-index: 1;
}

.plan-cat-btn:hover:not(.active) {
    background: #fdf1f0;
    color: #c0392b;
    border-color: #c0392b;
    z-index: 1;
}

/* ===== PORT-IN TOGGLE ===== */
.port-in-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 12px 14px;
    background: #f7f5f2;
    border: 1.5px solid #e4e0db;
    border-radius: 8px;
    cursor: pointer;
}

.port-in-toggle input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #c0392b;
    cursor: pointer;
    flex-shrink: 0;
}

.port-in-toggle label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1816;
    cursor: pointer;
    margin: 0;
}

#portInSection {
    background: #fdf1f0;
    border: 1.5px solid #e8b4b0;
    border-radius: 8px;
    padding: 16px 16px 4px;
    margin-top: 6px;
}
