       * { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background-color: #f4f4f4; padding: 20px; }
        .container { max-width: 1200px; margin: 0 auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
        h1 { color: #2c3e50; }
        .auth-section { display: flex; align-items: center; gap: 10px; }
        button, .btn { padding: 8px 16px; background: #A02422; color: white; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
        button:hover, .btn:hover { background: #2980b9; }
        .btn-danger { background: #e74c3c; }
        .btn-danger:hover { background: #c0392b; }
        .btn-success { background: #27ae60; }
        .btn-success:hover { background: #219a52; }
        .btn-sm { padding: 4px 8px; font-size: 0.8rem; }
        .view-toggle { margin: 15px 0; }
        .appointment-form { background: #f9f9f9; padding: 15px; border-radius: 5px; margin-bottom: 20px; }
        .form-group { margin-bottom: 15px; }
        .form-row { display: flex; gap: 15px; }
        .form-row .form-group { flex: 1; }
        label { display: block; margin-bottom: 5px; font-weight: bold; }
        input, textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
        textarea { height: 80px; }
        .agenda-view .appointment { 
            background: rgb(255, 255, 255); 
            padding: 15px; 
            margin-bottom: 18px; 
            border: 1px solid #ddd;
            border-left: 4px solid #6d1414; 
            border-radius: 4px; 
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
            position: relative;
            overflow: hidden;
        }
        .agenda-view .appointment.has-image {
            padding-right: 40%;
        }
        .agenda-view .appointment .appointment-bg {
            position: absolute;
            top: 0;
            right: 0;
            width: 40%;
            height: 100%;
            background-size: cover;
            background-position: center;
            z-index: 0;
        }
        .agenda-view .appointment .appointment-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            height: 100%;
            background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
            z-index: 1;
        }
        .agenda-view .appointment .appointment-content {
            position: relative;
            z-index: 2;
        }
        .agenda-view .appointment h3 { border-radius: 5px; margin-bottom: 5px; padding: 5px 15px; font-size: 1.5em; color: #ddd675; background-color: #3a1515;}
        .agenda-view .appointment .datetime { color: #7f8c8d; font-size: 1.5em; margin-bottom: 10px; }
        .cost-display { 
            font-size: 1.2em; 
            font-weight: bold; 
            color: #27ae60; 
            margin: 10px 0; 
            padding: 5px 10px; 
            background: rgba(39, 174, 96, 0.1); 
            border-radius: 4px; 
            display: inline-block; 
        }
        .subscription-section { 
            margin-top: 15px; 
            padding: 15px; 
            background: #f8f9fa; 
            border-radius: 5px; 
            border: 1px solid #dee2e6; 
        }
        .subscription-form { display: none; margin-top: 10px; }
        .subscription-form.active { display: block; }
        .subscription-form input { margin-bottom: 10px; }


        @font-face {
            font-family: 'AmaticSC';
            src: url('fonts/AmaticSC-Regular.ttf') format('truetype');
        }        
        .soldout-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-45deg);
            font-family: 'AmaticSC', cursive;
            font-size: 4em;
            color: rgba(255, 0, 0, 0.7);
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            pointer-events: none;
            white-space: nowrap;
            z-index: 10;
        }
        .appointment.soldout {
            position: relative;
            overflow: hidden;
        }
              
        .calendar-view .event-soldout {
            background-color: rgba(239, 107, 67, 0.82) !important;
            color: #000000;
        }

        .calendar-view { width: 100%; border-collapse: collapse; }
        .calendar-view th, .calendar-view td { border: 1px solid #ddd; padding: 10px; text-align: center; }
        .calendar-view th { background: #f2f2f2; }
        .calendar-view .other-month { color: #ccc; }
        .calendar-view .today { background-color: #eaf6ff; }
        .calendar-view .has-appointment { background-color: #52eda0; position: relative; }
        .calendar-view .has-appointment::after { content: ''; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; background: #2ecc71; border-radius: 50%; }
        .calendar-navigation { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
        .error { color: #e74c3c; margin: 10px 0; }
        .success { color: #27ae60; margin: 10px 0; }
        .appointment-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
        .image-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
        .image-item { position: relative; width: 150px; }
        .image-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
        .image-item .delete-btn { position: absolute; top: 5px; right: 5px; background: rgba(231, 76, 60, 0.8); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 12px; cursor: pointer; }
        .file-inputs { margin-top: 10px; }
        .privacy-section { 
            margin: 15px 0; 
            padding: 10px; 
            background: #f0f8ff; 
            border: 1px solid #cce7ff; 
            border-radius: 4px; 
        }
        .privacy-checkbox { 
            display: flex; 
            align-items: flex-start; 
            gap: 8px; 
            margin-bottom: 15px; 
        }
        .privacy-checkbox input[type="checkbox"] { 
            width: auto; 
            margin: 0; 
            flex-shrink: 0; 
            margin-top: 3px; 
        }
        .privacy-checkbox label { 
            margin: 0; 
            font-size: 0.9em; 
            line-height: 1.4; 
        }
        .privacy-link { 
            color: #A02422; 
            text-decoration: underline; 
        }
        .privacy-link:hover { 
            color: #2980b9; 
        }
        .required { 
            color: #e74c3c; 
            font-weight: bold; 
        }
        @media (max-width: 768px) {
            header { flex-direction: column; align-items: flex-start; }
            .auth-section { margin-top: 10px; }
            .image-item { width: 100px; }
            .agenda-view .appointment.has-image {
                padding-right: 15px;
            }
            .agenda-view .appointment .appointment-bg {
                display: none;
            }
            .form-row { flex-direction: column; }
            .modal-content { width: 95%; margin: 10% auto; }
        }

        .counter-info {
            font-size: 0.85rem;
            color: #666;
            text-align: center;
            margin-top: 12px;
        }