@charset "UTF-8";
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --perfect-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --sidebar-width: 280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%), radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: rgb(57.1551724138, 88.1896551724, 227.8448275862);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

::-moz-selection {
  background: rgba(102, 126, 234, 0.3);
  color: #333;
}

::selection {
  background: rgba(102, 126, 234, 0.3);
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
}

h2 {
  font-size: 2.5rem;
}
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
}

h3 {
  font-size: 1.5rem;
}
@media (max-width: 768px) {
  h3 {
    font-size: 1.2rem;
  }
}

h4 {
  font-size: 1.1rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.85rem;
}

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: 0.85rem;
}

code {
  font-family: "Courier New", Consolas, monospace;
  background: rgba(0, 0, 0, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9em;
}

pre {
  font-family: "Courier New", Consolas, monospace;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  color: #f8f8f2;
  font-size: 0.85rem;
}
pre code {
  background: none;
  padding: 0;
}

.text-primary {
  color: #667eea !important;
}

.text-success {
  color: #28a745 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-info {
  color: #17a2b8 !important;
}

.text-muted {
  color: #666 !important;
}

.text-muted-white {
  color: rgba(255, 255, 255, 0.8) !important;
}

.text-white {
  color: #fff !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(1deg);
  }
  66% {
    transform: translateY(10px) rotate(-1deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInFromLeft {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideOutToLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-120%);
    opacity: 0;
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slide {
  0% {
    transform: translateX(-50px);
  }
  100% {
    transform: translateX(50px);
  }
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes bellRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-10deg);
  }
  20%, 40% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(0deg);
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.slide-in-up {
  animation: slideInUp 0.5s ease-out;
}

.slide-down {
  animation: slideDown 0.4s ease-out;
}

.zoom-in {
  animation: zoomIn 0.3s ease-out;
}

.main-content {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  gap: 2rem;
}
@media (max-width: 1200px) {
  .main-content {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }
}

.main-content-wrapper {
  flex: 1;
  min-width: 0;
}

.content-section {
  display: none;
  animation: fadeIn 0.4s ease-out;
}
.content-section.active {
  display: block;
}

.content-section-inner {
  padding: 2rem;
}
@media (max-width: 768px) {
  .content-section-inner {
    padding: 1.5rem;
  }
}

.main-container {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(31, 38, 135, 0.37);
  margin: 0 auto;
  max-width: 1200px;
}
@media (max-width: 768px) {
  .main-container {
    border-radius: 20px;
  }
}

.section-header-centered {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header-centered h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .section-header-centered h2 {
    font-size: 2rem;
  }
}
.section-header-centered p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem 0;
}
@media (max-width: 768px) {
  .section-header-centered p {
    font-size: 1rem;
  }
}

.pagespeed-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .pagespeed-container {
    padding: 1rem;
  }
}
.pagespeed-container .pagespeed-loading {
  text-align: center;
  padding: 3rem;
}
.pagespeed-container .pagespeed-loading i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
}
.pagespeed-container .pagespeed-loading p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.pagespeed-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 768px) {
  .pagespeed-actions {
    flex-direction: column;
  }
  .pagespeed-actions .btn-action {
    width: 100%;
  }
}

.chatgpt-section {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
  animation: slide 20s linear infinite;
}
.hero-header .hero-content {
  position: relative;
  z-index: 2;
}
.hero-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .hero-header h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 480px) {
  .hero-header h1 {
    font-size: 2rem;
  }
}
.hero-header .subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .hero-header .subtitle {
    font-size: 1.1rem;
  }
}
.hero-header .supported-formats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-header .supported-formats .format-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
@media (max-width: 480px) {
  .hero-header .supported-formats .format-badge {
    padding: 0.25rem 1rem;
    font-size: 0.9rem;
  }
}

.btn-styled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #fff !important;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}
.btn-styled:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-styled:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}
@media (max-width: 768px) {
  .btn-styled {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
}
.btn-styled:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.btn-styled:active {
  transform: translateY(-1px);
}
.btn-styled.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}
.btn-styled.btn-danger:hover {
  box-shadow: 0 0 30px rgba(220, 53, 69, 0.5);
}
.btn-styled.btn-danger:hover {
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50px;
  padding: 1rem 2rem;
  color: #fff;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}
.btn-custom:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-custom:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}
@media (max-width: 768px) {
  .btn-custom {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .btn-custom {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    min-width: 120px;
  }
}
.btn-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.btn-custom:hover {
  transform: translateY(-3px);
}
.btn-custom:hover::before {
  left: 100%;
}
.btn-custom.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}
.btn-custom.btn-success:hover {
  box-shadow: 0 0 30px rgba(40, 167, 69, 0.5);
}
.btn-custom.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  box-shadow: 0 0 20px rgba(108, 117, 125, 0.3);
}
.btn-custom.btn-secondary:hover {
  box-shadow: 0 0 30px rgba(108, 117, 125, 0.5);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
}
.btn-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-action i {
  margin-right: 0.5rem;
}
.btn-action:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-changelog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}
.btn-changelog-close:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-changelog-close:hover {
  box-shadow: 0 0 30px rgba(220, 53, 69, 0.5);
}
.btn-changelog-close:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-chatgpt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #10a37f 0%, #0d8c6d 100%);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 5px 20px rgba(16, 163, 127, 0.3);
}
.btn-chatgpt:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-chatgpt i {
  margin-right: 0.5rem;
}
.btn-chatgpt:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 163, 127, 0.5);
}
.btn-chatgpt:active {
  transform: translateY(-1px);
}

.tool-btn,
.preview-btn,
.download-btn,
.remove-btn,
.reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 0.9rem;
  border: 2px solid transparent;
  position: relative;
}
.tool-btn:disabled,
.preview-btn:disabled,
.download-btn:disabled,
.remove-btn:disabled,
.reset-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.tool-btn:hover,
.preview-btn:hover,
.download-btn:hover,
.remove-btn:hover,
.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
  .tool-btn,
  .preview-btn,
  .download-btn,
  .remove-btn,
  .reset-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}
.tool-btn:hover::after,
.preview-btn:hover::after,
.download-btn:hover::after,
.remove-btn:hover::after,
.reset-btn:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tool-btn:hover:hover::after,
.preview-btn:hover:hover::after,
.download-btn:hover:hover::after,
.remove-btn:hover:hover::after,
.reset-btn:hover:hover::after {
  opacity: 1;
}
.tool-btn.active,
.preview-btn.active,
.download-btn.active,
.remove-btn.active,
.reset-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}

.tool-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.preview-btn:hover {
  border-color: #17a2b8;
  color: #17a2b8;
}

.download-btn:hover {
  border-color: #28a745;
  color: #28a745;
}

.reset-btn:hover {
  border-color: #ffc107;
  color: #ffc107;
}

.remove-btn:hover {
  border-color: #dc3545;
  color: #dc3545;
}

