/* 
-----------------------------------------------
Ramadan Card Generator - SEO & ADS Optimized

Converted for Hostinger Deployment
-----------------------------------------------
*/
:root {
    --primary-color: #fbbf24;
    --primary-dark: #d97706;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #fff;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

.btn-download {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* تأثير الزجاج العام */
.glass-panel {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

h1.title {
    color: #fbbf24;
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.2);
}

/* Ad Slots Styling */
.ad-slot {
    margin: 20px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    min-height: 90px;
    border: 1px dashed #475569;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 5px;
    display: block;
}

/* Preview Box */
.preview-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid #fbbf24;
    background: #000;
    min-height: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.expand-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: scale(1.1);
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.preview-box img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 350px;
    object-fit: cover;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.msg-text {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Amiri', serif;
    display: block;
    margin-bottom: 15px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px #000;
}

.name-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fbbf24;
    display: block;
    margin-top: 10px;
}

.gallery-label {
    text-align: right;
    margin: 20px 0 15px;
    font-weight: 700;
    color: #e2e8f0;
    font-size: 1.1rem;
    border-right: 4px solid #fbbf24;
    padding-right: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: 4px;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #334155;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.thumb:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.thumb.active {
    border-color: #fbbf24;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.messages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.msg-chip {
    background: #253146;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #334155;
    text-align: center;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.msg-chip:hover {
    background: #334155;
    border-color: #fbbf24;
    transform: translateY(-2px);
}

.msg-chip.selected-msg {
    background: #fbbf24;
    color: #000;
    font-weight: bold;
    border-color: #fbbf24;
}

.controls {
    background: #253146;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #334155;
    margin-top: 20px;
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: white;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus {
    border-color: #fbbf24;
    outline: none;
    background: #152036;
}

.btn {
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-generate {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-generate:hover {
    background: linear-gradient(135deg, #fcd34d, #b45309);
}

.btn-new {
    background: #475569;
    color: #fff;
}

.btn-new:hover {
    background: #64748b;
}

.share-section {
    margin-top: 25px;
    padding: 25px;
    background: #253146;
    border-radius: 15px;
    display: none;
    animation: fadeIn 0.5s;
    border: 1px solid #fbbf24;
}

.social-btns {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.s-btn {
    flex: 1;
    text-align: center;
    color: white;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.wa {
    background: #25D366;
}

.fb {
    background: #1877F2;
}

/* Footer Style */
.main-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid #334155;
    padding-top: 15px;
    line-height: 1.6;
}

.main-footer a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.main-footer a:hover {
    text-shadow: 0 0 5px #fbbf24;
}

/* ===== Sidebar Sticky Ads (Desktop Only) ===== */
.sidebar-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    min-height: 600px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 15px 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease-out;
}

.sidebar-ad-left {
    left: 20px;
}

.sidebar-ad-right {
    right: 20px;
}

.sidebar-ad-label {
    font-size: 0.7rem;
    color: #64748b;
    text-align: center;
    padding: 5px;
    border-bottom: 1px dashed #334155;
    width: 100%;
    margin-bottom: 10px;
}

.sidebar-ad-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 250px;
    border: 1px dashed #475569;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-ad-icon {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.sidebar-ad-text {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.4;
}

/* Show sidebar ads only on large screens */
@media (min-width: 1400px) {
    .sidebar-ad {
        display: flex;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .sidebar-ad {
        display: flex;
        width: 120px;
        min-height: 400px;
    }

    .sidebar-ad-left {
        left: 10px;
    }

    .sidebar-ad-right {
        right: 10px;
    }
}

@media (max-width: 600px) {
    .messages-list {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 15px;
    }

    .text-overlay {
        width: 90%;
        padding: 15px;
    }

    .msg-text {
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* أزرار المشاركة الإضافية */
.tw {
    background: #1DA1F2;
}

.tw:hover {
    background: #1a8cd8;
}

.tg {
    background: #0088cc;
}

.tg:hover {
    background: #006699;
}

/* تحسينات إضافية */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.msg-chip:hover {
    transform: translateY(-3px) scale(1.02);
}

/* ===== مميزات محلية متقدمة ===== */

/* صندوق الإحصائيات */
.stats-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid #fbbf24;
    text-align: center;
}

.stats-number {
    font-size: 3rem;
    font-weight: bold;
    color: #fbbf24;
    display: block;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    animation: pulse 2s infinite;
}

.stats-label {
    font-size: 1rem;
    color: #94a3b8;
    margin-top: 10px;
}

/* قسم الترند */
.trend-box {
    background: #253146;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid #334155;
}

.trend-item {
    padding: 10px;
    margin: 8px 0;
    background: #1e293b;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trend-icon {
    font-size: 1.5rem;
    margin-left: 10px;
}

/* السجل */
.history-box {
    background: #253146;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #334155;
    display: none;
}

.history-item {
    background: #1e293b;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #334155;
    position: relative;
}

.history-item:hover {
    border-color: #fbbf24;
}

.history-date {
    font-size: 0.75rem;
    color: #64748b;
}

/* الإنجازات */
.achievements {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.badge {
    background: #334155;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #475569;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge.active {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0f172a;
    border-color: #fbbf24;
    font-weight: bold;
}

.badge i {
    font-size: 1rem;
}

/* زر التبديل */
.toggle-btn {
    background: #475569;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    margin: 10px 5px;
    transition: 0.3s;
}

.toggle-btn:hover {
    background: #64748b;
}

.toggle-btn.active {
    background: #fbbf24;
    color: #0f172a;
}

/* ===== نجوم متحركة ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fbbf24;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    box-shadow: 0 0 5px #fbbf24;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.moon {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
    z-index: 0;
    animation: moonFloat 6s ease-in-out infinite;
}

@keyframes moonFloat {

    0%,
    100% {
        transform: translateY(0px);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
    }

    50% {
        transform: translateY(-20px);
        box-shadow: 0 0 50px rgba(251, 191, 36, 0.9);
    }
}

/* رفع خلفية مخصصة */
.custom-bg-section {
    background: #253146;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border: 2px dashed #fbbf24;
    text-align: center;
}

.upload-bg-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
    width: 100%;
}

.upload-bg-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.custom-bg-preview {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    border: 2px solid #fbbf24;
}

.remove-bg-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
    transition: 0.3s;
}

.remove-bg-btn:hover {
    background: #dc2626;
}

/* اختيار الخط */
.font-selector {
    background: #253146;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid #334155;
}

.font-selector label {
    color: #e2e8f0;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.font-selector select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.font-selector select option {
    padding: 10px;
}

/* ===== مميزات ذكية ===== */

/* ترحيب الزائر */
.welcome-msg {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 15px 20px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
    color: white;
    font-weight: bold;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* رسالة حسب الوقت */
.time-message {
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    color: #fbbf24;
    font-size: 0.9rem;
    border: 1px solid #334155;
}

/* عداد رمضان اليومي */
.ramadan-day {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 12px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    color: #0f172a;
    font-weight: bold;
}

/* شريط التقدم */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 5px;
}

/* أزرار التوليد */
.generator-btns {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.gen-btn {
    flex: 1;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    transition: 0.3s;
    min-width: 120px;
}

.gen-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

.gen-btn i {
    margin-left: 5px;
}

/* زر وضع البساطة */
.simple-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #475569;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    z-index: 1000;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.simple-mode-toggle:hover {
    background: #64748b;
    transform: scale(1.05);
}

.simple-mode-toggle.active {
    background: #fbbf24;
    color: #0f172a;
}

/* وضع البساطة */
body.simple-mode .stars,
body.simple-mode .moon,
body.simple-mode .stats-box,
body.simple-mode .achievements {
    display: none !important;
}

body.simple-mode .btn {
    animation: none !important;
}

body.simple-mode * {
    animation: none !important;
}

/* وضع المعاينة الكاملة */
.preview-mode .container>*:not(.preview-box) {
    display: none !important;
}

.preview-mode .preview-box {
    margin: 80px auto;
    transform: scale(1.3);
    border: none;
    box-shadow: none;
}

.preview-mode {
    background: #0f172a;
    overflow: hidden;
}

.preview-mode .preview-toggle {
    bottom: 20px;
    right: 20px;
    left: auto;
    background: #ef4444;
}

.preview-toggle {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    z-index: 1000;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.preview-toggle:hover {
    background: #7c3aed;
    transform: scale(1.05);
}

/* مؤشر الاستخدام */
.usage-indicator {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 10px 20px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    color: #0f172a;
    font-weight: bold;
    font-size: 0.9rem;
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    .preview-card {
        transform: scale(0.9);
    }

    .btn {
        padding: 14px 20px;
        font-size: 1.1rem;
    }

    .gen-btn {
        min-width: 100%;
        margin: 5px 0;
    }

    .toggle-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .generator-btns {
        flex-direction: column;
    }

    .simple-mode-toggle,
    .preview-toggle {
        bottom: 20px;
        left: 10px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .preview-toggle {
        bottom: 70px;
    }
}

/* ===== بصمة البطاقة ===== */

.card-dna {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(15, 23, 42, 0.8);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #fbbf24;
    font-family: 'Cairo', monospace;
    border: 1px solid #fbbf24;
    backdrop-filter: blur(5px);
}

.personality-badge {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    padding: 12px 20px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

.fortune-box {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 20px;
    border-radius: 15px;
    margin: 15px 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.fortune-box .fortune-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.fortune-box .fortune-text {
    font-size: 1rem;
    line-height: 1.6;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.global-counter {
    background: #1e293b;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    border: 1px solid #334155;
}

.global-counter .counter-number {
    font-size: 2rem;
    color: #fbbf24;
    font-weight: bold;
    display: block;
}

.global-counter .counter-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.challenge-status:hover {
    background: rgba(255, 255, 255, 0.3);
}

.challenge-done {
    background: white;
    color: #059669;
    cursor: default;
}

/* قائمة الرسائل المنسدلة */
.message-select {
    width: 100%;
    padding: 12px 15px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 10px;
    color: #e2e8f0;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

.message-select:hover {
    border-color: #fbbf24;
}

.message-select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.message-select option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 10px;
}

/* ===== 🏆 Edition Badge Styles (PREMIUM FEATURE) ===== */
.edition-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.edition-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}

.edition-text {
    font-size: 0.85rem;
    color: #fbbf24;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Edition Variants */
.edition-golden {
    border-color: rgba(251, 191, 36, 0.8);
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.9), rgba(217, 119, 6, 0.9));
}

.edition-night {
    border-color: rgba(147, 197, 253, 0.6);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.9));
}

.edition-minimal {
    border-color: rgba(229, 231, 235, 0.6);
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9), rgba(107, 114, 128, 0.9));
}

.edition-classic {
    border-color: rgba(196, 181, 253, 0.6);
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.9), rgba(124, 58, 237, 0.9));
}

.edition-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.4);
}

/* ===== 🌟 Hero Landing Section (PREMIUM FEATURE) - REMOVED BUT CLASS KEPT FOR CTA ===== */
.hero-cta {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    border: none;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
    font-family: 'Cairo', sans-serif;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.6);
}

