@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  background: #0b1324;
  color: #e8e6e3;
  padding: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: radial-gradient(circle at 10% 20%, #1a2744 0%, #0b1324 90%);
}

header {
  width: 100%;
  max-width: 1100px;
  padding: 18px 25px;
  border-bottom: 2px solid #c9a84c;
  margin-bottom: 22px;
  text-align: center;
  background: linear-gradient(180deg, #121f3b, #0b1324);
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
header h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #f5e7b2;
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.25);
}
header p {
  color: #b7b3a8;
  font-size: 0.95rem;
  margin-top: 3px;
  letter-spacing: 0.5px;
}

main {
  width: 100%;
  max-width: 1100px;
}

.notice-box {
  background: #1a2744;
  border-right: 4px solid #c9a84c;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  margin-bottom: 28px;
}
.notice-box .icon {
  font-size: 1.8rem;
}
.notice-box p {
  font-size: 0.8rem;
  color: #dedbd2;
  flex: 1;
  margin: 0;
}
.telegram-id {
  background: #c9a84c;
  color: #0b1324;
  padding: 5px 16px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.2);
}
.hint {
  color: #9e9a8f;
  font-size: 0.75rem;
  width: 100%;
  margin-top: 2px;
}

.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid #2a3a5c;
  padding-bottom: 8px;
}
.tab-btn {
  background: transparent;
  border: none;
  padding: 8px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  color: #9e9a8f;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
}
.tab-btn.active {
  background: #c9a84c;
  color: #0b1324;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}
.tab-btn:hover {
  color: #f5e7b2;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.item-card {
  background: linear-gradient(145deg, #1a2744, #0f1a30);
  border: 1px solid #2a3a5c;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: #c9a84c;
}
.item-card:hover {
  transform: translateY(-4px);
  border-color: #c9a84c;
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.12);
}

.item-card .title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f5e7b2;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.item-card .meta {
  display: flex;
  justify-content: space-between;
  color: #8f8b80;
  font-size: 0.75rem;
  margin-bottom: 12px;
  border-bottom: 1px dashed #2a3a5c;
  padding-bottom: 8px;
}
.item-card .desc {
  color: #dedbd2;
  line-height: 1.8;
  font-size: 0.95rem;
  background: #0b1324;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-right: 3px solid #c9a84c;
}

.item-card .actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.item-card .actions button {
  background: transparent;
  border: 1px solid #2a3a5c;
  border-radius: 30px;
  padding: 4px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
  color: #dedbd2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.item-card .actions button:hover {
  background: #1a2744;
}
.item-card .actions .like-btn {
  color: #8bc34a;
  border-color: #2e4a2a;
}
.item-card .actions .like-btn:hover {
  background: #1e3a1a;
}
.item-card .actions .dislike-btn {
  color: #ef5350;
  border-color: #4a2a2a;
}
.item-card .actions .dislike-btn:hover {
  background: #3a1a1a;
}

.comments-section {
  margin-top: 15px;
  border-top: 1px solid #1f2f4a;
  padding-top: 12px;
}
.comments-section h4 {
  color: #c9a84c;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.comment-item {
  background: #0f1a30;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border-right: 3px solid #2a3a5c;
}
.comment-item .comment-name {
  font-weight: bold;
  color: #f5e7b2;
  font-size: 0.8rem;
}
.comment-item .comment-text {
  color: #b7b3a8;
  margin-top: 2px;
  font-size: 0.9rem;
}
.comment-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.comment-form input {
  flex: 1;
  min-width: 100px;
  padding: 8px 14px;
  border: 1px solid #2a3a5c;
  border-radius: 30px;
  background: #0b1324;
  color: #dedbd2;
  font-size: 0.85rem;
}
.comment-form input::placeholder {
  color: #5a5a55;
}
.comment-form button {
  background: #c9a84c;
  color: #0b1324;
  border: none;
  padding: 8px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.85rem;
  transition: 0.2s;
}
.comment-form button:hover {
  background: #b8963a;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.25);
}

.auth-box {
  background: #1a2744;
  padding: 25px;
  border-radius: 16px;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  text-align: center;
  border: 1px solid #2a3a5c;
}
.auth-box h3 {
  color: #f5e7b2;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.auth-box input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #2a3a5c;
  border-radius: 30px;
  background: #0b1324;
  color: #dedbd2;
  font-size: 0.95rem;
  margin: 12px 0;
}
.auth-box button {
  background: #c9a84c;
  color: #0b1324;
  border: none;
  padding: 10px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}
.auth-box button:hover {
  background: #b8963a;
}

.admin-actions {
  background: #1a2744;
  padding: 20px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  margin-bottom: 20px;
  border: 1px solid #2a3a5c;
}
.admin-actions h3 {
  color: #f5e7b2;
  margin-bottom: 16px;
  font-size: 1.1rem;
  border-bottom: 2px solid #c9a84c;
  padding-bottom: 8px;
}
.admin-actions .form-group {
  margin-bottom: 14px;
}
.admin-actions .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #b7b3a8;
  font-size: 0.9rem;
}
.admin-actions .form-group input,
.admin-actions .form-group textarea,
.admin-actions .form-group select {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #2a3a5c;
  border-radius: 10px;
  background: #0b1324;
  color: #dedbd2;
  font-size: 0.9rem;
}
.admin-actions .form-group input:focus,
.admin-actions .form-group select:focus {
  outline: 2px solid #c9a84c;
  border-color: transparent;
}
.admin-actions button[type="submit"] {
  background: #c9a84c;
  color: #0b1324;
  border: none;
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s;
}
.admin-actions button[type="submit"]:hover {
  background: #b8963a;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.dynamic-fields {
  background: #0f1a30;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 8px 0 16px;
  border-right: 4px solid #c9a84c;
}

#allItemsList .admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f1a30;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid #1f2f4a;
}
#allItemsList .admin-item .info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
}
#allItemsList .admin-item .info span {
  background: #1a2744;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: #c9a84c;
  border: 1px solid #2a3a5c;
}
#allItemsList .admin-item button {
  background: #4a2a2a;
  color: #ef5350;
  border: 1px solid #5a3a3a;
  padding: 4px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.2s;
}
#allItemsList .admin-item button:hover {
  background: #5a2a2a;
  border-color: #ef5350;
}

.message {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0f1a30;
  display: none;
  border-right: 4px solid #c9a84c;
  font-size: 0.9rem;
}
.message.success {
  display: block;
  background: #1a2a1a;
  color: #8bc34a;
  border-color: #8bc34a;
}
.message.error {
  display: block;
  background: #2a1a1a;
  color: #ef5350;
  border-color: #ef5350;
}

hr {
  margin: 25px 0;
  border: 0;
  border-top: 1px dashed #2a3a5c;
}

footer {
  margin-top: 40px;
  padding: 15px;
  color: #5a5a55;
  font-size: 0.8rem;
  border-top: 1px solid #1f2f4a;
  width: 100%;
  text-align: center;
}

@media (max-width: 600px) {
  header h1 { font-size: 1.5rem; }
  .telegram-id { font-size: 0.9rem; padding: 4px 12px; }
  .items-grid { grid-template-columns: 1fr; }
  .tabs { gap: 8px; }
  .tab-btn { padding: 6px 18px; font-size: 0.9rem; }
  .notice-box { padding: 12px 14px; }
  .notice-box p { font-size: 0.75rem; }
  .notice-box .icon { font-size: 1.5rem; }
}