 :root {
   --primary: #FF7B25;
   --primary-dark: #D43F00;
   --primary-light: #FF9A56;
   --dark: #121212;
   --darker: #0a0a0a;
   --light: #f5f5f5;
   --lighter: #ffffff;
   --gray: #a0a0a0;
   --border: #2a2a2a;
   --card-bg: #1e1e1e;
   --success: #4CAF50;
   --error: #FF4444;
   --light-bg: #f8f9fa;
   --light-card: #ffffff;
   --light-border: #e0e0e0;
   --light-text: #333333;
 }

 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
 }

 body {
   margin: 0;
   font-family: 'Inter', sans-serif;
   background-color: var(--dark);
   color: var(--light);
   line-height: 1.6;
   overflow-x: hidden;
   transition: background-color 0.4s ease;
 }

 body.light-theme {
   background-color: var(--light-bg);
   color: var(--light-text);
 }

 .back-btn {
   position: fixed;
   top: 20px;
   left: 20px;
   padding: 10px 20px;
   font-weight: 600;
   background-color: var(--primary);
   color: white;
   border: none;
   border-radius: 6px;
   z-index: 999;
   cursor: pointer;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   gap: 8px;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
 }

 .back-btn:hover {
   background-color: var(--primary-dark);
   transform: translateY(-2px);
 }

 .profile-container {
   padding: 80px 20px 40px;
   max-width: 1000px;
   margin: 0 auto;
 }

 h1 {
   font-size: 2.2rem;
   margin-bottom: 30px;
   color: var(--primary);
   font-weight: 700;
   text-align: center;
   position: relative;
 }

 h1::after {
   content: '';
   position: absolute;
   bottom: -10px;
   left: 50%;
   transform: translateX(-50%);
   width: 100px;
   height: 4px;
   background: linear-gradient(to right, var(--primary), var(--primary-dark));
   border-radius: 2px;
 }

 .profile-card {
   display: flex;
   flex-wrap: wrap;
   gap: 40px;
   padding: 40px;
   border-radius: 12px;
   background-color: var(--card-bg);
   border: 1px solid var(--border);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
   transition: all 0.4s ease;
 }

 body.light-theme .profile-card {
   background-color: var(--light-card);
   border: 1px solid var(--light-border);
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
 }

 .avatar-preview {
   flex: 1;
   min-width: 250px;
   text-align: center;
 }

 .avatar-preview img {
   width: 160px;
   height: 160px;
   border-radius: 50%;
   object-fit: cover;
   border: 3px solid var(--primary);
   margin-bottom: 20px;
   transition: all 0.3s ease;
   background-color: var(--darker);
   box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
 }

 body.light-theme .avatar-preview img {
   background-color: var(--light-bg);
 }

 .avatar-preview img:hover {
   transform: scale(1.03);
   box-shadow: 0 0 30px rgba(255, 123, 37, 0.3);
 }

 .avatar-buttons {
   display: flex;
   gap: 12px;
   justify-content: center;
   flex-wrap: wrap;
 }

 .avatar-buttons button {
   padding: 10px 16px;
   background-color: var(--darker);
   color: var(--light);
   border: 1px solid var(--border);
   border-radius: 6px;
   cursor: pointer;
   transition: all 0.3s ease;
   font-weight: 500;
   display: flex;
   align-items: center;
   gap: 8px;
 }

 body.light-theme .avatar-buttons button {
   background-color: var(--light-card);
   color: var(--light-text);
   border: 1px solid var(--light-border);
 }

 .avatar-buttons button:hover {
   background-color: var(--primary);
   color: white;
   border-color: var(--primary);
 }

 .form-section {
   flex: 2;
   min-width: 300px;
   display: flex;
   flex-direction: column;
   gap: 25px;
 }

 .form-group {
   display: flex;
   flex-direction: column;
   gap: 8px;
 }

 label {
   font-weight: 600;
   color: var(--light);
   display: flex;
   align-items: center;
   gap: 8px;
 }

 body.light-theme label {
   color: var(--light-text);
 }

 label i {
   color: var(--primary);
 }

 input {
   width: 100%;
   padding: 14px 16px;
   background-color: var(--darker);
   color: var(--light);
   border: 1px solid var(--border);
   border-radius: 8px;
   font-family: inherit;
   transition: all 0.3s ease;
   font-size: 1rem;
 }

 body.light-theme input {
   background-color: var(--light-card);
   color: var(--light-text);
   border: 1px solid var(--light-border);
 }

 input:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(255, 123, 37, 0.2);
 }

 .platform-buttons,
 .theme-buttons {
   display: flex;
   gap: 10px;
   flex-wrap: wrap;
 }

 .platform-btn,
 .theme-btn {
   flex: 1;
   min-width: 100px;
   padding: 12px;
   background-color: var(--darker);
   color: var(--light);
   border: 1px solid var(--border);
   border-radius: 8px;
   cursor: pointer;
   transition: all 0.3s ease;
   text-align: center;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
 }

 body.light-theme .platform-btn,
 body.light-theme .theme-btn {
   background-color: var(--light-card);
   color: var(--light-text);
   border: 1px solid var(--light-border);
 }

 .platform-btn:hover,
 .platform-btn.active,
 .theme-btn:hover,
 .theme-btn.active {
   background-color: var(--primary);
   border-color: var(--primary);
   color: white;
   transform: translateY(-2px);
 }

 .toggle-container {
   position: relative;
   display: inline-block;
   width: 60px;
   height: 30px;
 }

 .toggle-container input {
   opacity: 0;
   width: 0;
   height: 0;
 }

 .toggle-switch {
   position: absolute;
   cursor: pointer;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: var(--darker);
   border: 1px solid var(--border);
   transition: .4s;
   border-radius: 30px;
 }

 body.light-theme .toggle-switch {
   background-color: var(--light-card);
   border: 1px solid var(--light-border);
 }

 .toggle-switch:before {
   position: absolute;
   content: "";
   height: 22px;
   width: 22px;
   left: 4px;
   bottom: 3px;
   background-color: white;
   transition: .4s;
   border-radius: 50%;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
 }

 input:checked+.toggle-switch {
   background-color: var(--primary);
   border-color: var(--primary);
 }

 input:checked+.toggle-switch:before {
   transform: translateX(28px);
 }

 .profile-actions {
   display: flex;
   gap: 12px;
   margin-top: 20px;
   flex-wrap: wrap;
 }

 .profile-actions button {
   flex: 1;
   min-width: 120px;
   padding: 14px;
   font-weight: 600;
   border-radius: 8px;
   cursor: pointer;
   transition: all 0.3s ease;
   font-size: 1rem;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
 }

 #saveBtn {
   background-color: var(--primary);
   color: white;
   border: none;
   box-shadow: 0 4px 6px rgba(255, 123, 37, 0.2);
 }

 #saveBtn:hover {
   background-color: var(--primary-dark);
   transform: translateY(-2px);
   box-shadow: 0 6px 8px rgba(255, 123, 37, 0.3);
 }

 #resetBtn {
   background-color: transparent;
   color: var(--primary);
   border: 1px solid var(--primary);
 }

 body.light-theme #resetBtn {
   background-color: transparent;
   color: var(--primary);
   border: 1px solid var(--primary);
 }

 #resetBtn:hover {
   background-color: rgba(255, 123, 37, 0.1);
 }

 #exportBtn {
   background-color: transparent;
   color: var(--light);
   border: 1px solid var(--border);
 }

 body.light-theme #exportBtn {
   background-color: transparent;
   color: var(--light-text);
   border: 1px solid var(--light-border);
 }

 #exportBtn:hover {
   background-color: rgba(255, 255, 255, 0.05);
 }

 body.light-theme #exportBtn:hover {
   background-color: rgba(0, 0, 0, 0.03);
 }

 .error {
   color: var(--error);
   font-size: 0.9rem;
   min-height: 1.2em;
   margin-top: 5px;
   padding-left: 5px;
 }

 /* Account Information Section Styles */
 .account-info-section {
   margin-top: 10px;
 }

 .account-info-card {
   background: linear-gradient(145deg, var(--darker), var(--card-bg));
   border: 1px solid var(--border);
   border-radius: 12px;
   padding: 20px;
   margin-top: 10px;
 }

 body.light-theme .account-info-card {
   background: linear-gradient(145deg, var(--light-bg), var(--light-card));
   border: 1px solid var(--light-border);
 }

 .info-row {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px 0;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
 }

 body.light-theme .info-row {
   border-bottom: 1px solid rgba(0, 0, 0, 0.05);
 }

 .info-row:last-child {
   border-bottom: none;
 }

 .info-label {
   display: flex;
   align-items: center;
   gap: 10px;
   color: var(--gray);
   font-size: 0.9rem;
   font-weight: 500;
 }

 .info-label i {
   color: var(--primary);
   width: 18px;
   text-align: center;
 }

 .info-value {
   color: var(--light);
   font-weight: 600;
   font-size: 0.95rem;
   display: flex;
   align-items: center;
   gap: 8px;
 }

 body.light-theme .info-value {
   color: var(--light-text);
 }

 .info-value.user-id {
   font-family: 'Courier New', monospace;
   font-size: 0.85rem;
   background: rgba(255, 123, 37, 0.1);
   padding: 4px 8px;
   border-radius: 4px;
   cursor: help;
 }

 .info-value i {
   font-size: 1.1rem;
 }

 .custom-alert {
   position: fixed;
   top: 20px;
   right: 20px;
   padding: 16px 24px;
   border-radius: 8px;
   background-color: var(--card-bg);
   color: white;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
   border-left: 4px solid var(--primary);
   display: flex;
   align-items: center;
   gap: 12px;
   transform: translateX(200%);
   transition: transform 0.3s ease;
   z-index: 1000;
   max-width: 350px;
 }

 body.light-theme .custom-alert {
   background-color: var(--light-card);
   color: var(--light-text);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 }

 .custom-alert.show {
   transform: translateX(0);
 }

 .custom-alert.success {
   border-left-color: var(--success);
 }

 .custom-alert.error {
   border-left-color: var(--error);
 }

 .custom-alert i {
   font-size: 1.2rem;
 }

 .custom-alert.success i {
   color: var(--success);
 }

 .custom-alert.error i {
   color: var(--error);
 }

 .camera-modal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.9);
   z-index: 2000;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 20px;
 }

 .camera-modal video {
   max-width: 90%;
   max-height: 70vh;
   border-radius: 8px;
   background-color: black;
 }

 .camera-actions {
   display: flex;
   gap: 15px;
   margin-top: 25px;
 }

 .camera-actions button {
   padding: 12px 24px;
   border-radius: 6px;
   font-weight: 600;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 8px;
 }

 #captureBtn {
   background-color: var(--primary);
   color: white;
   border: none;
 }

 #cancelCamera {
   background-color: transparent;
   color: white;
   border: 1px solid var(--border);
 }

 @media (max-width: 768px) {
   .profile-card {
     flex-direction: column;
     padding: 30px;
     gap: 30px;
   }

   h1 {
     font-size: 1.8rem;
   }

   .avatar-preview {
     min-width: 100%;
   }

   .profile-actions button {
     min-width: 100%;
   }

   .avatar-buttons {
     flex-direction: column;
   }

   .avatar-buttons button {
     width: 100%;
   }
 }

 @media (max-width: 480px) {
   .profile-container {
     padding: 70px 15px 30px;
   }

   .profile-card {
     padding: 25px;
   }

   h1 {
     font-size: 1.6rem;
   }

   .platform-buttons,
   .theme-buttons {
     flex-direction: column;
   }

   .platform-btn,
   .theme-btn {
     width: 100%;
   }
 }