.hero-cta i {
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateY(3px);
    animation: bounce 1s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* ===== 📱 Social Media Dimensions (PREMIUM FEATURE) ===== */
.dimension-selector {
    margin-bottom: 20px;
}

.dimension-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dimension-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-family: 'Cairo', sans-serif;
}

.dimension-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.dimension-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

.dimension-btn small {
    font-size: 0.75rem;
    color: #64748b;
}

.dimension-btn:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
}

.dimension-btn.active {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.dimension-btn.active i {
    color: #fbbf24;
}

/* ===== 🎨 Showcase Gallery (PREMIUM FEATURE) ===== */
.showcase-section {
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.5);
    margin: 40px 0;
    border-radius: 20px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 40px;
}

.showcase-title {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
}

.showcase-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.showcase-card:hover {
    transform: translateY(-8px);
    border-color: #fbbf24;
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.3);
}

.showcase-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-image img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-card:hover .showcase-overlay {
    opacity: 1;
}

.showcase-overlay i {
    font-size: 2rem;
    color: #fbbf24;
}

.showcase-overlay span {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
}

.showcase-info {
    padding: 15px;
}

.showcase-badge-small {
    display: inline-block;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.showcase-info h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .showcase-title {
        font-size: 1.8rem;
    }
}

/* ===== 🎬 Cinematic Animation (PREMIUM FEATURE) ===== */

