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

/* Editor-specific shared styles (container variations) */
.editor-container .editor-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 16px;
}
.editor-container .btn {
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none;
}
.editor-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.editor-container .btn.primary {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #0b2242;
}
.editor-container .btn.ghost { background: transparent; }
.editor-container .spacer { flex: 1; }

.editor-stage {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.editor-stage #editorFrame {
    width: 100%;
    height: min(80vh, 1000px);
    border: none;
    border-radius: 16px;
    background: #0b2242;
}
.editor-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.35);
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 600;
    opacity: 0.9;
}
.editor-footer { text-align: center; margin-top: 14px; opacity: 0.85; }
.editor-footer .muted { color: rgba(255,255,255,0.8); font-size: 0.9em; }

/* Accessibility: clear focus styles */
:focus-visible {
    outline: 3px solid #4ecdc4;
    outline-offset: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
    padding: 20px;
}

/* Cross-page fade (applied by per-page scripts) */
body.page-fade-in { animation: pageFadeIn .18s ease both; }
body.page-fade-out { animation: pageFadeOut .18s ease both; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageFadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  body.page-fade-in, body.page-fade-out { animation: none; }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

/* Top navigation (shared) */
.top-nav {
    display: inline-flex;
    gap: 12px;
    margin: 16px auto 0;
    padding: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22), 0 0 0 3px rgba(78,205,196,0.2) inset;
}
.nav-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #0b2242;
}
.nav-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(78,205,196,0.8); }

