@font-face {
    font-family: 'Varela Round';
    src: url('./VarelaRound-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Varela Round', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    color: #ffffff;
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* 3D Background Support */
.admin-container-wrapper {
    position: relative;
    z-index: 1;
    background: transparent;
    min-height: 100vh;
    color: #ffffff;
    direction: rtl;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Admin Navigation Menu */
.admin-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    margin-bottom: 20px;
}

.admin-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav .nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.admin-nav .nav-logo a:hover {
    color: #ffed4e;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.admin-nav .nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.admin-nav .nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.admin-nav .nav-links a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.admin-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.admin-nav .nav-links a:hover::after {
    width: 80%;
}

/* Mobile Navigation for Admin */
@media (max-width: 768px) {
    .admin-nav .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .admin-nav .nav-links a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 40px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.admin-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
}

.admin-header p {
    font-size: 1.3rem;
    color: #cccccc;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.config-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.config-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

.config-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.config-section:hover::before {
    opacity: 1;
}

.config-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 15px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.4);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Checkbox styling */
.form-group label input[type="checkbox"] {
    width: auto;
    margin-left: 10px;
    margin-right: 0;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.form-group label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    border-color: #4ecdc4;
}

.form-group label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-group label input[type="checkbox"]:hover {
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.form-group label span {
    vertical-align: middle;
    cursor: pointer;
}

/* Tier Notification */
.tier-notification {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(69, 183, 170, 0.2) 100%);
    border: 2px solid rgba(78, 205, 196, 0.5);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideDown 0.5s ease-out;
    transition: all 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

.notification-text {
    flex: 1;
    color: white;
    font-size: 1rem;
}

.notification-text strong {
    font-size: 1.1rem;
    color: #ffd700;
}

.notification-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* שאלות החידון */
.question-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-number {
    font-weight: bold;
    color: #ffd700;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.delete-question {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.delete-question:hover {
    background: #ff3742;
    transform: translateY(-2px);
}

.question-text-input {
    width: 100%;
    margin-bottom: 15px;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.option-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.option-label {
    font-weight: bold;
    color: #4ecdc4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.correct-option {
    background: #26c965;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.correct-option:hover {
    background: #1ea854;
}

.incorrect-option {
    background: #d52e2e;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.incorrect-option:hover {
    background: #b71c1c;
}

.option-input {
    width: 100%;
    margin-bottom: 10px;
}

.image-upload-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
}

.image-upload-btn:hover {
    background: linear-gradient(135deg, #45b7aa 0%, #3aa89a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.add-question-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.add-question-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
    pointer-events: none;
}

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

.add-question-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    background: linear-gradient(135deg, #45b7aa 0%, #3aa89a 100%);
}

.btn-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 3;
}

.btn-text {
    font-size: 1.2rem;
    position: relative;
    z-index: 3;
}

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

/* Answer Type Selector */
.answer-type-selector {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    flex: 1;
}

.radio-option:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.15);
    transform: translateY(-2px);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #4ecdc4;
}

.radio-option input[type="radio"]:checked {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.radio-icon {
    font-size: 1.5rem;
}

/* Questions Counter */
.questions-counter {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.counter-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.counter-icon {
    font-size: 1.5rem;
}

.counter-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4ecdc4;
}

/* אזור העלאה */
.upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.15);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.4);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 3rem;
}

.upload-area p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Image Positioning Help */
.image-positioning-help {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #2196f3;
}

