/* Share page */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7ff, #eef4ff);
    color: #1f2937;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
}

.share-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    width: min(420px, 100%);
    padding: 14px 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.15);
    text-align: center;
    display: block;
}

.share-header h2 {
    margin: 0 0 8px;
    color: #2f3a5f;
    font-size: 24px;
}

.share-header p {
    margin: 0 0 20px;
    color: #6b7280;
}

.share-options { display: flex; justify-content: center; gap: 16px; margin: 24px 0 12px; flex-wrap: wrap; }
.share-option {
    background: linear-gradient(135deg, #ffffff, #f4f7ff);
    border: 1px solid #dbe4ff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.15);
    padding: 0;
    color: inherit;
}
.share-option:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.22); }
.share-option i { font-size: 24px; width: 24px; text-align: center; line-height: 1; }
.whatsapp { color: #25d366; }
.facebook { color: #1877f2; }
.linkedin { color: #0077b5; }
.copy-link { color: #666; }
.copy-success {
    background: #14532d;
    border: 1px solid #166534;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    display: none;
    color: #ffffff;
}
.analytics-panel {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px 20px;
    margin-top: 18px;
    text-align: left;
}
.analytics-panel h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #1f2937;
}
.analytics-panel p {
    margin: 8px 0;
    color: #374151;
    font-size: 14px;
}
.analytics-panel strong {
    color: #111827;
}
#nextLessonBtn {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #28a745; /* Green for celebration */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#nextLessonBtn:hover {
  background-color: #218838;
}

.visitor-link {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.visitor-link:hover {
    background: #1d4ed8;
}
.copy-success.show { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.copy-success i { color: #ffffff; font-size: 20px; margin-bottom: 10px; }
.copy-success p { color: #ffffff; margin: 0; font-weight: 500; }

@media (max-width: 768px){
    .share-card { padding: 22px 18px; }
    .share-options { gap: 12px; }
}