.bulk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: #333;
}
.bulk-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 768px) {
  .bulk-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
.bulk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}
.bulk-btn.danger:hover {
  border-color: #dc3545;
  color: #dc3545;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.bulk-actions {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}
.bulk-actions .bulk-actions-header {
  text-align: center;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.bulk-actions .bulk-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sidebar-toggle {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1001;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}
.sidebar-toggle:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}
.sidebar-toggle:hover {
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .sidebar-toggle {
    top: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  z-index: 1002;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}
.sidebar.active {
  left: 0;
}
.sidebar .sidebar-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar .sidebar-header h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}
.sidebar .sidebar-header .sidebar-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 10px;
  width: 35px;
  height: 35px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sidebar .sidebar-header .sidebar-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.sidebar .sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
  overflow-y: auto;
}
.sidebar .sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar .sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
.sidebar .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
.sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
.sidebar .sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}
.sidebar .sidebar-nav .nav-item i {
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 24px;
  text-align: center;
}
.sidebar .sidebar-nav .nav-item span {
  font-weight: 500;
  font-size: 1rem;
}
.sidebar .sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding-left: 2rem;
}
.sidebar .sidebar-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-left-color: #fff;
  font-weight: 600;
}
.sidebar .sidebar-stats {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar .sidebar-stats .sidebar-stat-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
}
.sidebar .sidebar-stats .sidebar-stat-item i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-right: 1rem;
}
.sidebar .sidebar-stats .sidebar-stat-item .stat-info {
  flex: 1;
}
.sidebar .sidebar-stats .sidebar-stat-item .stat-info .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar .sidebar-stats .sidebar-stat-item .stat-info .stat-value {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-top: 0.25rem;
}
.sidebar .sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.sidebar .sidebar-footer small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.notification-center {
  position: fixed;
  top: 100px;
  left: 20px;
  width: 30%;
  min-height: 15%;
  padding: 20px 30px;
  background-color: #fff;
  border-left: 5px solid #dc3545;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateX(-120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.notification-center.active {
  transform: translateX(0);
  opacity: 1;
  animation: slideInFromLeft 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.notification-center.closing {
  animation: slideOutToLeft 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045);
  transform: translateX(-120%);
  opacity: 0;
}
.notification-center .notification-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(220, 53, 69, 0.1);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #dc3545;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}
.notification-center .notification-close:hover {
  background: #dc3545;
  color: #fff;
  transform: rotate(90deg);
}
.notification-center .notification-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  margin-bottom: 1.5rem;
  animation: bellRing 2s ease-in-out infinite;
}
.notification-center .notification-content {
  width: 100%;
}
.notification-center .notification-content h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}
.notification-center .notification-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}
.notification-center .notification-content p b {
  color: #dc3545;
}
@media (max-width: 768px) {
  .notification-center {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    top: 80px;
  }
}

.notification-reopen {
  position: fixed;
  top: 100px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  transform: translateX(-100px);
  opacity: 0;
}
.notification-reopen.visible {
  display: flex;
  animation: slideInFromLeft 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  transform: translateX(0);
  opacity: 1;
}
.notification-reopen:hover {
  transform: translateX(5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}
.notification-reopen .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid #fff;
}
@media (max-width: 768px) {
  .notification-reopen {
    top: 80px;
  }
}

.old-notifications-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}
.old-notifications-section h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.notification-archive-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.notification-archive-card .archive-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.notification-archive-card h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.notification-archive-card ul {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  padding-left: 1.5rem;
  list-style: disc;
}
.notification-archive-card ul li {
  margin-bottom: 0.5rem;
}

.upload-zone {
  background: rgba(255, 255, 255, 0.1);
  border: 3px dashed rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .upload-zone {
    padding: 3rem 1.5rem;
  }
}
@media (max-width: 480px) {
  .upload-zone {
    padding: 2rem 1rem;
  }
}
.upload-zone::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;
}
.upload-zone:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.upload-zone:hover:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}
.upload-zone:hover::before {
  left: 100%;
}
.upload-zone:hover .upload-icon {
  transform: scale(1.1);
  color: #fff;
}
.upload-zone.dragover {
  border-color: #4facfe;
  background: rgba(79, 172, 254, 0.2);
  transform: scale(1.02);
}
.upload-zone.dragover .upload-icon {
  animation: bounce 0.6s ease infinite;
}
.upload-zone .upload-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .upload-zone .upload-icon {
    font-size: 3rem;
  }
}
.upload-zone h3 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
@media (max-width: 768px) {
  .upload-zone h3 {
    font-size: 1.5rem;
  }
}
.upload-zone p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .upload-zone p {
    font-size: 1rem;
  }
}