.image-positioning-help h4 {
    color: #1976d2;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.image-positioning-help p {
    color: #424242;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Image Position Editor Modal */
.position-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.position-editor-content {
    background: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.position-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.position-editor-header h3 {
    margin: 0;
    color: #333;
}

.close-position-editor {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.position-editor-preview {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.position-editor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.position-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.position-btn {
    padding: 10px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.position-btn:hover {
    border-color: #2196f3;
    background: #e3f2fd;
}

.position-btn.active {
    border-color: #2196f3;
    background: #2196f3;
    color: white;
}

.position-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.position-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.position-actions .save-position {
    background: #4caf50;
    color: white;
}

.position-actions .save-position:hover {
    background: #45a049;
}

.position-actions .cancel-position {
    background: #f44336;
    color: white;
}

.position-actions .cancel-position:hover {
    background: #da190b;
}

.preview-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.image-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-image:hover .image-controls {
    opacity: 1;
}

/* Remove image button - positioned separately */
.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image:hover .remove-image-btn {
    opacity: 1;
}

.remove-image-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Position button removed - using drag instead */

/* Image Editor Modal */
.image-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.image-editor-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-editor-header {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-editor-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 300;
}

.close-editor-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-editor-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.image-editor-body {
    padding: 30px;
    display: flex;
    gap: 30px;
    flex: 1;
    overflow: hidden;
}

.image-editor-preview {
    flex: 1;
    width: 300px;
    height: 300px;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.image-editor-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: move;
    user-select: none;
}

.image-editor-controls {
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-editor-controls p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
    text-align: center;
}

.position-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.position-buttons button {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    border: none;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 300;
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
}

.position-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.position-buttons button:active {
    transform: translateY(0);
}

.image-editor-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}

.save-position-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-position-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Mobile responsive for image editor */
@media (max-width: 768px) {
    .image-editor-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .image-editor-body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .image-editor-preview {
        min-width: auto;
        min-height: 250px;
    }
    
    .image-editor-controls {
        min-width: auto;
    }
    
    .position-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .image-editor-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: move;
    user-select: none;
}

/* Image description input */
.image-description-input {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
}

.preview-image:hover .image-description-input {
    opacity: 1;
}

.description-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
    font-weight: 300;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.description-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.description-input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.preview-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preview-image img:active {
    transform: scale(1.05);
    opacity: 0.8;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* כפתורי פעולה */
.preview-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.preview-btn,
.save-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.save-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.preview-btn:hover {
    background: linear-gradient(135deg, #45b7aa 0%, #3aa89a 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.save-btn:hover {
    background: linear-gradient(135deg, #45b7aa 0%, #3aa89a 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.generated-link {
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid #4ecdc4;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.generated-link h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.link-container input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
}

.copy-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #45b7aa 0%, #3aa89a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.link-instructions {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* מודל תצוגה מקדימה */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.preview-modal.active {
    display: flex;
}

.preview-content {
    width: 30%;
    height: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: scale(0.85);
    transform-origin: center center;
}

.preview-header {
    background: #1a1a1a;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
}

.preview-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fullscreen-preview-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fullscreen-preview-btn:hover {
    background: linear-gradient(135deg, #45b7aa 0%, #3ea89a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

.fullscreen-icon {
    font-size: 0.9rem;
    font-weight: bold;
}

.close-preview {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-iframe-container {
    height: calc(100% - 50px);
}

.preview-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    
    transform-origin: top left;

}

/* Fullscreen preview styles */
.preview-modal.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
}

.preview-modal.fullscreen .preview-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: none;
    max-height: none;
    transform: scale(1);
}

.preview-modal.fullscreen .preview-iframe-container {
    height: calc(100vh - 60px);
}

.preview-modal.fullscreen .preview-iframe-container iframe {
    transform: scale(1);
    width: 100%;
    height: 100%;
}

.preview-modal.fullscreen .fullscreen-preview-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.preview-modal.fullscreen .fullscreen-preview-btn:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #e74c3c 100%);
}

.preview-modal.fullscreen .fullscreen-icon::before {
    content: "⛶";
}

.preview-modal:not(.fullscreen) .fullscreen-icon::before {
    content: "⛶";
}

/* אנימציות */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.config-section {
    animation: fadeInUp 0.8s ease-out both;
}

.config-section:nth-child(1) { animation-delay: 0.1s; }
.config-section:nth-child(2) { animation-delay: 0.2s; }
.config-section:nth-child(3) { animation-delay: 0.3s; }
.config-section:nth-child(4) { animation-delay: 0.4s; }
.config-section:nth-child(5) { animation-delay: 0.5s; }
.config-section:nth-child(6) { animation-delay: 0.6s; }

/* Text Quiz Styling for Admin Preview */
.text-option {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    border: 3px solid #5d8aa8;
    height: auto;
    min-height: 100px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    clip-path: polygon(0 0, 97% 0, 100% 50%, 100%, 0 100%, 3% 50%);
    transition: all 0.3s ease;
}

.text-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: #ffd700;
}

.text-option .option-text {
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 1px;
    text-align: center;
    color: #ffffff;
    line-height: 1.4;
    flex: 1;
    padding: 0 30px;
    font-family: 'Varela Round', Arial, sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.text-option .option-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 10px 0;
    flex: 1;
}

.text-option .option-icon {
    display: none;
}

.text-option .option-letter {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 2rem;
    font-weight: 200;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    letter-spacing: 0.5px;
    font-family: 'Varela Round', Arial, sans-serif;
}

.text-question .question-text {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
    padding: 20px 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 3px solid #5d8aa8;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    font-family: 'Varela Round', Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-questions-container .options-container {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Text option states */
.text-option.selected {
    border-color: #ff9900;
    background: linear-gradient(180deg, #4a3c28 0%, #6c5837 100%);
    animation: textSuspensePulse 0.8s infinite;
}

@keyframes textSuspensePulse {
    0% { transform: translateY(-2px) scale(1); box-shadow: 0 8px 25px rgba(255, 153, 0, 0.3); }
    50% { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 35px rgba(255, 153, 0, 0.5); }
    100% { transform: translateY(-2px) scale(1); box-shadow: 0 8px 25px rgba(255, 153, 0, 0.3); }
}

.text-option.correct {
    background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
    border-color: #2E7D32;
    box-shadow: 0 0 25px #4CAF50;
    animation: none;
}

.text-option.incorrect {
    background: linear-gradient(180deg, #f44336 0%, #d32f2f 100%);
    border-color: #b71c1c;
    box-shadow: 0 0 25px #f44336;
    animation: none;
}

/* רספונסיביות */
@media (max-width: 768px) {
    .admin-container {
        padding: 10px;
    }
    
    .admin-header h1 {
        font-size: 2rem;
    }
    
    /* Text questions mobile adjustments for admin */
    .text-option {
        height: auto;
        min-height: 80px;
        padding: 10px 15px;
    }
    
    .text-option .option-text {
        font-size: 1.0rem;
        padding: 0 1px;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .text-option .option-letter {
        right: 20px;
        font-size: 1.6rem;
    }
    
    .text-question .question-text {
        font-size: 1.2rem;
        padding: 15px 20px;
    }
    
    .config-section {
        padding: 20px;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .answer-type-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-option {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .admin-header {
        padding: 20px;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .config-section {
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }

    /* Pricing Modal Mobile */
    .pricing-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .pricing-tiers-modal {
        grid-template-columns: 1fr;
    }

    .pricing-modal-header h3 {
        font-size: 1.2rem;
    }
}

/* Pricing Tooltip */
.pricing-tooltip {
    cursor: pointer;
    font-size: 1.5em;
    margin-right: 10px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

.pricing-tooltip:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
}

/* Pricing Modal */
.pricing-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pricing-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.98) 100%);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    position: relative;
}

/* Custom scrollbar for pricing modal */
.pricing-modal-content::-webkit-scrollbar {
    width: 10px;
}

.pricing-modal-content::-webkit-scrollbar-track {
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
}

.pricing-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    border-radius: 10px;
}

.pricing-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #45b7aa 0%, #3aa89a 100%);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.2);
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    border-radius: 20px 20px 0 0;
}

.pricing-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.close-pricing-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-pricing-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.pricing-modal-body {
    padding: 30px;
}

.pricing-intro-modal {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(69, 183, 170, 0.1) 100%);
    border-radius: 15px;
    border-right: 4px solid #4ecdc4;
}

.pricing-intro-modal p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.pricing-tiers-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.current-tier-info-modal {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(69, 183, 170, 0.1) 100%);
    border: 2px solid #4ecdc4;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.current-tier-info-modal h4 {
    margin: 0 0 15px 0;
    color: #4ecdc4;
    font-size: 1.2rem;
}

.current-tier-details-modal {
    color: #333;
}

.tier-status-modal {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.tier-status-modal.basic {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.tier-status-modal.premium {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.tier-status-modal.deluxe {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.tier-status-modal.exceeded {
    animation: pulse 2s infinite;
}

.exceeded-message-modal {
    color: #dc3545;
    font-weight: 600;
    margin-top: 10px;
    padding: 10px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border-right: 3px solid #dc3545;
}

.pricing-info {
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-tier-info h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pricing-tier {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-tier:hover {
    border-color: #4ecdc4;
    transform: translateY(-2px);
}

.pricing-tier.basic {
    border-color: #28a745;
}

.pricing-tier.premium {
    border-color: #ffc107;
}

.pricing-tier.deluxe {
    border-color: #dc3545;
}

.pricing-tier h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.pricing-tier .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #4ecdc4;
    margin: 10px 0;
}

.pricing-tier .limits {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

/* Enhanced pricing info styling */
.pricing-explanation {
    margin-bottom: 20px;
    text-align: center;
}

.pricing-intro {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 15px;
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    border-radius: 10px;
    color: white;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tier-header h4 {
    margin: 0;
    font-size: 1.3rem;
}

.popular-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.tier-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(78, 205, 196, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateX(-5px);
}

.feature-icon {
    font-size: 1.2rem;
}

.feature-text {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.pricing-tier.basic .feature-item {
    border-right: 3px solid #4ecdc4;
}

.pricing-tier.premium .feature-item {
    border-right: 3px solid #ffd700;
}

.pricing-tier.deluxe .feature-item {
    border-right: 3px solid #4ecdc4;
}

.current-tier-info {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.current-tier-info h4 {
    color: #1976d2;
    margin: 0 0 10px 0;
}

.current-tier-details {
    background: white;
    border-radius: 5px;
    padding: 10px;
    border: 1px solid #bbdefb;
}

.tier-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 5px 0;
}

.tier-status.basic {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tier-status.premium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.tier-status.deluxe {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tier-status.exceeded {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Mobile responsive for pricing */
@media (max-width: 768px) {
    .pricing-tiers {
        grid-template-columns: 1fr;
    }
}

/* Mobile responsive for fullscreen preview */
@media (max-width: 768px) {
    .preview-modal .preview-content {
        width: 95%;
        height: 80%;
        transform: scale(0.75);
    }
    
    .preview-modal.fullscreen .preview-content {
        width: 100vw;
        height: 100vh;
        transform: scale(1);
    }
    
    .preview-modal.fullscreen .preview-iframe-container {
        height: calc(100vh - 50px);
    }
    
    .preview-controls {
        flex-direction: column;
        gap: 5px;
    }
    
    .fullscreen-preview-btn {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .preview-header {
        padding: 8px 12px;
        font-size: 0.75em;
    }
    
    .close-preview {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

/* Purchase Modal Styles */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.purchase-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-purchase {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-purchase:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.purchase-form {
    padding: 25px;
}

.purchase-form .form-group {
    margin-bottom: 20px;
}

.purchase-form label {
    display: block;
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.purchase-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.purchase-form input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.purchase-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pricing-info {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.pricing-info h4 {
    color: #4ecdc4;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pricing-details {
    color: white;
    font-size: 0.95rem;
    line-height: 1.6;
}

.purchase-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.purchase-actions .btn-primary {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.purchase-actions .btn-primary:hover {
    background: linear-gradient(135deg, #45b7aa 0%, #3aa89a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.purchase-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.purchase-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Purchase Button in Preview Actions */
.purchase-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.purchase-btn:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ff9800 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Purchase Success Screen Styles */
.purchase-success-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.success-content {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

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

.success-title {
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.success-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.link-section {
    text-align: right;
}

.link-section label {
    display: block;
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.link-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.link-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    direction: ltr;
    text-align: left;
}

.link-input-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn-copy {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.link-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn-personal-area {
    padding: 18px 30px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.btn-personal-area:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
}

.btn-personal-area .btn-icon {
    font-size: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .success-content {
        padding: 30px 20px;
    }
    
    .success-icon {
        font-size: 4rem;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .success-message {
        font-size: 1rem;
    }
    
    .link-input-group {
        flex-direction: column;
    }
    
    .btn-personal-area {
        font-size: 1rem;
        padding: 15px 25px;
    }
}

