body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(5, 150, 105, 0.06) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

main.container {
  flex: 1 0 auto;
  padding-top: 1rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 575.98px) {
  main.container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.page-content-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

/* Мобильные устройства (до 576px) */
@media (max-width: 575.98px) {
  body {
    font-size: 14px;
  }

  .main-navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .brand-icon {
    font-size: 1.25rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 2rem 0 2.5rem;
    margin: -0.5rem -0.75rem -1rem;
  }

  .hero-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-badge .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .hero .btn-lg {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .stat-item {
    text-align: center;
    width: 100%;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .hero-feature-card {
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .cars-section-wrapper {
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-radius: 1rem;
  }

  .empty-state-wrapper {
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-radius: 1rem;
  }

  .empty-state {
    padding: 2rem 1rem;
  }

  .empty-icon {
    font-size: 3rem;
  }

  .car-card {
    margin-bottom: 1rem;
  }

  .car-card-img {
    height: 200px;
  }

  .car-placeholder {
    height: 200px;
  }

  .placeholder-icon {
    font-size: 3rem;
  }

  .card-body {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .car-price {
    font-size: 1.25rem;
  }

  .car-specs {
    padding: 0.5rem 0;
  }

  .spec-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .spec-item {
    font-size: 0.8rem;
  }

  .vip-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  main.container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .footer-main {
    padding: 1.5rem 0;
    font-size: 0.8rem;
  }

  .hero::before,
  .hero::after {
    display: none;
  }
}

/* Планшеты (576px - 768px) */
@media (min-width: 576px) and (max-width: 768px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .car-card-img {
    height: 200px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cars-section-wrapper {
    padding: 2rem;
  }

  .empty-state-wrapper {
    padding: 2rem;
  }
}

/* Планшеты в портретной ориентации (768px - 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .car-card-img {
    height: 210px;
  }

  .section-title {
    font-size: 1.875rem;
  }
}

.card {
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.car-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

.car-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.car-card:hover::before {
  opacity: 1;
}

.car-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.car-card-img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

.car-card:hover .car-card-img {
  transform: scale(1.05);
}

.car-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.placeholder-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.car-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.vip-badge {
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
}

.vip-icon {
  margin-right: 0.25rem;
}

.car-specs {
  padding: 0.75rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #64748b;
}

.spec-icon {
  font-size: 1rem;
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #047857;
  line-height: 1.2;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
  border-radius: 2px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
}

.empty-state-wrapper {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
}

.empty-state {
  padding: 3rem 2rem;
}

.empty-icon {
  font-size: 4rem;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

.cars-section-wrapper {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
  position: relative;
}

.cars-section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
  border-radius: 1.5rem 1.5rem 0 0;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.car-main-img {
  max-height: 420px;
  object-fit: cover;
  width: 100%;
  border-radius: 0.75rem;
}

.car-photo-wrap {
  min-height: 200px;
  background: #f1f5f9;
  border-radius: 0.75rem;
  overflow: hidden;
}

.car-main-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 0.75rem;
}

@media (max-width: 575.98px) {
  .car-main-img {
    max-height: 250px;
    border-radius: 0.5rem;
  }

  .table {
    font-size: 0.85rem;
  }

  .table th {
    width: 40%;
    font-size: 0.8rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
  }

  .table td {
    padding: 0.5rem 0;
    font-size: 0.85rem;
  }

  .row.g-3,
  .row.g-4 {
    --bs-gutter-y: 1rem;
  }

  .mb-4 {
    margin-bottom: 1.5rem !important;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .hero-feature-card h3 {
    font-size: 1rem;
  }

  .hero-feature-card p {
    font-size: 0.8rem;
  }

  .feature-item {
    font-size: 0.8rem;
  }

  .alert {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  h1, .h1 {
    font-size: 1.75rem;
  }

  h2, .h2 {
    font-size: 1.5rem;
  }

  h3, .h3 {
    font-size: 1.25rem;
  }

  h4, .h4 {
    font-size: 1.1rem;
  }

  h5, .h5 {
    font-size: 1rem;
  }

  h6, .h6 {
    font-size: 0.9rem;
  }

  .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .card-text {
    font-size: 0.85rem;
  }

  .text-muted {
    font-size: 0.8rem;
  }

  .small {
    font-size: 0.75rem;
  }

  .gap-2 {
    gap: 0.5rem !important;
  }

  .gap-3 {
    gap: 0.75rem !important;
  }

  .gap-4 {
    gap: 1rem !important;
  }

  .mb-2 {
    margin-bottom: 0.5rem !important;
  }

  .mb-3 {
    margin-bottom: 0.75rem !important;
  }

  .mb-4 {
    margin-bottom: 1rem !important;
  }

  .mt-2 {
    margin-top: 0.5rem !important;
  }

  .mt-3 {
    margin-top: 0.75rem !important;
  }

  .mt-4 {
    margin-top: 1rem !important;
  }

  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
}

/* Улучшение для touch-устройств */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .car-card:hover .car-card-img {
    transform: none;
  }

  .stat-item:hover .stat-number {
    transform: none;
  }

  .btn-primary:active,
  .btn-outline-light:active {
    transform: scale(0.98);
  }
}

.main-navbar {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 1rem 0;
  position: relative;
  z-index: 1000;
}

.main-navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
}

.navbar-brand {
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-item {
    margin-bottom: 0.25rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  .navbar-nav .d-flex {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .navbar-nav .nav-link {
    padding: 0.625rem 0.75rem;
    font-size: 0.9rem;
  }

  .navbar-nav .d-flex {
    padding: 0.625rem 0.75rem;
    font-size: 0.85rem;
  }
}

.footer-main {
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  position: relative;
  margin-top: 3rem;
}

.footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
}

/* Дополнительные декоративные элементы */
.hero-feature-card {
  position: relative;
}

.hero-feature-card::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Улучшение для карточек */
.car-card .card-body {
  background: #fff;
}

/* Анимация для статистики */
.stat-number {
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
}

/* Улучшение для кнопок в hero */
.hero .btn-primary {
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.hero .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.hero {
  position: relative;
  padding: 4rem 0 5rem;
  margin: -1rem -0 -1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  color: #f9fafb;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -3%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-pattern {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  animation: fadeInDown 0.6s ease-out;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
  max-width: 36rem;
  color: rgba(248, 250, 252, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-stats {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-feature-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: fadeInRight 0.6s ease-out 0.2s both;
}

.feature-icon {
  font-size: 3rem;
  text-align: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.9rem;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero .btn-outline-light {
  border-color: rgba(248, 250, 252, 0.4);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero .btn-outline-light:hover {
  background-color: rgba(248, 250, 252, 0.15);
  border-color: rgba(248, 250, 252, 0.6);
  color: #fff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.admin-thumb-img {
  width: 70px;
  height: 52px;
  object-fit: cover;
}

.list-group-item .btn-sm {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .list-group-item .d-flex.flex-column {
    width: 100%;
    margin-top: 0.5rem;
  }

  .list-group-item .btn-sm {
    font-size: 0.7rem;
    padding: 0.375rem 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .admin-thumb-img {
    width: 50px;
    height: 38px;
  }

  .table-responsive {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }

  .table th {
    font-size: 0.75rem;
  }

  .list-group-item {
    padding: 0.75rem;
  }

  .list-group-item h3,
  .list-group-item h6 {
    font-size: 0.9rem;
  }

  .list-group-item .small {
    font-size: 0.75rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .card-body {
    padding: 1rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-control,
  .form-select {
    font-size: 0.9rem;
    padding: 0.625rem 0.75rem;
  }

  .form-control-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  textarea.form-control {
    min-height: 100px;
  }
}

.auth-page-wrapper {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

/* Стили для формы подачи объявления */
.form-page-wrapper {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.form-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
}

.form-card-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  color: #fff;
  padding: 2rem;
  border: none;
}

.form-header-icon {
  font-size: 3rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  flex-shrink: 0;
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f1f5f9;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.section-title-wrapper {
  padding-bottom: 1rem;
}

.section-title-form {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  font-size: 1.75rem;
}

.section-description {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.form-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.label-icon {
  font-size: 1.1rem;
}

.form-control-modern,
.form-select-modern {
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fff;
}

.form-control-modern:focus,
.form-select-modern:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  outline: none;
}

.form-control-modern::placeholder {
  color: #94a3b8;
}

.form-select-modern {
  cursor: pointer;
}

.input-group-modern {
  display: flex;
  align-items: stretch;
}

.input-group-modern .input-group-text {
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-left: none;
  border-radius: 0 0.75rem 0.75rem 0;
  color: #64748b;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.input-group-modern .form-control-modern {
  border-right: none;
  border-radius: 0.75rem 0 0 0.75rem;
}

.input-group-modern .form-control-modern:focus + .input-group-text {
  border-color: #10b981;
}

/* Загрузка файла */
.file-upload-wrapper {
  margin-bottom: 1rem;
}

.file-upload-label {
  display: block;
  cursor: pointer;
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.file-upload-label:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.file-upload-input {
  display: none;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.file-upload-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.file-upload-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.file-upload-main {
  font-weight: 600;
  color: #334155;
  font-size: 1rem;
}

.file-upload-sub {
  color: #64748b;
  font-size: 0.85rem;
}

.file-preview {
  margin-top: 1rem;
}

.file-preview-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
}

.file-preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.file-preview-info {
  flex: 1;
}

.file-preview-name {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.25rem;
}

.file-preview-size {
  color: #64748b;
  font-size: 0.85rem;
}

.file-preview-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border: none;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.file-preview-remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* VIP запрос карточка */
.vip-request-card {
  padding: 1.25rem;
  border: 2px solid #fbbf24;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  transition: all 0.3s ease;
}

.vip-request-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.vip-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-color: #f59e0b;
  color: #92400e;
  transition: all 0.3s ease;
}

.telegram-btn:hover {
  background-color: #fbbf24;
  border-color: #f59e0b;
  color: #78350f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.telegram-btn span {
  font-size: 1.1rem;
}

/* Алерт */
.alert-modern {
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Кнопки */
.form-actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #f1f5f9;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
}

.btn-submit span {
  font-size: 1.1rem;
}

@media (max-width: 575.98px) {
  .form-page-wrapper {
    padding: 1rem 0;
  }

  .form-card-header {
    padding: 1.5rem 1rem;
  }

  .form-header-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }

  .card-body {
    padding: 1.5rem 1rem !important;
  }

  .section-title-form {
    font-size: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-icon {
    font-size: 1.5rem;
  }

  .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .file-upload-label {
    padding: 1.5rem 1rem;
  }

  .file-upload-icon {
    font-size: 2rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-submit,
  .btn-outline-secondary {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .auth-page-wrapper {
    min-height: calc(100vh - 120px);
    padding: 0.5rem;
  }

  .auth-card {
    max-width: 100%;
  }

  .auth-card .card-body {
    padding: 1.5rem 1rem;
  }

  .auth-card h1 {
    font-size: 1.25rem;
  }

  .auth-card .form-label {
    font-size: 0.9rem;
  }

  .auth-card .form-control {
    font-size: 0.9rem;
    padding: 0.625rem 0.75rem;
  }

  .auth-card .btn {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}