.url-upload-section {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 2rem;
}
.url-upload-section .url-upload-header {
  text-align: center;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.url-upload-section .url-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .url-upload-section .url-input-group {
    flex-direction: column;
  }
}
.url-upload-section .url-input-group .url-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.3s ease;
}
.url-upload-section .url-input-group .url-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}
.url-upload-section .url-input-group .url-input::-moz-placeholder {
  color: #999;
}
.url-upload-section .url-input-group .url-input::placeholder {
  color: #999;
}
.url-upload-section .url-input-group .url-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.url-upload-section .url-input-group .url-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}
.url-upload-section .url-input-group .url-add-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.url-upload-section .url-input-group .url-add-btn:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}
@media (max-width: 768px) {
  .url-upload-section .url-input-group .url-add-btn {
    width: 100%;
  }
}
.url-upload-section .url-input-group .url-add-btn:hover {
  transform: translateY(-2px);
}
.url-upload-section .url-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.url-upload-section .url-list .url-item {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.url-upload-section .url-list .url-item .url-text {
  flex: 1;
  font-size: 0.9rem;
  color: #333;
  word-break: break-all;
}
.url-upload-section .url-list .url-item .url-remove-btn {
  background: #dc3545;
  border: none;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.url-upload-section .url-list .url-item .url-remove-btn:hover {
  background: rgb(189.2151898734, 32.7848101266, 47.7721518987);
  transform: scale(1.1);
}

.quality-control {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .quality-control {
    padding: 1.5rem;
  }
}
@media (max-width: 768px) {
  .quality-control {
    margin: 1.5rem 0;
  }
}

.resize-option {
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.resize-option .conversion-mode-label {
  text-align: center;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.resize-option .segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .resize-option .segmented-control {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.resize-option .segmented-control input[type=radio] {
  display: none;
}
.resize-option .segmented-control label {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  position: relative;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .resize-option .segmented-control label {
    padding: 1.5rem 1rem;
  }
}
.resize-option .segmented-control label:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}
.resize-option .segmented-control label .option-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .resize-option .segmented-control label .option-title {
    font-size: 1.1rem;
  }
}
.resize-option .segmented-control label .option-subtitle {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .resize-option .segmented-control label .option-subtitle {
    font-size: 0.75rem;
  }
}
.resize-option .segmented-control label .recommended-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .resize-option .segmented-control label .recommended-badge {
    top: -8px;
    right: -8px;
    font-size: 0.6rem;
    padding: 3px 8px;
  }
}
.resize-option .segmented-control input[type=radio]:checked + label {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.35);
}
@media (max-width: 768px) {
  .resize-option .segmented-control input[type=radio]:checked + label {
    transform: scale(1.02);
  }
}
.resize-option .segmented-control input[type=radio]:checked + label .option-title {
  color: #fff;
}
.resize-option .segmented-control input[type=radio]:checked + label .option-subtitle {
  color: rgba(255, 255, 255, 0.9);
}
.resize-option .segmented-control input[type=radio]:checked + label .recommended-badge {
  background: #fff;
  color: #28a745;
}
.resize-option .conversion-info {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}
@media (max-width: 768px) {
  .resize-option .conversion-info {
    font-size: 0.85rem;
    padding: 0.7rem;
  }
}
.resize-option .conversion-info i {
  color: #17a2b8;
}

.quality-section {
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.quality-section .quality-header {
  text-align: center;
  margin-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.quality-section .quality-header h4 {
  color: #333;
  font-weight: 600;
}
.quality-section .quality-header .quality-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.quality-section .quality-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(to right, #ff6b6b, #feca57, #48dbfb, #0abde3);
  outline: none;
  -webkit-appearance: none;
}
.quality-section .quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 3px solid #667eea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.quality-section .quality-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
.quality-section .quality-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 3px solid #667eea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.resize-section {
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.resize-section .resize-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.resize-section .resize-header h4 {
  color: #333;
  font-weight: 600;
}
.resize-section .aspect-ratio-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.resize-section .aspect-ratio-toggle .aspect-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.resize-section .aspect-ratio-toggle .aspect-btn i {
  color: #667eea;
  transition: all 0.3s ease;
}
.resize-section .aspect-ratio-toggle .aspect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}
.resize-section .aspect-ratio-toggle .aspect-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}
.resize-section .aspect-ratio-toggle .aspect-btn.active i {
  color: #fff;
}
.resize-section .aspect-ratio-toggle .aspect-btn:not(.active) i {
  transform: rotate(45deg);
}
.resize-section .dimension-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .resize-section .dimension-inputs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.resize-section .dimension-inputs .dimension-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.resize-section .dimension-inputs .dimension-group .dimension-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
}
.resize-section .dimension-inputs .dimension-group .dimension-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}
.resize-section .dimension-inputs .dimension-group .dimension-input::-moz-placeholder {
  color: #999;
}
.resize-section .dimension-inputs .dimension-group .dimension-input::placeholder {
  color: #999;
}
.resize-section .dimension-inputs .dimension-group .dimension-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.batch-rename-section {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
}
.batch-rename-section .rename-header {
  text-align: center;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.batch-rename-section .rename-input-group .rename-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.3s ease;
}
.batch-rename-section .rename-input-group .rename-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}
.batch-rename-section .rename-input-group .rename-input::-moz-placeholder {
  color: #999;
}
.batch-rename-section .rename-input-group .rename-input::placeholder {
  color: #999;
}
.batch-rename-section .rename-input-group .rename-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.batch-rename-section .rename-input-group .rename-preview {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}
.batch-rename-section .rename-input-group .rename-preview .preview-examples {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.batch-rename-section .rename-input-group .rename-preview .preview-examples .preview-badge {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.25rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

.exif-option {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
}

.preset-actions {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

.file-list {
  max-height: 500px;
  overflow-y: auto;
}
.file-list::-webkit-scrollbar {
  width: 8px;
}
.file-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.file-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}
.file-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
@media (max-width: 768px) {
  .file-list {
    max-height: 400px;
  }
}

.file-item {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
  animation: slideInUp 0.5s ease-out;
  position: relative;
}
@media (max-width: 768px) {
  .file-item {
    padding: 1rem;
  }
}
.file-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.file-item.processing {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
}
.file-item.completed {
  border-left-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}
.file-item.error {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}
.file-item .file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.file-item .file-header .file-name {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
  word-break: break-all;
  flex: 1;
}
@media (max-width: 768px) {
  .file-item .file-header .file-name {
    font-size: 1rem;
  }
}
.file-item .file-header .file-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.file-item .file-header .file-actions .savings-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .file-item .file-header .file-actions .savings-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
}
.file-item .file-header .file-actions .status-icon {
  font-size: 1.5rem;
}
@media (max-width: 768px) {
  .file-item .file-header .file-actions .status-icon {
    font-size: 1.2rem;
  }
}
.file-item .file-header .file-actions .status-icon.processing {
  color: #ffc107;
  animation: spin 1s linear infinite;
}
.file-item .file-header .file-actions .status-icon.completed {
  color: #28a745;
}
.file-item .file-header .file-actions .status-icon.error {
  color: #dc3545;
}
.file-item .file-header .file-actions .status-icon.pending {
  color: #999;
}
.file-item .file-details {
  color: #666;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .file-item .file-details {
    font-size: 0.75rem;
  }
}
.file-item .file-tools {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.file-item .file-tools .file-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.file-item .file-tools .file-tool-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.file-item .file-tools .file-tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}
.file-item .file-tools .file-tool-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}

.file-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 1rem;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}
.file-badge i {
  font-size: 0.75rem;
}
.file-badge.added {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}
.file-badge.modified {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}
.file-badge.removed {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.progress-section {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .progress-section {
    padding: 1.5rem;
  }
}
.progress-section .overall-progress {
  text-align: center;
  margin-bottom: 2rem;
}
.progress-section .overall-progress .progress-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .progress-section .overall-progress .progress-text {
    font-size: 1rem;
  }
}
.progress-section .overall-progress .current-file-info {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin: 0.5rem 0;
  font-weight: 500;
}
@media (max-width: 768px) {
  .progress-section .overall-progress .current-file-info {
    font-size: 0.85rem;
  }
}
.progress-section .overall-progress .current-file-info .processing-file {
  color: #ffc107;
  font-weight: 600;
}
.progress-section .overall-progress .progress-bar-container {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  height: 16px;
  overflow: hidden;
  position: relative;
}
.progress-section .overall-progress .progress-bar-container .progress-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50px;
  transition: width 0.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-section .overall-progress .progress-bar-container .progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}
.score-circle.perfect {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}
.score-circle.good {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.score-circle.average {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.score-circle.poor {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.score-change {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
  .stat-card {
    padding: 1rem;
  }
}
.stat-card .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .stat-card .stat-icon {
    font-size: 2rem;
  }
}
.stat-card .stat-icon.text-primary {
  color: #667eea;
}
.stat-card .stat-icon.text-success {
  color: #28a745;
}
.stat-card .stat-icon.text-warning {
  color: #ffc107;
}
.stat-card .stat-icon.text-info {
  color: #17a2b8;
}
.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
}
@media (max-width: 768px) {
  .stat-card .stat-number {
    font-size: 2rem;
  }
}
.stat-card .stat-number.text-primary {
  color: #667eea;
}
.stat-card .stat-number.text-success {
  color: #28a745;
}
.stat-card .stat-number.text-warning {
  color: #ffc107;
}
.stat-card .stat-number.text-info {
  color: #17a2b8;
}
.stat-card .stat-label {
  color: #666;
  font-weight: 500;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .stat-card .stat-label {
    font-size: 0.9rem;
  }
}

.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}
@media (max-width: 768px) {
  .stats-dashboard {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
}
.stats-dashboard .dashboard-card {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stats-dashboard .dashboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.stats-dashboard .dashboard-card h4 {
  color: #333;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.stats-dashboard .dashboard-card .dashboard-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 768px) {
  .stats-dashboard .dashboard-card .dashboard-number {
    font-size: 2.5rem;
  }
}

.score-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .score-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
.score-summary .score-card {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}
.score-summary .score-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .score-summary .score-card {
    padding: 1.5rem 1rem;
  }
}
.score-summary .score-card .score-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  .score-summary .score-card .score-circle {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}
.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.preset-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.preset-form label {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}
.preset-form .preset-input {
  padding: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.preset-form .preset-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

.github-settings-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.github-settings-card h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.github-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .github-input-group {
    flex-direction: column;
  }
}

.github-input {
  flex: 1;
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.github-input:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.08);
}
.github-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.github-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.github-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}

