/*C:\Users\LENOVO\Desktop\FLOYNEX_APP\frontend\css\profile.css*/
.profile-container {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;

    width: 100%;
    padding: 0 0 30px 0 !important;

    background: #f4f7fa;

    height: auto !important;
    min-height: auto !important;

    box-sizing: border-box;

    overflow: visible !important;
}

/* Decorative corner ribbons */
.profile-container::before,
.profile-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Upper-left sweeping ribbons */
.profile-container::before {
  background:
    linear-gradient(
      132deg,
      transparent 0%,
      transparent 9%,
      rgba(65, 184, 92, 0.09) 9.2%,
      rgba(65, 184, 92, 0.09) 17%,
      transparent 17.2%,
      transparent 21%,
      rgba(65, 184, 92, 0.055) 21.2%,
      rgba(65, 184, 92, 0.055) 25%,
      transparent 25.2%
    );
}

/* Lower-right sweeping ribbons */
.profile-container::after {
  background:
    linear-gradient(
      312deg,
      transparent 0%,
      transparent 10%,
      rgba(65, 184, 92, 0.09) 10.2%,
      rgba(65, 184, 92, 0.09) 18%,
      transparent 18.2%,
      transparent 22%,
      rgba(65, 184, 92, 0.055) 22.2%,
      rgba(65, 184, 92, 0.055) 26%,
      transparent 26.2%
    );
}

/* ========================================
   HERO BANNER - NORMAL PAGE POSITION
======================================== */

.hero-banner {
    position: relative;
    top: auto;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0;
    z-index: 1;
    overflow: visible;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* PROFILE PHOTO */

.profile-avatar-container {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.profile-avatar-ring {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;

    box-shadow:
        0 0 0 4px #28a745,
        0 0 0 8px rgba(0, 123, 255, 0.35),
        0 8px 24px #00000040;

    background-color: #fff;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-avatar-ring:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* HERO NAME AND ACCOUNT NUMBER */

.hero-user-display {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    z-index: 3;
    pointer-events: none;
}

.hero-user-name {
    display: inline-block;
    max-width: 90%;
    padding: 9px 25px;

    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;

    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;

    text-align: center;
    letter-spacing: 0.4px;
    margin: 0;
    line-height: 1.3;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-account-number {
    display: inline-block;
    padding: 8px 22px;

    background: linear-gradient(135deg, #28a745, #16853a);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 25px;

    font-size: 0.95rem;
    font-weight: 800;
    color: #effd2d;

    letter-spacing: 0.7px;
    line-height: 1.3;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

/* MOBILE HERO */

@media (max-width: 480px) {

    .profile-avatar-ring {
        width: 125px;
        height: 125px;
    }

    .hero-user-display {
        top: 180px;
        gap: 8px;
    }

    .hero-user-name {
        font-size: 1.05rem;
        padding: 8px 20px;
    }

    .hero-account-number {
        font-size: 0.85rem;
        padding: 7px 18px;
    }
}
/* PROFILE INFORMATION SECTION */
.profile-details {
    width: 100%;
    padding: 25px;
    margin-top: 20px;
    box-sizing: border-box;
}

.profile-section-heading {
    margin: 20px 0 15px;
}

.profile-section-heading h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #222;
}

.profile-section-heading p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.profile-info-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    min-width: 0;
}

.info-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .profile-details {
        padding: 15px;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-info-card {
        padding: 15px;
    }
}
/* ========================================
   PROFILE PAGE BOTTOM SPACING
======================================== */

.profile-details {
    position: relative;
    z-index: 1;

    width: 100%;
    padding: 25px;
    margin-top: 0;
    margin-bottom: 35px;

    box-sizing: border-box;
    background: transparent;
}

/* Keep all profile cards inside the page background */

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
}

.profile-info-card {
    min-width: 0;
    box-sizing: border-box;
}

/* Give the last card room above mobile navigation */

@media (max-width: 600px) {

    .profile-details {
        padding: 15px;
        padding-bottom: 110px;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-info-card {
        padding: 15px;
    }
}