/* Authentication Pages Styles */
.auth-page {
    background: var(--gradient-primary);
    min-height: 100vh;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.auth-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-colored);
}

.auth-title {
    font-weight: 800;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: hsl(var(--text-secondary));
    margin-bottom: 0;
}

.trendy-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    transition: var(--transition);
    position: relative;
}

.trendy-input:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-floating {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: hsl(var(--text-secondary));
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.password-toggle:hover {
    color: hsl(var(--primary-color));
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-indicator {
    height: 4px;
    background: hsl(var(--border-color));
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 500;
}


.forgot-password:hover {
    color: hsl(var(--primary-color));
    text-decoration: underline;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-content p {
    margin: 0;
    opacity: 0.9;
}

.bg-blur {
    background: hsl(var(--surface-color) / 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-heavy);
}


/* Animated Gradient Header */
.bg-gradient-animated {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}


/* Floating Labels */
.form-floating label {
    padding-left: 40px;
}

.form-floating .fa {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

/* Detail List Styling */
.profile-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed hsl(var(--text-primary) / 0.1);
}

.detail-label {
    font-weight: 600;
    color: hsl(var(--text-secondary));
}

.detail-value {
    text-align: right;
    color: hsl(var(--text-primary));
}

/* Icon Circles */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: hsl(var(--surface-color) / 0.2);
}

/* Action Cards */
.action-card {
    transition: all 0.3s ease;
    background: hsl(var(--surface-color) / 0.7);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
    background: hsl(var(--surface-color) / 0.2);
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium) !important;
}

/* Soft Shadow */
.shadow-soft {
    box-shadow: var(--shadow-light);
}

/* Advanced UX enhancements */
.bg-blur-advanced {
    backdrop-filter: blur(16px) saturate(180%);
    background: hsla(var(--surface-color), 0.7);
    box-shadow: var(--shadow-heavy);
    border-radius: var(--border-radius-lg);
    transition: box-shadow 0.3s;
}
.bg-blur-advanced:hover {
    box-shadow: 0 16px 48px 0 hsla(var(--dark-surface), 0.25);
}
.bg-gradient-animated-advanced {
    background: var(--gradient-primary);
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
}
@keyframes gradientBG {
    0% {background-position:0% 50%;}
    50% {background-position:100% 50%;}
    100% {background-position:0% 50%;}
}
.card.action-card {
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
    background: var(--gradient-primary);
}
.card.action-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-secondary);
}
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--background-color));
    color: hsl(var(--text-color));
    box-shadow: var(--shadow-light);
}
@media (max-width: 767px) {
    .card-body.p-4, .card-body.p-lg-5 { padding: 1.2rem !important; }
    .card-header.py-4 { padding: 1.2rem 0 !important; }
}

.profile-card {
    border-radius: var(--border-radius-lg, 2rem);
    box-shadow: var(--shadow-heavy, 0 20px 25px -5px rgba(255, 92, 168, 0.12), 0 10px 10px -5px rgba(79, 195, 247, 0.10));
    background: hsla(var(--surface-color, 0 0% 100%), 0.92);
    backdrop-filter: blur(8px);
    padding: 2.5rem 2rem;
    margin-top: 2rem;
}
.profile-header {
    background: var(--gradient-primary, linear-gradient(135deg, hsl(var(--primary-color)) 0%, hsl(var(--tertiary-color)) 100%));
    color: hsl(var(--surface-color, 0 0% 100%));
    border-radius: var(--border-radius-lg, 2rem) var(--border-radius-lg, 2rem) 0 0;
    padding: 2rem 1rem 1.2rem 1rem;
    text-align: center;
    margin: -2.5rem -2rem 2rem -2rem;
}
.profile-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--primary-color));
}
.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.profile-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid hsl(var(--border-color, 200 90% 85%));
}
.profile-list li:last-child {
    border-bottom: none;
}
.profile-label {
    color: hsl(var(--primary-color));
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.profile-value {
    color: hsl(var(--text-primary, 222 84% 5%));
    font-weight: 400;
    text-align: end;
    max-width: 60%;
    word-break: break-word;
}
.wishlist-link {
    color: hsl(var(--danger-color));
    font-weight: 600;
    text-decoration: none;
}
.profile-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.profile-actions a {
    border-radius: var(--border-radius, 1.2rem);
    padding: 0.7rem 2.2rem;
    font-size: 1.1rem;
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}
@media (max-width: 767px) {
    .profile-card { padding: 1.2rem 0.5rem; }
    .profile-header { padding: 1.2rem 0.5rem 1rem 0.5rem; margin: -1.2rem -0.5rem 1.5rem -0.5rem; }
}
.profile-card {
    max-width: 100%;
    overflow-x: hidden;
}

.profile-list {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.profile-actions .btn {
    white-space: normal; /* يخلي الكلام يكسر سطر */
}