.pagespeed-input-section {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.pagespeed-input-section .pagespeed-input-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .pagespeed-input-section .pagespeed-input-group {
    flex-direction: column;
  }
}
.pagespeed-input-section .pagespeed-input-group input[type=url] {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.pagespeed-input-section .pagespeed-input-group input[type=url]:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.pagespeed-input-section .pagespeed-input-group input[type=url]::-moz-placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.pagespeed-input-section .pagespeed-input-group input[type=url]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.pagespeed-input-section .device-toggle {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.pagespeed-input-section .device-toggle .device-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}
.pagespeed-input-section .device-toggle .device-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.pagespeed-input-section .device-toggle .device-btn i {
  margin-right: 0.5rem;
}
.pagespeed-input-section .device-toggle .device-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.pagespeed-input-section .device-toggle .device-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.duplicate-modal,
.preset-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
@media (max-width: 768px) {
  .duplicate-modal,
  .preset-modal {
    padding: 1rem;
  }
}
.duplicate-modal.d-none,
.preset-modal.d-none {
  display: none;
}

.duplicate-modal-content,
.preset-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: zoomIn 0.3s ease-out;
}
@media (max-width: 768px) {
  .duplicate-modal-content,
  .preset-modal-content {
    padding: 1.5rem;
  }
}
.duplicate-modal-content .close-modal,
.preset-modal-content .close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.duplicate-modal-content .close-modal:hover,
.preset-modal-content .close-modal:hover {
  transform: rotate(90deg) scale(1.1);
}
.duplicate-modal-content .modal-header,
.preset-modal-content .modal-header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}
.duplicate-modal-content .modal-header h3,
.preset-modal-content .modal-header h3 {
  color: #333;
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0;
}
.duplicate-modal-content table,
.preset-modal-content table {
  width: 100%;
  border-collapse: collapse;
}
.duplicate-modal-content table tr td, .duplicate-modal-content table tr th,
.preset-modal-content table tr td,
.preset-modal-content table tr th {
  color: #333 !important;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.duplicate-modal-content table tr td.improved,
.preset-modal-content table tr td.improved {
  color: #28a745 !important;
  font-weight: 700;
}
.duplicate-modal-content table tr td.declined,
.preset-modal-content table tr td.declined {
  color: #dc3545 !important;
  font-weight: 700;
}
.duplicate-modal-content table tr td.same,
.preset-modal-content table tr td.same {
  color: rgba(255, 255, 255, 0.5) !important;
}

.tips-container .tip-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #667eea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.tips-container .tip-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.tips-container .tip-card h4 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.tips-container .tip-card h4 i {
  color: #667eea;
  margin-right: 0.5rem;
}
.tips-container .tip-card .tip-description {
  color: #333;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.tips-container .tip-card .tip-solution {
  background: rgba(102, 126, 234, 0.05);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}
.tips-container .tip-card .tip-solution strong {
  color: #667eea;
  display: block;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.tips-container .tip-card .tip-solution ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tips-container .tip-card .tip-solution ul li {
  color: #495057;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}
.tips-container .tip-card .tip-solution ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: 700;
  font-size: 1.1rem;
}
.tips-container .tip-card .tip-solution ul li strong {
  color: #667eea;
  display: inline;
  margin: 0;
  font-weight: 700;
}
.tips-container .tip-card .tip-solution ul li code {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  color: #d63384;
  font-size: 0.9rem;
  font-family: "Courier New", Consolas, monospace;
}
.tips-container .tip-card .tip-solution ul li pre {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-top: 0.5rem;
  color: #f8f8f2;
  font-size: 0.85rem;
  font-family: "Courier New", Consolas, monospace;
}
.tips-container .tip-card.general-tips {
  border-left-color: #28a745;
}
.tips-container .tip-card.general-tips h4 i {
  color: #28a745;
}
.tips-container .tip-card.general-tips .tip-solution strong {
  color: #28a745;
}

.live-preview-panel {
  width: 400px;
  position: sticky;
  top: 2rem;
  height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
}
@media (max-width: 1200px) {
  .live-preview-panel {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 600px;
    top: 0;
  }
}
.live-preview-panel.d-none {
  display: none;
}
.live-preview-panel .preview-panel-header {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px 15px 0 0;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-preview-panel .preview-panel-header h3 {
  color: #333;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.live-preview-panel .preview-panel-header h3 i {
  margin-right: 0.5rem;
  color: #667eea;
}
.live-preview-panel .preview-panel-header .preview-toggle {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 10px;
  width: 35px;
  height: 35px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}
.live-preview-panel .preview-panel-header .preview-toggle:hover {
  transform: scale(1.1) rotate(90deg);
}
.live-preview-panel .preview-panel-content {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0 0 15px 15px;
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.live-preview-panel .preview-panel-content::-webkit-scrollbar {
  width: 8px;
}
.live-preview-panel .preview-panel-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.live-preview-panel .preview-panel-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}
.live-preview-panel .preview-panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
.live-preview-panel .preview-panel-content .empty-preview {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}
.live-preview-panel .preview-panel-content .empty-preview i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
  display: block;
}
.live-preview-panel .preview-panel-content .preview-item-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 1rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.live-preview-panel .preview-panel-content .preview-item-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.live-preview-panel .preview-panel-content .preview-item-card .preview-item-name {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  word-break: break-all;
}
.live-preview-panel .preview-panel-content .preview-item-card .preview-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.live-preview-panel .preview-panel-content .preview-item-card .preview-images .preview-image-wrapper {
  text-align: center;
}
.live-preview-panel .preview-panel-content .preview-item-card .preview-images .preview-image-wrapper .preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.live-preview-panel .preview-panel-content .preview-item-card .preview-images .preview-image-wrapper .preview-img {
  width: 100%;
  height: 120px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}
.live-preview-panel .preview-panel-content .preview-item-card .preview-images .preview-image-wrapper .preview-size {
  font-size: 0.75rem;
  color: #666;
}
.live-preview-panel .preview-panel-content .preview-item-card .preview-savings {
  margin-top: 1rem;
  text-align: center;
}
.live-preview-panel .preview-panel-content .preview-item-card .preview-savings .savings-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-size: 0.75rem;
  font-weight: 700;
}

.reopen-preview-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  z-index: 1000;
}
.reopen-preview-btn:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}
@media (max-width: 768px) {
  .reopen-preview-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}
.reopen-preview-btn:hover {
  transform: translateY(-5px) scale(1.05);
}
.reopen-preview-btn.d-none {
  display: none;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}
@media (max-width: 768px) {
  .presets-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
}

.preset-card {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.preset-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.preset-card .preset-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}
.preset-card .preset-settings {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.preset-card .preset-settings .setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0;
}
.preset-card .preset-settings .setting-item .setting-label {
  font-weight: 600;
}
.preset-card .preset-settings .setting-item .setting-value {
  color: #667eea;
}
.preset-card .preset-actions {
  display: flex;
  gap: 1rem;
}
.preset-card .preset-actions .preset-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 1rem;
  color: #fff;
}
.preset-card .preset-actions .preset-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.preset-card .preset-actions .preset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.preset-card .preset-actions .preset-btn.delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}
@media (max-width: 768px) {
  .history-list {
    padding: 1rem;
  }
}

