/* ===================================
   PROFILE PAGE - MODERN BLUE DESIGN
   HARD-CODED COLORS - NO VARIABLES
   =================================== */

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 8px rgba(35, 61, 255, 0.08);
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    position: relative;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #050A30;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #233DFF;
}

.btn-secondary,
.btn-primary {
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary {
    background: transparent;
    color: #050A30;
    border: 2px solid #D1D5E0;
}

.btn-secondary:hover {
    border-color: #233DFF;
    color: #233DFF;
}

.btn-primary {
    background: linear-gradient(135deg, #233DFF 0%, #5CB6F9 100%);
    color: #FFFFFF;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 61, 255, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #050A30;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Profile Section */
.profile-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #F4F6FC 0%, #E8EBF5 100%);
    position: relative;
    overflow: hidden;
}

.profile-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(35, 61, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(92, 182, 249, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.profile-section .container {
    position: relative;
    z-index: 1;
}

/* Profile Header */
.profile-header {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(35, 61, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid #E8EBF5;
}

.profile-avatar {
    flex-shrink: 0;
    position: relative;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #233DFF 0%, #5CB6F9 100%);
    border-radius: 50%;
    z-index: -1;
}

.profile-avatar img,
.avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFFFFF;
}

.avatar-placeholder {
    background: linear-gradient(135deg, #233DFF 0%, #5CB6F9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Playfair Display', serif;
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #050A30;
    margin-bottom: 12px;
    line-height: 1.2;
}

.profile-username::after {
    content: '🎁';
    display: inline-block;
    margin-left: 12px;
    font-size: 0.8em;
}

.profile-bio {
    font-size: 18px;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 600px;
}

.profile-stats {
    display: flex;
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid #E8EBF5;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #050A30;
}

.stat-label {
    font-size: 14px;
    color: #4A5568;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wishlist Container */
.wishlist-container {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(35, 61, 255, 0.08);
    border: 1px solid #E8EBF5;
}

.wishlist-header {
    text-align: center;
    margin-bottom: 48px;
}

.wishlist-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: #050A30;
    margin-bottom: 12px;
}

.wishlist-header p {
    font-size: 18px;
    color: #4A5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Empty Wishlist */
.empty-wishlist {
    text-align: center;
    padding: 80px 40px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-wishlist h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #050A30;
    margin-bottom: 12px;
}

.empty-wishlist p {
    font-size: 16px;
    color: #718096;
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.wishlist-item {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(35, 61, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E8EBF5;
    position: relative;
}

.wishlist-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(35, 61, 255, 0.16);
    border-color: #5CB6F9;
}

.wishlist-item[data-priority="high"]:not(.is-purchased) {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
}

/* Priority Badge */
.priority-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Purchased Item Styling */
.wishlist-item.is-purchased {
    opacity: 0.8;
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #fff 0%, #d1fae5 100%);
}

.wishlist-item.is-purchased:hover {
    transform: translateY(-4px);
}

.status-badge.is-purchased {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #10b981;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge.is-purchased::before {
    content: '✓';
    font-size: 14px;
}

/* Item Image - OPTIMIZED FOR BETTER PRODUCT DISPLAY */
.wishlist-item .item-image {
    width: 100%;
    height: 280px;
    background: #FFFFFF;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #E8EBF5;
}

.wishlist-item .item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.4s ease;
    padding: 20px;
    max-width: 100%;
    max-height: 100%;
}

.wishlist-item:hover .item-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    background: linear-gradient(135deg, #F4F6FC 0%, #E8EBF5 100%);
}

/* Item Content */
.item-content {
    padding: 28px;
}

.item-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #050A30;
    margin-bottom: 12px;
    line-height: 1.3;
}

.item-description {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #233DFF 0%, #5CB6F9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

/* Buy Button */
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #233DFF 0%, #5CB6F9 100%);
    color: #FFFFFF;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(35, 61, 255, 0.3);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35, 61, 255, 0.4);
}

.btn-buy svg {
    flex-shrink: 0;
}

/* Purchased Button */
.btn-purchased {
    background: #F4F6FC !important;
    color: #718096 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.btn-purchased:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Info Banner */
.info-banner {
    background: linear-gradient(135deg, #CAE8FF 0%, rgba(92, 182, 249, 0.2) 100%);
    border: 2px solid #5CB6F9;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

.banner-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #050A30;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-content p {
    font-size: 17px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

/* Profile CTA */
.profile-cta {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #050A30 0%, #12229D 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.profile-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(35, 61, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(92, 182, 249, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.profile-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    position: relative;
}

.profile-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    position: relative;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 10, 48, 0.7);
    backdrop-filter: blur(4px);
    padding: 20px;
}

.modal-content {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 540px;
    box-shadow: 0 20px 60px rgba(5, 10, 48, 0.3);
    position: relative;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #718096;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F4F6FC;
}

.close-button:hover {
    background: #E8EBF5;
    transform: rotate(90deg);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #050A30;
    margin-bottom: 16px;
}

.modal-content p {
    font-size: 16px;
    color: #4A5568;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-content label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #050A30;
    margin-bottom: 10px;
}

.modal-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    margin: 0 0 8px 0;
    border: 2px solid #D1D5E0;
    border-radius: 12px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.modal-content textarea:focus {
    outline: none;
    border-color: #233DFF;
    box-shadow: 0 0 0 4px rgba(35, 61, 255, 0.1);
}

.char-count {
    display: block;
    font-size: 13px;
    color: #718096;
    text-align: right;
    margin-bottom: 24px;
}

.modal-content .btn-primary {
    width: 100%;
    margin-top: 16px;
}

/* Footer */
.footer {
    background: #050A30;
    color: #FFFFFF;
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 36px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 15px;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #5CB6F9;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #FFFFFF;
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Tip Button */
.btn-tip {
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Tip Amount Grid */
.tip-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.tip-amount-btn {
    padding: 20px;
    background: #F4F6FC;
    border: 2px solid #D1D5E0;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #050A30;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tip-amount-btn:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
}

.tip-amount-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #050A30;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 8px 16px rgba(35, 61, 255, 0.1);
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #F4F6FC;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
        width: 100%;
    }

    .nav-links .btn-secondary,
    .nav-links .btn-primary {
        display: block;
        text-align: center;
        margin-top: 8px;
    }

    .profile-section {
        padding: 100px 0 60px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }

    .profile-avatar::before {
        inset: -3px;
    }

    .profile-avatar img,
    .avatar-placeholder {
        width: 120px;
        height: 120px;
    }

    .avatar-placeholder {
        font-size: 48px;
    }

    .profile-username {
        font-size: 36px;
    }

    .profile-bio {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .profile-stats {
        justify-content: center;
        gap: 32px;
    }

    .wishlist-container {
        padding: 32px 20px;
    }

    .wishlist-header h2 {
        font-size: 32px;
    }

    .wishlist-header p {
        font-size: 16px;
    }

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

    .item-content {
        padding: 24px 20px;
    }

    .item-title {
        font-size: 20px;
    }

    .item-price {
        font-size: 32px;
    }

    .info-banner {
        padding: 28px 24px;
    }

    .banner-content h3 {
        font-size: 22px;
    }

    .banner-content p {
        font-size: 15px;
    }

    .profile-cta {
        padding: 48px 24px;
    }

    .profile-cta h2 {
        font-size: 32px;
    }

    .profile-cta p {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal-content {
        padding: 32px 24px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 28px;
        padding-right: 40px;
    }

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

@media (max-width: 480px) {
    .profile-username {
        font-size: 28px;
    }

    .profile-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stat {
        align-items: center;
    }

    .wishlist-header h2 {
        font-size: 28px;
    }

    .item-image {
        height: 240px;
    }

    .btn-buy {
        font-size: 14px;
        padding: 14px 20px;
    }
}