.footer-buttons {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.feedback-btn {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feedback-btn:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.feedback-btn span {
    margin-left: 5px;
}

#donate-button {
    min-width: 150px;
}

.logo {
    font-size: 3em;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Slight animation for the main title */
.animated-title {
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #4ecdc4, #5b8def);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 6s ease-in-out infinite;
}

@keyframes titleShimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.animated-title .title-sub {
    display: block;
    font-size: 0.6em;
    margin-top: 6px;
}

.page-description {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.input-section {
    margin: 30px 0;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    resize: vertical;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.controls {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 150px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

select, input[type="number"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.generate-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 30px 0;
}

.generate-btn:hover {
    transform: translateY(-2px);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result {
    text-align: center;
    margin: 30px 0;
}

.result img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.loading {
    text-align: center;
    font-size: 1.2em;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.history {
    margin-top: 30px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 8px 0;
    background: #012d6e;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 80px;
    transform: scale(1);
}

.history-item:hover {
    background-color: #059d56;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(1.02);
    z-index: 1;
}

.history-item > div:first-child {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
}

.history-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
}

.history-item .info {
    flex-grow: 1;
    min-width: 0;
}

.history-item .info strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.history-item .info small {
    color: #6c757d;
    font-size: 0.85em;
}

.history-item .action-buttons {
    display: flex;
    gap: 8px;
}

/* Style de base pour les deux boutons */
.history-item .download-btn,
.history-item .copy-btn,
.history-item .edit-btn {
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    white-space: nowrap;
    cursor: pointer;
    padding: 8px 16px !important;
    font-weight: 500;
    background: transparent !important;
    border: 1px solid #4ecdc4 !important;
    color: #4ecdc4 !important;
}

/* Effet de survol commun aux deux boutons */
.history-item .download-btn:hover,
.history-item .copy-btn:hover,
.history-item .edit-btn:hover {
    background: #4ecdc4 !important;
    color: #012d6e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3) !important;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    border: 1px solid #e9ecef;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* soft glow overlay */
.image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 60% at 50% 100%, rgba(78,205,196,0.25) 0%, rgba(78,205,196,0) 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* hover effects on generated photos */
.image-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    border-color: rgba(78,205,196,0.6);
}
.image-container:hover::after { opacity: 0.12; }
.image-container:hover img { transform: scale(1.03); }

.image-container .loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.image-container .loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

/* Improved download button styles */
.download-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7af);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 15px auto 0;
    width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, #45b7af, #3da69f);
}

.download-btn:active {
    transform: translateY(0);
}

/* Premium small action button (Share) */
.share-btn {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}
.share-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Result actions under grid */
.result-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
}
.download-all-btn {
    background: linear-gradient(45deg, #5b8def, #4ecdc4);
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    filter: brightness(1.05);
}

/* Loading overlays fade-in */
.loading { animation: fadeIn 220ms ease both; }

/* Cancel button inside loading overlay */
.cancel-btn {
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto; /* center button */
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    max-width: 320px;
    width: 100%;
}
.cancel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,107,107,0.35);
}

/* Fade-in utility */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 420ms ease both; }

/* Softer focus highlight on results */
@keyframes softFocus {
    0% { box-shadow: 0 0 0 0 rgba(78,205,196,0); }
    50% { box-shadow: 0 0 0 6px rgba(78,205,196,0.35); }
    100% { box-shadow: 0 0 0 0 rgba(78,205,196,0); }
}
#result.focus-soft {
    border-radius: 16px;
    animation: softFocus 1s ease;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.lightbox-overlay.open { display: flex; animation: fadeIn 260ms ease; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: fadeIn 360ms ease;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}
.lightbox-close { top: 20px; right: 20px; transform: none; }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .result-actions { padding: 0 10px; }
    .download-all-btn { width: 100%; max-width: 420px; }
    .image-actions { justify-content: center; }
    .share-btn { width: 32px; height: 32px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-prev, .lightbox-next, .lightbox-close { padding: 12px 16px; }
}

/* Image actions container */
.image-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 10px;
  display: flex;
  justify-content: center;
  align-items: center; /* ensure same vertical level */
  gap: 10px;
  flex-wrap: wrap; /* allow wrapping when 3 buttons present */
  margin-bottom: 20px;
  opacity: 0;                /* hidden by default */
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* show action buttons only on image hover */
.image-container:hover .image-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* remove extra margins when inside overlay actions */
.image-actions .download-btn {
  margin: 0 !important;
  width: auto;
}
/* Ensure Copy/Edit share same sizing and wrap nicely */
.image-actions .copy-btn,
.image-actions .edit-btn {
  margin: 0 !important;
  width: auto;
}
/* Prevent buttons from overflowing the image width on narrow screens */
@media (max-width: 480px) {
  .image-actions .download-btn,
  .image-actions .copy-btn,
  .image-actions .edit-btn {
    max-width: calc(100% - 24px);
  }
}

/* On touch devices (no hover), keep actions visible */
@media (hover: none) {
  .image-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* Features */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.feature h3 {
    color: #4ecdc4;
    margin-bottom: 5px;
}

/* Formulaire */
.input-section {
    margin: 30px 0;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    resize: vertical;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.controls {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 150px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

select, input[type="number"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Boutons */
.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 20px 0;
}

.generate-btn:hover {
    transform: translateY(-2px);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Résultats */
#result {
    min-height: 200px;
    display: block; /* allow grid then actions to stack vertically */
    margin: 20px 0;
}

/* keep the initial empty message centered */
#result .empty-state {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

#result img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Historique */
.history {
    margin: 40px 0;
}

.history h3 {
    margin-bottom: 15px;
    color: #4ecdc4;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 8px 0;
    background: #012d6e;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 80px;
    transform: scale(1);
}

.history-item:hover {
    background-color: #059d56;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(1.02);
    z-index: 1;
}

.history-item > div:first-child {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
}

.history-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.history-item .info {
    flex-grow: 1;
    min-width: 0;
}

.history-item .info strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.history-item .info small {
    color: #6c757d;
    font-size: 0.85em;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Style de base pour les boutons d'action */
.history-item .download-btn,
.history-item .copy-btn,
.history-item .edit-btn {
    padding: 8px 16px;
    border: 1px solid #4ecdc4;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    color: #4ecdc4;
    white-space: nowrap;
}

.history-item .download-btn:hover,
.history-item .copy-btn:hover,
.history-item .edit-btn:hover {
    background: #4ecdc4;
    color: #012d6e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

/* Boutons du footer */
.footer-buttons {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.feedback-btn {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    .features {
        flex-direction: column;
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        margin-top: 10px;
        width: 100%;
    }
    
    .download-btn, .copy-btn {
        width: 100%;
    }
    
    .footer-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    #donate-button {
        width: 200px;
        margin: 0 auto;
    }
}