/* Golden Light Sweep Effect */
.golden-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(251, 191, 36, 0.3) 40%,
            rgba(251, 191, 36, 0.6) 50%,
            rgba(251, 191, 36, 0.3) 60%,
            transparent 100%);
    pointer-events: none;
    z-index: 10;
    animation: sweep 1.5s ease-out;
}

@keyframes sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Card Reveal Animation */
.card-reveal {
    animation: cardReveal 1s ease-out;
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Name Entrance Animation */
.name-entrance {
    animation: nameEntrance 1.2s ease-out 0.5s both;
}

@keyframes nameEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Glow Pulse */
.success-glow {
    animation: successGlow 2s ease-in-out;
}

@keyframes successGlow {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(251, 191, 36, 0.3);
    }

    50% {
        box-shadow: 0 15px 60px rgba(251, 191, 36, 0.8);
    }
}

/* Sparkle Effect */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFloat 1.5s ease-out forwards;
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* ===== 🎨 Custom Background Upload (ENHANCED) ===== */
.custom-bg-upload {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.upload-header {
    text-align: center;
    margin-bottom: 20px;
}

.upload-header i {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 10px;
    display: block;
}

.upload-header h3 {
    color: #fbbf24;
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    font-family: 'Cairo', sans-serif;
}

.upload-header p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
}

.upload-zone {
    display: block;
    background: rgba(15, 23, 42, 0.8);
    border: 3px dashed rgba(251, 191, 36, 0.4);
    border-radius: 12px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.upload-zone:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
}

