/* ================= Auth Card ================= */
.auth-card {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  perspective: 1200px;
}

.auth-inner {
  width: 100%;
  max-width: 360px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.auth-inner.flipped {
  transform: rotateY(180deg);
}

/* Faces */
.auth-face {
  position: absolute;
  width: 100%;
  backface-visibility: hidden;
  background: rgba(255, 245, 247, 0.95); /* pink soft */
  border-radius: 22px;
  padding: 25px;
  box-shadow: 0 25px 60px rgba(216, 27, 96, 0.25);
  border: 1px solid rgba(216, 27, 96, 0.25);
}

.auth-back {
  transform: rotateY(180deg);
}

/* Titles */
.auth-face h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #c2185b;
}

/* Inputs */
.auth-face input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border-radius: 14px;
  border: 1px solid #f8bbd0;
  outline: none;
  background: #ffffff;
  color: #444;
  font-size: 14px;
  transition: 0.3s ease;
}

.auth-face input:focus {
  border-color: #d81b60;
  box-shadow: 0 0 0 3px rgba(216,27,96,0.15);
}

.auth-face input::placeholder {
  color: #999;
}

/* Button */
.auth-face button {
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  background: linear-gradient(135deg, #d81b60, #f48fb1);
  color: #fff;
  margin-top: 10px;
  transition: 0.3s ease;
}

.auth-face button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(216,27,96,0.4);
}

/* Switch text */
.switch {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #555;
}

.switch span {
  color: #d81b60;
  cursor: pointer;
  font-weight: bold;
}

/* ================= Dialog ================= */
.dialog {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dialog .box {
  background: #ffffff;
  color: #444;
  padding: 25px;
  border-radius: 18px;
  min-width: 260px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.dialog.success .box {
  border: 2px solid #22c55e;
}

.dialog.error .box {
  border: 2px solid #ef4444;
}





/* ================= AI Button ================= */
.ai-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d81b60, #f48fb1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(216,27,96,0.4);
  z-index: 200;
  transition: 0.3s ease;
}

.ai-btn:hover {
  transform: scale(1.08);
}

/* ================= AI Chat Box ================= */
.ai-chat {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 320px;
  height: 420px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}

/* Header */
.ai-header {
  background: #d81b60;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.ai-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Body */
.ai-body {
  flex: 1;
  padding: 15px;
  background: #fff5f7;
  overflow-y: auto;
}

.ai-message {
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 85%;
}

.ai-message.bot {
  background: #ffe4ec;
  color: #880e4f;
  align-self: flex-start;
}

/* Footer */
.ai-footer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eee;
}

.ai-footer input {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;
}

.ai-footer button {
  background: #d81b60;
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
}

/* ================= Responsive ================= */
@media (max-width: 500px) {
  .ai-chat {
    width: 90%;
    right: 5%;
  }
}





/* الحاوية */
.form-group {
    width: 100%;
    margin-bottom: 20px;
}

/* شكل الـ select */
select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    outline: none;
    transition: 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

/* عند الضغط */
select:focus {
    border-color: #eee;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

/* السهم المخصص */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

/* لما يبقى فيه اختيار */
select:valid {
    border-color: pink;
}

/* للموبايل */
@media (max-width: 600px) {
    select {
        font-size: 14px;
        padding: 10px;
    }
}