.history-item {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  transition: all 0.3s ease;
}
.history-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.history-item .history-info {
  flex: 1;
}
.history-item .history-info .history-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}
.history-item .history-info .history-details {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
}
.history-item .history-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.history-item .history-stats .stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.category-issues-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.category-issues-card .category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.category-issues-card .category-header h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
}
.category-issues-card .category-header .issues-count {
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.category-issues-card .no-issues {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.7);
}
.category-issues-card .issues-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.category-issues-card .issue-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.category-issues-card .issue-item:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}
.category-issues-card .issue-item .issue-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .category-issues-card .issue-item .issue-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.category-issues-card .issue-item .issue-score {
  min-width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .category-issues-card .issue-item .issue-score {
    min-width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
}
.category-issues-card .issue-item .issue-score.poor {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 2px solid #dc3545;
}
.category-issues-card .issue-item .issue-score.average {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 2px solid #ffc107;
}
.category-issues-card .issue-item .issue-score.good {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 2px solid #28a745;
}
.category-issues-card .issue-item .issue-info {
  flex: 1;
}
.category-issues-card .issue-item .issue-info .issue-title {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}
.category-issues-card .issue-item .issue-info .issue-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}
.category-issues-card .issue-item .issue-savings {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.category-issues-card .issue-item .issue-savings .savings-tag {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.25rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.category-issues-card .issue-item .issue-value {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  display: inline-block;
}
.category-issues-card .issue-item .affected-items {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.category-issues-card .issue-item .affected-items .items-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category-issues-card .issue-item .affected-items .items-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.category-issues-card .issue-item .affected-items .item-url {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-family: "Courier New", Consolas, monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-issues-card .issue-item .affected-items .item-more {
  color: #667eea;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0;
}

.update-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.update-banner.visible {
  transform: translateY(0);
}
.update-banner .update-banner-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px;
  padding: 18px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.update-banner .update-banner-content > i {
  font-size: 24px;
  color: #ffffff !important;
  animation: updatePulse 2s infinite;
}
.update-banner .update-message {
  font-size: 16px;
  color: #ffffff !important;
  text-align: center;
}
.update-banner .update-message strong {
  font-weight: 700;
  color: #ffffff !important;
}
.update-banner .update-btn {
  background: #ffffff;
  color: #7c3aed !important;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.update-banner .update-btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.update-banner .update-btn i {
  color: #7c3aed !important;
}
.update-banner .update-dismiss {
  background: transparent;
  border: none;
  color: #ffffff !important;
  opacity: 0.8;
  cursor: pointer;
  padding: 12px;
  font-size: 18px;
  transition: opacity 0.2s ease;
  margin-left: 8px;
}
.update-banner .update-dismiss:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .update-banner .update-banner-content {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
  }
  .update-banner .update-banner-content > i {
    display: none;
  }
  .update-banner .update-message {
    font-size: 14px;
    flex: 1 0 100%;
    order: 1;
    padding-right: 40px;
  }
  .update-banner .update-btn {
    order: 2;
    padding: 10px 18px;
    font-size: 13px;
  }
  .update-banner .update-dismiss {
    order: 3;
    position: absolute;
    right: 12px;
    top: 12px;
  }
}

@keyframes updatePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
#pagespeedSection {
  background: #f8fafc;
  min-height: 100vh;
  margin: -2rem;
  padding: 2rem;
}
@media (max-width: 768px) {
  #pagespeedSection {
    margin: -1rem;
    padding: 1rem;
  }
}
#pagespeedSection .section-header-centered {
  padding-top: 60px;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  #pagespeedSection .section-header-centered {
    padding-top: 40px;
  }
}
#pagespeedSection .section-header-centered h2 {
  color: #1e293b;
  text-shadow: none;
  font-size: 28px;
  font-weight: 700;
}
#pagespeedSection .section-header-centered h2 i {
  color: #4285f4;
}
#pagespeedSection .section-header-centered p {
  color: #64748b;
  font-size: 16px;
}

.pagespeed-container {
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
}

