/* =========================================
   1. IMPORT FONT & BASICS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

/* Reset for Plugin Elements */
.pw-container * {
    box-sizing: border-box;
}

/* =========================================
   2. POPUP OVERLAY (Parda)
   ========================================= */
/* Ye puri screen ko cover karega aur piche ka content blur karega */
.pw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); /* Halka transparent white */
    backdrop-filter: blur(15px); /* Strong Blur Effect */
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    z-index: 99999; /* Sabse upar */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   3. MAIN CONTAINER (Mobile App Look)
   ========================================= */
.pw-container {
    width: 100%; /* Mobile par thoda gap rahe */
    max-width: 380px; /* Desktop par zyada chauda na ho */
    background: #ffffff;
    border-radius: 25px; /* Gol Kinare */
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); /* Soft Shadow */
    overflow: hidden; /* Shapes ko bahar nikalne se roke */
    position: relative;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 30px;
    margin: 0 auto; /* Center alignment if used inline */
    animation: pwSlideUp 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bounce Animation */
}

/* Popup aane ka animation */
@keyframes pwSlideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   4. PINK WAVES (Decoration Shapes)
   ========================================= */
/* Upar wala gola */
.pw-header-shape {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: #ff54a1; /* Pink Color */
    border-radius: 50%;
    z-index: 1;
}

/* Niche wala wave */
.pw-footer-shape {
    position: absolute;
    bottom: -112px;
    left: 5px;
    width: 120%;
    height: 240px;
    background: #ff54a1;
    border-radius: 50% 50% 0 0;
    transform: rotate(-5deg);
    z-index: 1;
}

/* Content Area Wrapper */
.pw-content {
    position: relative;
    z-index: 2; /* Shapes ke upar dikhe */
    padding: 40px 30px;
}

/* =========================================
   5. TYPOGRAPHY (Text Styles)
   ========================================= */
.pw-title {
    font-size: 26px;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
    margin-top: 30px;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.pw-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

/* Error Message Box */
.pw-error {
    color: #e74c3c;
    background: #fdecea;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid #fadbd8;
    font-weight: 600;
}

/* =========================================
   6. FORM INPUTS
   ========================================= */
.pw-group {
    margin-bottom: 15px;
}

.pw-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #f0f0f0;
    border-radius: 50px; /* Pill Shape */
    background: #ffffff;
    font-size: 14px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Halka Shadow */
    outline: none;
    box-sizing: border-box;
    transition: 0.3s;
}

.pw-input:focus {
    border-color: #d63384;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.15);
}

/* Auto Username Field (Readonly style) */
#pw_username {
    background: #f8f9fa;
    color: #888;
    cursor: not-allowed;
    border: 1px dashed #ccc;
}

/* =========================================
   7. BUTTONS (UPDATED - WHITE STYLE)
   ========================================= */

/* Main Button (Create Account / Login) - WHITE Background */
.pw-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    
    /* White Background & Border */
    background: #ffffff !important; 
    border: 1px solid #f0f0f0 !important; 
    
    /* Text Color (Black/Dark) taaki White pe dikhe */
    color: #333 !important; 
    
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Shadow taaki button utha hua lage */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); 
    
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-align: center;
}

/* Hover Effect (Mouse le jane par) */
.pw-btn:hover {
    background: #fcfcfc !important;
    color: #d63384 !important; /* Hover karne par text Pink ho jayega */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.2); /* Pink Shadow */
}

/* Secondary Button (Outline) - Isko waisa hi rakha hai */
.pw-btn-outline {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 2px solid #d63384;
    border-radius: 50px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.pw-btn-outline:hover {
    background: #f7f7f7;
    color: white;
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.3);
}


/* =========================================
   8. PROFILE MODAL SPECIFIC STYLES
   ========================================= */

/* Close 'X' Button inside Profile */
.pw-close-profile {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    line-height: 1;
}
.pw-close-profile:hover {
    color: #d63384;
    transform: scale(1.1);
}

/* Letter Avatar (Center Bada Circle) */
.pw-letter-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d63384, #ff6b6b);
    border-radius: 50%;
    margin: 0 auto; /* Center alignment */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(214, 51, 132, 0.4);
    border: 4px solid #fff;
    text-transform: uppercase;
}

/* Profile Card specific adjustments */
.pw-profile-card {
    min-height: auto; /* Allow auto height */
}

/* Links */
a {
    text-decoration: none;
}
