/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================================
   GLOBAL RESPONSIVE SAFETY (ALL DEVICES)
====================================================== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ======================================================
   MOBILE (DEFAULT ≤ 480px)
   Your design already fits perfectly
====================================================== */
@media (max-width: 480px) {

  body {
    background: #ffffff;
  }

  .container {
    max-width: 100%;
    box-shadow: none;
  }

  .qr {
    width: 200px;
    height: 200px;
  }

  .manage-payments {
    margin: 14px;
  }

  .preference-item {
    padding: 14px 18px;
  }
}

/* ======================================================
   SMALL TABLETS (481px – 768px)
====================================================== */
@media (min-width: 481px) and (max-width: 768px) {

  body {
    background: #eceff4;
  }

  .container {
    max-width: 520px;
    margin: 16px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }

  /* .profile-header {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  } */

  .qr {
    width: 220px;
    height: 220px;
  }

  .preferences-section,
  .security-section {
    margin: 0 12px;
  }
}

/* ======================================================
   DESKTOP (769px – 1024px)
====================================================== */
@media (min-width: 769px) {

  body {
    background: linear-gradient(135deg, #eef1f6, #e4e7ed);
  }

  .container {
    max-width: 420px;
    margin: 24px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.15);
  }

  /* .profile-header {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  } */

  .qr {
    width: 240px;
    height: 240px;
  }

  .preference-item {
    padding: 18px 20px;
  }
}

/* ======================================================
   LARGE DESKTOP / MONITORS (≥ 1200px)
====================================================== */
@media (min-width: 1200px) {

  .container {
    max-width: 390px;
  }

  .qr {
    width: 240px;
    height: 240px;
  }
}

