@charset "utf-8";

input {
  color:#fff!important;
}

textarea {
  color:#fff!important;
}

select {
  color:#fff!important;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  /*font-family: 'Inter', sans-serif;*/
}

.login-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

.login-bg::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
    outline: none;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-btn {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.5);
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.alert-box {
    margin: 20px 0;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid;
}
.alert-box.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}
.alert-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.profile-schedule {
    margin-top: 20px;
    padding: 16px 0;
    border-top: 1px solid #3d5466;
    overflow: hidden;
    max-width: 100%;
  }
  
  .profile-schedule-title {
    font-size: 14px;
    font-weight: 600;
    color: #8899a6;
    margin-bottom: 12px;
  }
  
  .profile-schedule-title i {
    color: #1d9bf0;
    margin-right: 6px;
  }
  
  .schedule-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  
  .schedule-scroll::-webkit-scrollbar {
    height: 4px;
  }
  
  .schedule-scroll::-webkit-scrollbar-track {
    background: #253341;
    border-radius: 2px;
  }
  
  .schedule-scroll::-webkit-scrollbar-thumb {
    background: #3d5466;
    border-radius: 2px;
  }
  
  .schedule-item {
    min-width: 72px;
    padding: 10px 8px;
    background: #253341;
    border-radius: 10px;
    text-align: center;
    flex-shrink: 0;
    border: 2px solid transparent;
  }
  
  .schedule-item.has-schedule {
    background: linear-gradient(135deg, #1d3a4a, #1d4a5a);
    border-color: #1d9bf0;
  }
  
  .schedule-item.weekend .schedule-date,
  .schedule-item.weekend .schedule-day {
    color: #f91880;
  }
  
  .schedule-date {
    font-size: 11px;
    color: #8899a6;
    margin-bottom: 2px;
  }
  
  .schedule-day {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 6px;
  }
  
  .schedule-time {
    font-size: 13px;
    color: #1d9bf0;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .schedule-separator {
    display: block;
    font-size: 13px;
    color: #8899a6;
  }
  
  .schedule-memo {
    font-size: 13px;
    color: #1d9bf0;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 64px;
  }
  
  .schedule-empty {
    font-size: 18px;
    color: #3d5466;
  }
  
  /* 翌日表示 */
  .schedule-next-day {
    font-size: 12px;
    color: #f91880;
    margin-right: 1px;
  }

#preview-1 img,
#preview-2 img,
#preview-3 img {
max-width: 300px;
max-height: 300px;
object-fit: contain;
}
/* スマホ対応 */
@media (max-width: 640px) {
#preview-1 img,
#preview-2 img,
#preview-3 img {
max-width: 200px;
max-height: 200px;
}
}

.image-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed #e5e7eb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f9fafb;
    position: relative;
}
.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.image-preview.has-image {
    border-color: #ec4899;
    background-color: white;
}
.header-preview {
    height: 150px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #1f2937;
    padding: 30px;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}
.crop-container {
    max-width: 600px;
    max-height: 500px;
    margin: 20px auto;
}
.crop-container img {
    max-width: 100%;
}

.story-preview {
  max-height: 400px;
  max-width: 100%;
  object-fit: contain;
}
@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
.animate-slide-down {
  animation: slideDown 0.3s ease-out;
}

/**
 * キャストダッシュボード - ダークテーマ
 */

/* 背景 */
.dashboard-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  min-height: 100vh;
  max-width:600px;
  margin:0 auto;
  position: relative;
}

.dashboard-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  animation: pulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.dashboard-bg textarea {
  font-size:16px;
}

.dashboard-bg input {
  font-size:16px;
}

/* カード共通 */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

/* ヘッダーカード */
.header-card {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 統計カード */
.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.stat-card-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.stat-card-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.stat-card-value {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}

.stat-card-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}


/* アクションボタン */
.action-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid #ec4899;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.action-card-post {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.action-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(236, 72, 153, 0.3);
}

.action-card-pink:hover { border-color: rgba(236, 72, 153, 0.5); }
.action-card-blue:hover { border-color: rgba(59, 130, 246, 0.5); }
.action-card-purple:hover { border-color: rgba(139, 92, 246, 0.5); }

.action-card i {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.action-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.action-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* 警告バナー */
.warning-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* スケジュールセクション */
.schedule-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom:30px;
}

.schedule-section h2 {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.schedule-section h2 i {
  color: #ec4899;
}

/* スケジュールカード */
.schedule-card-dark {
  min-width: 120px;
  padding: 14px 10px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.schedule-card-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}

.schedule-card-dark.has-schedule {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.5);
}

.schedule-card-dark .date {
  font-size: 14px!important;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.schedule-card-dark .day {
  font-size: 14px!important;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
}

.schedule-card-dark.weekend .date,
.schedule-card-dark.weekend .day {
  color: #ec4899;
}

.schedule-card-dark .time {
  font-size: 14px!important;
  color: #eee;
  font-weight: 600;
}

.schedule-card-dark .memo {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-card-dark .empty {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.2);
}

/* モーダル */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 360px;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

.modal-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.modal-label i {
  color: #ec4899;
  margin-right: 6px;
}

.modal-input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
}