.pagespeed-input-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  margin: 0 auto 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: block;
}
@media (max-width: 768px) {
  .pagespeed-input-section {
    padding: 24px 20px;
  }
}
.pagespeed-input-section .pagespeed-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .pagespeed-input-section .pagespeed-input-group {
    flex-direction: column;
  }
}
.pagespeed-input-section .pagespeed-input-group input[type=url],
.pagespeed-input-section .pagespeed-input-group .pagespeed-input {
  flex: 1;
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  color: #1e293b;
  font-size: 16px;
  transition: all 0.2s ease;
}
.pagespeed-input-section .pagespeed-input-group input[type=url]:focus,
.pagespeed-input-section .pagespeed-input-group .pagespeed-input:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}
.pagespeed-input-section .pagespeed-input-group input[type=url]::-moz-placeholder, .pagespeed-input-section .pagespeed-input-group .pagespeed-input::-moz-placeholder {
  color: #94a3b8;
}
.pagespeed-input-section .pagespeed-input-group input[type=url]::placeholder,
.pagespeed-input-section .pagespeed-input-group .pagespeed-input::placeholder {
  color: #94a3b8;
}
.pagespeed-input-section .pagespeed-input-group .btn-styled,
.pagespeed-input-section .pagespeed-input-group .analyze-btn {
  padding: 16px 32px;
  background: #4285f4 !important;
  color: white !important;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: none;
}
.pagespeed-input-section .pagespeed-input-group .btn-styled:hover,
.pagespeed-input-section .pagespeed-input-group .analyze-btn:hover {
  background: #3367d6 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}
.pagespeed-input-section .pagespeed-input-group .btn-styled:disabled,
.pagespeed-input-section .pagespeed-input-group .analyze-btn:disabled {
  background: #94a3b8 !important;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 768px) {
  .pagespeed-input-section .pagespeed-input-group .btn-styled,
  .pagespeed-input-section .pagespeed-input-group .analyze-btn {
    width: 100%;
  }
}
.pagespeed-input-section .device-toggle {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.pagespeed-input-section .device-toggle .device-btn {
  padding: 12px 24px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 14px;
}
.pagespeed-input-section .device-toggle .device-btn i {
  margin-right: 8px;
}
.pagespeed-input-section .device-toggle .device-btn:hover {
  border-color: #4285f4;
  color: #4285f4;
}
.pagespeed-input-section .device-toggle .device-btn.active {
  background: #4285f4;
  border-color: #4285f4;
  color: white;
}

.pagespeed-loading {
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.pagespeed-loading .loading-content {
  text-align: center;
}
.pagespeed-loading .loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
.pagespeed-loading i.fa-spinner {
  font-size: 48px;
  color: #4285f4;
  margin-bottom: 20px;
}
.pagespeed-loading .loading-text {
  color: #1e293b !important;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 24px 0;
}
.pagespeed-loading .loading-devices {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 24px 0;
}
.pagespeed-loading .loading-device {
  padding: 16px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 120px;
}
.pagespeed-loading .loading-device i {
  font-size: 2rem;
  color: #4285f4;
  margin-bottom: 8px;
}
.pagespeed-loading .loading-device .device-name {
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 4px;
}
.pagespeed-loading .loading-device .device-status {
  color: #94a3b8;
  font-size: 13px;
}
.pagespeed-loading .loading-hint {
  color: #94a3b8 !important;
  font-size: 14px;
  margin: 0;
}
.pagespeed-loading p {
  color: #64748b !important;
  font-size: 16px;
  margin: 0 0 8px;
}
.pagespeed-loading small {
  color: #94a3b8 !important;
  font-size: 14px;
}

.device-indicator {
  text-align: center;
  margin-bottom: 2rem;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.device-indicator h3 {
  color: #1e293b;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}
.device-indicator p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
}

.pagespeed-results {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.score-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 1024px) {
  .score-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .score-summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.score-card {
  background: #ffffff !important;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease;
  position: relative;
}
.score-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.score-card.clickable {
  cursor: pointer;
}
.score-card.clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.2);
}
.score-card.clickable:hover .click-hint {
  opacity: 1;
}
.score-card.clickable .click-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.score-card .score-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.score-card .score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  font-size: 36px;
  font-weight: 700;
  background: #ffffff;
}
.score-card .score-circle.perfect, .score-card .score-circle.good {
  color: #0cce6b;
  border: 4px solid #0cce6b;
}
.score-card .score-circle.average {
  color: #ffa400;
  border: 4px solid #ffa400;
}
.score-card .score-circle.poor {
  color: #ff4e42;
  border: 4px solid #ff4e42;
}
.score-card .score-change {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: white;
}
.score-card .score-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}
.score-card .score-status.good {
  color: #0cce6b;
}
.score-card .score-status.average {
  color: #ffa400;
}
.score-card .score-status.poor {
  color: #ff4e42;
}

.metrics-section {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  overflow: hidden;
}
.metrics-section .section-header, .metrics-section > h3 {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b !important;
  margin: 0;
  background: #fafbfc;
}
.metrics-section .section-header i, .metrics-section > h3 i {
  color: #4285f4;
}
.metrics-section .metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .metrics-section .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .metrics-section .metrics-grid {
    grid-template-columns: 1fr;
  }
}
.metrics-section .metric-item {
  padding: 20px 24px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.metrics-section .metric-item:nth-child(3n) {
  border-right: none;
}
@media (max-width: 1024px) {
  .metrics-section .metric-item:nth-child(3n) {
    border-right: 1px solid #e2e8f0;
  }
  .metrics-section .metric-item:nth-child(2n) {
    border-right: none;
  }
}
@media (max-width: 768px) {
  .metrics-section .metric-item {
    border-right: none;
  }
}
.metrics-section .metric-item:last-child {
  border-bottom: none;
}
.metrics-section .metric-item .metric-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.metrics-section .metric-item .metric-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}
.metrics-section .metric-item .metric-name strong {
  display: block;
  margin-bottom: 4px;
  color: #1e293b !important;
}
.metrics-section .metric-item .metric-name div {
  font-weight: 400;
  color: #94a3b8 !important;
  font-size: 13px;
}
.metrics-section .metric-item .metric-value {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.metrics-section .metric-item .metric-value.good {
  background: rgba(12, 206, 107, 0.1);
  color: #0cce6b;
}
.metrics-section .metric-item .metric-value.average {
  background: rgba(255, 164, 0, 0.1);
  color: rgb(204, 131.2, 0);
}
.metrics-section .metric-item .metric-value.poor {
  background: rgba(255, 78, 66, 0.1);
  color: #ff4e42;
}
.metrics-section .metric-item .metric-description {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.device-indicator {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.device-indicator h3 {
  color: #1e293b !important;
}
.device-indicator p {
  color: #64748b !important;
}

.opportunities-section {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  overflow: hidden;
}
.opportunities-section .section-header,
.opportunities-section h3 {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  background: #fafbfc;
}
.opportunities-section .section-header i,
.opportunities-section h3 i {
  color: #ffa400;
  margin-right: 10px;
}
.opportunities-section .opportunity-item {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s ease;
}
.opportunities-section .opportunity-item:last-child {
  border-bottom: none;
}
.opportunities-section .opportunity-item:hover {
  background: #fafbfc;
}
.opportunities-section .opportunity-item .opportunity-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.opportunities-section .opportunity-item .status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.opportunities-section .opportunity-item .status-indicator.good {
  background: #0cce6b;
}
.opportunities-section .opportunity-item .status-indicator.average {
  background: #ffa400;
}
.opportunities-section .opportunity-item .status-indicator.poor {
  background: #ff4e42;
}
.opportunities-section .opportunity-item .opportunity-content {
  flex: 1;
  min-width: 0;
}
.opportunities-section .opportunity-item .opportunity-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.4;
}
.opportunities-section .opportunity-item .opportunity-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
}
.opportunities-section .opportunity-item .opportunity-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.opportunities-section .opportunity-item .savings-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 164, 0, 0.1);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(178.5, 114.8, 0);
}

