body {
  background: #f7fafc;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.main-container {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* REVIEW FORM CARD */
.review-card {
  background: #fff;
  margin: 40px auto 20px auto;
  padding: 36px 42px 26px 42px;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(55,105,255,.08);
  max-width: 540px;
  min-width: 340px;
  width: 100%;
}
h2 {
  margin-top: 0;
  text-align: center;
  font-size: 2rem;
  letter-spacing: -.5px;
}
.field {
  margin-bottom: 18px;
}
label {
  display: block;
  font-weight: 500;
  margin-bottom: 7px;
  color: #212d39;
}
input[type=text], textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #e0e4eb;
  border-radius: 6px;
  font-size: 1rem;
  background: #f7fafd;
  margin-bottom: 4px;
}
textarea {
  min-height: 75px;
  resize: vertical;
}
.star-rating {
  direction: rtl;
  display: inline-flex;
  font-size: 2.1rem;
  gap: 2px;
}
.star-rating input[type="radio"] { display: none; }
.star-rating label {
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.16s;
}
.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #FFD700; }
.file-upload-label {
  display: inline-block;
  background: #eef1fa;
  border-radius: 6px;
  color: #3165d4;
  padding: 8px 18px;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 3px;
  font-size: 1rem;
}
input[type="file"] {
  display: none;
}
.img-preview {
  display: block;
  margin-top: 8px;
  max-width: 90px;
  max-height: 90px;
  border-radius: 12px;
  border: 1px solid #e0e4eb;
}
.review-actions {
  text-align: center;
}
.submit-btn {
  background: linear-gradient(90deg, #1fc8db 0%, #2cb5e8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 13px 0;
  width: 100%;
  cursor: pointer;
  margin-top: 12px;
  transition: box-shadow .2s, background .2s;
  box-shadow: 0 4px 18px rgba(44,181,232,.13);
}
.submit-btn:hover {
  background: linear-gradient(90deg, #2cb5e8 0%, #1fc8db 100%);
}
.msg {
  margin-top: 13px;
  text-align: center;
  font-size: 1.08rem;
}
.msg.success { color: #24b26c; }
.msg.error { color: #db4437; }

/* REVIEWS LIST */
.review-list {
  margin: 0 auto;
  max-width: 820px;
  width: 100%;
  margin-bottom: 64px;
}
.review {
  display: flex;
  align-items: flex-start;
  background: #fff;
  margin-bottom: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 22px rgba(50,70,90,0.07);
  padding: 20px 20px 16px 20px;
  gap: 19px;
  position: relative;
  border: 1px solid #f3f4f8;
}
.review-avatar {
  min-width: 55px;
  min-height: 55px;
  max-width: 55px;
  max-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e4eef6;
  font-size: 1.4rem;
  font-weight: 700;
  color: #4679d6;
  overflow: hidden;
}
.review-avatar img.review-thumb {
  max-width: 55px;
  max-height: 55px;
  border-radius: 12px;
  border: 1.5px solid #d8e5f3;
  cursor: pointer;
  transition: box-shadow .15s;
}
.review-avatar img.review-thumb:hover {
  box-shadow: 0 3px 16px #47c8ff44;
}
.review-main {
  flex: 1;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.review-name {
  font-weight: bold;
  font-size: 1.05rem;
  color: #212d39;
}
.verified-badge {
  display: inline-block;
  background: #e5f9ee;
  color: #1bc47d;
  font-weight: 500;
  font-size: .95rem;
  padding: 2px 9px;
  border-radius: 6px;
  margin-right: 7px;
}
.review-stars {
  color: #FFD700;
  font-size: 1.15em;
  margin-left: 7px;
}
.review-message {
  font-size: 1.05rem;
  color: #344356;
  margin-top: 7px;
}

/* ADMIN PANEL REVIEWS */
.admin-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 0;
}
.review.admin-review {
  border: 1px solid #ececec;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 18px 18px 8px 18px;
  background: #fafbfc;
  box-shadow: 0 2px 7px #eee;
  display: flex;
  flex-direction: column;
}
.review-img {
  display: block;
  max-width: 90px;
  max-height: 90px;
  margin: 10px 0 10px 0;
  border-radius: 7px;
  border: 1px solid #eee;
}
.admin-review .submit-btn {
  background: #43a047;
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 5px;
  transition: background 0.15s;
}
.admin-review .submit-btn:hover {
  background: #357933;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .review-list, .admin-container { max-width: 99vw; }
}
@media (max-width: 750px) {
  .main-container, .review-list, .admin-container {
    width: 100vw !important;
    padding-left: 0; padding-right: 0;
  }
  .review-card {
    min-width: unset;
    width: 98vw;
    padding: 12px 5vw 22px 5vw;
    max-width: 99vw;
  }
  .review {
    flex-direction: column;
    gap: 8px;
    padding: 16px 8px 12px 8px;
  }
}

/* IMAGE MODAL */
.img-modal {
  display: none;
  position: fixed;
  z-index: 99;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(10,22,38,0.70);
  justify-content: center;
  align-items: center;
}
.img-modal img {
  max-width: 85vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 12px 32px #3338;
  background: #fff;
  display: block;
}
.modal-close {
  position: absolute;
  top: 24px; right: 38px;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 101;
}
.amazon-reviews-box {
    background: #fff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 0 24px #0001;
    margin: 40px auto;
    max-width: 700px;
}
.star-breakdown > div {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.star-bar-bg {
    flex: 1;
    background: #f0f0f0;
    border-radius: 5px;
    margin: 0 10px;
    height: 12px;
    position: relative;
}
.star-bar-fill {
    background: orange;
    height: 100%;
    border-radius: 5px;
}
.amazon-images-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.review-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}
.star-bar span {
    font-size: 1.1rem;
    margin-right:2px;
}

.review-product-box {
    margin-bottom: 28px;
}
.amazon-review-btn {
    padding: 12px 30px;
    border-radius: 24px;
    border: 1.5px solid #bbb;
    background: #fff;
    font-size: 1.13rem;
    cursor: pointer;
    margin-top: 8px;
    transition: background .15s;
}
.amazon-review-btn:hover {
    background: #f5f5f5;
}
.modal {
    position: fixed; z-index: 10; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,.18);
    display: flex; align-items: center; justify-content: center;
}
.modal-content {
    background: #fff; padding: 24px; border-radius: 12px; min-width: 320px; box-shadow: 0 4px 24px #0003;
    position: relative;
}
.modal-content .close {
    position: absolute; right: 12px; top: 8px; font-size: 24px; cursor: pointer;
}
.amazon-page {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.amazon-columns {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
}
.left-panel {
  flex: 0 0 350px;
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px #eee;
}
.right-panel {
  flex: 1 1 0%;
  background: #fff;
  padding: 2rem 2rem 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px #eee;
}
.rating-summary { margin-bottom: 1rem; font-size: 1.1rem; }
.stars { font-size: 1.3rem; }
.ratings-bar { margin-bottom: 2rem; }
.star-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.3rem; }
.bar-bg { width: 80px; height: 10px; background: #eee; border-radius: 3px; margin: 0 5px;}
.bar-fill { height: 100%; background: orange; border-radius: 3px; }
.review-this-product { margin-top: 2rem; }
.amazon-review-btn {
  display: block; width: 100%; padding: 0.7rem;
  border: 1px solid #ccc; background: #fff; border-radius: 2rem;
  font-size: 1.1rem; cursor: pointer;
  transition: background 0.2s;
}
.amazon-review-btn:hover { background: #f4f4f4; }
.review-images { display: flex; gap: 10px; margin-bottom: 2rem; }
.review-img { width: 100px; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
.review-card { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.review-text { margin-bottom: 0.5rem; }
.review-card-img { width: 80px; margin-top: 0.2rem; border-radius: 6px; border: 1px solid #eee; }
@media (max-width: 900px) {
  .amazon-columns { flex-direction: column; }
  .left-panel, .right-panel { width: 100%; max-width: 100%; }
}