.upload-zone.drag-over {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
    border-style: solid;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-content i {
    font-size: 3rem;
    color: #fbbf24;
}

.upload-text {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-hint {
    color: #94a3b8;
    font-size: 0.9rem;
}

.upload-content small {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 5px;
}

.upload-preview {
    margin-top: 20px;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    border: 2px solid #fbbf24;
    margin-bottom: 15px;
}

.remove-bg-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
}

.remove-bg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ===== 🎁 Card Viewer Mode (For Recipients) ===== */
.viewer-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.viewer-welcome {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.viewer-welcome i {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s infinite;
}

.viewer-welcome h2 {
    color: #fbbf24;
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-family: 'Cairo', sans-serif;
}

.viewer-welcome p {
    color: #cbd5e1;
    font-size: 1rem;
    margin: 0;
}

.viewer-cta {
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
}

.cta-content {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.cta-content h3 {
    color: #fbbf24;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-family: 'Cairo', sans-serif;
}

.cta-content p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin: 0 0 25px 0;
}

/* ===== تجربة Quiz التفاعلية ===== */
.quiz-section {
    padding: 20px;
    animation: fadeIn 0.5s;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-title {
    color: #fbbf24;
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Amiri', serif;
}

.quiz-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.quiz-progress {
    background: #0f172a;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    width: 33%;
    transition: width 0.3s;
}

.quiz-step-text {
    color: #64748b;
    font-size: 0.9rem;
}

.quiz-question {
    animation: slideIn 0.4s;
}

.question-title {
    color: #e2e8f0;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.quiz-option {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #334155;
    border-radius: 15px;
    padding: 20px;
    color: #e2e8f0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Cairo', sans-serif;
}

.quiz-option i {
    font-size: 1.5rem;
    color: #fbbf24;
}

.quiz-option:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fbbf24;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.quiz-option:hover i {
    color: #0f172a;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .quiz-options {
        grid-template-columns: 1fr;
    }

    .quiz-title {
        font-size: 1.5rem;
    }

    .question-title {
        font-size: 1.2rem;
    }
}

/* ===== نافذة التحقق من البصمة ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.verification-modal {
    background: #1e293b;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 2px solid #fbbf24;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.verified-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 15px;
}

.dna-code-display {
    font-family: 'Courier New', monospace;
    background: #0f172a;
    padding: 10px;
    border-radius: 8px;
    color: #fbbf24;
    font-weight: bold;
    margin: 15px 0;
    letter-spacing: 1px;
    border: 1px dashed #334155;
}

.meta-info {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
    padding-bottom: 5px;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
}

.card-dna {
    cursor: pointer;
    transition: 0.3s;
}

.card-dna:hover {
    background: #fbbf24;
    color: #0f172a;
    transform: scale(1.05);
}

@keyframes randomFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -40px) rotate(90deg);
    }

    50% {
        transform: translate(-20px, -60px) rotate(180deg);
    }

    75% {
        transform: translate(40px, -30px) rotate(270deg);
    }
}

.star {
    animation: randomFloat 10s ease-in-out infinite !important;
}

.header-icon {
    animation: randomFloat 8s ease-in-out infinite !important;
}

/* ===== AdSense Responsive Fixes ===== */
.ad-slot {
    width: 100% !important;
    min-height: 0;
    /* Allow collapse */
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    /* Remove placeholder bg */
    margin: 5px 0;
    /* Reduce margin */
    border: none;
    /* Remove border */
    overflow: visible;
    /* Allow ad expansion */
}

/* Ensure ins tag takes full width inside slot */
.ad-slot ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
}

/* Specific styling for fluid/autorelaxed to ensure they expand */
ins.adsbygoogle[data-ad-format="fluid"],
ins.adsbygoogle[data-ad-format="autorelaxed"] {
    min-width: 250px;
    /* Minimum width for mobile */
    width: 100%;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
    }

    h1.title {
        font-size: 1.8rem;
    }

    .site-header {
        padding: 20px 10px;
    }

    .header-title {
        font-size: 2rem;
    }

    .ad-slot {
        margin: 15px 0;
        /* Remove fixed min-height to avoid large empty gaps if ad doesn't load immediately */
        min-height: auto;
        padding: 5px;
        background: rgba(0, 0, 0, 0.1);
        /* Lighter placeholder for mobile */
    }

    /* Only enforce height if it's likely to render, or let Auto Ads handle insertion */
    .ad-slot:not(:empty) {
        min-height: 250px;
    }

    .preview-box {
        border-width: 2px;
        max-width: 100%;
        /* Ensure it doesn't overflow */
    }

    .controls input[type="text"] {
        font-size: 1rem;
        width: 100%;
        /* Fix input width issues */
        box-sizing: border-box;
    }

    .style-controls {
        width: 100%;
        box-sizing: border-box;
        /* Prevent padding from breaking layout */
    }

    .sidebar-ad {
        display: none !important;
        /* Keep sidebar hidden on mobile */
    }

    .social-btns {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    /* Auto Ads container fix */
    .google-auto-placed {
        margin: 10px auto !important;
        text-align: center !important;
    }
}