.modal-input:focus {
  outline: none;
  border-color: #ec4899;
  background: rgba(255, 255, 255, 0.08);
}

.modal-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.modal-btn-primary {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-primary:hover {
  opacity: 0.9;
}

.modal-btn-secondary {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.modal-btn-delete {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: none;
  background: none;
  font-size: 13px;
  color: #ef4444;
  cursor: pointer;
}

/* トグルスイッチ */
.schedule-toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.schedule-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.schedule-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 26px;
}

.schedule-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.schedule-toggle input:checked + .schedule-toggle-slider {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.schedule-toggle input:checked + .schedule-toggle-slider:before {
  transform: translateX(22px);
}

/* トースト */
.toast-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast-notification.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.toast-notification i {
  margin-right: 8px;
}

.header-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-btn-primary {
  background: #fff;
  color: #ec4899;
}

.header-btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.header-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.tab-button {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-button:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
}
.tab-button.active {
  color: #ec4899;
  border-bottom-color: #ec4899;
  background: rgba(236,72,153,0.1);
}
.post-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}
.post-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.post-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.post-content {
  padding: 16px;
}
.post-actions {
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.action-btn {
  flex: 1;
  min-width: 80px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.action-btn-view { background: rgba(59,130,246,0.2); color: #60a5fa; }
.action-btn-view:hover { background: rgba(59,130,246,0.3); }
.action-btn-edit { background: rgba(255,255,255,0.1); color: #fff; }
.action-btn-edit:hover { background: rgba(255,255,255,0.15); }
.action-btn-trash { background: rgba(249,115,22,0.2); color: #fb923c; }
.action-btn-trash:hover { background: rgba(249,115,22,0.3); }
.action-btn-restore { background: rgba(34,197,94,0.2); color: #4ade80; }
.action-btn-restore:hover { background: rgba(34,197,94,0.3); }
.action-btn-delete { background: rgba(239,68,68,0.2); color: #f87171; }
.action-btn-delete:hover { background: rgba(239,68,68,0.3); }
.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.status-published { background: rgba(34,197,94,0.2); color: #4ade80; }
.status-draft { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.status-trash { background: rgba(239,68,68,0.2); color: #f87171; }
.pagination-btn {
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}
.pagination-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.pagination-btn.active {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-color: transparent;
  color: #fff;
  font-weight: bold;
}
.pagination-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.status-scheduled {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
}
.modal-header {
  background: linear-gradient(135deg, #f97316, #ea580c);
  padding: 16px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-body { padding: 20px; }
.modal-footer { padding: 0 20px 20px; display: flex; gap: 12px; }

.form-section { margin-bottom: 24px; }
.form-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.form-section-title i { color: #ec4899; margin-right: 8px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}
.form-label .required { color: #f87171; margin-left: 4px; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: #ec4899;
    background: rgba(255,255,255,0.08);
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input-readonly {
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
}
.form-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
}
.form-hint i { margin-right: 4px; }
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
.image-upload-area {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.image-upload-area:hover { border-color: rgba(236,72,153,0.5); }
.image-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    overflow: hidden;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.header-preview {
    width: 100%;
    height: 100px;
    border-radius: 12px;
}
.warning-box {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}
.warning-box-title {
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 8px;
}
.warning-box-title i { margin-right: 6px; }
.warning-box ul {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0;
    padding-left: 20px;
}
.warning-box li { margin-bottom: 4px; }
#cropModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#cropModal.active { display: flex; }
.crop-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 100%;
}
.crop-container {
    max-height: 400px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.image-upload-area input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.upload-area {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}
.upload-area:hover {
  border-color: rgba(236,72,153,0.5);
  background: rgba(255,255,255,0.05);
}
.upload-input {
  width: 100%;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.upload-input::file-selector-button {
  padding: 10px 20px;
  margin-right: 12px;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(236,72,153,0.2));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 8px;
  color: #c084fc;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-input::file-selector-button:hover {
  background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(236,72,153,0.3));
}
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  resize: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.form-textarea:focus {
  outline: none;
  border-color: #a855f7;
  background: rgba(255,255,255,0.08);
}
.form-textarea::placeholder { color: rgba(255,255,255,0.3); }
.preview-area {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.preview-media {
  max-width: 300px;
  max-height: 400px;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .story-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .story-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .story-grid { grid-template-columns: repeat(5, 1fr); }
}
.story-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.story-card img,
.story-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  padding: 12px;
}
.story-caption {
  color: #fff;
  font-size: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.story-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 10px;
  background: rgba(239,68,68,0.9);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.story-delete-btn:hover {
  background: #dc2626;
}
.video-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 6px 8px;
  background: rgba(0,0,0,0.6);
  border-radius: 6px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state i {
  font-size: 64px;
  color: rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.char-counter {
  text-align: right;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}
.char-counter span { color: #a855f7; font-weight: 600; }
.info-box {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.info-box i { color: #fbbf24; margin-top: 2px; }
.info-box p { color: rgba(255,255,255,0.7); font-size: 13px; margin: 0; }

.banner-ads-container {
  margin: 15px 0 25px;
  padding: 0;
}