@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background: linear-gradient(135deg, #1d143c 40%, #6366f1 100%, #a855f7 100%);
    
  background-attachment: fixed; 
  color: #ffffff; 
  overflow-x: hidden;
}

.herosection {
    position: relative;
    width: 100%;
    
    height: 100vh; 
    
    background-size: cover; 
    background-position: center; 
    display: flex;
    flex-direction: column; 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1d143c 50%, #6366f1 100%, #a855f7 100%);
    
    backdrop-filter: blur(5px); 
    padding: 12px 24px;
    width: 100%;
    z-index: 10;
}

.divwelcomemsg h2 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    white-space: nowrap
}

.navbar button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.menubtn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); 
  border: none;
  width: 40px;               
  height: 40px;              
  border-radius: 8px;        
  cursor: pointer;
  display: flex;
  flex-direction: column;    
  justify-content: center;   
  align-items: center;       
  gap: 4px;                  
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease; 
  flex-shrink: 0;            
}

.menubtn span {
  display: block;
  width: 20px;               
  height: 2px;               
  background-color: white;   
  border-radius: 2px;
  transition: all 0.3s ease; 
}

.menubtn:hover {
  transform: translateY(-2px); 
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);     
}

.menubtn:hover span:nth-child(2) {
  width: 24px;
}

.welcometext {
  color: #ffffff;            
  font-size: 14px;
  font-weight: 700;          
  text-align: center;
  flex: 1;
  padding: 0 10px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 
               0 0 20px rgba(59, 130, 246, 0.2); 
  letter-spacing: 0.5px;     
}

.welcometext .brandcolor {
  color: #f59e0b;            
  font-weight: 700;          
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4); 
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  
  background-color: rgba(19, 12, 39, 0.88); 
  
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  
  border-left: 1px solid rgba(168, 85, 247, 0.2); 
  
  padding: 80px 20px;        
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5); 
}

.sidebar.open {
  transform: translateX(0);
}

.closebtn {
  position: absolute;
  top: 20px;
  left: 25px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.closebtn:hover {
  color: #ef4444; 
  transform: rotate(90deg); 
}

.sidebarlinks {
  margin-top: 20px;
}

.sidebarlinks a {
  display: flex;
  align-items: center;
  color: #e2e8f0;             
  text-decoration: none;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;        
  border-radius: 12px;        
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebarlinks a.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(29, 78, 216, 0.2));
  color: #60a5fa;             
  border-color: rgba(59, 130, 246, 0.3);
}

.sidebarlinks a:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); 
  color: white;               
  padding-right: 25px;        
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); 
  transform: scale(1.02);     
}

.modaloverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6); 
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 1001; 
  padding: 20px;
}

.modalcontent.contactcard {
  background: linear-gradient(135deg, #1d143c 40%, #6366f1 100%, #a855f7 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #0f172a;
  width: 100%;
  max-width: 440px;
  padding: 35px 25px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  direction: rtl; 
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modalcontent h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.modaldesc {
  font-size: 14.5px;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 25px;
}

.contactmethods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contactlink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.emaillink {
  background-color: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.emaillink:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.whatsappbtn {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.whatsappbtn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.modalcontent .closebtn {
  position: absolute;
  top: 15px;
  left: 20px;
  right: auto; 
  font-size: 26px;
  font-weight: bold;
  color: #94a3b8;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modalcontent .closebtn:hover {
  color: #ef4444;
  transform: scale(1.1);
}

.aboutfeatures {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right; 
  margin-top: 10px;
}

.featureitem {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px;
  border-radius: 14px;
  background: #f59e0b;
  border: 1px solid rgba(15, 23, 42, 0.02);
  transition: background 0.2s ease;
}

.featureicon {
  font-size: 24px;
  margin-top: 2px;
  flex-shrink: 0; 
}

.featuretext h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.featuretext p {
  font-size: 13px;
  color: #FFFFFF;
  line-height: 1.5;
}

.infobox {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 450px;
  margin: 30px auto;
  padding: 0 15px;
  direction: rtl;
}

.infoitem {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.infolabel {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.infovalue {
  font-size: 16px;
  color: #38bdf8;
  font-weight: 700;
  word-break: break-all;
}

.profileactions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 450px;
  margin: 20px auto;
  padding: 0 15px;
}

.actionbtn {
  width: 100%;
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.actionbtn:hover {
  transform: translateY(-2px);
}

.actionbtn:active {
  transform: translateY(0);
}

.logoutbtn {
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #f1f5f9;
  border: 1px solid #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
}

.logoutbtn:hover {
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.deleteaccountbtn {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  margin-top: 10px; 
}

.deleteaccountbtn:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
  filter: brightness(1.1);
}

.usernamemsg {
  color: #3b82f6; 
  font-size: 16px;            
  font-weight: 500;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;            
  text-align: left;           
  max-width: 80px;            
  white-space: normal;        
  word-wrap: break-word;    
  text-decoration: none;
}

#loadingoverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
}

#loadingoverlay h2 {
    color:#f59e0b;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom:20px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.changepassbtn {
  padding: 14px 35px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4), 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  margin-top: 100px;
}

.changepassbtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
  filter: brightness(1.1);
}

.custommodaloverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.passwordmodalcard {
  max-width: 450px;
  width: 100%;
  background: linear-gradient(135deg, #1d143c 40%, #6366f1 100%, #a855f7 100%);
    
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  text-align: center;
  animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.brandtitle { font-size: 26px; font-weight: 800; color: #ffffff; margin-bottom: 6px; }

.pagesubtitle { font-size: 13.5px; color: #cbd5e1; margin-bottom: 25px; line-height: 1.5; }

.formgroup { margin-bottom: 18px; text-align: right; }
.formgroup label { display: block; font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 6px; padding-right: 4px; }
.formgroup input {
  width: 100%; padding: 13px 15px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 12px;
  color: #ffffff; font-size: 14.5px; outline: none; transition: all 0.3s ease; text-align: right;
}
.formgroup input:focus { border-color: #8b5cf6; background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }

.modalbuttonsgroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.btnsubmit {
  width: 100%; padding: 13px; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a; cursor: pointer; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); transition: all 0.3s ease;
}
.btnsubmit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
.btnsubmit:disabled { background: #475569; color: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }

.btncancel {
  width: 100%; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px;
  font-size: 14.5px; font-weight: 600; background: transparent; color: #e2e8f0; cursor: pointer; transition: all 0.3s ease;
}
.btncancel:hover { background: rgba(255, 255, 255, 0.05); color: #ffffff; border-color: rgba(255, 255, 255, 0.3); }

.navactionbtn {
  background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.3);
  color: #ffffff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.navactionbtn:hover { background: rgba(168, 85, 247, 0.25); border-color: #a855f7; }

.errortext {
    color: red;
    font-size: 10px;
    margin-top: 3px;
    display: block; 
}

.modaloverlayd {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modaloverlayd.active {
    opacity: 1;
    pointer-events: auto;
}

.modalbox {
    background-color: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: scale(0.85);
    transition: transform 0.3s ease;
}

.modaloverlayd.active .modalbox {
    transform: scale(1);
}

.modalbox h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 20px;
}

.passwordinput {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 20px;
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
}
.passwordinput:focus {
    border-color: #3b82f6;
}

.btngroup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modalbtn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.confirmbtnd {
    background-color: #10b981;
    color: white;
}
.confirmbtnd:hover {
    background-color: #059669;
}

.cancelbtnd {
    background-color: #f1f5f9;
    color: #475569;
}
.cancelbtnd:hover {
    background-color: #e2e8f0;
}

.eye-btn {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
  user-select: none;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