.diagnostics-section {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  overflow: hidden;
}
.diagnostics-section .section-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafbfc;
}
.diagnostics-section .section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}
.diagnostics-section .diagnostic-item {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s ease;
}
.diagnostics-section .diagnostic-item:last-child {
  border-bottom: none;
}
.diagnostics-section .diagnostic-item:hover {
  background: #fafbfc;
}
.diagnostics-section .diagnostic-item .diagnostic-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.diagnostics-section .diagnostic-item .diagnostic-info .check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.diagnostics-section .diagnostic-item .diagnostic-info .check-icon.passed {
  background: rgba(12, 206, 107, 0.1);
  color: #0cce6b;
}
.diagnostics-section .diagnostic-item .diagnostic-info .check-icon.failed {
  background: rgba(255, 78, 66, 0.1);
  color: #ff4e42;
}
.diagnostics-section .diagnostic-item .diagnostic-info .check-icon.warning {
  background: rgba(255, 164, 0, 0.1);
  color: #ffa400;
}
.diagnostics-section .diagnostic-item .diagnostic-info .diagnostic-title {
  font-size: 14px;
  color: #1e293b;
}
.diagnostics-section .diagnostic-item .diagnostic-value {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.passed-audits-section {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 24px;
}
.passed-audits-section .section-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease;
  background: #fafbfc;
}
.passed-audits-section .section-header:hover {
  background: #f1f5f9;
}
.passed-audits-section .section-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.passed-audits-section .section-header .header-left h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}
.passed-audits-section .section-header .header-left .count-badge {
  background: rgba(12, 206, 107, 0.1);
  color: #0cce6b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.passed-audits-section .section-header .toggle-icon {
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.passed-audits-section .section-header .toggle-icon.expanded {
  transform: rotate(180deg);
}
.passed-audits-section .passed-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.passed-audits-section .passed-list.expanded {
  max-height: 2000px;
}
.passed-audits-section .passed-list .passed-item {
  padding: 14px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #1e293b;
}
.passed-audits-section .passed-list .passed-item:last-child {
  border-bottom: none;
}
.passed-audits-section .passed-list .passed-item .check-icon {
  color: #0cce6b;
  font-size: 14px;
}

.pagespeed-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pagespeed-actions .btn-action {
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pagespeed-actions .btn-action i {
  color: #64748b;
}
.pagespeed-actions .btn-action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.pagespeed-actions .btn-action.primary {
  background: #4285f4;
  border-color: #4285f4;
  color: white;
}
.pagespeed-actions .btn-action.primary i {
  color: white;
}
.pagespeed-actions .btn-action.primary:hover {
  background: #3367d6;
}

.pagespeed-empty {
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.pagespeed-empty .empty-icon {
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.pagespeed-empty .empty-icon i {
  font-size: 32px;
  color: #94a3b8;
}
.pagespeed-empty h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}
.pagespeed-empty p {
  font-size: 15px;
  color: #64748b;
  max-width: 400px;
  margin: 0 auto;
}

.tips-container .tip-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}
.tips-container .tip-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tips-container .tip-card h4 i {
  color: #4285f4;
}
.tips-container .tip-card .tip-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}
.tips-container .tip-card .tip-solution {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.tips-container .tip-card .tip-solution strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tips-container .tip-card .tip-solution ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tips-container .tip-card .tip-solution ul li {
  font-size: 14px;
  color: #64748b;
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.tips-container .tip-card .tip-solution ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #4285f4;
  font-weight: 600;
}
.tips-container .tip-card .tip-solution ul li code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #0f172a;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.comparison-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
}
.comparison-table tbody td.improved {
  color: #0cce6b;
  font-weight: 600;
}
.comparison-table tbody td.declined {
  color: #ff4e42;
  font-weight: 600;
}
.comparison-table tbody td.same {
  color: #94a3b8;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody tr:hover {
  background: #f8fafc;
}

.category-issues-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  scroll-margin-top: 100px;
  transition: background-color 0.3s ease;
}
.category-issues-card .category-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
  margin: 0;
}
.category-issues-card .category-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}
.category-issues-card .category-header .issues-count {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.category-issues-card .category-header .issues-count.good {
  background: rgba(12, 206, 107, 0.1);
  color: #0cce6b;
}
.category-issues-card .category-header .issues-count.average {
  background: rgba(255, 164, 0, 0.1);
  color: rgb(178.5, 114.8, 0);
}
.category-issues-card .category-header .issues-count.poor {
  background: rgba(255, 78, 66, 0.1);
  color: #ff4e42;
}
.category-issues-card .issues-list {
  padding: 0;
}
.category-issues-card .issue-item {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.category-issues-card .issue-item:last-child {
  border-bottom: none;
}
.category-issues-card .issue-item:hover {
  background: #fafbfc;
}
.category-issues-card .issue-item .issue-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.category-issues-card .issue-item .issue-score {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.category-issues-card .issue-item .issue-score.poor {
  background: rgba(255, 78, 66, 0.1);
  color: #ff4e42;
}
.category-issues-card .issue-item .issue-score.average {
  background: rgba(255, 164, 0, 0.1);
  color: rgb(204, 131.2, 0);
}
.category-issues-card .issue-item .issue-score.good {
  background: rgba(12, 206, 107, 0.1);
  color: #0cce6b;
}
.category-issues-card .issue-item .issue-info {
  flex: 1;
}
.category-issues-card .issue-item .issue-info .issue-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px 0;
}
.category-issues-card .issue-item .issue-info .issue-description {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
.category-issues-card .issue-item .issue-savings {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  margin-left: 60px;
  flex-wrap: wrap;
}
.category-issues-card .issue-item .issue-savings .savings-tag {
  background: #f1f5f9;
  color: #64748b;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.category-issues-card .issue-item .issue-value {
  margin-top: 12px;
  margin-left: 60px;
  font-size: 13px;
  color: #64748b;
}
.category-issues-card .issue-item .issue-value i {
  color: #4285f4;
}
.category-issues-card .issue-item .affected-items {
  margin-top: 16px;
  margin-left: 60px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.category-issues-card .issue-item .affected-items .items-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.category-issues-card .issue-item .affected-items .items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.category-issues-card .issue-item .affected-items .item-url {
  font-size: 13px;
  color: #64748b;
  font-family: "Courier New", Consolas, monospace;
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-issues-card .issue-item .affected-items .item-more {
  font-size: 13px;
  color: #4285f4;
  font-weight: 600;
}
.category-issues-card .no-issues {
  padding: 48px 24px;
  text-align: center;
  color: #94a3b8;
}
.category-issues-card .no-issues i {
  font-size: 36px;
  color: #0cce6b;
  margin-bottom: 12px;
  display: block;
}

#pagespeedSection .chatgpt-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
#pagespeedSection .chatgpt-section .btn-chatgpt {
  background: linear-gradient(135deg, #10a37f 0%, #0d8c6d 100%);
}

#pagespeedSection [style*="color: white"],
#pagespeedSection [style*="color:white"] {
  color: #1e293b !important;
}
#pagespeedSection [style*="color: rgba(255, 255, 255"],
#pagespeedSection [style*="color: rgba(255,255,255"] {
  color: #64748b !important;
}
#pagespeedSection [style*="background: rgba(255, 255, 255, 0.1)"],
#pagespeedSection [style*="background: rgba(255,255,255,0.1)"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
#pagespeedSection .device-indicator {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
#pagespeedSection .device-indicator * {
  color: #1e293b !important;
}
#pagespeedSection .device-indicator p {
  color: #64748b !important;
}
#pagespeedSection .metrics-section h3 {
  color: #1e293b !important;
  background: #fafbfc !important;
}
#pagespeedSection .metrics-section .metric-name strong {
  color: #1e293b !important;
}
#pagespeedSection .metrics-section .metric-name div {
  color: #94a3b8 !important;
}
#pagespeedSection .error-section h3 {
  color: #ff4e42 !important;
}
#pagespeedSection .error-section .error-message {
  color: #ff4e42;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  margin: 16px 0;
}
#pagespeedSection .error-section .troubleshooting-tips {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
#pagespeedSection .error-section .troubleshooting-tips h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}
#pagespeedSection .error-section .troubleshooting-tips ul {
  text-align: left;
  color: #64748b;
  line-height: 1.8;
  margin: 0;
  padding-left: 20px;
}
#pagespeedSection .error-section .error-action {
  text-align: center;
  margin-top: 24px;
}
#pagespeedSection .no-data-message {
  color: #64748b;
  text-align: center;
  padding: 20px;
}