/* ======================================================
   SAFE AREA SUPPORT (iPhone Notch / Gesture Bar)
====================================================== */
@supports (padding: env(safe-area-inset-bottom)) {

  .container {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ======================================================
   TOUCH vs HOVER OPTIMIZATION
====================================================== */
@media (hover: hover) {
  .preference-item:hover {
    background: #f7f7f7;
  }

  .manage-payments:hover {
    background: #e9edff;
  }
}

@media (hover: none) {
  .preference-item:active {
    background: #f0f0f0;
  }
}



button, a, svg, i {
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent; /* mobile tap glow remove */
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100vw;
    min-height: 100vh;
    background: #ffffff;
}

/* Header Styles */
.profile-header {
    background: rgb(255, 255, 255);
    padding: 15px 20px;
    /* border-bottom: 1px solid #000000; */
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn{
    background: none;
    border: none;
    font-size: 20px;
    color: #282727de;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

 .help-btn {
    background: none;
    border: none;
    font-size: 20px;
    /* color: #4d4d4dde; */
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.back-btn:hover {
    background: #f0f0f0;
}

.profile-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Main Content */
.profile-content {
    padding: 0;
}

/* User Info Section */
.user-info {
    background: rgb(255, 255, 255);
    padding: 0px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
   padding-bottom: 20px;
     border-bottom: 1px solid #25222238;
 
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f9d81be0, #FFA500);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
}

.user-details {
    flex: 1;
}

.user-details h2 {
    font-size: 18px;
    font-weight: 750;
    color: #333;
    margin-bottom: -3px;
}

.phone-number {
    font-size: 12px;
    color: #666;
}

.manage-btn {
    background: none;
    border: none;
    color: #8d3be0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.manage-btn:hover {
    background: #f0f0f0;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
   margin: 13px 0px;
    background: #ffffff;
    border-bottom: 0.1px solid rgba(179, 178, 178, 0.432);
}

.action-card {
    background:  #f0f3f8d3;
    border-radius: 15px;
    padding: 17px;
    /* display: flex; */
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    /* background: #f8f9fa; */
    /* border-radius: 12px; */
    display: flex;
    align-items: center;
    /* justify-content: center; */
    font-size: 20px;
    color: #333;
    /* border: 1px solid #e9ecef; */
}

.action-text h3 {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Preferences Section */
.preferences-section, .security-section {
    background: #ffffff;
    margin-bottom: 1px;
    padding-bottom: 2px;
    border-bottom: 1px solid #f0f0f0;
}

/* last border bottom none */

.preferences-section:last-child, .security-section:last-child {
    border-bottom: none;
}

.status {
  margin-top: 4px;
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  background: #e6f6ed;
  color: #178c4e;
  border-radius: 12px;
}

/* .shadow-box-item {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 15px;
    background: #ffffff;
}

.shadow-box-item img {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
} */


/* QR CARD */
.qr-card {
  margin: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px;
  text-align: center;
}

.bank {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
  font-weight: 600;
}

.bank-logo {
  width: 28px;
  height: 28px;
  /* background: #ff6a00; */
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.bank-logo img {
    width:20px;
}

.qr {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
}

.view-upi {
  margin-top: 10px;
  color: #7b3fe4;
  font-weight: 600;
  font-size: 14px;
}

.view-upi a {
    text-decoration: none;
    color: #7b3fe4;
    font-weight: 600;
}


/* MANAGE PAYMENTS */
.manage-payments {
  margin: 16px;
  background: #f2f5ff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  width: 36px;
  height: 36px;
  /* background: #6c63ff; */
  border-radius: 8px;
}

.card-icon img {
  width: 36px;
  height: 36px;
}

.status img {
    height: 14px;
    width: 14px;
    position: relative;
    top: 2px;
}

.manage-text {
  flex: 1;
}

.manage-title {
  font-weight: 600;
}

.manage-sub {
  font-size: 13px;
  color: #666;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    padding: 20px 20px 15px;
    margin: 0;
    /* background: #f8f9fa; */
}
.subtitle {
    font-size: 11px !important;
    font-weight: 300 !important;
    color: #666 !important;
    line-height: 1;
    display: block;
}

.money-rs {
    display: block;
    line-height: 1;
    font-size: 14px !important;
    color: #666 !important;
}

.abt{
    padding: 20px 0px;
    border-top: 1px solid gray;
    border-bottom: 1px solid gray;
}
/* Preference Items */
.preference-item {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    /* border-bottom: 1px solid #f5f5f5; */
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    background: #ffffff;
}

.preference-item:hover {
    background: #f8f9fa;
}

.preference-item:last-child {
    border-bottom: none;
}

.preference-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    color: #666;
}

.preference-icon img {
    width: 26px;
    height: 26px;
}


.preference-content {
    flex: 1;
}

.preference-content span {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

.preference-arrow {
    color: #ccc;
    font-size: 14px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    /* width: 50px;
    height: 28px; */
    width: 47px;
    height: 27px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    /* height: 22px;
    width: 22px; */
    height: 21px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + label {
    background-color: #4CAF50;
}

.toggle-switch input:checked + label:before {
    transform: translateX(22px);
}

/* Logout Item */
.logout-item {
    border-bottom: none;
}

.logout-icon {
    color: #dc3545;
}

.logout-item .preference-content span {
    color: #dc3545;
}


/* ===== CARD ===== */
.manage-payments-card {
    /* max-width: 360px; */
    background: #f6f9ff;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px;
}

/* LEFT */
.mp-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e6ecff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-icon img {
    width: 26px;
    height: 26px;
}

/* TEXT */
.mp-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 0.8;
    margin-top: 4px;
}

/* ===== ANIMATED SINGLE LINE ===== */
.mp-animated-line {
    position: relative;
    height: 18px;
    /* overflow: hidden; */
    margin-top: 3px;
}

/* Shared line styles */
.mp-animated-line .line {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    animation-duration: 10s;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
    font-size: 12px;
}

/* Line 1 */
.line-1 {
    color: #666;
    animation-name: showLine1;
}

/* Line 2 */
.line-2 {
    color: #2b6df6;
    display: flex;
    align-items: center;
    gap: 6px;
    animation-name: showLine2;
}

.line-2 .dot {
    font-size: 8px;
}

/* KEYFRAMES */
@keyframes showLine1 {
    0%   { opacity: 0; transform: translateY(6px); }
    5%   { opacity: 1; transform: translateY(0); }
    45%  { opacity: 1; transform: translateY(0); }
    50%  { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 0; }
}

@keyframes showLine2 {
    0%   { opacity: 0; transform: translateY(6px); }
    50%  { opacity: 0; transform: translateY(6px); }
    55%  { opacity: 1; transform: translateY(0); }
    95%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-6px); }
}

/* RIGHT ARROW */
.mp-arrow {
    font-size: 20px;
    color: #999;
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .mp-animated-line .line {
        animation: none;
        opacity: 1;
        position: static;
    }
}



/* Responsive Design */

/* Small Mobile Phones (320px - 375px) */
@media (max-width: 375px) {
    .profile-header {
        padding: 8px 15px;
    }
    
    .profile-header h1 {
        font-size: 18px;
    }
    
    .user-info {
        padding: 1px 15px;
        gap: 12px;
         padding-bottom: 20px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .user-details h2 {
        font-size: 18px;
    }
    
    .phone-number {
        font-size: 14px;
    }
    
    .quick-actions {
        
        padding: 0px 15px;
        padding-bottom: 20px;
        gap: 12px;
    }
    
    .action-card {
        padding: 7px 12px;
        gap: 12px;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .action-text h3 {
        font-size: 10px;
    }
    
    .section-title {
        padding: 15px 15px 10px;
        font-size: 12px;
    }
    
    .preference-item {
       padding: 7px 22px;
    }
    
    .preference-content span {
        font-size: 15px;
    }
}

/* Medium Mobile Phones (376px - 414px) */
@media (min-width: 376px) and (max-width: 414px) {
    .user-avatar {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .action-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .action-text h3 {
        font-size: 15px;
    }
}

/* Large Mobile Phones (415px+) */
@media (min-width: 415px) {
    .container {
        max-width: 414px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .profile-header {
        padding: 10px 20px;
    }
    
    .user-info {
        padding: 15px 20px;
    }
    
    .section-title {
        padding: 15px 20px 10px;
    }
    
    .preference-item {
        padding: 12px 20px;
    }
}

/* Portrait Tablet (768px+) - Keep mobile design */
@media (min-width: 768px) {
    .container {
        max-width: 414px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0,0,0,0.15);
    }
}

/* Hover effects for larger screens */
@media (hover: hover) {
    .action-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .preference-item:hover {
        background: #f8f9fa;
    }
    
    .back-btn:hover, .help-btn:hover, .manage-btn:hover {
        background: #f0f0f0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .action-card:hover {
        transform: none;
    }
    
    .action-card, .preference-item, .back-btn, .help-btn, .manage-btn {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .action-card {
        border-color: #333;
    }
    
    .preference-item {
        border-bottom-color: #333;
    }
    
    .profile-header {
        border-bottom-color: #333;
    }
}
