body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

.dashboard-page .main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: auto;
}

.dashboard-main-content {
    flex-grow: 1;
    padding: 30px 20px 50px;
}

.dashboard-header {
    width: 100%;
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e42121;
    font-size: 1.8em;
    font-weight: bold;
}

.logo-image {
    height: 40px;
    margin-right: 10px;
}

.profil-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.profil-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.profil-nav a:hover,
.profil-nav a.active-nav {
    color: #e42121;
}

.main-footer {
    width: 100%;
    background-color: #333;
    color: white;
    padding: 40px 20px;
    margin-top: auto;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.footer-left {
    flex: 2;
    min-width: 250px;
}

.footer-left h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #e42121;
}

.footer-left p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #ccc;
}

.footer-links {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.footer-links div {
    flex: 1;
    min-width: 120px;
}

.footer-links h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: white;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #e42121;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #e42121;
}

.social-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;           
    padding: 9px 10px 20px 30px;                    
    border-radius: 12px;             
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    margin-bottom: 35px; 
    flex-wrap: wrap;
}

.title-section > div {
    max-width: 50%; 
}

.title-section .plus-title {
    font-size: 2.5rem;                
    font-weight: 800;
    color: #e42121;
    margin-bottom: 8px;
}

.title-section .plus-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

.title-section .title-logo {
    height: 180px; 
    object-fit: contain;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .title-section {
        flex-wrap: nowrap;       
        justify-content: flex-start;
        align-items: center;     
        gap: 15px;               
        padding: 15px 20px 20px 20px;
    }

    .title-section > div {
        flex: 1 1 auto;          
    }

    .title-section .title-logo {
        height: auto;
        max-height: 120px;      
        width: auto;
        flex-shrink: 0;   
        margin-left: auto;       
    }

    .title-section .plus-title {
        font-size: 1.8rem;       
    }

    .title-section .plus-subtitle {
        font-size: 0.95rem;
    }
}

.membership-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.membership-card {
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(231,76,60,0.2);
    border-color: #E74C3C;
}

.card-title {
    color: #E74C3C;
    margin-bottom: 12px;
    font-size: 1.6em;
}

.card-price {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

.card-price.best-value {
    color: #E74C3C;
}

.card-benefits {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-benefits li {
    font-size: 1em;
    color: #555;
    display: flex;
    align-items: center;
}

.check-icon {
    color: #28a745;
    margin-right: 10px;
    min-width: 20px;
}

.membership-card.primary-package {
    border: 3px solid #E74C3C;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(231,76,60,0.2);
}

.package-label {
    position: absolute;
    top: 0;
    right: 0;
    background: #E74C3C;
    color: #fff;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.9em;
    border-radius: 0 12px 0 12px;
}

.btn-select-package {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    background: #E74C3C;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-select-package:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.primary-package .primary-btn-glow {
    box-shadow: 0 5px 15px rgba(231,76,60,0.4);
}

.primary-package .primary-btn-glow:hover {
    box-shadow: 0 7px 20px rgba(231,76,60,0.6);
}

.advertisement-section {
    padding: 35px;
    border: 2px dashed #E74C3C;
    border-radius: 15px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ad-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: 700;
}

.ad-description {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1em;
    line-height: 1.5;
}

.ad-contact {
    font-weight: 600;
    margin-bottom: 25px;
    color: #E74C3C;
    font-size: 1.1em;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-whatsapp:hover {
    background-color: #159262;
    transform: translateY(-2px);
}

.whatsapp-icon {
    margin-right: 8px;
}

.hamburger-btn {
    display: none;
}

@media (max-width: 768px) {
    .dashboard-header .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        position: relative;
    }

    .logo-link {
        font-size: 1.8em;
    }

    .hamburger-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #e42121;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 1.1rem;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
        transition: transform 0.12s ease, box-shadow 0.12s ease;
    }

    .hamburger-btn:active {
        transform: scale(0.98);
    }

    .profil-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        min-width: 180px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.18);
        padding: 6px 0;
        z-index: 10002;
        overflow: hidden;
    }

    .profil-nav.active {
        display: block;
        animation: slideDown 180ms ease-out;
    }

    .profil-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .profil-nav ul li a {
        display: block;
        padding: 10px 16px;
        color: #222;
        text-decoration: none;
        font-weight: 600;
    }

    .profil-nav ul li a:hover {
        background: #fff5f5;
        color: #e42121;
    }

    .profil-nav ul li + li a {
        border-top: 1px solid rgba(0,0,0,0.06);
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .main-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-left,
    .footer-links {
        width: 100%;
        text-align: left;
    }

    .footer-links div {
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }

    .plus-title {
        font-size: 2em;
    }

    .plus-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .membership-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .membership-card,
    .advertisement-section {
        padding: 25px;
    }

    .card-price {
        font-size: 2.2em;
    }

    .btn-select-package,
    .btn-whatsapp {
        padding: 12px;
        font-size: 1em;
    }
}

@media (min-width: 769px) {
    .profil-nav {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    .profil-nav ul {
        display: flex;
        gap: 25px;
        align-items: center;
    }
    .hamburger-btn {
        display: none;
    }
}

.modal {
    display: flex;
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.modal-content {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 90%;
    position: relative;
    animation: modalSlideDown 0.35s ease-out;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #e42121;
    text-decoration: none;
}

.modal-title {
    color: #e42121;
    font-size: 1.8em;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.modal-message {
    font-size: 1em;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

.modal-message strong {
    font-weight: 700;
}

.promo-section {
    margin-bottom: 20px;
}

.promo-section label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.promo-section input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.2s ease;
    margin-bottom: 6px;
    box-sizing: border-box;
}

.promo-section input[type="text"]:focus {
    border-color: #e42121;
    box-shadow: 0 0 0 3px rgba(228, 33, 33, 0.1);
    outline: none;
}

.promo-detail {
    font-size: 0.85em;
    color: #777;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

#cancelPurchaseBtn,
#confirmPurchaseBtn {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

#cancelPurchaseBtn {
    background: #f3f3f3;
    color: #444;
}

#cancelPurchaseBtn:hover {
    background: #e0e0e0;
}

#confirmPurchaseBtn {
    background: linear-gradient(135deg, #e42121, #c0392b);
    color: #fff;
    box-shadow: 0 6px 15px rgba(228, 33, 33, 0.25);
}

#confirmPurchaseBtn:hover {
    background: linear-gradient(135deg, #c0392b, #a92828);
    transform: translateY(-1px);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-10px);
}

@keyframes modalSlideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .modal-content {
        margin: 15px;
        width: auto;
    }
    .modal-actions {
        flex-direction: column;
    }
}