.comparison-modal {
  max-width: 800px;
}
.comparison-modal .modal-header h3 {
  color: #1e293b !important;
}
.comparison-modal .modal-header p {
  color: #64748b !important;
}
.comparison-modal .comparison-table-wrapper {
  margin-top: 24px;
}
.comparison-modal .comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-modal .comparison-table th, .comparison-modal .comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}
.comparison-modal .comparison-table th {
  color: #1e293b;
  font-weight: 600;
  background: #f8fafc;
}
.comparison-modal .comparison-table th:first-child {
  text-align: left;
}
.comparison-modal .comparison-table td {
  color: #64748b;
}
.comparison-modal .comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1e293b;
}
.comparison-modal .comparison-table td.improved {
  color: #0cce6b;
  font-weight: 700;
}
.comparison-modal .comparison-table td.declined {
  color: #ff4e42;
  font-weight: 700;
}
.comparison-modal .comparison-table td.same {
  color: #94a3b8;
}
.comparison-modal .comparison-timestamp {
  margin-top: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.tips-modal {
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
}
.tips-modal .modal-header h3 {
  color: #1e293b !important;
}
.tips-modal .modal-header p {
  color: #64748b !important;
}
.tips-modal .tips-content {
  margin-top: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.accordion-card {
  overflow: hidden;
}
.accordion-card:not(.open) .accordion-header {
  border-bottom: none;
}
.accordion-card.open .accordion-header {
  border-bottom: 1px solid #e2e8f0;
}
.accordion-card.open .accordion-icon {
  transform: rotate(180deg);
}
.accordion-card.open .accordion-content {
  padding: 10px 0 10px 0;
}
.accordion-card.open .accordion-content > * {
  animation: fadeIn 0.3s ease forwards;
}
.accordion-card .accordion-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  transition: background-color 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  background: #fafbfc;
}
.accordion-card .accordion-header:hover {
  background-color: rgba(66, 133, 244, 0.05);
}
.accordion-card .category-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.accordion-card .category-title-wrapper h3 {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}
.accordion-card .accordion-icon {
  font-size: 16px;
  color: #64748b;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.accordion-card .accordion-content {
  max-height: 100%;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-card .accordion-content .issues-list,
.accordion-card .accordion-content .no-issues {
  padding: 0;
}

.changelog-container {
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
}
@media (max-width: 768px) {
  .changelog-container {
    padding: 1rem;
  }
}
.changelog-container .changelog-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.changelog-container .changelog-buttons .changelog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  color: #fff;
  font-size: 1.2rem;
  width: 100%;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}
.changelog-container .changelog-buttons .changelog-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.changelog-container .changelog-buttons .changelog-btn:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}
.changelog-container .changelog-buttons .changelog-btn:hover {
  transform: translateY(-5px);
}
.changelog-container .changelog-buttons .changelog-btn:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.changelog-container .changelog-buttons .changelog-btn:nth-child(3) {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.changelog-container .changelog-viewer {
  margin-top: 2rem;
  animation: slideDown 0.4s ease-out;
}
.changelog-container .changelog-viewer .changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #dee2e6;
}
.changelog-container .changelog-viewer .changelog-header h3 {
  color: #333;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.changelog-container .changelog-viewer .changelog-content {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #dee2e6;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 1024px) {
  .changelog-container .changelog-viewer .changelog-content .changelog-split {
    grid-template-columns: 1fr;
  }
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side {
  padding: 2rem;
  min-height: 400px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side.old {
  border-right: 2px solid #dee2e6;
}
@media (max-width: 1024px) {
  .changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side.old {
    border-right: none;
    border-bottom: 2px solid #dee2e6;
  }
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side.old .side-label {
  color: #d32f2f;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side.old pre {
  color: #d32f2f;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side.new .side-label {
  color: #388e3c;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side.new pre {
  color: #388e3c;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side .side-label {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side .side-label i {
  margin-right: 0.5rem;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side pre {
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}
@media (max-width: 768px) {
  .changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side pre {
    font-size: 0.75rem;
  }
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side::-webkit-scrollbar {
  width: 8px;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}
.changelog-container .changelog-viewer .changelog-content .changelog-split .changelog-side::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.changelog-timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}
.changelog-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #667eea, #764ba2);
}

.commit-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.commit-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}
.commit-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: #667eea;
  border-radius: 50%;
  border: 3px solid #1a1a2e;
}
.commit-item .commit-header {
  margin-bottom: 1rem;
}
.commit-item .commit-message {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.commit-item .commit-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.commit-item .commit-author,
.commit-item .commit-date,
.commit-item .commit-sha {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.commit-item .commit-author i {
  color: #667eea;
}
.commit-item .commit-date i {
  color: #764ba2;
}
.commit-item .commit-sha {
  font-family: "Courier New", Consolas, monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}
.commit-item .commit-files {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.commit-item .commit-files .commit-files-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.commit-code-changes {
  margin-top: 1.5rem;
}

.code-diff-file {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.code-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.code-file-header .file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.code-file-header .file-info i {
  color: #667eea;
  font-size: 1.2rem;
}
.code-file-header .file-info .file-name {
  color: #fff;
  font-weight: 600;
  font-family: "Courier New", Consolas, monospace;
}
.code-file-header .file-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.code-file-header .file-status-badge.added {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}
.code-file-header .file-status-badge.removed {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}
.code-file-header .file-status-badge.modified {
  background: rgba(255, 193, 7, 0.2);
  color: #fbbf24;
}
.code-file-header .file-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.code-file-header .file-stats .additions {
  color: #28a745;
  font-weight: 600;
}
.code-file-header .file-stats .deletions {
  color: #dc3545;
  font-weight: 600;
}
.code-file-header .toggle-diff-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}
.code-file-header .toggle-diff-btn:hover {
  color: #fff;
}

.code-diff-content {
  background: #1a1a1a;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
}

.diff-table {
  width: 100%;
}

.diff-line {
  display: grid;
  grid-template-columns: 50px 50px 1fr;
  line-height: 1.6;
  min-height: 24px;
}
.diff-line.added {
  background: rgba(40, 167, 69, 0.15);
  border-left: 3px solid #28a745;
}
.diff-line.added .diff-marker {
  color: #28a745;
}
.diff-line.removed {
  background: rgba(220, 53, 69, 0.15);
  border-left: 3px solid #dc3545;
}
.diff-line.removed .diff-marker {
  color: #dc3545;
}
.diff-line.context {
  background: transparent;
  border-left: 3px solid transparent;
}
.diff-line .line-num {
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
  padding: 0 0.5rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: 0.75rem;
}
.diff-line .line-content {
  color: rgba(255, 255, 255, 0.9);
  padding: 0 1rem;
  white-space: pre;
  overflow-x: auto;
}
.diff-line .diff-marker {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 0.5rem;
}

.diff-hunk-header {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.no-code-changes,
.no-diff {
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.changelog-empty {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.6);
}
.changelog-empty i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
}
.changelog-empty p {
  font-size: 1.1rem;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

.d-grid {
  display: grid !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.gap-1 {
  gap: 0.25rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.m-0 {
  margin: 0 !important;
}

.m-1 {
  margin: 0.25rem !important;
}

.m-2 {
  margin: 0.5rem !important;
}

.m-3 {
  margin: 1rem !important;
}

.m-4 {
  margin: 1.5rem !important;
}

.m-5 {
  margin: 2rem !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 2rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 2rem !important;
}

.me-0 {
  margin-right: 0 !important;
}

.me-1 {
  margin-right: 0.25rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.me-4 {
  margin-right: 1.5rem !important;
}

.ms-0 {
  margin-left: 0 !important;
}

.ms-1 {
  margin-left: 0.25rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 0.25rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 2rem !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pt-1 {
  padding-top: 0.25rem !important;
}

.pt-2 {
  padding-top: 0.5rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pt-4 {
  padding-top: 1.5rem !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.pb-1 {
  padding-bottom: 0.25rem !important;
}

.pb-2 {
  padding-bottom: 0.5rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.min-vh-100 {
  min-height: 100vh !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

.position-sticky {
  position: sticky !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.overflow-auto {
  overflow: auto !important;
}

.overflow-x-auto {
  overflow-x: auto !important;
}

.overflow-y-auto {
  overflow-y: auto !important;
}

.rounded {
  border-radius: 10px !important;
}

.rounded-lg {
  border-radius: 12px !important;
}

.rounded-xl {
  border-radius: 15px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.rounded-pill {
  border-radius: 50px !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.shadow-none {
  box-shadow: none !important;
}

.opacity-0 {
  opacity: 0 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-50 {
  opacity: 0.5 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-100 {
  opacity: 1 !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

.cursor-not-allowed {
  cursor: not-allowed !important;
}

.user-select-none {
  -webkit-user-select: none !important;
     -moz-user-select: none !important;
          user-select: none !important;
}

.user-select-all {
  -webkit-user-select: all !important;
     -moz-user-select: all !important;
          user-select: all !important;
}

.fw-normal {
  font-weight: 400 !important;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fs-sm {
  font-size: 0.85rem !important;
}

.fs-base {
  font-size: 1rem !important;
}

.fs-lg {
  font-size: 1.2rem !important;
}

.fs-xl {
  font-size: 1.5rem !important;
}

.visible {
  visibility: visible !important;
}

.invisible {
  visibility: hidden !important;
}

.word-break-all {
  word-break: break-all !important;
}

.word-break-word {
  word-break: break-word !important;
}

.text-nowrap {
  white-space: nowrap !important;
}

.text-wrap {
  white-space: normal !important;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}