
/*=============================Profile fragment=============================*/

.profile-summary{
    background: linear-gradient(135deg, #344767 0%, #2a3a52 100%);
    color: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
}

.profile-summary::after{
    content:"";
    position:absolute;
    top:-40px; right:-40px;
    width:180px; height:180px;
    background: rgba(255,255,255,0.07);
    border-radius:50%;
}

.profile-summary__left{
    display:flex;
    align-items:center;
    gap:14px;
    min-width: 0;
}

.profile-summary__avatar{
    width:72px;
    height:72px;
    border-radius:50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.35);
    flex: 0 0 auto;
}


.profile-summary__meta{
    display:flex;
    flex-direction:column;
    gap: 3px;
    min-width: 0;
}

.profile-summary__name{
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-summary__email{
    font-size: 0.92rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-summary__right{
    display:flex;
    align-items:center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.credits{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.16);
}

.chip b{ font-weight: 900; }

.chip--plan{
    background: rgba(255,255,255,0.18);
}

.chip--muted{
    opacity: 0.9;
}

.chip--cta{
    background: #fff;
    color: #344767;
    border: 1px solid rgba(255,255,255,0.35);
    text-decoration: none;
    z-index: 5;

}
.chip--cta span{
    display:flex;
    align-items:center;
    gap: 7px;
}
.chip--cta:hover{
    transform: scale(1.03);
}

.profile-note{
    margin: 10px 0 18px;
    background: rgba(255,255,255,0.89);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #4b5563;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    border-left: 4px solid #344767;
    animation: fadeInUp 0.6s ease both;
}
.profile-note i{
    color: #344767;
    margin-top: 2px;
}
.profile-note b{
    color: #344767;
}

.form-section {
    background: rgba(255, 255, 255, 0.89); /* ← slightly transparent */
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 1;
    position: relative;
    padding: 35px 25px 50px 25px;
    animation: fadeInUp 0.6s ease both;
}
.form-section h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Grid Layouts */
.form-grid {
    display: grid;
    gap: 15px;
}
.two-column {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.one-column {
    grid-template-columns: 1fr;
}

/* Inputs and Labels */
label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: small;
    color: #5e5d5d;
}

input, textarea {
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    margin-top: 5px;
    transition: border 0.2s ease;
    justify-content: flex-start;
    font-weight: 500;
}
input:focus,
textarea:focus {
    border-color: #344767;
    outline: none;
}
textarea {
    resize: vertical;
    min-height: 120px;
}
input::placeholder,
textarea::placeholder {
    color: #959595;         /* light gray placeholder */
    font-weight: 400;    /* normal weight */
    font-style: italic;  /* optional */
    font-size: 14px;
}


/* Button */
.form-footer {
    text-align: center;
    margin-top: 20px;
}
.base-btn {
    padding: 9px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.save-btn {
    background: #344767;
    color: white;
}

.base-btn:hover {
    transform: scale(1.05);
}

/* Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100dvh;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup {
    background: #0f172a;
    border-radius: 12px;
    padding: 30px;
    width: 350px;
    text-align: center;
    color: white;
}

.popup-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    gap: 10px;
}
.primary-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    background: #344767;
    padding: 14px 35px;
    font-weight: bold;
}

.primary-btn:hover {
    filter: brightness(1.1);
}

.ghost-btn {
    background: transparent;
    color: #cbd5f5;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 35px;
    font-weight: bold;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}


.guest-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100dvh - 80px);
}

.guest-card {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 400px;
    animation: fadeInUp 0.6s ease none;
}
.guest-card i {
    color: #344767;
    margin-bottom: 20px;
}
.guest-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.guest-card p {
    color: #555;
    margin-bottom: 25px;
}

.guest-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-login, .btn-register {
    padding: 7px 25px 9px 25px;
    border-radius: 8px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login {
    background: #344767;
    color: white;
    border: 2px solid #344767;
}
.btn-login i {
    color: white;
    padding: 0;
    margin: 0;
}

.btn-register {
    background: white;
    color: #344767;
    border: 2px solid #344767;
}
.btn-register i {
    color: #344767;
    padding: 0;
    margin: 0;
}

.btn-login:hover, .btn-register:hover {
    transform: scale(1.05);
}

/* --- Subscription Page --- */
/* ========== Subscription (Credits-first) ========== */

.sub-page{
    padding: 0 50px;
    color: #333;
}

.sub-hero{
    width: 100%;
    background: linear-gradient(135deg, #344767 0%, #2a3a52 100%);
    color: #fff;
    padding: 34px 40px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 26px;
    animation: fadeInUp 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.sub-hero::after{
    content:"";
    position:absolute;
    top:-35px; right:-35px;
    width:160px; height:160px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.sub-hero::before{
    content:"";
    position:absolute;
    bottom:-45px; left:-45px;
    width:220px; height:220px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.sub-hero h1{
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}
.sub-hero p{
    color: #e6e6e6;
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
}

.sub-hero__badges{
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}
.sub-hero__badges span{
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    display:flex;
    align-items:center;
    gap: 8px;
}

.sub-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.sub-card{
    background: #fff;
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid rgba(52, 71, 103, 0.14);
    position: relative;
    animation: fadeInUp 0.6s ease both;
}

.sub-card--popular{
    border: 3px solid #344767;
    transform: translateY(-2px);
}

.sub-pill{
    position:absolute;
    top: -12px;
    left: 18px;
    background: #344767;
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.sub-card__head h3{
    font-size: 1.35rem;
    color: #344767;
    font-weight: 900;
    margin-bottom: 6px;
}

.sub-price{
    display:flex;
    align-items: baseline;
    gap: 10px;
}
.sub-price__old{
    color:#9aa0aa;
    text-decoration: line-through;
    font-weight: 800;
}
.sub-price__now{
    font-size: 1.8rem;
    font-weight: 950;
    color:#111;
}

.sub-discount{
    margin-top: 6px;
    color: #1a73e8;
    font-weight: 800;
    font-size: 0.92rem;
}

.sub-credits{
    margin-top: 16px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sub-credit-box{
    border-radius: 16px;
    padding: 14px 14px 12px;
    background: rgba(52, 71, 103, 0.06);
    border: 1px solid rgba(52, 71, 103, 0.12);
}
.sub-credit-box__label{
    color: #5b6472;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.sub-credit-box__value{
    font-size: 1.6rem;
    font-weight: 950;
    color: #344767;
}

.sub-btn{
    width: 100%;
    margin-top: 16px;
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid #344767;
}
.sub-btn:hover{ transform: scale(1.03); }

.sub-btn--filled{
    background: #344767;
    color: #fff;
}
.sub-btn--outline{
    background: #fff;
    color: #344767;
}

.sub-mini{
    margin-top: 10px;
    text-align: center;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.92rem;
}

.sub-includes{
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 6px solid #344767;
    animation: fadeInUp 0.6s ease both;
}

.sub-includes__head h2{
    color: #344767;
    font-weight: 950;
    font-size: 1.35rem;
    margin-bottom: 6px;
}
.sub-includes__head p{
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 16px;
}

.sub-includes__grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 12px;
}

.sub-inc-item{
    background: rgba(52, 71, 103, 0.06);
    border: 1px solid rgba(52, 71, 103, 0.12);
    border-radius: 14px;
    padding: 12px 12px;
    font-weight: 800;
    color: #2a3342;
    display:flex;
    align-items:center;
    gap: 10px;
}

.sub-inc-item i{
    color:#344767;
}

.sub-free-note{
    margin-top: 16px;
    background: rgba(52, 71, 103, 0.06);
    border: 1px solid rgba(52, 71, 103, 0.12);
    border-radius: 14px;
    padding: 14px;
}
.sub-free-note__title{
    font-weight: 950;
    color: #344767;
    display:flex;
    align-items:center;
    gap: 10px;
    margin-bottom: 6px;
}
.sub-free-note__text{
    color: #5b6472;
    font-weight: 700;
}

.sub-footnote{
    margin-top: 16px;
    text-align:center;
    color: #7b8190;
    font-weight: 700;
    font-size: 0.92rem;
}

.sub-quality{
    margin-top: 18px;
    background: #fff;
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 6px solid #344767;
    animation: fadeInUp 0.6s ease both;
}

.sub-quality__icon{
    font-size: 1.8rem;
    color: #344767;
    flex-shrink: 0;
    margin-top: 2px;
}

.sub-quality__content h3{
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #344767;
}

.sub-quality__content ul{
    margin: 0;
    padding-left: 18px;
    color: #444;
    font-weight: 700;
    line-height: 1.6;
}

.sub-quality__content li{
    margin-bottom: 4px;
}



/* --- Legal/Terms Page Styles --- */

.legal-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
}

.legal-card {
    background: #fff;
    width: 100%;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Reusing your existing animation */
    animation: fadeInUp 0.6s ease both;
    position: relative;
    border-top: 6px solid #344767; /* Brand accent on top */
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.4rem;
    color: #344767;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.legal-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.legal-section li {
    margin-bottom: 8px;
}

/* Highlight box for Refund Policy (Crucial for Paddle) */
.policy-highlight {
    background: #f8f9fa;
    border-left: 4px solid #344767;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.policy-highlight strong {
    color: #222;
}

.legal-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}
.about-hero-banner,
.profile-hero-banner {
    width: 100%;
    background: linear-gradient(135deg, #344767 0%, #2a3a52 100%);
    color: white;
    padding: 55px 40px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease both;
    position: relative;
    overflow: hidden;
}
.profile-hero-banner {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center;
    padding: 30px 40px;
}
.about-hero-banner h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.about-hero-banner p {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-style: italic;
}
/* Decorative subtle shapes */
.about-hero-banner::after,
.profile-hero-banner::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.about-hero-banner::before,
.profile-hero-banner::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}


/*==================paypal modal=====================*/
.pp-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.pp-modal.is-open { display: block; }

.pp-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

.pp-modal__dialog {
    position: relative;
    width: min(520px, calc(100vw - 24px));
    margin: 7dvh auto;
    max-height: calc(100dvh - 14dvh);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}

.pp-modal__close {
    position: absolute;
    top: 12px; right: 12px;
    border: none;
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 16px;
    fill: white;
    font-weight: bold;
    color: white;
}
.pp-modal__close:hover {
    transform: scale(1.05);
}

.pp-modal__header {
    padding: 18px 20px 10px;
    background: linear-gradient(135deg, #344767 0%, #2a3a52 100%);
    color: #fff;
}
.pp-modal__header h2 { margin: 0 0 6px; font-size: 1.2rem; }
.pp-modal__header p { margin: 0; opacity: 0.9; font-size: 0.9rem; }

.pp-modal__summary { padding: 14px 20px; border-bottom: 1px solid #eee; background: #fff;}
.pp-plan { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.pp-plan__name { font-weight: 800; }
.pp-plan__desc { font-size: 0.85rem; color: #6b7280; margin-top: 2px; font-weight: 600 }
.pp-plan__price { font-weight: 900; font-size: 1.1rem; }

.pp-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; color: #4b5563; font-size: 0.85rem; }
.pp-badges span { background: #f3f4f6; padding: 6px 10px; border-radius: 999px; }

.pp-modal__body { padding: 16px 20px 20px;  overflow: auto; -webkit-overflow-scrolling: touch; background: #fff;}
.pp-hint { margin-top: 10px; color: #6b7280; font-size: 0.85rem; }

.pp-modal__footer { padding: 12px 20px 18px; border-top: 1px solid #eee; color: #6b7280; background: #fff;}
.pp-modal__footer a { color: #344767; text-decoration: underline; }







@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}





@media (max-width: 900px) {

    .profile-summary{
        padding: 16px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .profile-summary__right{justify-content: flex-start;}

    .profile-summary__email,
    .profile-summary__name{max-width: 100%;}


    .profile-section{ margin-bottom: 20px; }
    .profile-pic{width: 76px; height: 76px;}




    .form-section{padding: 24px 18px 28px; border-radius: 14px; }
    .form-section h2{ font-size: 1.35rem; }

    .two-column{ grid-template-columns: 1fr; }

    input, textarea{padding: 9px; font-size: 0.98rem;}
    .base-btn{padding: 9px 18px; font-size: 0.98rem;}

    .sub-page{ padding: 0 18px; }
    .sub-grid{ grid-template-columns: 1fr; }
    .sub-includes__grid{ grid-template-columns: repeat(2, minmax(180px, 1fr)); }

    .legal-card{ padding: 32px 22px; max-width: 920px; margin: 0 auto;}

    .legal-section{ margin-bottom: 28px; }

    .legal-section h2{ font-size: 1.25rem; }

    .legal-section p,
    .legal-section li{ font-size: 0.98rem; line-height: 1.75;}

    .about-hero-banner{ padding: 34px 22px; margin-bottom: 24px;}
    .about-hero-banner h1{font-size: 2.0rem; }
    .about-hero-banner p{font-size: 1.0rem;}
    .guest-card{width: min(520px, 100%); padding: 32px 22px;}
}





@media (max-width: 600px) {
    .profile-summary__left{ gap: 10px; }
    .profile-summary__avatar{ width: 46px; height: 46px; }
    .chip{ width: 100%; justify-content: space-between; }
    .credits{ width: 100%; }
    .profile-note{font-size: 0.85rem; line-height: 1.5; }

    .form-section{ padding: 18px 14px 20px; border-radius: 12px; }

    .form-section h2{ font-size: 1.2rem; }

    label{ font-size: 0.85rem; }

    input, textarea{ padding: 8px; font-size: 0.95rem; }

    textarea{ min-height: 110px; }

    input::placeholder,
    textarea::placeholder{ font-size: 13px; }

    .base-btn{ width: 100%; padding: 10px 14px; font-size: 0.95rem; }

    .sub-hero{ padding: 22px 18px; }
    .sub-hero h1{ font-size: 1.7rem; }
    .sub-hero p{ font-size: 0.95rem; }
    .sub-includes{ padding: 18px; }
    .sub-includes__grid{ grid-template-columns: 1fr; }
    .sub-credits{ grid-template-columns: 1fr; }
    .sub-quality{flex-direction: column; gap: 10px;}

    .legal-card{ padding: 22px 14px; border-radius: 14px; }

    .legal-section h2{ font-size: 1.15rem; }

    .legal-section p,
    .legal-section li{ font-size: 0.95rem; line-height: 1.8;  }

    .about-hero-banner{  padding: 24px 14px; }

    .about-hero-banner h1{ font-size: 1.55rem; }

    .about-hero-banner p{ font-size: 0.95rem; }

    .guest-card{ padding: 24px 14px; }

    .guest-actions{ flex-direction: column; gap: 12px; }

    .btn-login, .btn-register{ width: 100%; justify-content: center; }

    .pp-modal__dialog{  margin: 6dvh auto;}

    .pp-modal__header{  padding: 14px 14px 8px; }
    .pp-modal__summary,
    .pp-modal__body,
    .pp-modal__footer{ padding-left: 14px; padding-right: 14px; }
}
