/* ============================================================
   EasePay — Profile page
   Extracted from inline <style>, same class names.
   ============================================================ */
:root {
      --primary-color: var(--site-clr, #0B1F8C);
      --primary-light: color-mix(in srgb, var(--site-clr, #0B1F8C) 12%, transparent);
      --bg-color: var(--ink-50, #F5F6FB);
      --text-color: #10142B;
      --light-text: #6B7190;
      --border-color: #E5E7F2;
      --success-color: #16B364;
      --error-color: #EF4444;
      --card-bg: #ffffff;
      --logout-color: #EF4444;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
      background: var(--bg-color);
      color: var(--text-color);
      padding-bottom: 20px;
      min-height: 100vh;
    }

    /* Header */
    .header {
      background: linear-gradient(135deg, var(--primary-color) 0%, #060F4A 100%);
      color: white;
      padding: 26px 15px 22px;
      text-align: center;
      position: sticky;
      top: 0;
      z-index: 100;
      border-radius: 0 0 22px 22px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .header h1 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 5px;
    }

    .header p {
      font-size: 13px;
      opacity: 0.9;
    }

    /* Back button */
    .back-btn {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.2);
      border: none;
      color: white;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 16px;
    }

    /* Logout button */
    .logout-btn {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(220, 53, 69, 0.2);
      border: none;
      color: white;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 16px;
      text-decoration: none;
    }

    .logout-btn:hover {
      background: rgba(220, 53, 69, 0.3);
    }

    /* Profile Container */
    .profile-container {
      padding: 0 15px;
      max-width: 600px;
      margin: 0 auto;
    }

    /* Profile Header Card */
    .profile-header {
      background: var(--card-bg);
      border-radius: 15px;
      padding: 25px;
      margin: 20px 0;
      box-shadow: 0 3px 15px rgba(0,0,0,0.08);
      text-align: center;
      border: 1px solid var(--border-color);
    }

    .profile-image {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid var(--primary-color);
      margin-bottom: 15px;
      background: white;
      padding: 5px;
    }

    .profile-name {
      font-size: 22px;
      font-weight: 700;
      color: var(--text-color);
      margin-bottom: 5px;
    }

    .profile-email {
      font-size: 14px;
      color: var(--light-text);
      margin-bottom: 15px;
    }

    .change-pic-btn {
      background: var(--primary-color);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
    }

    .change-pic-btn:hover {
      opacity: 0.9;
    }

    /* Profile Form Card */
    .profile-form-card {
      background: var(--card-bg);
      border-radius: 15px;
      padding: 25px;
      margin: 15px 0;
      box-shadow: 0 3px 15px rgba(0,0,0,0.08);
      border: 1px solid var(--border-color);
    }

    .section-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--primary-color);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .section-title i {
      font-size: 18px;
    }

    /* Form Grid */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      margin-bottom: 15px;
    }

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

    .form-group.full-width {
      grid-column: 1 / -1;
    }

    .form-label {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      color: var(--text-color);
      font-weight: 500;
    }

    .form-label .required {
      color: var(--error-color);
    }

    .form-input {
      width: 100%;
      padding: 12px 15px;
      border: 2px solid var(--border-color);
      border-radius: 8px;
      font-size: 15px;
      transition: all 0.3s;
      background: white;
    }

    .form-input:focus {
      border-color: var(--primary-color);
      outline: none;
      box-shadow: 0 0 0 3px var(--primary-light);
    }

    .form-input:disabled {
      background: #f8f9fa;
      color: var(--light-text);
      cursor: not-allowed;
    }

    .error-message {
      color: var(--error-color);
      font-size: 12px;
      margin-top: 5px;
      display: block;
      min-height: 18px;
    }

    /* Dropdown Styles */
    .dropdown-container {
      position: relative;
    }

    .dropdown-btn {
      width: 100%;
      padding: 12px 15px;
      border: 2px solid var(--border-color);
      border-radius: 8px;
      background: white;
      text-align: left;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      font-size: 15px;
      transition: all 0.3s;
    }

    .dropdown-btn:hover {
      border-color: var(--primary-color);
    }

    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      margin-top: 5px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      z-index: 10;
      display: none;
      max-height: 200px;
      overflow-y: auto;
    }

    .dropdown-menu.show {
      display: block;
    }

    .dropdown-item {
      padding: 12px 15px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .dropdown-item:hover {
      background: var(--primary-light);
    }

    .dropdown-item i {
      color: var(--primary-color);
    }

    /* Submit Button */
    .submit-btn {
      width: 100%;
      padding: 16px;
      background: var(--primary-color);
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      margin-top: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .submit-btn:hover {
      opacity: 0.9;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .submit-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* Account Info Card */
    .account-info {
      background: linear-gradient(135deg, var(--primary-light), transparent);
      border-radius: 10px;
      padding: 20px;
      margin: 15px 0;
      border: 1px solid var(--border-color);
    }

    .info-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border-color);
    }

    .info-row:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    .info-label {
      font-size: 14px;
      color: var(--light-text);
    }

    .info-value {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-color);
      text-align: right;
    }

    .copy-btn {
      background: var(--primary-color);
      color: white;
      border: none;
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 12px;
      cursor: pointer;
      margin-left: 10px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .copy-btn:hover {
      opacity: 0.9;
    }

    /* Note */
    .note {
      font-size: 13px;
      color: var(--light-text);
      margin-top: 15px;
      padding: 10px;
      background: #fff8e1;
      border-radius: 8px;
      border-left: 4px solid #ffc107;
    }

    .note i {
      margin-right: 8px;
      color: #ffc107;
    }

    /* Notification */
    .notification {
      position: fixed;
      top: 20px;
      right: 20px;
      background: white;
      padding: 15px 20px;
      border-radius: 8px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 1000;
      transform: translateX(150%);
      transition: transform 0.3s ease;
    }

    .notification.show {
      transform: translateX(0);
    }

    .notification.success {
      border-left: 4px solid var(--success-color);
    }

    .notification.error {
      border-left: 4px solid var(--error-color);
    }

    .notification i {
      font-size: 20px;
    }

    .notification.success i {
      color: var(--success-color);
    }

    .notification.error i {
      color: var(--error-color);
    }

    /* Responsive */
    @media (max-width: 480px) {
      .form-grid {
        grid-template-columns: 1fr;
      }
      
      .profile-container {
        padding: 0 10px;
      }
      
      .profile-header,
      .profile-form-card {
        padding: 20px;
      }
    }
